:root {
  --bg: #16181c; --raised: #1d1f23; --card: #27292e; --control: #34363c;
  --head: #fff; --text: #b0bac5; --muted: #96a2b0;
  --accent: #4f9cff; --accent-2: #90c4ff; --on-accent: #04122a;
  --border: #c1bed11f; --radius: 20px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 Inter, system-ui, sans-serif; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--head); line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 820px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; border-radius: 16px; transition: transform .15s, filter .15s, box-shadow .15s; }
.btn svg { width: 22px; height: 22px; }
.btn-primary { background: var(--accent); color: var(--on-accent); border: 2px solid #000; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 8px 28px #4f9cff40; }
.btn-sm { padding: 8px 16px; font-size: 15px; }
.btn-lg { padding: 16px 28px; font-size: 18px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--raised) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--head); text-decoration: none; font-weight: 700; font-size: 20px; }
.logo { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: 24px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--control); color: var(--head); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--text); background: var(--control); }
.icon-btn:hover { color: var(--head); }
.icon-btn svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .nav { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; text-align: center; isolation: isolate;
  background: radial-gradient(ellipse at 50% 0%, #4f9cff22, transparent 60%); }
#hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.hero h1 { font-size: clamp(38px, 7vw, 76px); font-weight: 800; letter-spacing: -.03em; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 620px; margin: 24px auto 36px; font-size: clamp(17px, 2.2vw, 20px); }
@media (max-width: 400px) { .btn-lg { padding: 14px 20px; font-size: 17px; } }

/* App screenshot */
.preview-section { position: relative; padding: 8px 0 40px; }
.preview-section::before { content: ""; position: absolute; left: 50%; top: 10%; width: min(700px, 90%); height: 70%; transform: translateX(-50%); background: radial-gradient(closest-side, #4f9cff40, transparent); filter: blur(40px); pointer-events: none; }
.shot { position: relative; margin: 0 auto; max-width: 760px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 80px #0008, 0 0 0 1px #4f9cff14; background: var(--raised); }
.shot img { display: block; width: 100%; height: auto; }

/* Sections */
.section { padding: 104px 0; }
.section.alt { padding-top: 40px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.section h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 48px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--bg); padding: 28px; transition: background .2s; }
.card:hover { background: var(--raised); }
.card h3 { font-size: 17px; margin: 0 0 8px; }
.card h3::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); margin-bottom: 18px; }
.ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #4f9cff1f; color: var(--accent-2); font-size: 20px; font-weight: 700; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; color: var(--accent-2); overflow-wrap: anywhere; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; }
.steps li { counter-increment: s; position: relative; padding: 22px 0 22px 72px; border-top: 1px solid var(--border); }
.steps li:last-child { border-bottom: 1px solid var(--border); }
.steps li::before { content: "0" counter(s); position: absolute; left: 0; top: 20px; color: var(--accent); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
@media (max-width: 420px) { .steps li { padding-left: 52px; } }

.faq { display: grid; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; color: var(--head); font-weight: 700; font-size: 17px; position: relative; border-radius: var(--radius); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: var(--control); color: var(--accent-2); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 48px 24px 0; }

/* Footer */
.site-footer { background: var(--raised); border-top: 1px solid var(--border); padding: 56px 0 28px; font-size: 14px; color: var(--muted); }
.footer-top { display: grid; grid-template-columns: 1.4fr auto auto; gap: 32px; align-items: center; }
.footer-brand p { margin-top: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.footer-nav a:hover { background: var(--control); color: var(--head); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--control); color: var(--head); text-decoration: none; font-weight: 700; border: 1px solid var(--border); transition: background .15s, transform .15s; }
.social svg { width: 18px; height: 18px; }
.social:hover { background: #42454c; transform: translateY(-1px); }
.social.yt svg { color: #ff4e45; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.disclaimer { max-width: 640px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; gap: 20px; } .footer-nav { margin-left: -14px; } }
