/* Pulse Phone by ZeroDev — dark glass, phone geometry, blue→violet energy. */
:root {
  --bg: #06070b;
  --bg-2: #0c0e15;
  --card: rgba(20, 23, 34, .66);
  --card-solid: #11141d;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f5fa;
  --muted: #a3a9bd;
  --dim: #8288a0;
  --blue: #0a84ff;
  --violet: #7c5cff;
  --pink: #c55cff;
  --green: #30d158;
  --orange: #ff9f0a;
  --red: #ff453a;
  --grad: linear-gradient(135deg, #0a84ff 0%, #7c5cff 55%, #c55cff 100%);
  --r: 22px;
  --r-lg: 32px;
  --max: 1200px;
  --nav-h: 68px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font: 400 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -.006em;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: rgba(10, 132, 255, .45); }
:focus-visible { outline: 2px solid #4da3ff; outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.03em; line-height: 1.08; }
p { margin: 0; }
figure { margin: 0; }
code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .88em; }
:not(pre) > code { padding: 2px 7px; border-radius: 7px; background: rgba(255,255,255,.07); overflow-wrap: anywhere; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--blue); font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #9fcfff; padding: 7px 13px; border-radius: 999px;
  background: rgba(10, 132, 255, .1); border: 1px solid rgba(10, 132, 255, .28);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tone, #9fcfff); }
.kicker svg { width: 30px; height: 30px; padding: 6px; border-radius: 10px; color: var(--tone); background: color-mix(in srgb, var(--tone) 16%, transparent); }

/* Ambient background */
.bg-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-glow span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.bg-glow span:nth-child(1) { width: 720px; height: 720px; left: -220px; top: -260px; background: #0a3d99; animation: drift 18s ease-in-out infinite alternate; }
.bg-glow span:nth-child(2) { width: 640px; height: 640px; right: -200px; top: -120px; background: #3b1f99; animation: drift 22s ease-in-out infinite alternate-reverse; }
.bg-glow span:nth-child(3) { width: 900px; height: 500px; left: 20%; bottom: -380px; background: #0b3a55; opacity: .3; }
.bg-glow::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(#000, transparent 70%); -webkit-mask-image: linear-gradient(#000, transparent 70%); }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.1); } }

/* Buttons */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap;
  color: #fff; background: var(--grad); background-size: 150% 150%;
  box-shadow: 0 12px 34px -12px rgba(10, 132, 255, .9), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-position .4s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 18px 40px -12px rgba(124, 92, 255, .95), inset 0 1px 0 rgba(255,255,255,.25); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.small { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn.ghost { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: rgba(255,255,255,.11); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.block { width: 100%; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.icon-btn:hover { background: rgba(255,255,255,.14); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); }
.nav::before { content: ''; position: absolute; inset: 0; background: rgba(6, 7, 11, .7); backdrop-filter: saturate(170%) blur(20px); -webkit-backdrop-filter: saturate(170%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled::before { border-bottom-color: var(--line); }
.nav-inner { position: relative; height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text b { font-weight: 800; font-size: 17px; letter-spacing: -.03em; }
.brand-text small { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: #cdd1df; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.08); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.basket-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.07); display: grid; place-items: center; transition: background .15s; }
.basket-btn:hover { background: rgba(255,255,255,.13); }
.basket-btn .count { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--red); font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.07); position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s var(--ease); }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 24px; }
.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Sections */
section { position: relative; padding: 110px 0; }
.page-top { padding-top: 56px; }
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.section-head h2, .page-h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; text-wrap: balance; }
.section-head p { text-wrap: pretty; font-size: clamp(16.5px, 1.6vw, 18.5px); color: var(--muted); max-width: 640px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.fineprint { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }
.fineprint a { color: #8fc6ff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Hero ---------------- */
.hero { padding: 40px 0 30px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); grid-template-areas: 'copy stage' 'facts stage'; grid-template-rows: auto auto; column-gap: 36px; align-content: center; align-items: center; min-height: min(820px, calc(100vh - var(--nav-h) - 40px)); }
.hero-copy { grid-area: copy; align-self: end; }
.hero-stage { grid-area: stage; }
.facts { grid-area: facts; align-self: start; }
.hero h1 { font-size: clamp(40px, 5.4vw, 76px); font-weight: 900; letter-spacing: -.055em; line-height: .96; margin: 22px 0; }
.hero .lede { font-size: clamp(17px, 1.7vw, 20px); color: #b9bed0; max-width: 560px; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.price-note { color: var(--muted); font-size: 14.5px; margin-top: 16px; }
.price-note b { color: #fff; font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(4, auto); gap: 12px 30px; margin: 36px 0 0; justify-content: start; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 28px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.facts dd { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.hero-stage { position: relative; display: grid; justify-items: center; gap: 14px; }
.stage-glow { position: absolute; left: 50%; top: 44%; width: min(560px, 110%); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(10,132,255,.38), rgba(124,92,255,.22) 45%, transparent 70%); filter: blur(30px); pointer-events: none; animation: pulse 7s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.07); opacity: .8; } }
.hero-3d { position: relative; width: 100%; max-width: 560px; aspect-ratio: 19 / 24; max-height: min(700px, 74vh); cursor: grab; touch-action: pan-y; }
.hero-3d.dragging { cursor: grabbing; }
.hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .7s var(--ease); pointer-events: none; }
.hero-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .8s var(--ease); outline: none; }
.hero-3d.ready .hero-canvas { opacity: 1; }
.hero-3d.ready .hero-fallback { opacity: 0; }
.hero-loading { position: absolute; left: 50%; bottom: 8%; translate: -50% 0; width: 90px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; transition: opacity .3s; }
.hero-loading span { position: absolute; inset: 0; width: 40%; background: var(--grad); border-radius: 3px; animation: load 1.2s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.hero-3d.ready .hero-loading, .hero-3d.failed .hero-loading { opacity: 0; }
.finish-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 10px 16px; border-radius: 999px; background: rgba(18, 21, 31, .72); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.finish-bar.static .finish-picker, .finish-bar.static .drag-hint, .finish-bar.static .finish-name { display: none; }
.finish-bar.static::after { content: 'Natural Titanium · rendered from the in-game model'; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.finish-picker { display: flex; gap: 8px; }
.finish-picker button { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 3px; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); transition: box-shadow .2s, transform .2s var(--ease); }
.finish-picker button span { display: block; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, var(--back) 0 50%, var(--rail) 50% 100%); box-shadow: inset 0 1px 1px rgba(255,255,255,.5), inset 0 -2px 4px rgba(0,0,0,.25); }
.finish-picker button:hover { transform: scale(1.08); }
.finish-picker button[aria-checked="true"] { box-shadow: inset 0 0 0 2px #fff; }
.finish-name { font-size: 14px; font-weight: 700; min-width: 128px; }
.drag-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.drag-hint svg { width: 18px; height: 18px; }

/* App marquee */
.marquee { padding: 20px 0 10px; 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); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: scroll 80s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.mq { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px 0 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; white-space: nowrap; color: #d9dcea; }
.mq i { width: 10px; height: 10px; border-radius: 3px; background: var(--h); box-shadow: 0 0 12px var(--h); }

/* ---------------- Devices ---------------- */
.device { position: relative; width: 100%; padding: 3.3%; border-radius: 15% / 7%; background: linear-gradient(150deg, #5b5e66 0%, #1d1e23 22%, #34363d 55%, #121317 78%, #4a4d55 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 0 0 1px #0b0c10, 0 40px 80px -34px rgba(0,0,0,.95), 0 24px 60px -30px rgba(10,132,255,.35); }
.device img { width: 100%; aspect-ratio: 440 / 956; object-fit: cover; border-radius: 12.4% / 5.75%; background: #000; }
.render { width: 94%; margin: 0 auto; }
.render img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)) drop-shadow(0 10px 30px rgba(10,132,255,.18)); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; max-width: 540px; margin: 0 auto; }
.duo .offset { margin-top: 18%; }
.duo .render { margin-top: -2%; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 600px; margin: 0 auto; align-items: start; }
.trio > :nth-child(2) { margin-top: 14%; }
.solo { max-width: 270px; margin: 0 auto; }

/* ---------------- Features ---------------- */
.features { padding-top: 70px; }
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: center; padding: 50px 0; }
.feature.flip .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 16px; align-content: center; justify-items: start; }
.feature-copy h3, .band-copy h3 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 850; text-wrap: balance; }
.feature-copy p, .band-copy p { color: var(--muted); font-size: 17px; max-width: 520px; }
.ticks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; color: #d3d7e4; font-size: 15.5px; line-height: 1.5; }
.ticks li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: rgba(48,209,88,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2330d158' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.photo-strip { margin: 30px 0 60px; padding: 34px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.photo-strip h3 { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.mosaic { display: grid; grid-template-columns: 1.35fr 1fr 1.35fr 1fr 1fr 1fr; gap: 12px; }
.mosaic figure { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); height: 240px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.feature-band { padding: 60px 0; display: grid; gap: 34px; }
.band-copy { display: grid; gap: 14px; justify-items: center; text-align: center; }
.band-copy p { margin: 0 auto; }
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.g-item { display: grid; gap: 6px; text-align: center; align-content: start; }
.g-item .device { margin-bottom: 10px; }
.g-item b { font-size: 16px; }
.g-item span { font-size: 13.5px; color: var(--muted); }
.more-apps { text-align: center; color: var(--muted); max-width: 760px; margin: 30px auto 0; font-size: 16px; }

/* Video */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: 0 50px 100px -50px rgba(10,132,255,.6); max-width: 1000px; margin: 0 auto; }
.video-frame iframe, .video-frame video, .yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-facade { padding: 0; background: #000; display: grid; place-items: center; }
.yt-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt-facade .play { position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); box-shadow: 0 20px 50px -10px rgba(10,132,255,.9); transition: transform .2s var(--ease); }
.yt-facade .play svg { width: 34px; height: 34px; margin-left: 4px; }
.yt-facade:hover .play { transform: scale(1.08); }

/* Handset in hand */
.hand-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.inhand { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 50px 100px -50px rgba(0,0,0,.9); position: relative; }
.inhand figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px 14px; border-radius: 14px; background: rgba(8,10,16,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; color: #d6dae6; }
.hand-copy { display: grid; gap: 16px; }
.hand-copy h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 850; }
.hand-copy p { color: var(--muted); font-size: 17px; }

/* OS grid */
.os-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.os-card { padding: 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.os-card .device { max-width: 220px; margin: 0 auto 10px; }
.os-card h3 { font-size: 21px; font-weight: 800; }
.os-card p { color: var(--muted); font-size: 15px; }
.island-card { grid-column: 1 / -1; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 40px; align-items: center; }
.island-copy { display: grid; gap: 10px; }
.island-states { display: grid; gap: 12px; }
.island-states img { border-radius: 18px; width: 100%; border: 1px solid var(--line); }
.os-grid .os-card:nth-child(2) { grid-column: 1; }

/* Languages */
.lang-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 50px; align-items: center; padding: 44px; border-radius: 40px; background: radial-gradient(600px 300px at 0% 0%, rgba(100,210,255,.14), transparent 60%), var(--card-solid); border: 1px solid var(--line); }
.lang-copy { display: grid; gap: 16px; }
.lang-copy h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 850; }
.lang-copy p { color: var(--muted); font-size: 16.5px; }
.langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.langs li { padding: 8px 13px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: #dfe2ee; }

/* Detection */
.detect-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.detect { padding: 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.detect h3 { font-size: 18px; font-weight: 800; }
.detect p { color: var(--muted); font-size: 14.5px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills span { padding: 5px 10px; border-radius: 9px; font: 500 12.5px/1.3 'JetBrains Mono', ui-monospace, monospace; background: rgba(10,132,255,.1); border: 1px solid rgba(10,132,255,.25); color: #cfe6ff; }
#compat .section-head code { font-size: .85em; }

/* Performance & security */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.trust-col { padding: 38px; border-radius: 36px; background: var(--card-solid); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.trust-col h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 850; margin-bottom: 8px; }
.trust-item { padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.trust-item h3 { font-size: 16.5px; font-weight: 750; }
.trust-item p { color: var(--muted); font-size: 15px; }

/* Install */
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.install-steps li { position: relative; padding: 28px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.install-steps .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-weight: 800; }
.install-steps h3 { font-size: 21px; font-weight: 800; }
.install-steps p { color: var(--muted); font-size: 15px; }
.mini-code { margin: 4px 0 0; padding: 14px 16px; border-radius: 14px; background: #0a0c13; border: 1px solid var(--line-2); font: 500 13px/1.7 'JetBrains Mono', ui-monospace, monospace; color: #dfe4f3; overflow-x: auto; }
.mini-code code { padding: 0; background: none; font-size: inherit; }
.install-extra { margin-top: 16px; padding: 20px 24px; border-radius: 22px; background: rgba(10,132,255,.07); border: 1px solid rgba(10,132,255,.25); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.install-extra > div { display: flex; gap: 14px; align-items: flex-start; flex: 1 1 380px; }
.install-extra svg { width: 26px; height: 26px; flex: none; color: #8fc6ff; }
.install-extra p { color: #cdd2e0; font-size: 15px; }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 21px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: rgba(255,255,255,.05); font: 600 12px/1 'JetBrains Mono', ui-monospace, monospace; color: #cfd4e6; }
.tk-c { color: #8a93b0; font-style: italic; }
.tk-s { color: #9fe0a6; }
.tk-k { color: #8fc6ff; font-weight: 600; }

/* ---------------- Reviews ---------------- */
.stars { position: relative; display: inline-block; line-height: 0; white-space: nowrap; }
.stars svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.stars.sm svg { width: 15px; height: 15px; }
.stars.lg svg { width: 26px; height: 26px; }
.stars-bg { color: rgba(255,255,255,.16); display: inline-flex; gap: 2px; }
.stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; color: #ffcc33; display: inline-flex; gap: 2px; }
.rating-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 30px; align-items: center; padding: 28px 32px; border-radius: 28px; background: var(--card-solid); border: 1px solid var(--line); margin-bottom: 20px; }
.rating-summary .big { display: grid; justify-items: start; gap: 8px; }
.rating-summary strong { font-size: 58px; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.rating-summary strong.none { font-size: 26px; letter-spacing: -.03em; }
.rating-summary .big > span:not(.stars) { color: var(--muted); font-size: 14.5px; }
.rating-summary .dist { display: grid; gap: 6px; }
.rating-summary .row { display: grid; grid-template-columns: 30px 1fr 30px; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); }
.rating-summary .row i { height: 7px; border-radius: 7px; background: rgba(255,255,255,.08); overflow: hidden; }
.rating-summary .row b { display: block; height: 100%; background: #ffcc33; border-radius: 7px; }
.empty-summary { grid-template-columns: 1fr; }
.empty-summary .big b { font-size: 22px; }
.review-list { display: grid; gap: 14px; }
.reviews-teaser .review-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.review-card { padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.review-card header { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.review-card header div { display: grid; gap: 1px; }
.review-card header b { font-size: 15.5px; }
.review-card small { color: var(--muted); font-size: 12.5px; }
.review-card p { color: #d3d7e4; font-size: 15px; overflow-wrap: anywhere; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-weight: 800; font-size: 13px; }
.verified { display: inline-flex; width: fit-content; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: #7ee39a; }
.verified::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: rgba(48,209,88,.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2330d158' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px no-repeat; }
.reply { padding: 12px 14px; border-radius: 14px; background: rgba(10,132,255,.08); border: 1px solid rgba(10,132,255,.2); display: grid; gap: 4px; }
.reply b { font-size: 13px; color: #9fcfff; }
.reviews-layout .reviews-empty { max-width: none; }
.reviews-empty { max-width: 560px; margin: 0 auto; text-align: center; padding: 44px 28px; border-radius: 32px; border: 1px dashed var(--line-2); background: rgba(255,255,255,.02); display: grid; gap: 12px; justify-items: center; }
.reviews-empty .empty-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,204,51,.12); color: #ffcc33; }
.reviews-empty .empty-icon svg { width: 30px; height: 30px; fill: currentColor; }
.reviews-empty h3 { font-size: 24px; font-weight: 800; }
.reviews-empty p { color: var(--muted); }
.reviews-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.reviews-side { position: sticky; top: calc(var(--nav-h) + 16px); }
.review-form { padding: 28px; border-radius: 28px; background: var(--card-solid); border: 1px solid var(--line-2); display: grid; gap: 16px; }
.review-form h3 { font-size: 22px; font-weight: 800; scroll-margin-top: calc(var(--nav-h) + 20px); }
.form-note { color: var(--muted); font-size: 14px; }
.field { display: grid; gap: 7px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 700; padding: 0; }
.field input[type=text], .field textarea { width: 100%; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); font: inherit; font-size: 15px; outline: none; transition: border-color .15s, background .15s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--blue); background: rgba(10,132,255,.06); }
.field input[aria-invalid=true], .field textarea[aria-invalid=true] { border-color: var(--red); }
.field .err { color: #ff8a80; font-size: 13px; min-height: 0; }
.field .err:empty { display: none; }
.field .hint { color: var(--muted); font-size: 12.5px; }
.field .opt { color: var(--muted); font-weight: 500; }
.req { color: #ff8a80; }
.field-foot { display: flex; justify-content: space-between; gap: 10px; }
.field-foot .count { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: rgba(255,255,255,.2); padding: 2px; border-radius: 8px; transition: color .15s, transform .15s var(--ease); }
.star-input label svg { width: 32px; height: 32px; fill: currentColor; display: block; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #ffcc33; }
.star-input label:hover { transform: scale(1.1); }
.star-input input:focus-visible + label { outline: 2px solid #4da3ff; outline-offset: 2px; }
.star-field.invalid .star-input label { color: rgba(255,120,110,.4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: 12px 14px; border-radius: 14px; font-size: 14.5px; }
.form-status.ok { background: rgba(48,209,88,.1); border: 1px solid rgba(48,209,88,.35); color: #bff3cc; }
.form-status.warn { background: rgba(255,159,10,.1); border: 1px solid rgba(255,159,10,.35); color: #ffe0b0; }
.form-status.bad { background: rgba(255,69,58,.1); border: 1px solid rgba(255,69,58,.35); color: #ffc4bf; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; justify-content: center; }
.plan { position: relative; padding: 36px; border-radius: var(--r-lg); background: var(--card-solid); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.plan.featured { background: linear-gradient(var(--card-solid), var(--card-solid)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 40px 90px -40px rgba(124, 92, 255, .8); }
.plan .tag { position: absolute; top: -13px; right: 28px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--grad); }
.plan .name { font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9fcfff; }
.plan .amount { font-size: 62px; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.plan .amount small { font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .sub { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; color: #d4d8e6; font-size: 15px; }
.plan li::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(10,132,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230a84ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan .btn { margin-top: auto; }
.included { max-width: 860px; margin: 24px auto 0; padding: 26px 30px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 14px; }
.included h3 { font-size: 17px; font-weight: 800; }
.included .ticks { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; color: var(--muted); padding: 40px; border-radius: var(--r); border: 1px dashed var(--line-2); }

/* FAQ */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 20px; background: var(--card); border: 1px solid var(--line); padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 20px; border-radius: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* CTA band */
.cta-section { padding-top: 20px; }
.cta-band { padding: 70px 50px; border-radius: 40px; text-align: center; display: grid; gap: 20px; justify-items: center; background: radial-gradient(600px 300px at 20% 0%, rgba(10,132,255,.35), transparent 60%), radial-gradient(600px 300px at 80% 100%, rgba(197,92,255,.3), transparent 60%), #0d1018; border: 1px solid var(--line); overflow: hidden; }
.cta-band h2 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 900; }
.cta-band p { color: #bcc1d2; font-size: 18px; max-width: 560px; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; visibility: hidden; transition: visibility 0s .4s; }
.drawer.open { pointer-events: auto; visibility: visible; transition: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .3s; backdrop-filter: blur(3px); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(430px, 100%); background: #0e1119; border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .4s var(--ease); display: flex; flex-direction: column; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 21px; font-weight: 800; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; display: grid; gap: 12px; align-content: start; }
.drawer-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer-foot:empty { display: none; }
.line-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.line-item b { font-size: 15px; } .line-item .p { font-weight: 800; }
.line-item button { grid-column: 1 / -1; justify-self: start; border: 0; background: none; color: #ff8a80; font-size: 13px; font-weight: 600; padding: 0; }
.total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; }
.drawer .note { font-size: 13px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; z-index: 90; max-width: calc(100% - 32px); padding: 13px 20px; border-radius: 999px; background: rgba(28, 31, 44, .94); border: 1px solid var(--line-2); backdrop-filter: blur(16px); font-weight: 600; font-size: 14.5px; opacity: 0; pointer-events: none; transition: opacity .3s, translate .3s var(--ease); }
.toast.show { opacity: 1; translate: -50% 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 60px; background: rgba(6,7,11,.6); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 30px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 320px; font-size: 14.5px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-cols h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; font-weight: 800; }
.footer-cols a { display: block; color: #c9cddb; font-size: 14.5px; padding: 4px 0; }
.footer-cols a:hover { color: #fff; }
.footer-legal { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 34px; display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; color: var(--dim); font-size: 12.5px; border-top: 1px solid var(--line); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(5, minmax(170px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
  .g-item { scroll-snap-align: start; }
  .detect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-teaser .review-list { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copy' 'stage' 'facts'; text-align: center; min-height: 0; row-gap: 24px; }
  .facts { margin-top: 8px; }
  .stage-glow { width: 100%; }
  .hero-copy { display: grid; justify-items: center; }
  .hero .lede { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .facts { justify-content: center; }
  .hero-3d { max-height: 620px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 34px; padding: 40px 0; }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy { justify-items: start; }
  .hand-grid { grid-template-columns: 1fr; gap: 30px; }
  .os-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .island-card { grid-template-columns: 1fr; }
  .lang-card { grid-template-columns: 1fr; gap: 26px; padding: 32px; }
  .trust-grid { grid-template-columns: 1fr; }
  .install-steps { grid-template-columns: 1fr; }
  .reviews-layout { grid-template-columns: 1fr; }
  .reviews-side { position: static; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --nav-h: 62px; }
  section { padding: 72px 0; }
  .section-head { margin-bottom: 38px; }
  .nav-inner { gap: 12px; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; padding: 12px 16px 20px; background: rgba(6,7,11,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); transform: translateY(-130%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; margin: 0; }
  .menu-open .nav-links { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .nav-links a { padding: 13px 14px; font-size: 16px; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: block; }
  .nav-actions .btn.small { display: none; }
  .hero { padding-top: 26px; }
  .facts { grid-template-columns: repeat(2, auto); gap: 16px 34px; }
  .finish-bar { border-radius: 22px; padding: 12px 14px; }
  .drag-hint { width: 100%; justify-content: center; }
  .duo { gap: 14px; }
  .trio { gap: 10px; }
  .photo-strip { padding: 20px; border-radius: 26px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mosaic figure { height: 170px; border-radius: 12px; }
  .gallery { grid-template-columns: repeat(5, 62%); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; scroll-padding: 0 var(--gutter); }
  .os-grid { grid-template-columns: 1fr; }
  .os-card .device { max-width: 200px; }
  .detect-grid { grid-template-columns: 1fr; }
  .trust-col { padding: 26px; border-radius: 28px; }
  .lang-card { padding: 24px; border-radius: 28px; }
  .rating-summary { grid-template-columns: 1fr; padding: 22px; }
  .review-form { padding: 22px; }
  .pricing { grid-template-columns: 1fr; }
  .plan { padding: 28px 24px; }
  .plan .amount { font-size: 54px; }
  .included { padding: 22px; }
  .included .ticks { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 46px 20px; border-radius: 28px; }
  .faq details { padding: 0 18px; }
  .faq summary { font-size: 16px; padding: 18px 0; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 40px; }
  .facts dt { font-size: 24px; }
  .finish-picker button { width: 32px; height: 32px; }
  .finish-name { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- Docs (docs.js) ---------------- */
pre { margin: 0; padding: 18px 20px; border-radius: 16px; background: #0b0d14; border: 1px solid var(--line); overflow-x: auto; color: #d7ddf0; line-height: 1.6; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13.5px; }
.docs2 { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding: 44px 0 90px; }
.docs-side { position: sticky; top: calc(var(--nav-h) + 16px); align-self: start; max-height: calc(100vh - var(--nav-h) - 32px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.docs-search { position: relative; margin-bottom: 14px; }
.docs-search input { width: 100%; height: 42px; padding: 0 36px 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); font: inherit; font-size: 14.5px; outline: none; }
.docs-search input:focus { border-color: var(--blue); background: rgba(10,132,255,.06); }
.docs-search > kbd { position: absolute; right: 10px; top: 11px; }
.docs-results { position: absolute; z-index: 5; left: 0; right: 0; top: 48px; max-height: 60vh; overflow: auto; padding: 6px; border-radius: 14px; background: #10131c; border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgba(0,0,0,.9); }
.docs-results a { display: grid; gap: 2px; padding: 9px 11px; border-radius: 10px; }
.docs-results a:hover, .docs-results a:focus { background: rgba(10,132,255,.14); outline: none; }
.docs-results b { font-size: 14px; }
.docs-results span { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.docs-results small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.docs-results .none { padding: 12px; font-size: 14px; color: var(--muted); }
.docs-toc summary { display: none; }
.docs-toc { display: grid; gap: 1px; }
.toc-group { margin: 16px 0 6px; padding: 0 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.toc-link { display: block; padding: 7px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; border-left: 2px solid transparent; }
.toc-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.toc-link.on { color: #fff; background: rgba(10,132,255,.12); border-left-color: var(--blue); border-radius: 4px 10px 10px 4px; }
.docs-body { min-width: 0; display: grid; gap: 16px; align-content: start; }
.docs-body > .eyebrow { justify-self: start; }
.docs-h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 900; margin-top: 6px; }
.docs-body .lead { font-size: 18px; color: #c3c8d8; max-width: 760px; }
.docs-body h2 { font-size: 28px; font-weight: 850; margin-top: 30px; display: flex; align-items: baseline; gap: 10px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.docs-body h3 { font-size: 19px; font-weight: 800; margin-top: 16px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.docs-body h4.subhead { font-size: 15px; font-weight: 800; color: #dfe3f0; }
.docs-body p, .docs-body li { color: #c3c8d8; font-size: 15.5px; }
.docs-body ul, .docs-body ol { margin: 0; padding-left: 22px; display: grid; gap: 7px; }
.docs-body a:not(.fw-card):not(.anchor):not(.btn):not(.fw-switch a) { color: #7fbcff; text-decoration: underline; text-decoration-color: rgba(127,188,255,.35); text-underline-offset: 3px; }
.docs-body :not(pre) > code { font: 500 .87em/1.3 'JetBrains Mono', ui-monospace, monospace; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: #e4e8f5; overflow-wrap: anywhere; }
.doc-sec { display: grid; gap: 14px; scroll-margin-top: calc(var(--nav-h) + 20px); padding-top: 8px; }
.doc-sec + .doc-sec { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 12px; }
.anchor { color: var(--dim); font-weight: 600; opacity: 0; transition: opacity .15s; order: 2; font-size: .8em; }
.doc-sec h2:hover .anchor, .anchor:focus { opacity: 1; }
ol.steps { counter-reset: s; list-style: none; padding: 0; gap: 12px; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 40px; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; }
.code { position: relative; border-radius: 16px; background: #0a0c13; border: 1px solid var(--line-2); overflow: hidden; }
.code-title { padding: 9px 90px 9px 16px; font-size: 12.5px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); }
.code pre { border: 0; border-radius: 0; background: none; margin: 0; padding: 16px 18px; overflow-x: auto; font: 500 13.5px/1.65 'JetBrains Mono', ui-monospace, monospace; color: #dfe4f3; tab-size: 4; }
.code-copy { position: absolute; top: 5px; right: 8px; height: 28px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(20,23,34,.92); font-size: 12.5px; font-weight: 700; color: #cfd4e6; opacity: .85; transition: opacity .15s, background .15s; }
.code-copy:hover { opacity: 1; background: rgba(10,132,255,.25); }
.code-copy.ok { color: var(--green); border-color: rgba(48,209,88,.5); }
.tbl { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line-2); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; padding: 11px 14px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.035); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: #c9cedd; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.callout { padding: 14px 16px 14px 44px; border-radius: 14px; font-size: 15px; color: #d7dbe8; position: relative; line-height: 1.55; }
.callout::before { position: absolute; left: 15px; top: 14px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.callout.info { background: rgba(10,132,255,.08); border: 1px solid rgba(10,132,255,.28); }
.callout.info::before { content: 'i'; background: rgba(10,132,255,.3); color: #cfe6ff; }
.callout.warn { background: rgba(255,159,10,.08); border: 1px solid rgba(255,159,10,.3); }
.callout.warn::before { content: '!'; background: rgba(255,159,10,.3); color: #ffe2b3; }
.fw-switch { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.docs-body .fw-switch a { padding: 8px 14px; border-radius: 11px; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; text-decoration: none; }
.docs-body .fw-switch a:hover { color: #fff; background: rgba(255,255,255,.06); }
.docs-body .fw-switch a.on { color: #fff; background: var(--grad); box-shadow: 0 8px 22px -10px rgba(124,92,255,.9); }
.tabset { border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.02); padding: 12px; display: grid; gap: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { height: 34px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.tabs button[aria-selected="true"] { color: #fff; background: rgba(10,132,255,.18); border-color: rgba(10,132,255,.5); }
.tabpane { display: grid; gap: 12px; }
.fw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 6px; }
.docs-body .fw-card { position: relative; display: grid; gap: 6px; padding: 18px 40px 18px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); text-decoration: none; }
.docs-body .fw-card:hover { border-color: rgba(124,92,255,.6); transform: translateY(-2px); }
.fw-card b { font-size: 17px; color: #fff; }
.fw-card span { font-size: 13.5px; color: var(--muted); }
.fw-card i { position: absolute; right: 16px; top: 18px; font-style: normal; color: var(--muted); }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.cover-grid h4 { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.cover-grid a { display: block; padding: 3px 0; font-size: 14.5px; }
.docs-body details.qa { border-radius: 14px; background: var(--card); border: 1px solid var(--line); padding: 0 18px; }
.docs-body details.qa summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.docs-body details.qa summary::-webkit-details-marker { display: none; }
.docs-body details.qa summary::after { content: '+'; color: var(--muted); font-size: 20px; line-height: 1; }
.docs-body details.qa[open] summary::after { content: '\2013'; }
.docs-body details.qa p { padding-bottom: 14px; }
@media (max-width: 1020px) {
  .docs2 { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .docs-side { position: static; max-height: none; overflow: visible; padding: 0; }
  .docs-toc { border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); padding: 4px 8px 10px; }
  .docs-toc summary { display: flex; justify-content: space-between; align-items: center; padding: 10px 6px; font-weight: 800; cursor: pointer; list-style: none; }
  .docs-toc summary::-webkit-details-marker { display: none; }
  .docs-toc summary::after { content: '\25BE'; color: var(--muted); }
  .docs-toc:not([open]) { padding-bottom: 4px; }
  .fw-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .fw-cards { grid-template-columns: 1fr; }
  .docs-body h2 { font-size: 24px; }
  .code pre { font-size: 12.5px; padding: 14px; }
  .fw-switch { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .docs-search > kbd { display: none; }
}

/* Grid and flex children shrink to the phone's width instead of their widest content: a
   1fr column holds its min-content, which pushed the page to ~565px on a 390px phone. */
.hero-copy, .hero-stage, .facts, .hero-cta { min-width: 0; }

/* In-game screenshots: wide frames, two across on desktop, one on phones. */
.mosaic.ingame { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic.ingame figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
@media (max-width: 760px) { .mosaic.ingame { grid-template-columns: minmax(0, 1fr); } }

/* Phones: nothing in the hero may widen the page. The stage glow and the 3D stage were wider
   than a 390 px screen, so mobile browsers laid the page out ~560 px wide and zoomed it out. */
@media (max-width: 760px) {
  .hero { overflow: hidden; }
  .hero-stage, .hero-copy { max-width: 100%; }

}
/* Phones: the 3D handset centred and sized to the screen, not pushed off the right edge. */
@media (max-width: 760px) {
  .hero-stage { justify-items: center; width: 100%; }
  .hero-3d { width: min(84vw, 340px); max-height: 62vh; margin: 0 auto; }
}
@media (max-width: 760px) { .hero-3d .hero-canvas { transform: translateX(-24%); } }
