@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #1b1430;
  --muted: #5f5878;
  --bg: #faf8ff;
  --surface: #ffffff;
  --line: rgba(27, 20, 48, 0.09);
  --accent: #5b21b6;
  --accent-2: #7c3aed;
  --accent-3: #c026d3;
  --soft: #ede7fb;
  --shadow: 0 30px 60px -20px rgba(60, 20, 120, 0.25), 0 10px 20px -10px rgba(60, 20, 120, 0.12);
  --radius: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f4f1fb;
    --muted: #aaa3c2;
    --bg: #110d1a;
    --surface: #1b1628;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #a78bfa;
    --accent-2: #8b5cf6;
    --accent-3: #e879f9;
    --soft: #2a2140;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 10px 20px -10px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 700; }
h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.015em; }
p { margin: 0; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.eyebrow { color: var(--accent); font-weight: 650; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 45%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
  color: #fff; text-decoration: none; font-weight: 650;
  padding: 10px 18px; border-radius: 999px; border: 0;
  box-shadow: 0 8px 20px -6px rgba(91, 33, 182, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(91, 33, 182, 0.6), inset 0 1px 0 rgba(255,255,255,.18); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 20px; height: 20px; }
.btn-sm { font-size: 15px; padding: 8px 16px; }
.btn-lg { font-size: 17px; padding: 15px 26px; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 6px 16px -10px rgba(0,0,0,.2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--line), 0 12px 24px -12px rgba(0,0,0,.25); }
.btn-light { background: #fff; color: #4c1d95; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }
.link { color: var(--accent); font-weight: 650; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; text-decoration: none; letter-spacing: -0.02em; }
.brand img { border-radius: 50%; }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 550; font-size: 15px; transition: color .2s; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

/* Hero */
.hero { position: relative; padding: 64px 0 0; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; z-index: -1; }
.g1 { width: 620px; height: 620px; background: #c4b5fd; top: -200px; right: -120px; animation: drift 14s ease-in-out infinite alternate; }
.g2 { width: 480px; height: 480px; background: #f0abfc; bottom: -80px; left: -180px; opacity: .35; animation: drift 18s ease-in-out infinite alternate-reverse; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glow { opacity: .22; } }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.12); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lede { font-size: 20px; color: var(--muted); margin: 22px 0 32px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--muted); font-size: 15px; font-weight: 550; }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 7px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 36px; }
}

/* Browser window frame */
.window { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden; position: relative; }
.bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: color-mix(in srgb, var(--surface) 88%, var(--ink) 4%); border-bottom: 1px solid var(--line); }
.bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.bar i:nth-child(2) { background: #febc2e; }
.bar i:nth-child(3) { background: #28c840; }
.url { flex: 1; margin-left: 12px; background: var(--bg); border-radius: 999px; padding: 4px 14px; font-size: 13px; color: var(--muted); }

/* Interactive toy */
.toy { position: relative; max-width: 520px; justify-self: center; width: 100%; }
.tb { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.tb img { border-radius: 50%; }
.badge {
  position: absolute; top: -3px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #e11d48; color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700;
  box-shadow: 0 0 0 2px var(--surface);
}
.badge.bump { animation: bump .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 40% { transform: scale(1.5); } }
.post { padding: 20px 22px 18px; position: relative; }
.who { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.who b { display: block; font-size: 15px; }
.who small { color: var(--muted); font-size: 13px; }
.av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #fb923c, #ec4899); flex: none; }
.post > p { font-size: 15.5px; margin-bottom: 14px; }
.media { aspect-ratio: 16 / 8.5; border-radius: 14px; background: linear-gradient(135deg, #4f46e5, #9333ea 55%, #ec4899); display: grid; place-items: center; }
.media span { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.22); backdrop-filter: blur(4px); color: #fff; display: grid; place-items: center; font-size: 20px; padding-left: 4px; }
.actions { display: flex; align-items: center; gap: 22px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.owl {
  margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); display: grid; place-items: center; position: relative;
  transition: background .2s, color .2s, transform .15s;
}
.owl svg { width: 23px; height: 23px; }
.owl:hover { background: var(--soft); color: var(--accent); }
.owl:active { transform: scale(.9); }
.owl.saved { color: var(--accent); }
.owl.saved circle { stroke-width: 3.8; r: 3.1; }
.owl.pulse::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent-2);
  animation: ring 1.6s ease-out infinite;
}
@keyframes ring { from { opacity: .8; transform: scale(.7); } to { opacity: 0; transform: scale(1.35); } }
.picker {
  position: absolute; right: 16px; bottom: 64px; width: 230px; z-index: 3;
  background: var(--surface); border-radius: 14px; padding: 12px 8px 8px;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  transform-origin: bottom right;
  animation: pop .35s cubic-bezier(.2,1.3,.4,1);
}
.picker[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(8px); } }
.pk-head { display: flex; justify-content: space-between; padding: 0 8px; font-size: 14px; }
.pk-head span { color: var(--accent); font-weight: 700; }
.picker small { display: block; padding: 0 8px 6px; color: var(--muted); font-size: 12px; }
.picker button { display: flex; justify-content: space-between; width: 100%; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); padding: 7px 8px; border-radius: 8px; cursor: pointer; text-align: left; }
.picker button:hover, .picker button.on { background: var(--soft); }
.picker em { font-style: normal; color: var(--muted); font-size: 13px; }
.toy-hint { text-align: right; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 15px; transition: opacity .4s; }
.flyer { position: fixed; z-index: 90; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; color: var(--accent); }
.flyer svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 8px rgba(91,33,182,.4)); }
.bit { position: fixed; z-index: 91; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; }

/* Marquee */
.marquee { margin-top: 80px; border-block: 1px solid var(--line); padding: 20px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; width: max-content; gap: 52px; animation: scroll 38s linear infinite; }
.track span { font-size: 22px; font-weight: 650; color: var(--muted); opacity: .75; letter-spacing: -0.01em; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(calc(-50% - 26px)); } }

/* Sections */
section { padding: 110px 0; }
.hero { padding-bottom: 0; }
.head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.sub { color: var(--muted); font-size: 19px; margin-top: 16px; }

.video { margin: 0; position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--line); background: #ece8f7; }
.video video { width: 100%; aspect-ratio: 16 / 9; }
.play {
  position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #5b21b6); color: #fff; display: grid; place-items: center;
  box-shadow: 0 20px 40px -10px rgba(91,33,182,.6); transition: transform .25s cubic-bezier(.2,1.4,.4,1), opacity .3s;
}
.play svg { width: 38px; height: 38px; margin-left: 5px; }
.play:hover { transform: scale(1.08); }
.video.playing .play { opacity: 0; pointer-events: none; transform: scale(.7); }

/* How rows */
.row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; }
.row + .row { margin-top: 100px; }
.row.flip .row-copy { order: 2; }
.row-copy h3 { font-size: clamp(26px, 3vw, 34px); margin: 14px 0 14px; }
.row-copy p { color: var(--muted); font-size: 18px; }
.row img { border-radius: var(--radius); box-shadow: var(--shadow), 0 0 0 1px var(--line); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.row img:hover { transform: translateY(-6px) rotate(-.4deg); }
.step { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--accent); font-weight: 700; font-size: 19px; }
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; gap: 28px; }
  .row.flip .row-copy { order: 0; }
  .row + .row { margin-top: 64px; }
  section { padding: 76px 0; }
}

