/* ===== DESIGN TOKENS ===== */
:root {
  /* Primary */
  --navy: #0F2137;
  --gold: #F2A922;
  
  /* Secondary */
  --white: #FFFFFF;
  --steel: #2E4A6E;
  --midnight: #091428;
  --cream: #FAF4E8;
  
  /* Functional */
  --gold-hover: #D99A1E;
  --gold-light: rgba(242, 169, 34, 0.12);
  --navy-90: rgba(15, 33, 55, 0.9);
  --text-secondary: #5A7A9B;
  --border: rgba(15, 33, 55, 0.08);
  --success: #16A34A;
  --error: #DC2626;
  
  /* Typography */
  --font-display: 'Inter', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  
  /* Sizing */
  --max-width: 1200px;
  --header-height: 72px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.5s;
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 100px;
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { max-width: 65ch; }

.text-gold { color: var(--gold); }
.text-steel { color: var(--steel); }
.text-white { color: var(--white); }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--midnight);
}

.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 169, 34, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--steel);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 33, 55, 0.2);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  transition: all 0.4s var(--ease-out);
}

.header.scrolled {
  background: rgba(9, 20, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo span { color: var(--gold); }

.nav { display: flex; align-items: center; gap: var(--space-lg); }

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--white); }

.lang-dropdown {
  position: relative;
}

.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.75rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.7);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.3s;
}

.lang-dropdown-toggle:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.lang-chevron {
  transition: transform 0.3s var(--ease-out);
}

.lang-dropdown.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--midnight);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s var(--ease-out);
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.lang-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-menu button {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  text-align: left;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.lang-dropdown-menu button:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.lang-dropdown-menu button.active {
  color: var(--gold);
  background: var(--gold-light);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--midnight);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(46, 74, 110, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(242, 169, 34, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle grain */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gold-light);
  border: 1px solid rgba(242, 169, 34, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}

.hero-sub {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-xl);
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.9375rem;
  margin-top: var(--space-lg);
}

.hero-phone svg { opacity: 0.5; }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.trust-item {
  padding: var(--space-lg) var(--space-sm);
  text-align: center;
}

.trust-number {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.trust-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  position: relative;
}

/* Connecting line */
.steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: var(--border);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  z-index: 1;
  transition: all 0.4s var(--ease-out);
}

.step:hover .step-number {
  background: var(--gold);
  color: var(--midnight);
  transform: scale(1.1);
}

.step h3 { margin-bottom: 0.5rem; }

.step p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0 auto;
}

/* ===== WHY US ===== */
.why-us { background: var(--cream); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease-out);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(15, 33, 55, 0.08);
  border-color: rgba(242, 169, 34, 0.2);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--gold);
}

.benefit-card h3 {
  margin-bottom: 0.5rem;
}

.benefit-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.badge-soon {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  background: var(--gold-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  vertical-align: middle;
  margin-left: 6px;
}

body.no-scroll {
  overflow: hidden;
}

/* ===== PRICING ===== */
.pricing { background: var(--white); }

.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--midnight);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(242, 169, 34, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.pricing-period {
  color: rgba(255,255,255,0.4);
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.pricing-desc {
  color: rgba(255,255,255,0.6);
  font-size: 1.0625rem;
  margin: 0 auto var(--space-lg);
  max-width: 380px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: var(--space-lg);
  text-align: left;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
}

.pricing-features li svg { color: var(--gold); flex-shrink: 0; }

/* ===== FORM ===== */
.form-section { background: var(--cream); }

.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8125rem 1rem;
  border: 1.5px solid rgba(15, 33, 55, 0.12);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232E4A6E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-submit {
  margin-top: var(--space-md);
  text-align: center;
}

.form-submit .btn { width: 100%; justify-content: center; padding: 1rem; font-size: 1.0625rem; }

.form-note {
  text-align: center;
  margin-top: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-xl);
}

.form-success.show { display: block; }
.form-success svg { color: var(--success); margin-bottom: var(--space-sm); }
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { color: var(--text-secondary); margin: 0 auto; }

/* ===== FAQ ===== */
.faq { background: var(--white); }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item { background: var(--white); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy);
  text-align: left;
  transition: color 0.3s;
}

.faq-question:hover { color: var(--steel); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.3s var(--ease-out);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-md);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--midnight);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .logo { margin-bottom: var(--space-sm); display: inline-block; }

.footer-brand p {
  color: rgba(255,255,255,0.4);
  font-size: 0.9375rem;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-display);
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col a, .footer-col p {
  display: block;
  color: rgba(255,255,255,0.4);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  color: rgba(255,255,255,0.25);
  font-size: 0.8125rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .steps { gap: var(--space-md); }
  .benefits-grid { gap: var(--space-sm); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: var(--space-2xl) 0; }
  
  .nav-links { display: none; }
  .nav .btn { display: none; }
  .mobile-toggle { display: flex; }
  
  /* Mobile menu — uses absolute so backdrop-filter on header doesn't break positioning */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    background: var(--midnight);
    padding: var(--space-xl);
    gap: var(--space-md);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.open a {
    font-size: 1.25rem;
    color: var(--white);
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero { min-height: auto; padding: 140px 0 80px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  
  .trust-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .steps::before { display: none; }
  
  .benefits-grid { grid-template-columns: 1fr; }
  
  .form-grid { grid-template-columns: 1fr; }
  
  .footer-top { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
}

/* Case ID display */
.case-id-block {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--gold-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--gold);
}
.case-id-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.case-id-value {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.1em;
  user-select: all;
}
.case-id-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.25rem; }
  .pricing-card { padding: var(--space-lg); }
}
