/* ============================================
   HomeDNA — Design System v8 FINAL
   Brand Psychology: Warm · Empowering · Intelligent · Luxurious · Secure · Calm · Confident
   Palette: #F7F6F1 · #151817 · #176B5B · #B79257 · #DFE1DC
   References: Apple · Tesla · Notion · Stripe · Linear · Bang & Olufsen · Porsche · Lexus
   ============================================ */

:root {

  /* ===== COLOUR PALETTE — FINAL ===== */

  /* Backgrounds */
  --bg:          #F7F6F1;   /* warm off-white — 55% of interface */
  --bg-white:    #FFFFFF;   /* raised white surfaces — 25% */
  --bg-alt:      #EEEDE7;   /* soft alternative section bg */
  --bg-inset:    #E8E7E1;   /* deeper inset areas */

  /* Dark — confidence, authority, luxury */
  --charcoal:    #151817;   /* primary charcoal */
  --dark:        #101413;   /* deep dark section bg */
  --dark-2:      #18231F;   /* slightly warmer dark */
  --dark-3:      #1E2A26;   /* card on dark */

  /* Text */
  --text-primary:   #171918;
  --text-secondary: #626762;
  --text-muted:     #8A8E89;
  --text-on-dark:   #F7F6F1;
  --text-on-dark-2: rgba(247,246,241,0.65);
  --text-on-dark-3: rgba(247,246,241,0.38);

  /* Emerald — AI intelligence, primary actions, health, success */
  --emerald:        #176B5B;
  --emerald-hover:  #125548;
  --emerald-bright: #238271;
  --emerald-soft:   #E3F0EC;
  --emerald-dim:    rgba(23,107,91,0.08);
  --emerald-border: rgba(23,107,91,0.18);

  /* Bronze — verified, certified, premium, milestones — use sparingly */
  --bronze:         #B79257;
  --bronze-hover:   #9A7A45;
  --bronze-soft:    #F3EBDD;
  --bronze-border:  rgba(183,146,87,0.22);

  /* Borders */
  --border:         #DFE1DC;
  --border-mid:     #C9CCC6;
  --border-dark:    rgba(247,246,241,0.07);

  /* Semantic */
  --success:  #39765B;
  --warning:  #B77A2A;
  --danger:   #A9473F;

  /* Safety status colours */
  --safe-bg:        #E3F0EC;
  --safe-text:      #176B5B;
  --safe-border:    rgba(23,107,91,0.2);
  --caution-bg:     #FBF0E0;
  --caution-text:   #B77A2A;
  --caution-border: rgba(183,122,42,0.2);
  --pro-bg:         #EEF0FB;
  --pro-text:       #3B4DB8;
  --pro-border:     rgba(59,77,184,0.2);
  --emergency-bg:   #FAEAE9;
  --emergency-text: #A9473F;
  --emergency-border: rgba(169,71,63,0.2);

  /* ===== TYPOGRAPHY ===== */
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Legacy aliases */
  --xs:   0.75rem;
  --sm:   0.875rem;
  --base: 1rem;
  --lg:   1.125rem;
  --xl:   1.25rem;
  --2xl:  1.5rem;
  --3xl:  1.875rem;
  --4xl:  2.25rem;
  --5xl:  3rem;
  --6xl:  3.75rem;
  --7xl:  4.5rem;

  /* ===== SPACING ===== */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Legacy aliases */
  --s1:  0.25rem;
  --s2:  0.5rem;
  --s3:  0.75rem;
  --s4:  1rem;
  --s5:  1.25rem;
  --s6:  1.5rem;
  --s8:  2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --s24: 6rem;
  --s32: 8rem;

  /* ===== RADIUS — architectural, 10–12px ===== */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   12px;
  --r-xl:   14px;
  --r-2xl:  18px;
  --r-full: 9999px;

  /* ===== SHADOWS — subtle, warm-tinted ===== */
  --sh-xs: 0 1px 3px rgba(20,25,22,0.04);
  --sh-sm: 0 2px 8px rgba(20,25,22,0.05), 0 1px 2px rgba(20,25,22,0.03);
  --sh-md: 0 12px 35px rgba(20,25,22,0.06);
  --sh-lg: 0 20px 50px rgba(20,25,22,0.08), 0 4px 12px rgba(20,25,22,0.04);
  --sh-em: 0 8px 24px rgba(23,107,91,0.14);
  --sh-bronze: 0 8px 24px rgba(183,146,87,0.14);

  /* ===== MOTION — elegant, intentional ===== */
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --tf:      250ms;
  --tb:      350ms;
  --ts:      450ms;

  /* Legacy */
  --em:          #176B5B;
  --em-hover:    #125548;
  --em-light:    #E3F0EC;
  --em-mid:      #238271;
  --em-dim:      rgba(23,107,91,0.08);
  --gold:        #B79257;
  --gold-light:  #F3EBDD;
  --gold-dark:   #7A5E2A;
  --bg-card:     #FFFFFF;
  --bg-alt:      #EEEDE7;
  --dark-2:      #18231F;
  --dark-3:      #1E2A26;
  --border-dk:   rgba(247,246,241,0.07);
  --border-mid:  #C9CCC6;
  --t1:          #171918;
  --t2:          #626762;
  --t3:          #8A8E89;
  --t-inv:       #F7F6F1;
  --warn:        #B77A2A;
  --sh-xs: 0 1px 3px rgba(20,25,22,0.04);
  --sh-sm: 0 2px 8px rgba(20,25,22,0.05);
  --sh-md: 0 12px 35px rgba(20,25,22,0.06);
  --sh-lg: 0 20px 50px rgba(20,25,22,0.08);
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ============================================
   LAYOUT
   ============================================ */
.container    { max-width: 1160px; margin: 0 auto; padding: 0 var(--s8); }
.container-sm { max-width: 720px;  margin: 0 auto; padding: 0 var(--s8); }
.container-lg { max-width: 1360px; margin: 0 auto; padding: 0 var(--s8); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition:
    background var(--tb) var(--ease),
    border-color var(--tb) var(--ease),
    box-shadow var(--tb) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247,246,241,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--border);
  box-shadow: var(--sh-xs);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--s8);
  height: 72px;
  display: flex;
  align-items: center;
  gap: var(--s10);
}
.nav-logo {
  font-size: var(--xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  color: var(--charcoal);
}
.logo-accent { color: var(--emerald); }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s8);
  flex: 1;
}
.nav-links a {
  font-size: var(--sm);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  transition: color var(--tf) var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: var(--s3); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--s2);
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--tb) var(--ease);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s4) var(--s8) var(--s6);
  background: rgba(247,246,241,0.98);
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: var(--base);
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--tf);
}
.nav-mobile a:hover { color: var(--text-primary); }
.nav-mobile .btn-primary { margin-top: var(--s3); text-align: center; }

