/* ekoreva — Shared Design System
   Moonstone Palette · Satoshi · Zero AI slop */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700,900&display=swap');

/* ── AMOLED Tokens ──────────────────────── */
:root {
  --indigo: #6A7BFF;
  --indigo-dim: rgba(106,123,255,.1);
  --indigo-glow: rgba(106,123,255,.3);
  --lavender: #A88CFF;
  --amber: #FFB86B;
  --amber-dim: rgba(255,184,107,.1);

  /* AMOLED — pure black base */
  --navy: #000000;
  --slate: #080808;
  --slate2: #0F0F0F;
  --slate3: #1A1A1A;
  --border: rgba(255,255,255,.07);
  --border-subtle: rgba(255,255,255,.04);

  --text: #FFFFFF;
  --dim: #8C9BB5;
  --muted: #4A5568;
  --green: #4ADE80;
  --red: #F87171;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Satoshi', system-ui, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* AMOLED scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1a1a1a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--indigo); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography ─────────────────────────── */
.display-1 { font-size: clamp(44px, 6vw, 80px); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; }
.display-2 { font-size: clamp(36px, 4.5vw, 60px); font-weight: 700; line-height: 1.06; letter-spacing: -0.025em; }
.heading-1  { font-size: clamp(28px, 3vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.heading-2  { font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -0.018em; }
.body-lg    { font-size: 18px; line-height: 1.65; color: var(--dim); }
.body       { font-size: 15px; line-height: 1.6; color: var(--dim); }
.caption    { font-size: 13px; color: var(--muted); }
.mono       { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* ── Layout ─────────────────────────────── */
.container  { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; line-height: 1;
  transition: all 160ms cubic-bezier(.16,1,.3,1);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--indigo); color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.3), 0 0 0 1px rgba(106,123,255,.3);
}
.btn-primary:hover {
  background: #7A8BFF;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--indigo-glow), 0 1px 3px rgba(0,0,0,.3);
}
.btn-primary:active { transform: scale(.97) translateY(0) !important; }

.btn-amber {
  background: var(--amber); color: #0D111D;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.btn-amber:hover {
  background: #FFc47a;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255,184,107,.4);
}
.btn-amber:active { transform: scale(.97) translateY(0) !important; }

.btn-ghost {
  color: var(--dim); background: transparent;
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--slate3); background: var(--slate); }

.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ── Chips ───────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--border);
  background: var(--slate);
  color: var(--dim);
}
.chip-indigo { background: var(--indigo-dim); border-color: rgba(106,123,255,.25); color: var(--indigo); }
.chip-amber  { background: var(--amber-dim);  border-color: rgba(255,184,107,.25); color: var(--amber);  }
.chip-green  { background: rgba(74,222,128,.1); border-color: rgba(74,222,128,.25); color: var(--green);  }

/* ── Cards ───────────────────────────────── */
.card {
  background: var(--slate);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-sm { padding: 18px; border-radius: var(--radius); }

/* ── Dividers ────────────────────────────── */
.divider { height: 1px; background: var(--border); }

/* ── Reveal animations ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ── Grain overlay (fixed, pointer-events-none) ── */
.grain {
  position: fixed; inset: 0; z-index: 999;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ── Gradient text ───────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--indigo) 60%, var(--lavender) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Metric value gradient ───────────────── */
.metric-value {
  background: linear-gradient(135deg, #fff 20%, var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Ambient glow ────────────────────────── */
body::before {
  content: '';
  position: fixed; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse at center top, rgba(106,123,255,.08) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
body > * { position: relative; z-index: 1; }
.text-accent { color: var(--indigo); }
.text-amber  { color: var(--amber); }
.text-muted  { color: var(--muted); }
.text-dim    { color: var(--dim); }

/* ── Button focus ring (a11y) ────────────── */
.btn:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

/* ── Gradient headline animation ─────────── */
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.text-gradient-animated {
  background: linear-gradient(135deg, #EEF0F8 0%, #6A7BFF 40%, #A88CFF 70%, #FFB86B 100%);
  background-size: 300% 300%;
  animation: gradient-shift 6s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section alternation ─────────────────── */
.section-dark  { background: var(--navy); }
.section-slate { background: var(--slate); }

/* ── How step hover lift ─────────────────── */
.how-step {
  transition: background 200ms, transform 200ms;
}
.how-step:hover { background: var(--slate); }

/* ── Bento richer hover ──────────────────── */
.bento-cell {
  transition: border-color 200ms, transform 220ms cubic-bezier(.16,1,.3,1), box-shadow 200ms;
}
.bento-cell:hover {
  border-color: rgba(106,123,255,.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3), 0 0 0 1px rgba(106,123,255,.12);
}

/* ── Plan card richer hover ──────────────── */
.plan-card {
  transition: border-color 200ms, transform 220ms cubic-bezier(.16,1,.3,1), box-shadow 200ms;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
.plan-card.featured:hover {
  box-shadow: 0 16px 48px rgba(106,123,255,.25);
}

/* ── Overlay shadow glow ─────────────────── */
.overlay {
  filter: drop-shadow(0 0 40px rgba(106,123,255,.2));
}

/* ── Nav blur pulse on scroll ────────────── */
.nav.scrolled {
  background: rgba(13,17,29,.95);
  border-bottom-color: rgba(37,46,69,.9);
}

/* ── Metric value pop ────────────────────── */
.metric-value {
  background: linear-gradient(135deg, var(--text), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Voice bar animated ──────────────────── */
.vbar-fill {
  transition: width 1.4s cubic-bezier(.16,1,.3,1);
  background: linear-gradient(90deg, var(--indigo), var(--lavender));
}

/* ── Section label pulse ─────────────────── */
.section-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--indigo);
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--indigo);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
  .container, .container-sm { padding: 0 16px; }
  .hide-mobile { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
