/* 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;
}

/* ── Shared Nav (content pages) ──────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.site-nav .nav-logo {
  font-size: 17px; font-weight: 900; color: var(--text);
  display: flex; align-items: center; gap: 8px; letter-spacing: -.03em;
}
.site-nav .nav-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 8px var(--indigo), 0 0 16px rgba(106,123,255,.3);
}
.site-nav .nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.site-nav .nav-links a {
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--dim);
  transition: color 150ms, background 150ms;
}
.site-nav .nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.site-nav .nav-right { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .site-nav .nav-links { display: none; } }

/* Push content below fixed nav */
.page-main { padding-top: 60px; }

/* ── Breadcrumbs ─────────────────────────── */
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
  padding: 20px 0 0;
}
.breadcrumbs a { color: var(--dim); }
.breadcrumbs a:hover { color: var(--indigo); }
.breadcrumbs span.sep { color: var(--muted); }
.breadcrumbs span.current { color: var(--dim); }

/* ── Prose / long-form article content ───── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(32px,5vw,52px); font-weight: 900; letter-spacing: -.03em; line-height: 1.08; margin: 18px 0 20px; }
.prose h2 { font-size: clamp(24px,3vw,32px); font-weight: 800; letter-spacing: -.02em; margin: 52px 0 16px; line-height: 1.2; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 32px 0 12px; }
.prose p { font-size: 16px; line-height: 1.75; color: var(--dim); margin: 0 0 18px; }
.prose p.lead { font-size: 19px; line-height: 1.6; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; color: var(--dim); }
.prose li { font-size: 16px; line-height: 1.7; margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a.inline-link { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(106,123,255,.4); }
.prose a.inline-link:hover { text-decoration-color: var(--indigo); }
.prose blockquote {
  margin: 28px 0; padding: 18px 24px;
  border-left: 3px solid var(--indigo);
  background: var(--slate);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px; color: var(--text); font-style: italic; line-height: 1.6;
}
.prose .meta-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); margin-bottom: 8px;
}
.prose figure.tweet-example {
  background: var(--slate); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin: 24px 0;
}
.prose figure.tweet-example .tw-handle { font-size: 13px; font-weight: 700; color: var(--text); }
.prose figure.tweet-example .tw-body { font-size: 14px; color: var(--dim); margin: 8px 0; line-height: 1.55; }
.prose figure.tweet-example .tw-reply {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--indigo);
}
.prose hr.section-break { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ── FAQ Accordion ───────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--slate); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; cursor: pointer; font-size: 15px; font-weight: 700;
  color: var(--text); gap: 16px;
}
.faq-q .faq-icon { flex-shrink: 0; transition: transform 200ms; color: var(--indigo); }
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 260ms ease;
  padding: 0 22px;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 22px 18px; }
.faq-a p { font-size: 14px; color: var(--dim); line-height: 1.65; }

/* ── Comparison table ────────────────────── */
.compare-table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--radius); border: 1px solid var(--border); }
table.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--slate); }
table.compare-table th, table.compare-table td {
  padding: 14px 18px; text-align: left; font-size: 14px;
  border-bottom: 1px solid var(--border);
}
table.compare-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
table.compare-table td { color: var(--dim); }
table.compare-table td.yes { color: var(--green); font-weight: 700; }
table.compare-table td.no { color: var(--muted); }
table.compare-table tr:last-child td { border-bottom: none; }
table.compare-table td.hl, table.compare-table th.hl { background: rgba(106,123,255,.05); }