/* ============================================
   BUTTONS — FINAL SPEC
   ============================================ */

/* Primary — charcoal bg, white text, emerald hover */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  height: 2.75rem;
  padding: 0 var(--s6);
  font-size: var(--sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--charcoal);
  color: #FFFFFF;
  border: none;
  border-radius: var(--r-md);
  transition:
    background var(--tf) var(--ease),
    box-shadow var(--tf) var(--ease),
    transform var(--tf) var(--ease);
  white-space: nowrap;
}
.btn-primary:hover  { background: var(--emerald); box-shadow: var(--sh-em); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary.btn-lg {
  height: 3.25rem;
  padding: 0 var(--s8);
  font-size: var(--base);
  border-radius: var(--r-lg);
}
.btn-primary.btn-xl {
  height: 3.75rem;
  padding: 0 var(--s10);
  font-size: var(--lg);
  border-radius: var(--r-lg);
}

/* AI Action — emerald bg */
.btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  height: 2.75rem;
  padding: 0 var(--s6);
  font-size: var(--sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--emerald);
  color: #FFFFFF;
  border: none;
  border-radius: var(--r-md);
  transition: all var(--tf) var(--ease);
  white-space: nowrap;
}
.btn-emerald:hover  { background: var(--emerald-hover); box-shadow: var(--sh-em); }
.btn-emerald:active { transform: scale(0.98); }
.btn-emerald.btn-lg {
  height: 3.25rem;
  padding: 0 var(--s8);
  font-size: var(--base);
  border-radius: var(--r-lg);
}

/* Secondary — transparent, border, subtle hover */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  height: 2.75rem;
  padding: 0 var(--s6);
  font-size: var(--sm);
  font-weight: 500;
  letter-spacing: -0.01em;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  transition: all var(--tf) var(--ease);
  white-space: nowrap;
}
.btn-secondary:hover  { background: var(--bg-alt); border-color: var(--border-mid); }
.btn-secondary:active { transform: scale(0.98); }
.btn-secondary.btn-lg {
  height: 3.25rem;
  padding: 0 var(--s8);
  font-size: var(--base);
  border-radius: var(--r-lg);
}

/* Ghost */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  height: 2.75rem;
  padding: 0 var(--s4);
  font-size: var(--sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--r-md);
  transition: all var(--tf) var(--ease);
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(20,25,22,0.04); }

/* Light — for dark sections */
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  height: 2.75rem;
  padding: 0 var(--s6);
  font-size: var(--sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--bg-white);
  color: var(--charcoal);
  border: none;
  border-radius: var(--r-md);
  transition: all var(--tf) var(--ease);
  white-space: nowrap;
}
.btn-light:hover  { background: var(--bg); box-shadow: var(--sh-md); }
.btn-light:active { transform: scale(0.98); }
.btn-light.btn-lg {
  height: 3.25rem;
  padding: 0 var(--s8);
  font-size: var(--base);
  border-radius: var(--r-lg);
}

