/* =========================================================
   Modal: marketing site
   Palette pulled from the launcher UI: near-black navy,
   layered slate surfaces and the signature sky-blue accent.
   ========================================================= */

/* Inter, served from this site (latin subset) so visitors' browsers never contact a font CDN.
   Licensed under the SIL Open Font License: assets/fonts/LICENSE-OFL.txt */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/inter-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #080b0f;
  --bg-elev: #0c1117;
  --surface: #10161d;
  --surface-2: #151d26;
  --surface-3: #1a2430;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .12);

  --text: #eaf1f7;
  --muted: #94a2b0;
  --faint: #808d9a;   /* ≥ 4.9:1 on every surface (WCAG 1.4.3) */

  --accent: #5ec8f8;
  --accent-2: #a6e4ff;
  --accent-deep: #0e3550;
  --accent-ink: #04202f;
  --accent-soft: rgba(94, 200, 248, .12);

  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* keep anchored and focused content clear of the fixed nav */
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: rgba(94, 200, 248, .6); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
main:focus { outline: none; } /* focus target for the skip link only */

/* ---------- Accessibility helpers ---------- */
.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-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .8);
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; outline: 2px solid #fff; outline-offset: 3px; }

.ic {
  width: 1.15em; height: 1.15em;
  flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.grad {
  background: linear-gradient(100deg, var(--accent-2) 0%, var(--accent) 45%, #3b9fe0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; letter-spacing: -.01em;
  border-radius: 12px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(180deg, #7dd4fb 0%, var(--accent) 100%);
  color: var(--accent-ink);
  box-shadow:
    0 0 0 1px rgba(166, 228, 255, .5) inset,
    0 10px 30px -8px rgba(94, 200, 248, .55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(166, 228, 255, .7) inset,
    0 16px 40px -8px rgba(94, 200, 248, .7);
}

.btn-ghost {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .07); transform: translateY(-2px); }

/* "Coming soon" in place of the download button: a label, not a control, so it doesn't look clickable */
.soon {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 22px;
  border-radius: 12px;
  border: 1px dashed rgba(94, 200, 248, .45);
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  text-align: center; /* wraps on narrow phones instead of overflowing */
}
.soon .ic { width: 18px; height: 18px; color: var(--accent); }
.soon-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 11, 15, .72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 14px 24px;
  min-height: 68px; /* matches --nav-h in terms.css */
  display: flex; align-items: center;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px; letter-spacing: -.02em;
}
.brand img { border-radius: 9px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 40px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(90px);
}
.hero-glow.g1 {
  width: 820px; height: 520px; left: 50%; top: -220px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(94, 200, 248, .38), transparent);
}
.hero-glow.g2 {
  width: 900px; height: 600px; left: 50%; top: 560px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(59, 130, 220, .22), transparent);
}

.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* White edge where the hero ends; --edge (0 to 1) is driven by scroll in script.js */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: 200px; pointer-events: none;
  background:
    linear-gradient(90deg, transparent, #fff 50%, transparent) bottom / 100% 1px no-repeat,
    radial-gradient(ellipse 45% 14px at 50% 100%, rgba(255, 255, 255, .35), transparent) bottom / 100% 28px no-repeat,
    radial-gradient(ellipse 55% 100% at 50% 100%, rgba(255, 255, 255, .2), transparent 70%);
  opacity: var(--edge, 0);
}

.hero h1 {
  font-size: clamp(42px, 7.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 800;
}
.lead {
  margin-top: 24px;
  max-width: 640px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
}
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.hero-meta {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; justify-content: center; row-gap: 6px;
  font-size: 14px; color: var(--muted); font-weight: 500; /* sits over the hero glow on small screens */
}
.hero-meta li { display: inline-flex; align-items: center; }
.hero-meta li + li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); opacity: .6;
  margin: 0 12px;
}

