:root {
  --bg: #070708;
  --bg2: #0c0c0e;
  --card: #111114;
  --line: #ffffff14;
  --line2: #ffffff24;
  --text: #ededee;
  --dim: #a3a3aa;
  --label: #76767e;
  --accent: #86b7ff;
  --accent2: #c9a8ff;
  --warn: #ffb4a8;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', ui-sans-serif, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
em { font-style: italic; }
kbd { font: 500 .85em var(--mono); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line2); background: #ffffff08; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font: 400 clamp(38px, 6vw, 72px)/1.02 var(--serif); letter-spacing: -.02em; }
h2 em, h1 em { color: var(--accent); }
h3 { font: 600 18px/1.3 var(--sans); letter-spacing: -.01em; }
.eyebrow { font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--label); margin: 0 0 18px; }

/* film grain for depth */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-3%, 2%); } 60% { transform: translate(2%, -3%); } 90% { transform: translate(-1%, 3%); } }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50; transform: translateX(-50%);
  width: min(1120px, calc(100% - 2 * var(--pad)));
  display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 18px;
  border-radius: 999px; background: #0d0d10cc; border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.mark { color: var(--text); }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--dim); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.nav-cta { text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; background: var(--text); color: #0b0b0c; }
.nav-cta:hover { background: #fff; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15.5px;
  transition: transform .25s var(--ease), background .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--text); color: #0b0b0c; box-shadow: 0 10px 40px -10px #86b7ff88; }