/* Emergency */
.btn-emergency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  height: 4rem;
  padding: 0 var(--s12);
  font-size: var(--xl);
  font-weight: 800;
  color: #fff;
  background: var(--danger);
  border: none;
  border-radius: var(--r-full);
  transition: all var(--tf) var(--ease);
  letter-spacing: -0.01em;
}
.btn-emergency:hover {
  background: #8F3A33;
  box-shadow: 0 0 40px rgba(169,71,63,0.28);
  transform: scale(1.02);
}

.btn-full { width: 100%; height: 3rem; font-size: var(--base); justify-content: center; }

/* ============================================
   SAFETY STATUS BADGES
   ============================================ */
.safety-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  border-radius: var(--r-md);
  font-size: var(--xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
}
.safety-badge.safe {
  background: var(--safe-bg);
  color: var(--safe-text);
  border-color: var(--safe-border);
}
.safety-badge.caution {
  background: var(--caution-bg);
  color: var(--caution-text);
  border-color: var(--caution-border);
}
.safety-badge.professional {
  background: var(--pro-bg);
  color: var(--pro-text);
  border-color: var(--pro-border);
}
.safety-badge.emergency {
  background: var(--emergency-bg);
  color: var(--emergency-text);
  border-color: var(--emergency-border);
}
.safety-badge-icon { font-size: 14px; flex-shrink: 0; }

/* Full-width safety banner */
.safety-banner {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  border-radius: var(--r-lg);
  border: 1px solid;
  margin-bottom: var(--s4);
}
.safety-banner.safe        { background: var(--safe-bg);      color: var(--safe-text);      border-color: var(--safe-border); }
.safety-banner.caution     { background: var(--caution-bg);   color: var(--caution-text);   border-color: var(--caution-border); }
.safety-banner.professional{ background: var(--pro-bg);       color: var(--pro-text);       border-color: var(--pro-border); }
.safety-banner.emergency   { background: var(--emergency-bg); color: var(--emergency-text); border-color: var(--emergency-border); }
.safety-banner-icon  { font-size: 20px; flex-shrink: 0; }
.safety-banner-title { font-size: var(--sm); font-weight: 700; }
.safety-banner-desc  { font-size: var(--xs); opacity: 0.8; margin-top: 1px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-gradient {
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(23,107,91,0.045) 0%, transparent 68%);
  border-radius: 50%;
}
.hero-gradient-2 {
  position: absolute;
  bottom: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(183,146,87,0.028) 0%, transparent 68%);
  border-radius: 50%;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  border-radius: var(--r-full);
  font-size: var(--xs);
  font-weight: 600;
  color: var(--emerald);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--s6);
}
.eyebrow-dot {
  width: 5px; height: 5px;
  background: var(--emerald);
  border-radius: 50%;
  animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}
.hero-title {
  font-size: clamp(2.75rem, 5vw, 4.75rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.045em;
  color: var(--text-primary);
  margin-bottom: var(--s6);
}
.hero-title .accent { color: var(--emerald); }
.hero-subtitle {
  font-size: var(--lg);
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: var(--s10);
  max-width: 500px;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s12);
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--s6);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--xs);
  color: var(--text-muted);
  font-weight: 500;
}
.trust-icon { width: 15px; height: 15px; color: var(--emerald); flex-shrink: 0; }

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.home-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s6);
  box-shadow: var(--sh-md);
  width: 100%;
  max-width: 360px;
}
.home-card-header {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s5);
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--border);
}
.home-card-icon {
  width: 42px; height: 42px;
  background: var(--emerald-soft);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home-card-icon svg { width: 20px; height: 20px; color: var(--emerald); }
.home-card-title { font-size: var(--sm); font-weight: 700; color: var(--text-primary); letter-spacing: -0.015em; }
.home-card-sub   { font-size: var(--xs); color: var(--text-muted); margin-top: 1px; }
.health-badge {
  margin-left: auto;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: var(--xs);
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--r-full);
  letter-spacing: -0.01em;
}
.home-card-score { margin-bottom: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--xs);
  color: var(--text-secondary);
}
.score-bar-wrap {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: var(--r-full);
  margin: 0 var(--s3);
  overflow: hidden;
}
.score-bar         { height: 100%; border-radius: var(--r-full); background: var(--emerald); }
.score-bar.warning { background: var(--warning); }
.score-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.score-tag.excellent { background: var(--emerald-soft); color: var(--emerald); }
.score-tag.warning   { background: #FBF0E0; color: var(--warning); }
.score-tag.attention { background: var(--emergency-bg); color: var(--danger); }
.home-card-timeline { display: flex; flex-direction: column; gap: var(--s3); }
.timeline-item { display: flex; align-items: flex-start; gap: var(--s3); }
.tl-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.tl-green  { background: var(--emerald); }
.tl-gold   { background: var(--bronze); }
.tl-yellow { background: var(--warning); }
.tl-title  { font-size: var(--xs); font-weight: 600; color: var(--text-primary); }
.tl-date   { font-size: 10px; color: var(--text-muted); margin-top: 1px; }

/* Floating mini cards */
.hero-float-card {
  position: absolute;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s3) var(--s4);
  box-shadow: var(--sh-md);
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--xs);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.hero-float-card.top-left     { top: -20px; left: -40px; animation: floatA 6s ease-in-out infinite; }
.hero-float-card.bottom-right { bottom: -20px; right: -30px; animation: floatB 7s ease-in-out infinite; }
@keyframes floatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes floatB { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
.float-icon {
  width: 28px; height: 28px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.float-icon.emerald { background: var(--emerald-soft); }
.float-icon.gold    { background: var(--bronze-soft); }
/* Legacy */
.float-icon.em   { background: var(--emerald-soft); }

/* ============================================
   SECTIONS
   ============================================ */
section { padding: var(--s24) 0; }
.section-alt  { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--text-on-dark); }
.section-charcoal { background: var(--charcoal); color: var(--text-on-dark); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--xs);
  font-weight: 600;
  color: var(--emerald);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: var(--s4);
}
.section-dark .section-label,
.section-charcoal .section-label { color: var(--emerald-bright); }

