/* ══════════════════════════════════════════
   TOKENS — light-first: white / green / black
   ══════════════════════════════════════════ */
:root {
  --bg:           #FFFFFF;
  --bg-alt:       #F8F9FA;
  --bg-card:      #FFFFFF;
  --bg-elevated:  #F3F4F6;

  --fg:           #111827;
  --fg-muted:     #6B7280;
  --fg-subtle:    #9CA3AF;

  --accent:       #166534;
  --accent-mid:   #15803D;
  --accent-bright:#16A34A;
  --accent-dim:   #DCFCE7;

  --border:       #E5E7EB;
  --border-light: #F3F4F6;
  --border-bright:#BBF7D0;

  --white:        #FFFFFF;
  --black:        #000000;

  --shadow:    0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.05);

  color-scheme: light;
}

/* Dark mode override */
:root[data-theme="dark"] {
  --bg:           #060908;
  --bg-alt:       #0B0F0C;
  --bg-card:      #101510;
  --bg-elevated:  #161D16;

  --fg:           #F0F5F0;
  --fg-muted:     #7A9080;
  --fg-subtle:    #3D5045;

  --accent:       #2C6B42;
  --accent-mid:   #3A8A56;
  --accent-bright:#52A86E;
  --accent-dim:   #0A1F12;

  --border:       #1A2820;
  --border-light: #131C14;
  --border-bright:#2A4030;

  --shadow:    0 1px 4px rgba(0,0,0,0.5), 0 6px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);
  --shadow-card: inset 0 1px 0 rgba(255,255,255,0.04);

  color-scheme: dark;
}

/* ── HERO LOAD ANIMATIONS ── */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}

@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-eyebrow  { animation: hero-fade-up 0.6s cubic-bezier(0.16,1,0.3,1) 0.1s both; }
.hero-title    { animation: hero-fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.2s both; }
.hero-desc     { animation: hero-fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.32s both; }
.hero-ctas     { animation: hero-fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.44s both; }
.hero-stats    { animation: hero-fade-up 0.7s cubic-bezier(0.16,1,0.3,1) 0.56s both; }
.hero-visual   { animation: hero-fade-in 0.9s cubic-bezier(0.16,1,0.3,1) 0.3s both; }
.device-card   { animation: hero-fade-up 0.8s cubic-bezier(0.16,1,0.3,1) 0.65s both; }

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-title, .hero-desc,
  .hero-ctas, .hero-stats, .hero-visual, .device-card {
    animation: none;
  }
}

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.in-view {
  opacity: 1;
  transform: none;
}

.fade-up:nth-child(2) { transition-delay: 0.07s; }
.fade-up:nth-child(3) { transition-delay: 0.14s; }
.fade-up:nth-child(4) { transition-delay: 0.07s; }
.fade-up:nth-child(5) { transition-delay: 0.14s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