/* Sites */
.sites { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--soft) 55%, transparent) 30%, transparent); }
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 26px; }
.tabs button {
  font: inherit; font-weight: 650; font-size: 15px; padding: 9px 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); transition: all .25s;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.window.big { max-width: 980px; margin: 0 auto; }
.window.big img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: opacity .35s, transform .5s cubic-bezier(.2,.8,.2,1); }
.window.big img.swap { opacity: 0; transform: translateX(24px); }
.grid-sites { list-style: none; padding: 0; margin: 64px auto 0; max-width: 940px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.grid-sites li { padding: 8px 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 550; font-size: 15px; transition: transform .2s, box-shadow .2s, color .2s; }
.grid-sites li:hover { transform: translateY(-3px); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-2); }
.grid-sites .any { background: var(--soft); color: var(--accent); box-shadow: none; }

/* Features */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: 0 0 0 1px var(--line); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); font-size: 22px; margin-bottom: 18px; color: var(--accent); font-weight: 700; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .cards { grid-template-columns: 1fr; } }

/* Privacy (always dark) */
.privacy { background: #140f20; color: #f4f1fb; --muted: #b3abcb; --accent: #c4b5fd; --line: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.privacy::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -200px; background: radial-gradient(circle, rgba(124,58,237,.35), transparent 65%); pointer-events: none; }
.privacy .row { position: relative; }
.privacy h2 { margin-bottom: 18px; }
.privacy .row-copy > p { color: var(--muted); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; }
.checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(196,181,253,.16); color: #c4b5fd; font-size: 13px; font-weight: 700; margin-right: 10px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 19px; font-weight: 650; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 26px; font-weight: 400; color: var(--accent); transition: rotate .3s; }
details[open] summary::after { rotate: 45deg; }
details p { color: var(--muted); padding: 0 0 22px; font-size: 17px; }
details a { color: var(--accent); }

/* Final CTA */
.final-card {
  text-align: center; border-radius: 32px; padding: 72px 24px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(circle at 20% 10%, #8b5cf6, transparent 50%), radial-gradient(circle at 90% 90%, #c026d3, transparent 45%), #4c1d95;
}
.final-card img { margin: 0 auto 22px; border-radius: 50%; box-shadow: 0 16px 40px -10px rgba(0,0,0,.5); }
.final-card p { opacity: .85; font-size: 19px; margin: 14px 0 30px; }
.bob { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-4deg); } }
.final { padding-top: 40px; }

/* Footer */
.foot { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot .brand { color: var(--ink); font-size: 18px; }
.foot nav { display: flex; gap: 22px; }
.foot nav a, .foot p a { text-decoration: none; }
.foot nav a:hover, .foot p a:hover { color: var(--ink); }
.foot p { margin-left: auto; }

/* Scroll reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