.section-title {
  font-size: clamp(1.875rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.1;
  margin-bottom: var(--s5);
  color: var(--text-primary);
}
.section-dark .section-title,
.section-charcoal .section-title { color: var(--text-on-dark); }

.section-subtitle {
  font-size: var(--lg);
  color: var(--text-secondary);
  line-height: 1.78;
  max-width: 560px;
  font-weight: 400;
}
.section-dark .section-subtitle,
.section-charcoal .section-subtitle { color: var(--text-on-dark-2); }

.section-header          { margin-bottom: var(--s16); }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ============================================
   OUTCOMES STRIP
   ============================================ */
.outcomes-strip {
  background: var(--charcoal);
  padding: var(--s8) 0;
}
.outcomes-inner {
  display: flex;
  align-items: center;
  gap: var(--s12);
  flex-wrap: wrap;
  justify-content: center;
}
.outcome-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--sm);
  color: var(--text-on-dark-2);
  font-weight: 400;
  white-space: nowrap;
}
.outcome-dot {
  width: 4px; height: 4px;
  background: var(--emerald);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}
.step-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8);
  transition:
    border-color var(--tb) var(--ease),
    box-shadow var(--tb) var(--ease),
    transform var(--tb) var(--ease);
}
.step-card:hover {
  border-color: var(--emerald-border);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}
.step-num {
  font-size: var(--xs);
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.08em;
  margin-bottom: var(--s5);
  text-transform: uppercase;
}
.step-icon {
  width: 48px; height: 48px;
  background: var(--emerald-soft);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s5);
}
.step-icon svg { width: 22px; height: 22px; color: var(--emerald); }
.step-title {
  font-size: var(--lg);
  font-weight: 700;
  margin-bottom: var(--s3);
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.step-desc { font-size: var(--sm); color: var(--text-secondary); line-height: 1.75; }

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8);
  transition:
    border-color var(--tb) var(--ease),
    box-shadow var(--tb) var(--ease),
    transform var(--tb) var(--ease);
}
.feature-card:hover {
  border-color: var(--emerald-border);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}