/* Hero screenshot */
.hero-shot-wrap { margin-top: 72px; perspective: 2200px; }
.hero-shot {
  position: relative;
  --tilt: 22deg; --scale: .92;
  transform: rotateX(var(--tilt)) scale(var(--scale));
  transform-origin: 50% 0%;
  transition: transform .1s linear;
  will-change: transform;
}
.hero-frame {
  position: relative;
  border-radius: 18px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .06),
    0 50px 120px -30px rgba(0, 0, 0, .9),
    0 30px 140px -40px rgba(94, 200, 248, .45);
}
.hero-frame::after {
  /* soft glare across the top edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 30%);
}
.hero-frame img { border-radius: 11px; width: 100%; }

.float-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: rgba(16, 22, 29, .92); /* opaque enough that bright screenshot areas can't wash out the text */
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .8);
  animation: bob 6s ease-in-out infinite;
}
.float-chip b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.float-chip small { display: block; font-size: 12.5px; color: var(--muted); }
.fc-icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.fc-icon.play { background: var(--accent); color: var(--accent-ink); }
.fc-icon.play .ic { fill: currentColor; width: 16px; height: 16px; }
.fc1 { left: -34px; top: 34%; }
.fc2 { right: -30px; bottom: 16%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Brand cube (echoes the logo) */
.cube-float { position: absolute; z-index: 2; animation: bob 7s ease-in-out infinite; }
.cf1 { left: -70px; top: -60px; --s: 74px; }
.cf2 { right: -40px; top: 24%; --s: 46px; animation-delay: -2.5s; }
.cube {
  width: var(--s); height: var(--s);
  position: relative;
  transform-style: preserve-3d;
  animation: spin 18s linear infinite;
}
.cube .f {
  position: absolute; inset: 0;
  border-radius: 4px;
  backface-visibility: hidden;
}
.cube .front  { background: #d9f0ff; transform: translateZ(calc(var(--s) / 2)); }
.cube .back   { background: #0e3550; transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube .right  { background: #0e3550; transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube .left   { background: #bfe6fc; transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube .top    { background: #ffffff; transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube .bottom { background: #0a2a40; transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
@keyframes spin {
  from { transform: rotateX(-28deg) rotateY(0deg); }
  to   { transform: rotateX(-28deg) rotateY(360deg); }
}

/* ---------- Sections ---------- */
.section { padding: 130px 0; position: relative; }

.section-head {
  text-align: center; max-width: 720px; margin: 0 auto 64px;
}
.section-head.left { text-align: left; margin: 0; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-head h2, .privacy-copy h2, .cta h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 800;
}
.section-head p { margin-top: 18px; color: var(--muted); font-size: 18px; }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  padding: 30px;
  display: flex; flex-direction: column; gap: 26px;
  isolation: isolate;
  transition: border-color .3s, transform .4s var(--ease);
}
.card::before {
  /* pointer spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(94, 200, 248, .1), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: rgba(94, 200, 248, .22); }
.card:hover::before { opacity: 1; }
.span-4 { flex-direction: row; align-items: center; }
.span-4 .card-copy { flex: 1 1 42%; }
.span-4 .mock { flex: 1 1 58%; }

.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(94, 200, 248, .18);
  color: var(--accent);
  margin-bottom: 18px;
}
.card-icon .ic { width: 22px; height: 22px; }
.card h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

.card-sm { gap: 0; }
.card-sm .card-icon { margin-bottom: 20px; }

/* Mock UI pieces */
.mock {
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.mock-instances { display: grid; gap: 8px; }
/* Let grid items shrink, so user text-spacing overrides can't push the page sideways (WCAG 1.4.12) */
.bento > *, .mock, .mock-instances > *, .span-4 .card-copy { min-width: 0; }
.inst {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s;
}
.card:hover .inst:nth-child(1) { transform: translateX(4px); border-color: rgba(94, 200, 248, .3); }
/* The launcher's instance tile: its own picture, or its icon in the loader colour on a 16% tint of that colour.
   Content and colours come from the launcher (tools/sync-launcher.mjs). */
.inst-ico {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--c, var(--muted)) 16%, transparent);
  color: var(--c, var(--muted));
}
.inst-ico .ic { width: 18px; height: 18px; }
.inst-ico img { width: 100%; height: 100%; object-fit: cover; }
.inst-ico.add { background: transparent; border: 1.5px dashed var(--border-strong); color: var(--muted); }
.inst-body { flex: 1; min-width: 0; }
.inst-body b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inst-body small { display: block; font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inst.new { background: transparent; border-style: dashed; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
  font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, .06); color: var(--muted);
}
.tag.loader { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.mini-play {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
}
.mini-play .ic { width: 14px; height: 14px; fill: currentColor; }

.loaders { display: grid; gap: 8px; margin-top: auto; }
.loaders li {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 11px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
/* As in the launcher's New instance dialog */
.ld-tile {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: var(--c);
}
.ld-tile .ic { width: 17px; height: 17px; }
.ld-text { display: grid; min-width: 0; }
.ld-text b { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.ld-text small { font-size: 12.5px; line-height: 1.35; color: var(--muted); }

.mock-discover { display: grid; gap: 12px; margin-top: auto; }
.search {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid rgba(94, 200, 248, .3);
  box-shadow: 0 0 0 4px rgba(94, 200, 248, .07);
  font-size: 14.5px;
}
.search .ic { color: var(--muted); width: 17px; height: 17px; }
.caret {
  width: 2px; height: 18px; background: var(--accent); margin-left: -8px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600;
  background: rgba(255, 255, 255, .04); color: var(--muted);
  border: 1px solid var(--border);
}
.cat .ic { width: 13px; height: 13px; }
.cat.on { background: var(--accent-soft); color: var(--accent); border-color: rgba(94, 200, 248, .25); }
.result {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.r-thumb { width: 38px; height: 38px; border-radius: 9px; flex: none; object-fit: cover; background: var(--surface-3); }
.r-text { flex: 1; min-width: 0; display: grid; }
.r-text b, .r-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-text b { font-size: 14px; font-weight: 600; line-height: 1.35; }
.r-text small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.r-btn {
  font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
}

.mock-skins {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px;
  background:
    radial-gradient(circle at 30% 40%, rgba(94, 200, 248, .14), transparent 60%),
    var(--bg-elev);
}
.skin-stage { position: relative; display: grid; place-items: center; padding: 6px 30px 14px; }
.skin-view {
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55));
  animation: idle 3.6s ease-in-out infinite;
}
/* A gallery skin's front, cut from its 64×64 texture (--skin) at a whole number of pixels per texel */
.skin-fig { --px: 5px; position: relative; width: calc(16 * var(--px)); height: calc(32 * var(--px)); }
.skin-fig[hidden] { display: none; }
.skin-fig i {
  position: absolute;
  left: calc(var(--x) * var(--px)); top: calc(var(--y) * var(--px));
  width: calc(var(--w) * var(--px)); height: calc(var(--h) * var(--px));
  background: var(--skin) calc(var(--u) * var(--px) * -1) calc(var(--v) * var(--px) * -1) / calc(64 * var(--px)) calc(64 * var(--px)) no-repeat;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
.skin-fig i.o { transform: scale(1.07); }   /* the outer layer sits a little proud, as in 3D */
.skin-fig i.hat { transform: scale(1.125); }
.skin-shadow {
  width: 70px; height: 10px; border-radius: 50%;
  background: rgba(0, 0, 0, .5); filter: blur(4px);
  margin-top: 6px;
}
@keyframes idle { 50% { transform: translateY(-4px); } }
.swatches { display: grid; grid-template-columns: repeat(5, auto); gap: 10px; }
/* Each swatch is the skin's own face: hat layer over face, 8×8 texels */
.sw {
  --t: 4.5px;
  width: calc(8 * var(--t)); height: calc(8 * var(--t)); border-radius: 10px;
  background-color: var(--surface-3);
  background-image: var(--skin), var(--skin);
  background-size: calc(64 * var(--t)) calc(64 * var(--t));
  background-position: calc(-40 * var(--t)) calc(-8 * var(--t)), calc(-8 * var(--t)) calc(-8 * var(--t));
  background-repeat: no-repeat;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  outline: 2px solid transparent; outline-offset: 3px;
  transition: transform .2s var(--ease), outline-color .2s;
}
.sw:hover { transform: translateY(-2px); }
.sw.on { outline-color: var(--text); }
.sw:focus-visible { outline-color: var(--accent); }

/* ---------- Privacy ---------- */
.privacy::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 75% 50%, rgba(94, 200, 248, .08), transparent 70%);
}
.privacy { overflow-x: clip; } /* the decorative rings are wider than small screens */
.privacy-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center;
}
.privacy-grid > *, .rec-tile, .rec-head > div { min-width: 0; }
.privacy-copy p { margin-top: 22px; color: var(--muted); font-size: 18px; max-width: 480px; }
.checks { margin-top: 30px; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.checks .ic {
  width: 26px; height: 26px; padding: 5px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent); stroke-width: 2.6;
}
.checks em { font-style: normal; color: var(--accent-2); }

.privacy-visual {
  position: relative;
  padding: 40px 0;
  display: grid; place-items: center;
}
.pc-ring {
  position: absolute; left: 50%; top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(94, 200, 248, .14);
  transform: translate(-50%, -50%);
}
.pc-ring.r1 { width: 115%; aspect-ratio: 1; max-width: 640px; }
.pc-ring.r2 { width: 80%; aspect-ratio: 1; max-width: 460px; border-style: dashed; animation: rot 60s linear infinite; }
@keyframes rot { to { transform: translate(-50%, -50%) rotate(360deg); } }

.rec-panel {
  position: relative; width: 100%;
  border-radius: 20px; padding: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 80px -30px rgba(94, 200, 248, .35);
}
.rec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.rec-head b { font-size: 18px; letter-spacing: -.01em; }
.rec-head small { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.rec-head small .ic { width: 14px; height: 14px; color: var(--accent); }
.rec-refresh {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border);
}
.rec-refresh .ic { width: 14px; height: 14px; }
.rec-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rec-tile {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--border);
  padding-bottom: 14px;
}
/* The launcher's recommendation card: the project's banner (or its icon colour), its icon, title and why it was picked */
.rt-img {
  display: block; height: 96px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tint, #1a2430) 70%, #fff 12%), var(--tint, #1a2430));
}
.rt-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rt-body { position: relative; display: grid; justify-items: start; padding: 0 12px; }
.rt-icon {
  width: 40px; height: 40px; margin-top: -20px;
  border-radius: 10px; border: 2px solid var(--bg-elev);
  background: var(--surface-3); object-fit: cover;
}
.rt-title {
  margin-top: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rt-reason { margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.rt-tag {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600;
  padding: 3px 8px; border-radius: 7px;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px);
}
.rt-tag .ic { width: 12px; height: 12px; }

.shield-badge {
  position: absolute; right: -14px; top: 6px;
  width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #7dd4fb, var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 20px 40px -10px rgba(94, 200, 248, .6);
  transform: rotate(8deg);
  animation: bob 6s ease-in-out infinite;
}
.shield-badge .ic { width: 30px; height: 30px; stroke-width: 2.2; }

/* ---------- Steps ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  position: relative; counter-reset: step;
}
.steps::before {
  content: ""; position: absolute; left: 16%; right: 16%; top: 52px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 200, 248, .4), transparent);
}
.step {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
}
.step-n {
  position: absolute; top: 22px; right: 26px;
  font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .4); /* ≥ 3:1 for large text */
}
.step .card-icon { position: relative; background: var(--bg); }
.step h3 { font-size: 20px; letter-spacing: -.02em; }
.step p { color: var(--muted); margin-top: 6px; font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .25s, background .25s;
}
.faq details[open] { background: var(--surface-2); border-color: rgba(94, 200, 248, .2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  font-weight: 600; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--accent); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.faq em { font-style: normal; color: var(--accent-2); }

/* ---------- CTA ---------- */
.cta-section { padding-top: 40px; }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center;
  padding: 80px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, #0f1c27, #0b131a);
  border: 1px solid rgba(94, 200, 248, .18);
  display: flex; flex-direction: column; align-items: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
}
.cta-glow {
  position: absolute; z-index: -1; left: 50%; top: -260px; transform: translateX(-50%);
  width: 700px; height: 500px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(94, 200, 248, .35), transparent);
  filter: blur(40px);
}
.cta-logo {
  border-radius: 22px; margin-bottom: 28px;
  box-shadow: 0 20px 50px -10px rgba(94, 200, 248, .55);
  animation: bob 6s ease-in-out infinite;
}
.cta p { margin: 16px 0 34px; color: var(--muted); font-size: 18px; max-width: 460px; }
.cta small { margin-top: 18px; color: var(--faint); font-size: 13.5px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0 48px; margin-top: 90px; }
.footer-inner {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px 32px;
}
.footer .brand { font-size: 17px; }
.footer .brand img { border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 24px; font-size: 14.5px; color: var(--muted); }
.footer-links a { display: inline-block; padding: 6px 0; } /* ≥ 24px tall targets (WCAG 2.5.8) */
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.legal { font-size: 13px; color: var(--faint); }