/* ── Blog index grid ─────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.blog-card {
  background: var(--slate); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 200ms, transform 200ms;
}
.blog-card:hover { border-color: rgba(106,123,255,.3); transform: translateY(-3px); }
.blog-card .blog-tag { font-size: 11px; font-weight: 700; color: var(--indigo); text-transform: uppercase; letter-spacing: .06em; }
.blog-card h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.blog-card p { font-size: 13px; color: var(--dim); line-height: 1.55; flex: 1; }
.blog-card .blog-read { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ── Internal link related-pages row ─────── */
.related-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.related-card {
  background: var(--slate); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; transition: border-color 200ms, transform 200ms;
}
.related-card:hover { border-color: rgba(106,123,255,.3); transform: translateY(-2px); }
.related-card .rc-label { font-size: 11px; color: var(--indigo); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.related-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.related-card p { font-size: 12px; color: var(--dim); line-height: 1.5; }
@media (max-width: 768px) { .related-row { grid-template-columns: 1fr; } }

/* ── Pricing plan grid (shared across index + /pricing) ─── */
.pricing-section { padding: 60px 24px 100px; position: relative; z-index: 1; }
.pricing-inner { max-width: 1140px; margin: 0 auto; }
.pricing-header { text-align: center; margin-bottom: 16px; }
.pricing-sub { text-align: center; color: var(--dim); font-size: 16px; margin-bottom: 40px; }
.billing-toggle {
  display: inline-flex; align-items: center; gap: 0;
  background: #0A0A0A; border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px; padding: 4px; margin: 0 auto 48px; width: fit-content;
}
.billing-btn {
  padding: 8px 22px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; background: none; color: var(--muted);
  transition: all 150ms; position: relative;
}
.billing-btn.active { background: var(--indigo); color: #fff; }
.billing-save {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.2);
  color: var(--green); font-size: 10px; font-weight: 700; margin-left: 6px;
}
.plan-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.plan-card {
  background: #060606; border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px; padding: 28px 22px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.plan-card.featured {
  background: rgba(106,123,255,.06); border-color: rgba(106,123,255,.3);
  box-shadow: 0 0 0 1px rgba(106,123,255,.1), 0 20px 60px rgba(106,123,255,.08);
}
.plan-badge-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .04em; margin-bottom: 16px;
}
.plan-badge-pill.popular { background: rgba(106,123,255,.15); color: var(--indigo); }
.plan-name { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--text); margin-bottom: 12px; }
.plan-price-wrap { margin-bottom: 6px; }
.plan-price { font-size: 38px; font-weight: 900; letter-spacing: -.04em; color: var(--text); line-height: 1; }
.plan-price sup { font-size: 18px; vertical-align: super; }
.plan-price sub { font-size: 13px; vertical-align: baseline; color: var(--muted); font-weight: 400; }
.plan-billed { font-size: 11px; color: var(--muted); margin-bottom: 4px; min-height: 16px; }
.plan-save { font-size: 11px; color: var(--green); font-weight: 700; min-height: 16px; }
.plan-desc { font-size: 12px; color: var(--dim); line-height: 1.5; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; flex: 1; }
.plan-features li { font-size: 12px; color: var(--dim); line-height: 1.4; display: flex; align-items: flex-start; gap: 8px; }
.plan-features li::before { content: ''; flex-shrink: 0; margin-top: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--indigo); opacity: .6; }
.plan-cta {
  display: block; text-align: center; padding: 11px 0; border-radius: 10px;
  font-size: 13px; font-weight: 700; cursor: pointer; border: none;
  font-family: inherit; transition: all 150ms; text-decoration: none;
}
.plan-cta.primary { background: var(--indigo); color: #fff; box-shadow: 0 0 20px rgba(106,123,255,.3); }
.plan-cta.primary:hover { background: #7A8BFF; box-shadow: 0 4px 24px rgba(106,123,255,.45); }
.plan-cta.ghost { background: rgba(255,255,255,.05); color: var(--dim); border: 1px solid rgba(255,255,255,.08); }
.plan-cta.ghost:hover { color: var(--text); border-color: rgba(255,255,255,.15); }
.pricing-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 24px; }
@media (max-width: 1024px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .plan-grid { grid-template-columns: repeat(1, 1fr); max-width: 400px; margin: 0 auto; } }

/* ── Shared footer (content pages) ───────── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 48px 24px 32px;
  position: relative; z-index: 1;
}
.site-footer .footer-grid {
  max-width: 1140px; margin: 0 auto 32px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.site-footer .footer-col h5 { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer .footer-col a { display: block; font-size: 13px; color: var(--dim); margin-bottom: 10px; }
.site-footer .footer-col a:hover { color: var(--text); }
.site-footer .footer-bottom {
  max-width: 1140px; margin: 0 auto; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.site-footer .footer-logo { font-size: 15px; font-weight: 800; color: var(--dim); }
.site-footer .footer-copy { font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }

/* ── 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; }
}