.feature-card.featured {
  grid-column: span 2;
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
}
.feature-icon {
  width: 42px; height: 42px;
  background: var(--emerald-soft);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s5);
}
.feature-card.featured .feature-icon { background: rgba(23,107,91,0.1); }
.feature-icon svg { width: 20px; height: 20px; color: var(--emerald); }
.feature-title {
  font-size: var(--base);
  font-weight: 700;
  margin-bottom: var(--s2);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.feature-desc { font-size: var(--sm); color: var(--text-secondary); line-height: 1.72; }

/* ============================================
   AI SHOWCASE — dark section
   ============================================ */
.ai-section { background: var(--dark); }
.ai-demos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  margin-top: var(--s12);
}
.ai-demo-card {
  background: var(--dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-xl);
  padding: var(--s6);
  transition:
    border-color var(--tb) var(--ease),
    transform var(--tb) var(--ease);
}
.ai-demo-card:hover {
  border-color: var(--emerald-border);
  transform: translateY(-3px);
}
.ai-demo-header {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s5);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border-dark);
}
.ai-demo-icon {
  width: 40px; height: 40px;
  background: rgba(23,107,91,0.14);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ai-demo-title { font-size: var(--sm); font-weight: 700; color: var(--text-on-dark); }
.ai-demo-sub   { font-size: var(--xs); color: var(--text-on-dark-3); margin-top: 1px; }
.ai-result-list { display: flex; flex-direction: column; gap: var(--s3); }
.ai-result-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: var(--xs);
  color: var(--text-on-dark-2);
  line-height: 1.55;
}
.ai-result-dot {
  width: 5px; height: 5px;
  background: var(--emerald);
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.ai-result-item strong { color: var(--text-on-dark); font-weight: 600; }
.ai-cta-row {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ai-cta-label { font-size: var(--xs); color: var(--text-on-dark-3); }
.ai-cta-link {
  font-size: var(--xs);
  font-weight: 600;
  color: var(--emerald-bright);
  transition: color var(--tf);
}
.ai-cta-link:hover { color: var(--emerald); }

/* AI Chat Demo */
.ai-chat-demo {
  background: var(--dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-2xl);
  padding: var(--s8);
  max-width: 560px;
  margin: 0 auto;
}
.ai-messages {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  margin-bottom: var(--s6);
  max-height: 320px;
  overflow-y: auto;
}
.ai-msg { display: flex; gap: var(--s3); align-items: flex-start; }
.ai-msg.user { flex-direction: row-reverse; }
.ai-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  color: #FFFFFF;
  font-weight: 700;
}
.ai-bubble {
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: var(--s3) var(--s4);
  font-size: var(--sm);
  line-height: 1.65;
  max-width: 80%;
  color: var(--text-on-dark-2);
}
.ai-msg.user .ai-bubble {
  background: rgba(23,107,91,0.12);
  border-color: var(--emerald-border);
  color: var(--emerald-bright);
}
.ai-input-row { display: flex; gap: var(--s3); align-items: center; }
.ai-input {
  flex: 1;
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: var(--s3) var(--s4);
  font-size: var(--sm);
  color: var(--text-on-dark);
  font-family: inherit;
  outline: none;
  transition: border-color var(--tf);
}
.ai-input:focus { border-color: var(--emerald-border); }
.ai-input::placeholder { color: var(--text-on-dark-3); }

/* ============================================
   ONBOARDING STEPS SECTION
   ============================================ */
.onboarding-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
}
.onboarding-step-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s6);
  transition: all var(--tb) var(--ease);
}
.onboarding-step-card:hover {
  border-color: var(--emerald-border);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}
.onboarding-step-num {
  font-size: var(--xs);
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s3);
}
.onboarding-step-title {
  font-size: var(--base);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--s2);
}
.onboarding-step-desc {
  font-size: var(--sm);
  color: var(--text-secondary);
  line-height: 1.68;
}

/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  align-items: start;
}
.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s8);
  transition: all var(--tb) var(--ease);
}
.pricing-card:hover { box-shadow: var(--sh-md); }
.pricing-card.featured {
  border-color: var(--emerald);
  box-shadow: var(--sh-em);
}
.pricing-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--emerald);
  padding: 3px 10px;
  border-radius: var(--r-full);
  margin-bottom: var(--s4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pricing-name {
  font-size: var(--xl);
  font-weight: 800;
  margin-bottom: var(--s2);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--s1);
  margin-bottom: var(--s2);
}
.price-amount {
  font-size: var(--5xl);
  font-weight: 900;
  letter-spacing: -0.055em;
  color: var(--text-primary);
}
.price-period { font-size: var(--sm); color: var(--text-muted); }
.pricing-desc {
  font-size: var(--sm);
  color: var(--text-secondary);
  margin-bottom: var(--s6);
  line-height: 1.68;
}
.pricing-features { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s8); }
.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--sm);
  color: var(--text-secondary);
}
.pricing-feature .check {
  width: 16px; height: 16px;
  background: var(--emerald-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--emerald);
  font-size: 9px;
  font-weight: 700;
}

/* Bronze certified badge */
.certified-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: var(--bronze-soft);
  border: 1px solid var(--bronze-border);
  border-radius: var(--r-full);
  font-size: var(--xs);
  font-weight: 600;
  color: var(--bronze-hover);
  letter-spacing: 0.03em;
}
.certified-dot { width: 6px; height: 6px; background: var(--bronze); border-radius: 50%; }

/* ============================================
   EMERGENCY SECTION
   ============================================ */
