:root {
  --bg: #0b0d14;
  --bg-elevated: #12151f;
  --bg-card: #161a26;
  --bg-hover: rgba(255, 255, 255, 0.05);
  --border: #262c3d;
  --border-soft: #1d2130;
  --border-strong: #333a52;
  --text: #f1f3f9;
  --text-dim: #9aa1b5;
  --text-faint: #798299;
  --accent: #7c5cff;
  --accent-2: #ff5c9e;
  --accent-gradient: linear-gradient(135deg, #7c5cff 0%, #ff5c9e 100%);
  --success: #34d399;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --container: 1180px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--accent-2); text-transform: uppercase;
}

.section { padding: 96px 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); margin-top: 12px; }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--text-dim); line-height: 1.6; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 11px; border: none; font-size: 15px; font-weight: 650;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: 0 8px 24px rgba(124, 92, 255, 0.32); }
.btn-primary:hover { box-shadow: 0 10px 32px rgba(124, 92, 255, 0.44); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid transparent; }
.btn-ghost:hover { color: var(--text); background: var(--bg-hover); }
.btn-lg { padding: 16px 30px; font-size: 16.5px; border-radius: 13px; }
.btn-block { width: 100%; }

/* ---- Reveal animation ---- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="1"].is-visible { transition-delay: 0.05s; }
[data-reveal="2"].is-visible { transition-delay: 0.14s; }
[data-reveal="3"].is-visible { transition-delay: 0.22s; }
[data-reveal="4"].is-visible { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- Background ambience ---- */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(ellipse 900px 560px at 12% -8%, rgba(124, 92, 255, 0.20), transparent),
    radial-gradient(ellipse 800px 560px at 100% 8%, rgba(255, 92, 158, 0.14), transparent),
    radial-gradient(ellipse 700px 500px at 50% 100%, rgba(124, 92, 255, 0.10), transparent);
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 20, 0.7); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border-soft); background: rgba(11, 13, 20, 0.92); }
.site-header .container { display: flex; align-items: center; gap: 20px; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links a {
  padding: 9px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--text-dim);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--bg-hover); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* "Coming soon" box shown by main.js while the app isn't live yet */
.soon-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(5, 6, 10, 0.72); backdrop-filter: blur(6px);
}
.soon-box {
  max-width: 420px; width: 100%; text-align: center; padding: 32px 28px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
}
.soon-badge {
  display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--accent-gradient);
}
.soon-box h2 { font-size: 22px; margin-bottom: 10px; }
.soon-box p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; margin-bottom: 22px; }
.soon-box a { color: var(--text); text-decoration: underline; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--border-soft);
  background: var(--bg-card); align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 16px; height: 2px; background: var(--text); border-radius: 2px; position: relative;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }

/* ---- Hero ---- */
.hero { padding: 76px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); max-width: 820px; margin: 20px auto 0; }
.hero h1 .accent-text {
  background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 620px; margin: 20px auto 0; font-size: 18px; line-height: 1.65; color: var(--text-dim); }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--text-faint); }

/* ---- Trust strip ---- */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 64px;
}
.trust-item {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 18px 16px; text-align: center;
}
.trust-item .num { font-size: 15px; font-weight: 700; }
.trust-item .label { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }

/* ---- Mockup (illustrative product preview, not a real screenshot) ---- */
.mockup-frame {
  margin: 56px auto 0; max-width: 920px; border-radius: 18px; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border-soft); box-shadow: var(--shadow-lg);
}
.mockup-titlebar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-soft);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mockup-body { padding: 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; text-align: left; }
.mockup-field { height: 12px; border-radius: 6px; background: var(--bg-elevated); margin-bottom: 10px; }
.mockup-field.w-70 { width: 70%; } .mockup-field.w-50 { width: 50%; } .mockup-field.w-90 { width: 90%; }
.mockup-pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.mockup-pill { padding: 7px 14px; border-radius: 999px; background: var(--bg-elevated); border: 1px solid var(--border); font-size: 12px; color: var(--text-faint); }
.mockup-pill.active { background: rgba(124, 92, 255, 0.14); border-color: var(--accent); color: var(--text); }
.mockup-preview {
  border-radius: var(--radius-sm); background: linear-gradient(160deg, rgba(124,92,255,0.16), rgba(255,92,158,0.10));
  border: 1px solid var(--border-soft); aspect-ratio: 9 / 16; max-height: 260px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.mockup-caption { position: absolute; bottom: 16px; left: 12px; right: 12px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.25); }
.mockup-caption.short { right: 40%; bottom: 30px; }

