/* ============================================================
   CRYSTALCX LANDING — STYLESHEET
   ============================================================ */

/* --- VARIABLES --- */
:root {
  --navy:        #0A1628;
  --navy-light:  #0F1E38;
  --navy-mid:    #0D1A30;
  --gold:        #C9A96E;
  --gold-dim:    rgba(201, 169, 110, 0.15);
  --gold-border: rgba(201, 169, 110, 0.25);
  --white:       #F0F0EB;
  --gray:        #8892A4;
  --subtle:      rgba(255, 255, 255, 0.05);
  --subtle-border: rgba(255, 255, 255, 0.07);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --ease:        0.22s ease;
  --radius:      6px;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); color: inherit; }
img, svg { display: block; max-width: 100%; }

/* --- LAYOUT --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 36px;
}
.section { padding: 104px 0; }

/* --- TYPOGRAPHY --- */
h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
p { line-height: 1.72; }

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: #d4b47c;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(201, 169, 110, 0.28);
}
.btn-primary.btn-large { padding: 15px 34px; font-size: 15px; }
.btn-primary.btn-full { width: 100%; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  transition: border-color var(--ease), background var(--ease);
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  transition: border-color var(--ease), background var(--ease);
  background: none;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

/* --- SECTION HEADER --- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-header h2 { margin-bottom: 14px; }
.section-subtitle {
  font-size: 16px;
  color: var(--gray);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(10, 22, 40, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--subtle-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  flex-shrink: 0;
  color: var(--white);
}
.nav-logo span { color: var(--gold); }
.footer-logo { font-size: 22px; display: inline-block; margin-bottom: 12px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  transition: color var(--ease);
}
.nav-links a:hover { color: var(--white); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.lang-toggle { display: flex; align-items: center; gap: 5px; }
.lang-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.06em;
  padding: 3px;
  transition: color var(--ease);
}
.lang-btn.active { color: var(--gold); }
.lang-btn:hover { color: var(--white); }
.lang-sep { color: var(--gold-border); font-size: 12px; user-select: none; }

.mobile-cta { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--ease);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 130px 0 90px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  overflow: hidden;
}
.crystal-svg {
  width: 55vw;
  max-width: 640px;
  height: auto;
  transform: translateX(8%) translateY(-2%);
  animation: crystal-pulse 8s ease-in-out infinite;
}
@keyframes crystal-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.hero-inner { position: relative; max-width: 660px; }
.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.hero h1 { margin-bottom: 22px; }
.hero-subtitle {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   CHALLENGES
   ============================================================ */
.challenges { background: var(--navy-light); }
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
.challenge-card { grid-column: span 2; }
.challenge-card:nth-child(4) { grid-column: 2 / span 2; }
.challenge-card:nth-child(5) { grid-column: 4 / span 2; }
.challenge-card {
  background: var(--subtle);
  border: 1px solid var(--subtle-border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
  transition: background var(--ease), transform var(--ease);
}
.challenge-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-3px);
}
.challenge-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 10px;
}
.challenge-card h3 { margin-bottom: 8px; font-size: 17px; }
.challenge-card p { font-size: 14px; color: var(--gray); line-height: 1.6; }

.core-message {
  text-align: center;
  padding: 28px 40px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  background: var(--gold-dim);
}
.core-message p {
  font-size: 19px;
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 28px;
}
.service-card {
  background: var(--subtle);
  border: 1px solid var(--subtle-border);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
}
.service-card:hover {
  border-color: var(--gold-border);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}
.service-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-dim);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.service-card h3 { font-size: 17px; }
.service-card p { font-size: 14px; color: var(--gray); flex: 1; }
.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--subtle-border);
  margin-top: 4px;
  flex-wrap: wrap;
}
.service-duration {
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
}
.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--gray);
  padding-top: 6px;
}

/* ============================================================
   CASE STUDIES
   ============================================================ */
.cases { background: var(--navy-light); }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case-card {
  background: var(--subtle);
  border: 1px solid var(--subtle-border);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--ease), transform var(--ease);
}
.case-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
}
.case-client {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.case-card h3 { font-size: 17px; margin: 2px 0; }
.case-card p { font-size: 14px; color: var(--gray); flex: 1; }
.case-metrics {
  display: flex;
  gap: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--subtle-border);
  margin-top: 4px;
  flex-wrap: wrap;
}
.metric { display: flex; flex-direction: column; gap: 2px; }
.metric-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.metric-label {
  font-size: 10px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* ============================================================
   CX MATURITY CHECKLIST
   ============================================================ */
.checklist-section { background: var(--navy-mid); }
.checklist-wrapper {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 52px;
  align-items: start;
}
.checklist-items {
  display: flex;
  flex-direction: column;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--subtle-border);
  cursor: pointer;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 19px; height: 19px;
  border: 1.5px solid rgba(201, 169, 110, 0.4);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  position: relative;
  transition: all var(--ease);
  background: transparent;
}
.checklist-item input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.checklist-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border: 2px solid var(--navy);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.checklist-item label {
  font-size: 15px;
  color: var(--white);
  line-height: 1.55;
  cursor: pointer;
  transition: color var(--ease);
}
.checklist-item:hover label { color: var(--gold); }
.checklist-item input:checked + label {
  color: var(--gray);
  text-decoration: line-through;
  text-decoration-color: rgba(201, 169, 110, 0.35);
}