.emergency-section { background: var(--dark); padding: var(--s24) 0; }
.emergency-card {
  background: var(--dark-2);
  border: 1px solid rgba(169,71,63,0.14);
  border-radius: var(--r-2xl);
  padding: var(--s12);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.emergency-icon  { font-size: 52px; margin-bottom: var(--s6); display: block; }
.emergency-title {
  font-size: var(--4xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: var(--s4);
  color: var(--text-on-dark);
}
.emergency-desc {
  font-size: var(--lg);
  color: var(--text-on-dark-2);
  margin-bottom: var(--s8);
  line-height: 1.78;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  text-align: center;
  padding: var(--s32) 0;
  background: var(--bg);
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: var(--s6);
  color: var(--text-primary);
}
.cta-subtitle {
  font-size: var(--lg);
  color: var(--text-secondary);
  margin-bottom: var(--s10);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.78;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
  padding: var(--s16) 0 var(--s8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s12);
  margin-bottom: var(--s12);
}
.footer-brand .nav-logo {
  font-size: var(--2xl);
  display: inline-block;
  margin-bottom: var(--s4);
  color: var(--text-on-dark);
}
.footer-tagline {
  font-size: var(--sm);
  color: var(--text-on-dark-3);
  line-height: 1.78;
  max-width: 280px;
}
.footer-col-title {
  font-size: var(--xs);
  font-weight: 700;
  color: var(--text-on-dark-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s4);
}
.footer-links { display: flex; flex-direction: column; gap: var(--s3); }
.footer-links a {
  font-size: var(--sm);
  color: rgba(247,246,241,0.48);
  transition: color var(--tf);
}
.footer-links a:hover { color: var(--text-on-dark); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s8);
  border-top: 1px solid var(--border-dark);
  font-size: var(--xs);
  color: var(--text-on-dark-3);
}

/* ============================================
   FORMS
   ============================================ */
.form-group { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s5); }
.form-label {
  font-size: var(--sm);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}
.form-input {
  height: 2.875rem;
  padding: 0 var(--s4);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--sm);
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color var(--tf), box-shadow var(--tf);
  width: 100%;
}
.form-input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(23,107,91,0.07);
}
.form-input::placeholder { color: var(--text-muted); }
.form-textarea {
  padding: var(--s3) var(--s4);
  min-height: 120px;
  resize: vertical;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--sm);
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color var(--tf), box-shadow var(--tf);
  width: 100%;
}
.form-textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(23,107,91,0.07);
}
.form-select {
  height: 2.875rem;
  padding: 0 var(--s4);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--sm);
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color var(--tf);
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A8E89' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form-select:focus { border-color: var(--emerald); }
.form-hint  { font-size: var(--xs); color: var(--text-muted); }
.form-error { font-size: var(--xs); color: var(--danger); }
.form-divider {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin: var(--s6) 0;
  color: var(--text-muted);
  font-size: var(--xs);
}
.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s8);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.auth-bg-glow {
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(23,107,91,0.04) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}
.auth-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s10);
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  box-shadow: var(--sh-lg);
}
.auth-logo {
  font-size: var(--2xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: var(--s8);
  display: block;
  color: var(--charcoal);
}
.auth-title {
  font-size: var(--3xl);
  font-weight: 800;
  letter-spacing: -0.038em;
  margin-bottom: var(--s2);
  color: var(--text-primary);
}
.auth-subtitle {
  font-size: var(--sm);
  color: var(--text-secondary);
  margin-bottom: var(--s8);
  line-height: 1.68;
}
.auth-footer {
  text-align: center;
  margin-top: var(--s6);
  font-size: var(--sm);
  color: var(--text-muted);
}
.auth-footer a { color: var(--emerald); font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}
.sidebar {
  width: 256px;
  flex-shrink: 0;
  background: var(--bg-white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  overflow-y: auto;
}
.sidebar-logo {
  padding: var(--s6);
  border-bottom: 1px solid var(--border);
  font-size: var(--xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  display: block;
  color: var(--charcoal);
}
.sidebar-nav {
  flex: 1;
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}
.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--s3) var(--s3) var(--s2);
  margin-top: var(--s2);
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3);
  border-radius: var(--r-md);
  font-size: var(--sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--tf) var(--ease);
  text-decoration: none;
}
.sidebar-link:hover  { background: var(--bg-alt); color: var(--text-primary); }
.sidebar-link.active { background: var(--emerald-soft); color: var(--emerald); }
.sidebar-link .icon  { font-size: 16px; width: 20px; text-align: center; }
.sidebar-footer {
  padding: var(--s4);
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--tf);
}
.sidebar-user:hover { background: var(--bg-alt); }
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--sm);
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
}
.user-name  { font-size: var(--sm); font-weight: 600; color: var(--text-primary); }
.user-email { font-size: var(--xs); color: var(--text-muted); }
.dashboard-main { flex: 1; margin-left: 256px; min-height: 100vh; }
.dashboard-topbar {
  height: 64px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s8);
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-title   { font-size: var(--lg); font-weight: 700; letter-spacing: -0.025em; color: var(--text-primary); }
.topbar-actions { display: flex; align-items: center; gap: var(--s3); }
.dashboard-content { padding: var(--s8); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
  margin-bottom: var(--s8);
}
.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s6);
  transition: box-shadow var(--tb);
}
.stat-card:hover { box-shadow: var(--sh-sm); }
.stat-card-label  { font-size: var(--xs); color: var(--text-muted); font-weight: 500; margin-bottom: var(--s2); letter-spacing: 0.02em; }
.stat-card-value  { font-size: var(--3xl); font-weight: 800; letter-spacing: -0.04em; margin-bottom: var(--s1); color: var(--text-primary); }
.stat-card-change { font-size: var(--xs); color: var(--emerald); font-weight: 500; }
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s6);
}
.dash-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s6);
}
.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s6);
}
.dash-card-title  { font-size: var(--base); font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
.dash-card-action { font-size: var(--xs); color: var(--emerald); font-weight: 500; cursor: pointer; }
.dash-card-action:hover { text-decoration: underline; }

.timeline { display: flex; flex-direction: column; gap: var(--s4); }
.timeline-entry { display: flex; gap: var(--s4); align-items: flex-start; }
.tl-line { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.tl-dot-lg {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}
.tl-connector {
  width: 1px;
  flex: 1;
  min-height: 24px;
  background: var(--border);
  margin-top: 2px;
}
.tl-body { flex: 1; padding-bottom: var(--s4); }
.tl-entry-title { font-size: var(--sm); font-weight: 600; margin-bottom: 2px; color: var(--text-primary); }
.tl-entry-meta  { font-size: var(--xs); color: var(--text-muted); }
.tl-entry-tags  { display: flex; gap: var(--s2); margin-top: var(--s2); flex-wrap: wrap; }

.health-score-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s6);
}
.health-score-big  { text-align: center; margin-bottom: var(--s6); }
.health-score-num  {
  font-size: var(--7xl);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--emerald);
  line-height: 1;
}
.health-score-label { font-size: var(--sm); color: var(--text-muted); margin-top: var(--s2); }
.health-items { display: flex; flex-direction: column; gap: var(--s3); }
.health-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--sm);
}
.health-item-name { color: var(--text-secondary); }