/* ---- Feature grid ---- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 26px; transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 11px; background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-card h3 { font-size: 17px; }
.feature-card p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--text-dim); }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.step-num {
  width: 36px; height: 36px; border-radius: 10px; background: var(--bg-elevated); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
  color: var(--accent-2); margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; }
.step p { margin-top: 8px; font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ---- Use cases ---- */
.usecase-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.usecase-chip {
  padding: 10px 18px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border-soft);
  font-size: 14px; font-weight: 600; color: var(--text-dim);
}

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; background: transparent; border: none; color: var(--text); font-size: 15.5px; font-weight: 650; text-align: left;
}
.faq-question .chevron { flex-shrink: 0; transition: transform 0.2s var(--ease); color: var(--text-faint); }
.faq-item.open .faq-question .chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s var(--ease); }
.faq-item.open .faq-answer { max-height: 240px; }
.faq-answer p { padding: 0 20px 18px; font-size: 14.5px; line-height: 1.65; color: var(--text-dim); }

/* ---- CTA banner ---- */
.cta-banner {
  border-radius: 24px; padding: 56px 40px; text-align: center;
  background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(255,92,158,0.12)); border: 1px solid var(--border-soft);
}
.cta-banner h2 { font-size: clamp(26px, 4vw, 34px); }
.cta-banner p { margin-top: 12px; font-size: 16px; color: var(--text-dim); }
.cta-banner .hero-actions { margin-top: 26px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 56px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 300px; }
.footer-brand p { margin-top: 12px; font-size: 13.5px; color: var(--text-faint); line-height: 1.6; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col ul { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-dim); transition: color 0.15s var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-faint);
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-preview { max-height: 220px; }
}

@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 2px; background: var(--bg-card); border-bottom: 1px solid var(--border-soft); padding: 10px; margin: 0;
    animation: navDrop 0.18s var(--ease);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  .header-actions .btn-ghost { display: none; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}

@keyframes navDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 52px 0 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .mockup-body { padding: 20px; }
  .cta-banner { padding: 40px 22px; }
  .footer-cols { gap: 32px; }
}


/* ---- Legal pages ---- */
.legal { padding: 120px 0 72px; position: relative; }
.legal-wrap { max-width: 800px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.75; color: var(--text-dim); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); font-weight: 650; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { color: var(--text-faint) !important; font-size: 13.5px !important; margin-top: 10px !important; }
.legal-lead { font-size: 17px !important; color: var(--text) !important; margin-top: 18px !important; }
.legal-table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 14px; vertical-align: top; border-top: 1px solid var(--border-soft); color: var(--text-dim); }
.legal-table th { background: var(--bg-elevated); color: var(--text); border-top: none; font-weight: 650; }

/* ---- Pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.price-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 28px 24px; text-align: center; position: relative; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent-gradient); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price-name { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); }
.price-amount { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 2px; }
.price-credits { font-size: 16px; font-weight: 650; color: var(--text); }
.price-sub { margin-top: 6px; font-size: 13px; color: var(--text-faint); }
.price-card .btn { margin-top: 20px; width: 100%; }
.cost-table { max-width: 640px; margin: 44px auto 0; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-card); }
.cost-table h3 { font-size: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.cost-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 20px; font-size: 14.5px; color: var(--text-dim); border-top: 1px solid var(--border-soft); }
.cost-row:first-of-type { border-top: none; }
.cost-row strong { color: var(--text); font-weight: 650; white-space: nowrap; }
.price-note { max-width: 640px; margin: 18px auto 0; text-align: center; font-size: 13.5px; line-height: 1.6; color: var(--text-faint); }
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; max-width: 420px; } .legal { padding-top: 100px; } }

/* seo-pages */
.page .crumbs { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.page .crumbs a { color: var(--text-dim); text-decoration: none; }
.page .crumbs a:hover { color: var(--text); }
.page .crumbs span[aria-hidden] { margin: 0 4px; }
.page .legal-lead { font-size: 18px; color: var(--text-dim); margin: 14px 0 0; }
.page-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 8px; }
.legal a.btn { text-decoration: none; }
.legal a.btn-primary { color: #fff; }
.legal a.btn-secondary { color: var(--text); }
.page ol { margin: 0 0 14px; padding-left: 22px; list-style: decimal; }
.page code { background: var(--bg-elevated); border: 1px solid var(--border-soft); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; color: var(--text); }
.page-faq { margin: 12px 0 0; max-width: none; }
.page .faq-answer p { color: var(--text-dim); }
.faq-item.open .faq-answer { max-height: 420px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 14px; }
.related-card, .legal a.related-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius-sm); text-decoration: none;
  background: var(--bg-card); border: 1px solid var(--border-soft); color: var(--text);
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.related-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.related-card strong { font-size: 15.5px; }
.related-card span { font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }
#use-cases .related-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