.checklist-result {
  position: sticky;
  top: 90px;
  background: var(--subtle);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}
.score-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin-bottom: 4px;
}
.score-num {
  font-size: 62px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  transition: color var(--ease);
}
.score-total { font-size: 22px; color: var(--gray); }
.score-label {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.score-bar-wrap {
  height: 3px;
  background: var(--subtle-border);
  border-radius: 2px;
  margin-bottom: 22px;
  overflow: hidden;
}
.score-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  width: 0;
  transition: width 0.4s ease;
}
.checklist-cta-text {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 18px;
  line-height: 1.5;
  min-height: 42px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--navy-light); }
.about-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
.about-photo { display: flex; flex-direction: column; align-items: center; }
.photo-placeholder {
  width: 170px; height: 170px;
  border-radius: 50%;
  background: var(--navy-mid);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  flex-shrink: 0;
}
.about-content .section-tag { margin-bottom: 8px; }
.about-content h2 { margin-bottom: 6px; }
.about-tagline {
  font-size: 15px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.4;
}
.about-bio {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 24px;
}
.about-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  border-radius: 3px;
  padding: 5px 11px;
  letter-spacing: 0.04em;
}
.about-meta { font-size: 13px; color: var(--gray); margin-bottom: 14px; }
.about-industries { display: flex; gap: 8px; flex-wrap: wrap; }
.industry-tag {
  font-size: 12px;
  color: var(--gray);
  background: var(--subtle);
  border: 1px solid var(--subtle-border);
  border-radius: 3px;
  padding: 4px 10px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--subtle-border);
  padding: 76px 0 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 52px;
}
.footer-brand p { font-size: 14px; color: var(--gray); line-height: 1.65; }
.footer-contact h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 700;
}
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray);
  transition: color var(--ease);
}
.contact-item:hover { color: var(--white); }
.footer-cta p {
  font-size: 15px;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--subtle-border);
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: var(--gray); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--navy-light);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 48px;
  width: 100%;
  max-width: 460px;
  position: relative;
  transform: translateY(18px);
  transition: transform 0.24s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  padding: 6px;
  opacity: 0.5;
  transition: opacity var(--ease);
  line-height: 0;
}
.modal-close:hover { opacity: 1; }
.modal h3 { margin-bottom: 6px; }
.modal-subtitle {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-group input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--subtle-border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color var(--ease);
}
.form-group input:focus { border-color: var(--gold); }
.form-group input::placeholder { color: rgba(136, 146, 164, 0.45); }
.modal .btn-primary { margin-top: 6px; }
.modal-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 13px;
  color: var(--gray);
}
.modal-direct a { color: var(--gold); transition: opacity var(--ease); }
.modal-direct a:hover { opacity: 0.75; }
.modal-sep { color: var(--subtle-border); }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .checklist-wrapper { grid-template-columns: 1fr; }
  .checklist-result { position: static; max-width: 340px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner .footer-cta { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .container { padding: 0 22px; }
  .section { padding: 72px 0; }

  /* Nav mobile */
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 20px; color: var(--white); }
  .mobile-cta { display: inline-flex; }
  .desktop-cta { display: none !important; }
  .hamburger { display: flex; }

  /* Challenges */
  .challenges-grid {
    grid-template-columns: 1fr;
  }
  .challenge-card,
  .challenge-card:nth-child(4),
  .challenge-card:nth-child(5) {
    grid-column: 1;
  }

  /* About */
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { align-items: flex-start; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner .footer-cta { grid-column: 1; }
}

@media (max-width: 500px) {
  h1 { font-size: 27px; }
  h2 { font-size: 23px; }
  .hero-ctas { flex-direction: column; }
  .btn-primary.btn-large,
  .btn-secondary { width: 100%; }
  .modal { padding: 32px 20px; }
  .core-message { padding: 22px 20px; }
  .core-message p { font-size: 16px; }
}