.upload-zone {
  border: 1.5px dashed var(--border-mid);
  border-radius: var(--r-xl);
  padding: var(--s12);
  text-align: center;
  cursor: pointer;
  transition: all var(--tb) var(--ease);
}
.upload-zone:hover {
  border-color: var(--emerald);
  background: var(--emerald-soft);
}
.upload-icon  { font-size: 36px; margin-bottom: var(--s4); display: block; }
.upload-title { font-size: var(--base); font-weight: 600; margin-bottom: var(--s2); color: var(--text-primary); }
.upload-hint  { font-size: var(--sm); color: var(--text-muted); }

/* ============================================
   ONBOARDING FLOW
   ============================================ */
.onboarding-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.onboarding-header {
  padding: var(--s6) var(--s8);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-white);
}
.onboarding-progress { display: flex; align-items: center; gap: var(--s2); }
.progress-step { display: flex; align-items: center; gap: var(--s2); }
.progress-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--xs);
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--tb);
}
.progress-dot.active { border-color: var(--emerald); background: var(--emerald-soft); color: var(--emerald); }
.progress-dot.done   { border-color: var(--emerald); background: var(--emerald); color: #FFFFFF; }
.progress-line {
  width: 40px;
  height: 1px;
  background: var(--border);
  transition: background var(--tb);
}
.progress-line.done { background: var(--emerald); }
.onboarding-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s12) var(--s8);
}
.onboarding-step { width: 100%; max-width: 600px; }
.onboarding-step-num {
  font-size: var(--xs);
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s3);
}
.onboarding-step-title {
  font-size: var(--4xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: var(--s4);
  line-height: 1.1;
  color: var(--text-primary);
}
.onboarding-step-desc {
  font-size: var(--base);
  color: var(--text-secondary);
  margin-bottom: var(--s8);
  line-height: 1.78;
}
.onboarding-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s8);
}

/* ============================================
   TRADE PORTAL
   ============================================ */
.trade-portal-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: var(--s24) 0;
}
.trade-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}
.tier-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s8);
  transition: all var(--tb);
}
.tier-card:hover { box-shadow: var(--sh-md); }
.tier-card.featured { border-color: var(--emerald); box-shadow: var(--sh-em); }
.tier-name   { font-size: var(--xl); font-weight: 800; margin-bottom: var(--s2); letter-spacing: -0.03em; color: var(--text-primary); }
.tier-price  { font-size: var(--4xl); font-weight: 900; letter-spacing: -0.05em; margin-bottom: var(--s1); color: var(--text-primary); }
.tier-period { font-size: var(--sm); color: var(--text-muted); margin-bottom: var(--s6); }
.tier-features { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s8); }
.tier-feature {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--sm);
  color: var(--text-secondary);
}
.tier-feature .check { color: var(--emerald); font-size: 13px; }

/* ============================================
   TRADE CARDS
   ============================================ */
