/* DisplayApps — site styles (v3: media tiles, content inside the picture) */
:root {
  --bg: #0b0c0f;
  --bg-2: #121418;
  --ink: #f5f6f8;
  --ink-2: rgba(245,246,248,.78);
  --muted: rgba(245,246,248,.55);
  --line: rgba(255,255,255,.1);
  --blue: #1c65e6;
  --blue-hover: #3d7cf0;
  --hud: rgba(10, 12, 16, 0.6);
  --hud-line: rgba(255, 255, 255, 0.14);
  --wrap: 1280px;
  --radius: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .35em; line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9cc0ff; margin: 0 0 14px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none !important; }
}

/* pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .98rem; cursor: pointer; white-space: nowrap; color: #fff;
  transition: transform .25s var(--ease), background .2s, border-color .2s;
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: scale(.98); }
.pill-blue { background: var(--blue); }
.pill-blue:hover { background: var(--blue-hover); }
.pill-glass { background: rgba(255,255,255,.16); backdrop-filter: blur(12px); border-color: rgba(255,255,255,.22); }
.pill-glass:hover { background: rgba(255,255,255,.26); }
.pill-light { background: #fff; color: #0b0c0f; }
.pill-light:hover { background: #e9ebef; }
.pill-nav { height: 40px; padding: 0 18px; font-size: .9rem; background: #fff; color: #0b0c0f; }
.pill-sm { height: 40px; padding: 0 16px; font-size: .88rem; }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; transition: background .3s; }
.nav.solid { background: rgba(11,12,15,.7); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.wordmark span { color: #9cc0ff; }
.nav-links { display: flex; gap: 26px; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.nav-links a:hover { color: #fff; }

/* media base */
.media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 55%, rgba(0,0,0,.42), rgba(0,0,0,.12) 70%), linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 70%, rgba(0,0,0,.6)); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: 900px; padding: 140px 24px 200px; animation: rise 1.2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.hero h1 { text-shadow: 0 10px 40px rgba(0,0,0,.35); }
.hero-sub { font-size: 1.2rem; color: rgba(255,255,255,.9); max-width: 620px; margin: 18px auto 0; text-shadow: 0 4px 20px rgba(0,0,0,.4); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.hero-apps { position: absolute; z-index: 3; left: 0; right: 0; bottom: 36px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 0 24px; }
.hero-app { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(12,14,18,.55); border: 1px solid var(--hud-line); backdrop-filter: blur(12px); font-weight: 700; font-size: .92rem; cursor: pointer; color: #fff; font-family: inherit; transition: transform .25s var(--ease), background .2s; }
.hero-app img { width: 30px; height: 30px; border-radius: 9px; }
.hero-app:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }
.vid-toggle { position: absolute; z-index: 3; right: 24px; bottom: 36px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hud-line); background: rgba(12,14,18,.55); backdrop-filter: blur(12px); color: #fff; display: grid; place-items: center; cursor: pointer; }
.vid-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.vid-toggle.paused { background: #fff; color: #0b0c0f; }

/* HUD: what the wearer sees */
.hud {
  position: absolute; z-index: 3; color: #fff;
  background: var(--hud); border: 1px solid var(--hud-line); border-radius: 22px;
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(0,0,0,.4), 0 0 60px rgba(160,200,255,.1);
  padding: 16px; width: 300px; font-size: 15px;
}
.hud::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 80% at 50% -20%, rgba(255,255,255,.14), transparent 60%); }
.float { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hud-status { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.hud-chip { padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.12); font-weight: 600; font-size: 12px; }
.hud-chip.live { background: #e0245e; color: #fff; }
.hud-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hud-tile { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1.5px solid transparent; font-weight: 600; transition: transform .45s var(--ease), border-color .3s, background .3s; }
.hud-tile img { width: 30px; height: 30px; border-radius: 9px; }
.hud-tile.is-focus { border-color: #fff; background: rgba(255,255,255,.14); transform: scale(1.03); }
.hud-hint { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.55); text-align: center; }
.hud-big { font-size: 60px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-align: center; padding: 12px 0 10px; font-variant-numeric: tabular-nums; }
.hud-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; margin: 4px 0 4px; }
.hud-bar i { display: block; height: 100%; background: #fff; transition: width 1s linear; }
.hud-actions { display: flex; gap: 8px; margin-top: 10px; }
.hud-actions span { flex: 1; text-align: center; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.08); font-weight: 700; border: 1.5px solid transparent; font-size: 14px; }
.hud-actions span.is-focus { border-color: #fff; background: rgba(255,255,255,.16); }
.hud-list { display: flex; flex-direction: column; gap: 8px; }
.hud-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1.5px solid transparent; transition: border-color .3s, background .3s, transform .45s var(--ease); }
.hud-row img { width: 34px; height: 34px; border-radius: 10px; }
.hud-row > span { min-width: 0; flex: 1; }
.hud-row b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-row small { display: block; font-size: 12px; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-row.is-focus { border-color: #fff; background: rgba(255,255,255,.14); transform: scale(1.02); }
.hud-line { font-size: 15px; padding: 2px 0; }
.hud-line.muted { color: rgba(255,255,255,.6); font-size: 13px; }
.hud-video { position: relative; height: 120px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #1b1d22, #2a2d35); display: flex; align-items: flex-end; padding: 10px 12px; font-weight: 700; font-size: 14px; }
.hud-video.purple { background: linear-gradient(135deg, #2a1b3d, #6441a5); }
.hud-video i { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: rgba(255,255,255,.9); }
.hud-video i::after { content: ""; position: absolute; left: 16px; top: 12px; border-left: 14px solid #0b0c0f; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.hud-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; aspect-ratio: 12 / 8; }
.hud-grid i { display: block; border-radius: 2px; background: rgba(255,255,255,.06); }
.hud-grid i.s { background: #7cf0c8; }
.hud-grid i.f { background: #ff6b6b; }
.hud-msg { padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,.08); font-size: 14px; margin-top: 8px; line-height: 1.35; min-height: 38px; }
.hud-msg.me { background: rgba(28,101,230,.5); margin-left: 40px; }
.hud-2048 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.hud-2048 b { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: #eee4da; color: #776e65; font-size: 15px; font-weight: 800; }
.hud-2048 .t8, .hud-2048 .t16, .hud-2048 .t32, .hud-2048 .t64 { background: #f59563; color: #fff; }
.hud-2048 .t128, .hud-2048 .t256, .hud-2048 .t512 { background: #edc850; color: #fff; }
.hud-bricks { height: 54px; background: repeating-linear-gradient(90deg, #ff6b6b 0 24px, transparent 24px 28px), repeating-linear-gradient(0deg, transparent 0 12px, rgba(10,12,16,.9) 12px 15px); border-radius: 8px; }
.hud-paddle { width: 50px; height: 8px; border-radius: 4px; background: #fff; margin: 36px auto 4px; animation: paddle 2.4s ease-in-out infinite; }
@keyframes paddle { 0%, 100% { transform: translateX(-40px); } 50% { transform: translateX(40px); } }
.hud-icon-only { display: grid; place-items: center; padding: 24px; }
.hud-icon-only img { width: 56px; height: 56px; border-radius: 16px; }
.hud[data-try], .hud [data-try] { cursor: pointer; }
button.hud-tile, button.hud-row { font: inherit; color: #fff; text-align: left; width: 100%; }
.hud-tile:hover, .hud-row:hover, .hud-actions span[data-try]:hover, .hud-video[data-try]:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.16); }
.hud-video[data-try] { border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.hud-video i { transition: transform .2s; }
.hud-video[data-try]:hover i { transform: scale(1.08); }
.hud[data-try]:hover { border-color: rgba(255,255,255,.35); box-shadow: 0 30px 80px rgba(0,0,0,.4), 0 0 70px rgba(160,200,255,.22); }
.hud-tile:active, .hud-row:active, .hud-actions span[data-try]:active { transform: scale(.97); }
.hud-hero { right: max(24px, calc((100% - var(--wrap)) / 2)); bottom: 120px; width: 300px; }
.hud-tile-preview { right: 22px; top: 22px; width: 290px; }
.hud-tile-preview.hud-sm { width: 230px; padding: 12px; font-size: 13px; border-radius: 18px; }
.hud-sm .hud-big { font-size: 44px; padding: 8px 0 6px; }
.hud-sm .hud-video { height: 92px; }
.hud-launcher-large { width: 340px; right: 40px; top: 50%; transform: translateY(-50%); }
.hud-mini { width: 220px; right: 18px; top: 18px; padding: 12px 14px; font-size: 14px; }

/* sections */
.section { padding: 64px 0; }
.section-title { margin-bottom: 26px; }
.section-title p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head .section-title { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { font: inherit; font-weight: 500; color: #fff; background: rgba(255,255,255,.06); border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px; min-width: 200px; outline: none; transition: border-color .2s; }
.search::placeholder { color: var(--muted); }
.search:focus { border-color: rgba(255,255,255,.5); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 600; font-size: .9rem; color: var(--ink-2); background: rgba(255,255,255,.06); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: all .2s; }
.chip:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.chip.active { background: #fff; color: #0b0c0f; border-color: #fff; }

/* tiles: the picture is the card, everything lives inside */
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); min-height: 420px; display: flex; align-items: flex-end; isolation: isolate; }
.tile .media { transition: transform 1.4s var(--ease); z-index: 0; }
.tile:hover .media { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.72) 100%); pointer-events: none; }
.tile-copy { position: relative; z-index: 2; padding: 30px; max-width: 560px; }
.tile-copy p:not(.kicker) { color: rgba(255,255,255,.86); font-size: 1.02rem; }
.tile-copy h3 { text-shadow: 0 6px 30px rgba(0,0,0,.4); }
.tile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tile-actions .pill { height: 46px; padding: 0 22px; font-size: .95rem; }
.tile-copy-left { max-width: 620px; }
.tile-copy .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #0b0c0f; font-weight: 800; margin-bottom: 14px; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile-8 { grid-column: span 8; min-height: 520px; }
.tile-4 { grid-column: span 4; min-height: 520px; }
.tile-6 { grid-column: span 6; min-height: 460px; }
.tile-4 .tile-copy, .tile-6 .tile-copy { max-width: 100%; }
.tile-4 .tile-copy h3 { font-size: 1.6rem; }
.tile-wide { min-height: 600px; }
.tile-dev { min-height: 480px; }
.tile-dev::after { background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.1) 100%); }
.tile-wide::after { background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.1) 100%); }

/* all-apps grid */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.card { min-height: 380px; }
.card .tile-copy { padding: 24px; width: 100%; max-width: 100%; }
.card .tile-copy h3 { font-size: 1.5rem; margin-bottom: .2em; }
.card .tile-copy p:not(.kicker) { font-size: .95rem; margin-bottom: 0; }
.card .tile-actions .pill { height: 40px; padding: 0 16px; font-size: .88rem; }
.card-icon { position: absolute; z-index: 2; left: 24px; top: 24px; width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.card .hud { right: 18px; top: 18px; width: 200px; padding: 12px; font-size: 13px; border-radius: 16px; }
.card .hud-big { font-size: 40px; padding: 8px 0 6px; }
.card .hud-row { padding: 7px 9px; gap: 9px; }
.card .hud-row img { width: 26px; height: 26px; border-radius: 7px; }
.card .hud-row b { font-size: 13px; }
.card .hud-row small { font-size: 11px; }
.card .hud-video { height: 80px; font-size: 12px; }
.card .hud-grid { aspect-ratio: 12 / 7; }
.card .hud-msg { font-size: 12px; padding: 7px 10px; min-height: 0; }
.card-tag { position: absolute; z-index: 2; right: 18px; bottom: 24px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* setup */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile-step { min-height: 460px; }

/* detail page */
.detail-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 35%, rgba(0,0,0,.8) 100%); }
.detail-hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 60px; padding-top: 140px; }
.back { display: inline-block; margin-bottom: 26px; font-weight: 600; color: var(--ink-2); }
.detail-head { display: flex; gap: 24px; align-items: center; }
.detail-icon { width: 96px; height: 96px; border-radius: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.detail-head h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 6px; }
.detail-head .lead { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 10px; }
.meta { color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; font-size: .92rem; font-weight: 600; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.detail-body { padding: 70px 0 100px; }
.detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.detail-grid h2 { font-size: 1.5rem; margin: 1.6em 0 .4em; }
.detail-grid h2:first-child { margin-top: 0; }
.detail-grid p { color: var(--ink-2); font-size: 1.05rem; }
.features { padding-left: 20px; color: var(--ink-2); }
.features li { margin-bottom: 6px; }
code.url { display: block; padding: 14px 16px; word-break: break-all; background: rgba(255,255,255,.06); border-radius: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
.detail-qr { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 24px; padding: 28px; text-align: center; }
.qr { display: inline-block; background: #fff; padding: 12px; border-radius: 14px; margin: 8px 0 12px; }
.qr img, .qr canvas { display: block; }
.keybox { background: rgba(28,101,230,.12); border: 1px solid rgba(28,101,230,.35); border-radius: 20px; padding: 22px; margin-bottom: 22px; }
.keybox h2 { margin-top: 0 !important; }
.keybox input { width: 100%; font: inherit; color: #fff; background: rgba(0,0,0,.35); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; margin: 8px 0 12px; }
.keybox input:focus { border-color: rgba(255,255,255,.5); }
.keybox .small { margin: 0; }
.keybox a { color: #9cc0ff; text-decoration: underline; }

/* live lens inside a tile (Try in lens) */
.hud-live { width: 380px; padding: 12px; z-index: 5; animation: none; cursor: default; }
.hud-live.hud-hero { bottom: 40px; }
.tile .hud-live { width: 300px; top: 14px; right: 14px; }
.tile .hud-live .live-actions { display: none; }
.card .hud-live { width: 244px; top: 10px; right: 10px; }
.tile-wide .hud-live { width: 380px; top: 50%; transform: translateY(-50%); }
.tile-wide .hud-live .live-actions { display: flex; }
.hero.has-live .hero-inner { padding-bottom: 640px; transition: padding .4s var(--ease), transform .4s var(--ease); }
@media (min-width: 1200px) { .hero.has-live .hero-inner { padding-bottom: 200px; transform: translateX(-230px); } }
.hud-live.hud-launcher-large { width: 380px; }
.hud-live.hud-static { position: relative; width: 100%; margin-bottom: 22px; }
.hud-live .hud-status { margin-bottom: 10px; }
.live-title { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 13px; }
.live-title i { width: 8px; height: 8px; border-radius: 50%; background: #9cc0ff; box-shadow: 0 0 10px #9cc0ff; }
.live-title small { color: rgba(255,255,255,.55); font-weight: 600; }
.live-close { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--hud-line); background: rgba(255,255,255,.08); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.live-close:hover { background: rgba(255,255,255,.2); }
.lens { position: relative; width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--hud-line); }
.lens iframe { position: absolute; left: 0; top: 0; width: 600px; height: 600px; border: 0; transform-origin: 0 0; background: #000; }
.live-pad { display: flex; gap: 6px; margin-top: 10px; }
.dk { flex: 1; height: 42px; border-radius: 12px; border: 1.5px solid var(--hud-line); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; font: inherit; font-weight: 700; font-size: .82rem; transition: background .15s, transform .15s; }
.dk:hover { background: rgba(255,255,255,.18); }
.dk:active, .dk.pressed { transform: scale(.94); background: rgba(28,101,230,.6); }
.dk svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dk.pinch { flex: 1.4; background: var(--blue); border-color: transparent; }
.dk.pinch:hover { background: var(--blue-hover); }
.dk.back { flex: 1.1; }
.live-actions { display: flex; gap: 8px; margin-top: 10px; }
.live-actions .pill { flex: 1; height: 38px; padding: 0 12px; font-size: .85rem; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0,0,0,.7); backdrop-filter: blur(8px); padding: 20px; overflow: auto; }
.modal-card { position: relative; width: min(420px, 100%); background: #fff; color: #0b0c0f; border-radius: 24px; padding: 32px; text-align: center; box-shadow: 0 40px 100px rgba(0,0,0,.5); animation: pop .35s var(--ease); }
.modal-card .muted { color: #6b7280; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #6b7280; font-size: 28px; cursor: pointer; line-height: 1; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; margin-top: 40px; }
.footer .wordmark { display: inline-block; margin-bottom: 14px; }
.footer-inner p { max-width: 760px; }
.footer a { color: #9cc0ff; }

/* responsive */
@media (max-width: 1200px) {
  .hero-inner { padding-bottom: 340px; }
}
@media (max-width: 1000px) {
  .tile-8, .tile-4, .tile-6 { grid-column: span 12; min-height: 460px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .hud-launcher-large { right: 22px; top: 22px; transform: none; width: 280px; }
  .hud-live.hud-launcher-large { width: 360px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero-inner { padding: 120px 20px 420px; }
  .hud-hero { left: 20px; right: 20px; width: auto; bottom: 110px; }
  .hero-apps { bottom: 24px; }
  .vid-toggle { display: none; }
  .grid { grid-template-columns: 1fr; }
  .tile { min-height: 440px; }
  .tile-copy { padding: 22px; }
  .hud-tile-preview, .hud-tile-preview.hud-sm { width: 200px; right: 14px; top: 14px; padding: 10px; font-size: 12px; }
  .hud-tile-preview .hud-big { font-size: 36px; }
  .hud-launcher-large { width: 220px; right: 14px; top: 14px; }
  .section { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .detail-head { flex-direction: column; align-items: flex-start; }
  .hud-live, .hud-live.hud-tile-preview, .hud-live.hud-launcher-large, .hud-live.hud-mini { left: 12px; right: 12px; top: 12px; width: auto; }
  .hud-live.hud-hero { top: auto; bottom: 90px; }
}

/* ===== nav tools: theme + language ===== */
.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(12,14,18,.45); backdrop-filter: blur(10px); color: #fff; cursor: pointer; display: grid; place-items: center; font: inherit; font-weight: 700; font-size: .8rem; letter-spacing: .04em; }
.icon-btn:hover { background: rgba(255,255,255,.16); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn .moon { display: none; }
[data-theme="light"] .icon-btn .sun { display: none; }
[data-theme="light"] .icon-btn .moon { display: block; }
.lang { position: relative; }
.lang-list { position: absolute; right: 0; top: 46px; display: none; flex-direction: column; min-width: 150px; padding: 6px; border-radius: 14px; background: #15171c; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.5); z-index: 50; }
.lang.open .lang-list { display: flex; }
.lang-list a { padding: 9px 12px; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.lang-list a:hover, .lang-list a.active { background: rgba(255,255,255,.08); color: #fff; }

/* ===== light theme ===== */
[data-theme="light"] { --bg: #f4f5f8; --bg-2: #ffffff; --ink: #0b0c0f; --ink-2: rgba(11,12,15,.74); --muted: rgba(11,12,15,.52); --line: rgba(11,12,15,.1); }
[data-theme="light"] .nav.solid { background: rgba(244,245,248,.82); }
[data-theme="light"] .nav.solid .wordmark, [data-theme="light"] .nav.solid .nav-links a { color: var(--ink); }
[data-theme="light"] .nav.solid .icon-btn { color: var(--ink); background: rgba(11,12,15,.06); border-color: rgba(11,12,15,.14); }
[data-theme="light"] .nav.solid .pill-nav { background: var(--ink); color: #fff; }
[data-theme="light"] .lang-list { background: #fff; }
[data-theme="light"] .lang-list a:hover, [data-theme="light"] .lang-list a.active { background: rgba(11,12,15,.06); color: var(--ink); }
[data-theme="light"] .section-title p, [data-theme="light"] .section-title h2, [data-theme="light"] h2 { color: var(--ink); }
[data-theme="light"] .search { background: #fff; color: var(--ink); border-color: var(--line); }
[data-theme="light"] .search::placeholder { color: var(--muted); }
[data-theme="light"] .chip { background: #fff; color: var(--ink-2); border-color: var(--line); }
[data-theme="light"] .chip:hover { color: var(--ink); border-color: rgba(11,12,15,.4); }
[data-theme="light"] .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
[data-theme="light"] .footer { background: #fff; }
[data-theme="light"] .footer .wordmark { color: var(--ink); }
[data-theme="light"] .modal-card { background: #fff; }
[data-theme="light"] .detail-body p, [data-theme="light"] .detail-grid p, [data-theme="light"] .features { color: var(--ink-2); }
[data-theme="light"] code.url { background: #fff; border: 1px solid var(--line); color: var(--ink); }
[data-theme="light"] .detail-qr { background: #fff; border-color: var(--line); }
[data-theme="light"] .keybox { background: rgba(28,101,230,.08); }
[data-theme="light"] .keybox input { background: #fff; color: var(--ink); }
[data-theme="light"] .hud-live { color: #fff; }
[data-theme="light"] .article-page { color: var(--ink); }
[data-theme="light"] .article-page .panel { background: #fff; }

/* ===== article page (developer mode guide) ===== */
.article-page { max-width: 820px; margin: 0 auto; padding: 140px 24px 80px; }
.article-page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .4em; }
.article-page .lead { font-size: 1.2rem; color: var(--ink-2); margin-bottom: 1.6em; }
.article-page h2 { font-size: 1.6rem; margin: 1.8em 0 .5em; }
.article-page h3 { font-size: 1.15rem; margin: 1.2em 0 .3em; }
.article-page p, .article-page li { color: var(--ink-2); font-size: 1.05rem; line-height: 1.65; }
.article-page ol, .article-page ul { padding-left: 22px; }
.article-page li { margin-bottom: .5em; }
.article-page .panel { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin: 1.2em 0; }
.article-page .panel p:last-child { margin-bottom: 0; }
.article-page .steps-list li { margin-bottom: 1.1em; }
.article-page .steps-list b { color: var(--ink); }
.article-page .faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.article-page .faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 1.05rem; list-style: none; }
.article-page .faq summary::-webkit-details-marker { display: none; }
.article-page .faq details p { margin: 10px 0 0; }
.article-page .cta { justify-content: flex-start; }
.article-page .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5em; }
.article-page .toc a { font-size: .9rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.article-page .toc a:hover { color: var(--ink); }
.article-page img.shot { border-radius: 16px; border: 1px solid var(--line); margin: 1em 0; }
/* media tiles keep white copy in both themes */
.tile, .card, .hero, .hud, .hero-app { color: #fff; }
.tile-copy h3, .tile-copy p:not(.kicker), .card .tile-copy h3 { color: #fff; }
.tile-copy p:not(.kicker) { color: rgba(255,255,255,.86); }
[data-theme="light"] .hero-app { color: #fff; }
/* nav: never wrap, hide links before they collide with the tools */
.nav-inner { flex-wrap: nowrap; }
.nav-links { flex-wrap: nowrap; white-space: nowrap; min-width: 0; overflow: hidden; }
.nav-links a { white-space: nowrap; }
.nav-tools { flex-shrink: 0; }
@media (max-width: 1180px) { .nav-links { display: none; } }
@media (max-width: 560px) { .nav .pill-nav { display: none; } }
/* hero app chips: one scrollable row on phones so they never collide with the HUD */
@media (max-width: 720px) {
  .hero-apps { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 0 20px 6px; scrollbar-width: none; }
  .hero-apps::-webkit-scrollbar { display: none; }
  .hero-app { flex: 0 0 auto; }
  .hud-hero { bottom: 96px; }
}

/* mobile menu */
.menu-btn { display: none; }
@media (max-width: 1180px) {
  .menu-btn { display: grid; }
  .nav.menu-open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; left: 0; right: 0; top: 100%; padding: 8px 12px 14px; background: #0b0c0f; border-bottom: 1px solid var(--line); white-space: normal; overflow: visible; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
  .nav.menu-open .nav-links a { padding: 13px 12px; border-radius: 12px; font-size: 1.05rem; color: #fff; }
  .nav.menu-open .nav-links a:hover { background: rgba(255,255,255,.08); }
  [data-theme="light"] .nav.menu-open .nav-links { background: #f4f5f8; }
  [data-theme="light"] .nav.menu-open .nav-links a { color: var(--ink); }
  .nav.menu-open { background: #0b0c0f; }
  [data-theme="light"] .nav.menu-open { background: #f4f5f8; }
}

/* more apps */
.more-apps { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
.more-apps .pill { min-width: 260px; }
[data-theme="light"] .more-apps .pill-glass { background: var(--ink); color: #fff; border-color: transparent; }