/* Pause / play animations (WCAG 2.2.2) */
.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px; padding: 6px 12px; border-radius: 10px;
  border: 1px solid var(--border-strong);
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s, border-color .2s;
}
.motion-toggle:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.motion-toggle .ic { width: 14px; height: 14px; }
.motion-toggle .when-paused { display: none; }
.motion-paused .motion-toggle { color: var(--accent); border-color: rgba(94, 200, 248, .4); }
.motion-paused .motion-toggle .when-running { display: none; }
.motion-paused .motion-toggle .when-paused { display: block; }

/* While paused, every looping animation holds still and the hero lies flat */
.motion-paused *, .motion-paused *::before, .motion-paused *::after {
  animation-play-state: paused !important;
}
.motion-paused .hero-shot { --tilt: 0deg !important; --scale: 1 !important; }
.motion-paused .caret { opacity: 1; }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .fc1 { left: 12px; top: auto; bottom: -26px; }
  .fc2 { right: 12px; bottom: auto; top: -26px; }
  .cf1 { left: 18px; top: -64px; --s: 48px; }
  .cf2 { display: none; }
}

@media (max-width: 960px) {
  .span-4, .bento > .skins-card { grid-column: span 6; }
  .bento > .span-2:not(.card-sm) { grid-column: span 3; }
  .privacy-grid, .faq-wrap { grid-template-columns: 1fr; gap: 48px; }
  .section-head.left { text-align: center; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}

@media (max-width: 760px) {
  .hero { padding-top: 120px; }
  .hero-shot-wrap { margin-top: 56px; }
  .float-chip { display: none; }
  .cf1 { left: auto; right: 6px; top: -46px; --s: 40px; }

  .bento { grid-template-columns: 1fr; }
  .bento > .card, .bento > .span-2:not(.card-sm) { grid-column: auto; }
  .span-4 { flex-direction: column; align-items: stretch; }
  .card { padding: 24px; }
  .section { padding: 90px 0; }
  .section-head { margin-bottom: 44px; }
  .mock-skins { flex-direction: column; }
  .rec-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec-tile:last-child { display: none; }
  .rec-head { flex-direction: column; }
  .shield-badge { right: 4px; top: -6px; width: 52px; height: 52px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .container, .nav-inner { padding-inline: 16px; }
  .hero-cta .btn, .hero-cta .soon { width: 100%; }
  .swatches { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .sw { --t: 3.75px; } /* 30px faces */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-shot { --tilt: 0deg !important; --scale: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
  .motion-toggle { display: none; } /* nothing animates, so there is nothing to pause */
}