.trades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  margin-bottom: var(--s12);
}
.trade-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s6);
  transition: all var(--tb) var(--ease);
}
.trade-card:hover { border-color: var(--emerald-border); box-shadow: var(--sh-md); transform: translateY(-2px); }
.trade-card-header { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.trade-avatar {
  width: 44px; height: 44px;
  border-radius: var(--r-lg);
  background: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: #FFFFFF;
}
.trade-name { font-size: var(--sm); font-weight: 700; color: var(--text-primary); }
.trade-type { font-size: var(--xs); color: var(--text-muted); }
.trade-verified {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 3px 8px;
  border-radius: var(--r-full);
}
.trade-stats { display: flex; gap: var(--s4); margin-bottom: var(--s4); }
.trade-stat { display: flex; flex-direction: column; gap: 2px; }
.trade-stat-num   { font-size: var(--sm); font-weight: 700; color: var(--text-primary); }
.trade-stat-label { font-size: 10px; color: var(--text-muted); }
.trade-tags { display: flex; flex-wrap: wrap; gap: var(--s2); }
.trade-tag {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-alt);
  padding: 3px 8px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
}

/* ============================================
   NOTIFICATION BADGE
   ============================================ */
.notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--danger);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  margin-left: var(--s1);
}

/* ============================================
   TABS
   ============================================ */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s6);
}
.tab {
  padding: var(--s3) var(--s5);
  font-size: var(--sm);
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--tf);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--emerald); border-bottom-color: var(--emerald); }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16,20,19,0.5);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tb);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s8);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--sh-lg);
  transform: scale(0.96) translateY(8px);
  transition: transform var(--tb) var(--ease);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s6);
}
.modal-title { font-size: var(--xl); font-weight: 700; letter-spacing: -0.025em; color: var(--text-primary); }
.modal-close {
  width: 32px; height: 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  transition: all var(--tf);
}
.modal-close:hover { background: var(--border); color: var(--text-primary); }

/* ============================================
   TOAST
   ============================================ */
.toast-container {
  position: fixed;
  bottom: var(--s6);
  right: var(--s6);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.toast {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s5);
  font-size: var(--sm);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--s3);
  box-shadow: var(--sh-lg);
  animation: slideIn 0.3s var(--ease);
  min-width: 280px;
}
.toast.success { border-color: var(--emerald-border); }
.toast.error   { border-color: rgba(169,71,63,0.18); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ============================================
   SCROLL FADE-IN
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero .container          { grid-template-columns: 1fr; }
  .hero-visual              { display: none; }
  .steps-grid               { grid-template-columns: 1fr; }
  .features-grid            { grid-template-columns: repeat(2, 1fr); }
  .feature-card.featured    { grid-column: span 2; }
  .ai-demos-grid            { grid-template-columns: 1fr; }
  .onboarding-steps-grid    { grid-template-columns: repeat(2, 1fr); }
  .trades-grid              { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid             { grid-template-columns: 1fr; }
  .footer-grid              { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .stats-row                { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid           { grid-template-columns: 1fr; }
  .trade-tiers              { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions  { display: none; }
  .nav-hamburger            { display: flex; }
  .hero                     { padding: 110px 0 70px; }
  .hero-title               { font-size: 2.5rem; }
  .hero-actions             { flex-direction: column; align-items: flex-start; }
  .features-grid            { grid-template-columns: 1fr; }
  .feature-card.featured    { grid-column: span 1; }
  .onboarding-steps-grid    { grid-template-columns: 1fr; }
  .trades-grid              { grid-template-columns: 1fr; }
  .footer-grid              { grid-template-columns: 1fr; }
  .footer-bottom            { flex-direction: column; gap: var(--s3); text-align: center; }
  .sidebar                  { transform: translateX(-100%); transition: transform var(--tb); }
  .sidebar.open             { transform: translateX(0); }
  .dashboard-main           { margin-left: 0; }
  .stats-row                { grid-template-columns: 1fr 1fr; }
  .auth-card                { padding: var(--s6); }
}
@media (max-width: 480px) {
  .container    { padding: 0 var(--s5); }
  .stats-row    { grid-template-columns: 1fr; }
  .hero-title   { font-size: 2.25rem; }
  .section-title{ font-size: 1.875rem; }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-emerald   { color: var(--emerald); }
.text-bronze    { color: var(--bronze); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-em        { color: var(--emerald); }
.text-gold      { color: var(--bronze); }
.font-bold      { font-weight: 700; }
.font-semibold  { font-weight: 600; }
.mt-2  { margin-top: var(--s2); }
.mt-4  { margin-top: var(--s4); }
.mt-6  { margin-top: var(--s6); }
.mt-8  { margin-top: var(--s8); }
.mb-4  { margin-bottom: var(--s4); }
.mb-6  { margin-bottom: var(--s6); }
.mb-8  { margin-bottom: var(--s8); }
.flex  { display: flex; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--s2); }
.gap-3 { gap: var(--s3); }
.gap-4 { gap: var(--s4); }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