.btn.primary:hover { background: #fff; transform: translateY(-1px); }
.btn.ghost { border: 1px solid var(--line2); color: var(--text); }
.btn.ghost:hover { border-color: #ffffff4a; background: #ffffff06; }
.os-icon { display: inline-grid; place-items: center; }
.os-icon svg { display: block; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; text-align: center;
  padding: clamp(140px, 18vh, 190px) var(--pad) 40px;
  background: radial-gradient(900px 520px at 50% 18%, #1a2233 0%, transparent 70%);
  overflow-x: clip; /* the orbit is wider than a phone screen */
}
.orbit {
  position: absolute; left: 50%; top: 40px; width: min(980px, 130vw); transform: translateX(-50%);
  pointer-events: none; opacity: .75;
}
.orbit svg { width: 100%; height: auto; overflow: visible; }
.orbit-dot { filter: drop-shadow(0 0 18px #86b7ff) drop-shadow(0 0 40px #86b7ff88); animation: pulse 3.2s ease-in-out infinite; transform-origin: 449px 157px; }
@keyframes pulse { 50% { transform: scale(1.35); opacity: .85; } }
.hero h1 {
  position: relative; font: 400 clamp(52px, 10vw, 132px)/.95 var(--serif); letter-spacing: -.035em;
  max-width: 12ch; margin: 0 auto 26px;
}
.hero h1 em { color: var(--text); font-style: italic; background: linear-gradient(95deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .06em; }
.lede { position: relative; max-width: 590px; margin: 0 auto 34px; color: var(--dim); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; }
.cta { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { color: var(--label); font-size: 13.5px; margin: 18px 0 0; }

/* app window frame */
.window {
  position: relative; margin: 0; border-radius: 14px; background: #0b0b0c; overflow: hidden;
  border: 1px solid var(--line2);
  box-shadow: 0 40px 120px -30px #000, 0 0 0 1px #00000080;
}
.window .chrome { position: absolute; top: 0; left: 0; z-index: 2; display: flex; gap: 7px; padding: 13px 14px; }
.window .chrome i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window .chrome i:nth-child(2) { background: #febc2e; }
.window .chrome i:nth-child(3) { background: #28c840; }
.hero-shot { width: min(1180px, 100%); margin: clamp(56px, 9vh, 90px) auto 0; overflow: visible; }
.hero-shot img { border-radius: 14px; }
.hero-shot .glow {
  position: absolute; inset: -2px; z-index: -1; border-radius: 16px;
  background: conic-gradient(from var(--a, 0deg), #86b7ff, #c9a8ff, #86b7ff00 40%, #86b7ff00 60%, #86b7ff);
  filter: blur(22px); opacity: .55; animation: spin 7s linear infinite;
}
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }

/* ---------------------------------------------------------------- marquee */
.asks { overflow: hidden; padding: 70px 0 30px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.track span { white-space: nowrap; font: italic 400 26px var(--serif); color: var(--dim); padding: 10px 22px; border: 1px solid var(--line); border-radius: 999px; }
.asks:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections */
section { position: relative; }
.section-head { width: min(1120px, calc(100% - 2 * var(--pad))); margin: 0 auto 56px; }
.section-head.narrow { text-align: center; }
.section-head .sub { color: var(--dim); margin: 14px 0 0; }

/* how it works: sticky visual + steps */
.how { padding: 120px 0 60px; }
.steps { width: min(1180px, calc(100% - 2 * var(--pad))); margin: 0 auto; display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; }
.step-visual { position: sticky; top: 110px; align-self: start; }
.step-visual .window { aspect-ratio: 2960 / 1880; }
.step-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.015); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.step-img.on { opacity: 1; transform: none; }
.step-list { list-style: none; margin: 0; padding: 0; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .32; transition: opacity .5s var(--ease); }
.step.on { opacity: 1; }
.step .num { font: 500 13px var(--mono); color: var(--accent); margin-bottom: 14px; }
.step h3 { font: 400 clamp(30px, 3.4vw, 42px)/1.1 var(--serif); letter-spacing: -.015em; margin-bottom: 14px; }
.step p { color: var(--dim); font-size: 17px; margin: 0; max-width: 44ch; }
.step b { color: var(--text); }

/* modes */
.modes { padding: 90px 0; }
.mode-grid { width: min(1120px, calc(100% - 2 * var(--pad))); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mode { padding: 28px; border-radius: 20px; background: linear-gradient(180deg, #131318, #0e0e11); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.mode:hover { transform: translateY(-4px); border-color: var(--line2); }
.pill { display: inline-block; font: 600 12.5px var(--sans); padding: 5px 12px; border-radius: 999px; background: #86b7ff1f; color: var(--accent); margin-bottom: 22px; }
.pill.warn { background: #ff7a7a1f; color: var(--warn); }
.mode h3 { margin-bottom: 8px; }
.mode p { color: var(--dim); margin: 0; font-size: 15.5px; }

/* safety */
.safety { padding: 110px 0; background: linear-gradient(180deg, transparent, #0b0e15 30%, #0b0e15 70%, transparent); }
.safety-inner { width: min(1120px, calc(100% - 2 * var(--pad))); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.rules { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rules li { position: relative; padding: 22px 0 22px 56px; border-top: 1px solid var(--line); color: var(--dim); font-size: 16.5px; }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules li::before { counter-increment: r; content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 24px; font: 500 13px var(--mono); color: var(--accent); }
.rules b { color: var(--text); display: block; font-size: 17.5px; margin-bottom: 4px; }

/* features bento */
.features { padding: 110px 0 60px; }
.bento { width: min(1180px, calc(100% - 2 * var(--pad))); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 360px; transition: border-color .3s, transform .5s var(--ease); }
.tile:hover { border-color: var(--line2); transform: translateY(-3px); }
.tile .copy { padding: 26px 26px 18px; }
.tile .copy p { color: var(--dim); margin: 8px 0 0; font-size: 15px; }
.tile img { margin-top: auto; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; border-top: 1px solid var(--line); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.t-wide { grid-column: span 2; flex-direction: row; min-height: 380px; }
.t-wide .copy { flex: 0 0 38%; align-self: center; }
.t-wide img { flex: 1; min-width: 0; height: 100%; aspect-ratio: auto; object-position: 0 0; border-top: 0; border-left: 1px solid var(--line); mask-image: linear-gradient(90deg, #000 75%, transparent); }
.t-list { background: radial-gradient(500px 300px at 100% 100%, #86b7ff14, transparent), var(--card); }
.ticks { list-style: none; margin: 14px 0 0; padding: 0; }
.ticks li { padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); color: var(--dim); position: relative; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* plan or key */
.power { padding: 110px 0; }
.power-grid { width: min(1120px, calc(100% - 2 * var(--pad))); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.card img { border-radius: 12px; border: 1px solid var(--line); margin-bottom: 22px; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 0; width: 100%; }
.card p { color: var(--dim); margin: 8px 0 0; }
.card a { color: var(--accent); text-decoration: none; }
.key-art { aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 22px; display: grid; place-items: center; background: radial-gradient(400px 200px at 50% 60%, #86b7ff1c, transparent), #0b0b0e; }
.key-art span { font: 500 clamp(14px, 2vw, 20px) var(--mono); color: var(--dim); padding: 14px 20px; border: 1px solid var(--line2); border-radius: 12px; background: #111116; box-shadow: 0 0 0 6px #86b7ff0c; }

/* download */
.download { padding: 120px 0 90px; background: radial-gradient(800px 400px at 50% 0%, #152033, transparent 70%); }
.dl-grid { width: min(960px, calc(100% - 2 * var(--pad))); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dl { display: flex; flex-direction: column; gap: 4px; text-decoration: none; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .25s, background .25s; }
.dl:hover { transform: translateY(-4px); border-color: #86b7ff66; background: #131722; }
.dl.recommended { border-color: #86b7ff88; box-shadow: 0 0 0 4px #86b7ff14, 0 20px 60px -30px #86b7ff; }
.dl.recommended::after { content: 'Recommended for you'; order: -1; align-self: flex-start; font: 600 11.5px var(--sans); color: #0b0b0c; background: var(--accent); padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }
.dl-os { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; margin-bottom: 14px; }
.dl b { font: 400 30px/1.1 var(--serif); letter-spacing: -.01em; }
.dl small { color: var(--label); font-size: 13.5px; }
.install { width: min(760px, calc(100% - 2 * var(--pad))); margin: 44px auto 0; }
.install details, .faq details { border-top: 1px solid var(--line); }
.install details:last-child, .faq details:last-child { border-bottom: 1px solid var(--line); }
details summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 17px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font: 300 26px var(--sans); color: var(--label); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details ol { margin: 0 0 22px; padding-left: 22px; color: var(--dim); }
details ol li { padding: 4px 0; }
details b { color: var(--text); }
details p { color: var(--dim); margin: 0 0 22px; }

/* open source */
.oss { padding: 60px 0 110px; }
.oss-inner { width: min(1000px, calc(100% - 2 * var(--pad))); margin: 0 auto; display: flex; gap: 40px; align-items: center; padding: 44px; border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(135deg, #111118, #0b0b0d); }
.mark.big { width: 110px; height: 110px; flex: none; color: var(--text); filter: drop-shadow(0 0 30px #86b7ff55); }
.oss p { color: var(--dim); margin: 12px 0 22px; max-width: 52ch; }
.oss h2 { font-size: clamp(34px, 4.5vw, 54px); }

/* faq */
.faq { padding: 40px 0 120px; }
.faq-list { width: min(760px, calc(100% - 2 * var(--pad))); margin: 0 auto; }

/* footer */
.footer { width: min(1120px, calc(100% - 2 * var(--pad))); margin: 0 auto; padding: 30px 0 50px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--label); }
.footer nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.footer a { color: var(--label); text-decoration: none; font-size: 14px; }
.footer a:hover { color: var(--text); }

/* reveal on load / scroll */
.reveal { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; }
.hero .reveal:nth-child(2) { animation-delay: .05s; }
.hero .reveal:nth-child(3) { animation-delay: .15s; }
.hero .reveal:nth-child(4) { animation-delay: .28s; }
.hero .reveal:nth-child(5) { animation-delay: .4s; }
.hero .reveal:nth-child(6) { animation-delay: .5s; }
.hero .reveal:nth-child(7) { animation-delay: .65s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.fade { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.fade.in { opacity: 1; transform: none; }

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

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav-cta { margin-left: auto; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .step-visual { top: 76px; z-index: 1; }
  .step { min-height: 46vh; background: linear-gradient(180deg, transparent, var(--bg) 25%); }
  .mode-grid, .power-grid, .dl-grid { grid-template-columns: 1fr; }
  .safety-inner { grid-template-columns: 1fr; gap: 30px; }
  .bento { grid-template-columns: 1fr; }
  .t-wide { grid-column: auto; flex-direction: column; }
  .t-wide .copy { flex: none; }
  .t-wide img { border-left: 0; border-top: 1px solid var(--line); aspect-ratio: 16 / 10; mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .oss-inner { flex-direction: column; text-align: center; padding: 32px 22px; }
  .oss p { margin-left: auto; margin-right: auto; }
  .footer nav { margin-left: 0; }
}
@media (max-width: 520px) {
  .btn { width: 100%; justify-content: center; }
  .track span { font-size: 21px; }
}
