@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --violet: #6123f2;
  --violet-deep: #482ad0;
  --violet-soft: #f3edff;
  --violet-line: #e4d9ff;
  --mint: #19a974;
  --bg: #ffffff;
  --bg-alt: #faf8ff;
  --text: #16112b;
  --muted: #5d5873;
  --card: #ffffff;
  --border: #ece8f5;
  --shadow: 0 18px 50px rgba(52, 22, 140, 0.12);
  --radius: 22px;
  --max: 1120px;
  --head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --violet: #9b6bff;
    --violet-deep: #b99bff;
    --violet-soft: #1e1838;
    --violet-line: #342a5c;
    --mint: #5fe0a9;
    --bg: #0f0c1a;
    --bg-alt: #151126;
    --text: #f3f0fb;
    --muted: #aaa4c2;
    --card: #1a1530;
    --border: #2a2345;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }
.eyebrow { font: 600 0.8rem/1 var(--head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; display: block; }
.muted { color: var(--muted); }
.accent { color: var(--violet); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--violet); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.05rem var(--head); color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font: 500 0.95rem var(--head); }
.nav-links a:hover { color: var(--text); }
.nav .btn { min-height: 40px; padding: 8px 16px; font-size: 0.92rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 -6px 8px rgba(0, 0, 0, 0.12), 0 0 0 3px rgba(155, 107, 255, 0.26), 0 6px 14px rgba(97, 35, 242, 0.22); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* Buttons — same violet glow pill as the app's primaryGradientButton */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 28px;
  min-height: 56px;
  font: 500 1.15rem var(--head);
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(60, 30, 170, 0.35);
  background:
    radial-gradient(ellipse 90% 72% at 50% 118%, rgba(246, 216, 255, 0.95) 0%, rgba(246, 216, 255, 0.55) 24%, rgba(155, 107, 255, 0.32) 46%, transparent 70%),
    linear-gradient(#482ad0, #684cec);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 -10px 14px rgba(0, 0, 0, 0.16),
    0 0 0 5px rgba(155, 107, 255, 0.26),
    0 0 0 6px rgba(255, 255, 255, 0.7),
    0 8px 18px rgba(97, 35, 242, 0.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost {
  color: var(--text);
  text-shadow: none;
  font-weight: 600;
  min-height: 54px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent);
}
.btn-ghost::after { display: none; }
.btn-store { padding: 10px 22px; }
.btn-store svg { width: 22px; height: 22px; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-store small { font: 500 0.7rem var(--body); opacity: 0.85; }
@media (prefers-color-scheme: dark) {
  .btn {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.18),
      inset 0 -10px 14px rgba(0, 0, 0, 0.22),
      0 0 0 5px rgba(155, 107, 255, 0.2),
      0 0 0 6px rgba(255, 255, 255, 0.1),
      0 8px 18px rgba(97, 35, 242, 0.28);
  }
  .nav .btn { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 -6px 8px rgba(0, 0, 0, 0.18), 0 0 0 3px rgba(155, 107, 255, 0.2), 0 6px 14px rgba(97, 35, 242, 0.28); }
}

/* Hero */
.hero { padding: 56px 0 40px; background: radial-gradient(900px 420px at 85% 10%, var(--violet-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-icon { width: 76px; height: 76px; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 22px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font: 500 0.88rem var(--head); color: var(--muted); }
.chips li::before { content: "✓"; color: var(--mint); font-weight: 700; margin-right: 7px; }
.hero-shot { justify-self: center; width: min(360px, 100%); border-radius: 28px; box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .hero { padding-top: 34px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-shot { width: min(300px, 82%); }
}

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } section { padding: 54px 0; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); margin: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; font: 700 1.2rem var(--head); margin-bottom: 16px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature img { width: min(320px, 100%); border-radius: 26px; box-shadow: var(--shadow); justify-self: center; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature ul { padding-left: 1.1em; color: var(--muted); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 26px; } .feature:nth-child(even) .feature-text { order: 0; } .feature img { width: min(280px, 80%); } }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--violet); color: #fff; font: 700 1rem var(--head); margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 250px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; margin: 0; list-style: none; -webkit-overflow-scrolling: touch; }
.gallery li { scroll-snap-align: start; }
.gallery img { border-radius: 22px; box-shadow: 0 10px 30px rgba(52, 22, 140, 0.14); }
.gallery figcaption { font: 500 0.9rem var(--head); color: var(--muted); margin-top: 10px; text-align: center; }

/* Use cases */
.usecase { display: block; text-decoration: none; color: inherit; }
.usecase:hover { border-color: var(--violet-line); }
.usecase span.more { color: var(--violet); font: 600 0.95rem var(--head); display: inline-block; margin-top: 12px; }

/* Guides */
.guide-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.guide-card:hover { border-color: var(--violet-line); transform: translateY(-2px); }
.guide-card .tag { font: 600 0.75rem var(--head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet); margin-bottom: 10px; }
.guide-card span.more { margin-top: auto; padding-top: 14px; color: var(--violet); font: 600 0.95rem var(--head); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; }
.faq summary { cursor: pointer; font: 700 1.05rem var(--head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* CTA */
.cta-final { text-align: center; }
.cta-box { background: radial-gradient(520px 220px at 50% 0%, var(--violet-soft), transparent 70%), var(--bg-alt); color: var(--text); border: 1px solid var(--border); border-radius: 32px; padding: 56px 24px; }
.cta-box img { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 20px; box-shadow: var(--shadow); }
.cta-box p { color: var(--muted); max-width: 44ch; margin: 0 auto 26px; font-size: 1.1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 90px; font-size: 0.95rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-grid h2 { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--violet); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 18px; z-index: 40; display: none; }
.sticky-cta .btn { width: 100%; }
@media (max-width: 760px) { .sticky-cta.show { display: block; } }

/* Articles */
.crumbs { font-size: 0.9rem; color: var(--muted); padding-top: 28px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
article.guide { padding: 20px 0 30px; }
article.guide h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-top: 10px; }
article.guide h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 1.8em; }
article.guide h3 { margin-top: 1.4em; }
article.guide ol, article.guide ul { padding-left: 1.2em; }
article.guide li { margin-bottom: 0.4em; }
.answer { background: var(--violet-soft); border: 1px solid var(--violet-line); border-radius: 18px; padding: 18px 22px; font-size: 1.06rem; }
.inline-shot { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: center; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 28px 0; }
.inline-shot img { border-radius: 18px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .inline-shot { grid-template-columns: 1fr; } .inline-shot img { width: 220px; margin: 0 auto; } }
.note { font-size: 0.92rem; color: var(--muted); border-left: 3px solid var(--violet-line); padding-left: 14px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal { padding: 30px 0 60px; }
