/* ===========================================================================
   Gravity Station — public website design system
   Station HUD: deep-space ground, cyan instrument light, amber hull trim,
   bracketed panels. No external fonts or third-party requests.
   =========================================================================== */

:root {
  --ink:        #04070d;
  --ink-2:      #070c16;
  --panel:      #0a1220;
  --panel-2:    #0d1a2b;
  --panel-3:    #122438;

  --line:       rgba(120, 190, 240, 0.16);
  --line-2:     rgba(120, 190, 240, 0.30);

  --cyan:       #35d3ff;
  --cyan-soft:  #8fe3ff;
  --cyan-deep:  #0b6f95;
  --amber:      #ffb443;
  --amber-soft: #ffd79a;
  --alert:      #ff5a56;
  --green:      #4ade9b;

  --text:       #d7e8f6;
  --text-dim:   #9fb6c9;
  --text-mute:  #6d8499;

  --rad:        14px;
  --rad-sm:     8px;
  --shell:      1240px;
  --gut:        clamp(18px, 4vw, 40px);

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "DejaVu Sans Mono", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.7, 0.28, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
}

/* --- the sky ------------------------------------------------------------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 12% -8%,  rgba(53, 211, 255, 0.16), transparent 62%),
    radial-gradient(900px 700px at 92% 4%,    rgba(255, 180, 67, 0.09), transparent 60%),
    radial-gradient(1400px 900px at 50% 108%, rgba(24, 96, 160, 0.20), transparent 66%),
    linear-gradient(180deg, #04070d 0%, #060b15 40%, #04070d 100%);
}

.sky::before,
.sky::after {
  content: "";
  position: absolute;
  inset: -40%;
  background-repeat: repeat;
}

/* two star layers at different densities */
.sky::before {
  background-image:
    radial-gradient(1.4px 1.4px at 20px 30px,  rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.2px 1.2px at 130px 90px, rgba(180, 230, 255, 0.75), transparent),
    radial-gradient(1px 1px at 240px 180px,    rgba(255, 255, 255, 0.60), transparent),
    radial-gradient(1.6px 1.6px at 330px 60px, rgba(255, 220, 180, 0.60), transparent);
  background-size: 420px 320px;
  opacity: 0.55;
  animation: drift-a 240s linear infinite;
}

.sky::after {
  background-image:
    radial-gradient(1px 1px at 60px 120px,  rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 200px 40px,  rgba(140, 210, 255, 0.50), transparent),
    radial-gradient(1px 1px at 300px 260px, rgba(255, 255, 255, 0.40), transparent);
  background-size: 340px 300px;
  opacity: 0.4;
  animation: drift-b 400s linear infinite;
}

@keyframes drift-a { to { transform: translate3d(-420px, 160px, 0); } }
@keyframes drift-b { to { transform: translate3d(340px, -180px, 0); } }

/* faint hull grid over everything */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(90, 170, 220, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 170, 220, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
}

/* --- primitives ---------------------------------------------------------- */

.shell {
  width: min(100% - (var(--gut) * 2), var(--shell));
  margin-inline: auto;
}

a { color: var(--cyan-soft); text-decoration: none; }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: #f1f8ff;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.5rem, 3.1vw, 2.2rem); }
h3 { font-size: clamp(1.08rem, 1.9vw, 1.32rem); letter-spacing: -0.012em; }
h4 { font-size: 1rem; letter-spacing: 0; }

p  { margin: 0 0 1em; color: var(--text-dim); }
p.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text); }

ul, ol { color: var(--text-dim); padding-left: 1.15em; }
li { margin-bottom: 0.4em; }

strong { color: #eaf5ff; font-weight: 700; }

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  margin: 34px 0;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.muted { color: var(--text-mute); }
.small { font-size: 0.86rem; }
.center { text-align: center; }

/* --- panels -------------------------------------------------------------- */

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background:
    linear-gradient(180deg, rgba(18, 36, 56, 0.72), rgba(8, 15, 26, 0.86));
  box-shadow:
    0 1px 0 rgba(160, 220, 255, 0.06) inset,
    0 24px 60px -34px rgba(0, 0, 0, 0.9);
}

/* corner brackets — the station-panel signature */
.bracket::before,
.bracket::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--cyan);
  opacity: 0.55;
  pointer-events: none;
}

.bracket::before {
  top: -1px; left: -1px;
  border-right: 0; border-bottom: 0;
  border-top-left-radius: var(--rad);
}

.bracket::after {
  bottom: -1px; right: -1px;
  border-left: 0; border-top: 0;
  border-bottom-right-radius: var(--rad);
}

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(18, 36, 56, 0.55);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease),
              box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

.btn:hover {
  color: #fff;
  border-color: var(--cyan);
  background: rgba(30, 62, 90, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -16px rgba(53, 211, 255, 0.75);
}

.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  border-color: transparent;
  color: #04121a;
  background: linear-gradient(135deg, #6ee6ff, #22b6e8 55%, #1490c4);
  box-shadow: 0 14px 34px -18px rgba(53, 211, 255, 0.9);
}

.btn-primary:hover {
  color: #04121a;
  background: linear-gradient(135deg, #8bedff, #35c8f6 55%, #1aa3da);
}

.btn-amber {
  border-color: transparent;
  color: #1d1204;
  background: linear-gradient(135deg, #ffd08a, #ffb443 60%, #e8912a);
  box-shadow: 0 14px 34px -18px rgba(255, 180, 67, 0.8);
}

.btn-amber:hover { color: #1d1204; background: linear-gradient(135deg, #ffdda6, #ffc264 60%, #f5a13c); }

.btn-sm { padding: 9px 15px; font-size: 0.71rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* --- header -------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 8, 15, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: #fff;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  box-shadow: 0 0 22px -6px rgba(53, 211, 255, 0.65);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name b {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-name span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.mainnav { margin-left: auto; }

.mainnav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mainnav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}

.mainnav a svg {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: 0.8;
}

.mainnav a:hover {
  color: #fff;
  background: rgba(53, 211, 255, 0.1);
}

.mainnav .nav-cta { display: none; }

.mainnav a[aria-current="page"] {
  color: #fff;
  background: rgba(53, 211, 255, 0.14);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.topbar .btn { flex: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 9px 12px;
}

@media (max-width: 1160px) {
  .mainnav a { padding: 9px 8px; font-size: 0.78rem; }
  .mainnav a svg { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .topbar .topbar-cta { display: none; }

  .mainnav {
    position: fixed;
    inset: 68px 0 auto;
    margin: 0;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 12px var(--gut) 26px;
    /* fully opaque: the topbar's backdrop-filter makes a translucent drawer
       bleed the page behind it */
    background: #05090f;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  }

  .mainnav[data-open="true"] {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .mainnav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .mainnav a { padding: 13px 12px; font-size: 0.95rem; }
  .mainnav a svg { display: block; }
  .mainnav .nav-cta { display: block; margin-top: 10px; }
  /* .mainnav a wins on specificity, so restate the button's own ink here */
  .mainnav .nav-cta a,
  .mainnav .nav-cta a:hover { justify-content: center; color: #04121a; }
}

/* --- in-page tabs -------------------------------------------------------- */

.tabs { margin-top: 26px; }

.tablist {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 16, 27, 0.7);
  scrollbar-width: thin;
}

.tablist::-webkit-scrollbar { height: 4px; }
.tablist::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

.tablist button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 11px 17px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-mute);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}

.tablist button svg { width: 15px; height: 15px; flex: none; }

.tablist button:hover { color: var(--text); background: rgba(53, 211, 255, 0.08); }

.tablist button[aria-selected="true"] {
  color: #04121a;
  background: linear-gradient(135deg, #6ee6ff, #23b8ea);
  box-shadow: 0 8px 24px -14px rgba(53, 211, 255, 0.9);
}

.tabpanel { padding-top: 30px; }

/* progressive enhancement: without JS every panel stays in the flow */
[data-tabs-ready] .tabpanel[hidden] { display: none; }

.tabpanel > .panel-head {
  margin-bottom: 22px;
  max-width: 70ch;
}

/* --- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  mask-image: radial-gradient(90% 80% at 62% 34%, #000 12%, transparent 76%);
  -webkit-mask-image: radial-gradient(90% 80% at 62% 34%, #000 12%, transparent 76%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

.hero h1 { margin-bottom: 18px; }
.hero h1 .glow { color: var(--cyan); text-shadow: 0 0 34px rgba(53, 211, 255, 0.55); }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.hero-art img.robot {
  width: min(100%, 400px);
  filter: drop-shadow(0 0 46px rgba(53, 211, 255, 0.4)) drop-shadow(0 40px 50px rgba(0, 0, 0, 0.75));
  animation: hover-float 7s ease-in-out infinite;
}

@media (max-width: 900px) {
  .hero-art { min-height: 0; }
  .hero-art img.robot { width: min(58%, 230px); }
  .hero-art .ring { width: min(72%, 280px); }
  .hero-art .ring.inner { width: min(52%, 200px); }
}

@keyframes hover-float {
  0%, 100% { transform: translateY(-8px); }
  50%      { transform: translateY(10px); }
}

.hero-art::before {
  content: "";
  position: absolute;
  width: min(86%, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 211, 255, 0.22), transparent 62%);
  filter: blur(6px);
}

/* orbit ring behind the hero robot */
.hero-art .ring {
  position: absolute;
  width: min(90%, 460px);
  aspect-ratio: 1;
  border: 1px dashed rgba(53, 211, 255, 0.28);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}

.hero-art .ring.inner {
  width: min(66%, 330px);
  border-style: solid;
  border-color: rgba(255, 180, 67, 0.2);
  animation-duration: 42s;
  animation-direction: reverse;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 20, 33, 0.7);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.hero-stats b { color: var(--cyan); font-size: 0.9rem; }

/* --- sections ------------------------------------------------------------ */

.section { padding: clamp(46px, 7vw, 84px) 0; }
.section + .section { border-top: 1px solid rgba(120, 190, 240, 0.08); }

.section-head {
  max-width: 66ch;
  margin-bottom: clamp(24px, 4vw, 40px);
}

/* --- generic grids ------------------------------------------------------- */

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: linear-gradient(180deg, rgba(18, 36, 56, 0.6), rgba(8, 15, 26, 0.82));
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: 0 22px 46px -30px rgba(53, 211, 255, 0.6);
}

.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: rgba(53, 211, 255, 0.09);
  color: var(--cyan);
}

.card-icon svg { width: 21px; height: 21px; }

.card-icon.amber { color: var(--amber); background: rgba(255, 180, 67, 0.1); border-color: rgba(255, 180, 67, 0.32); }
.card-icon.alert { color: var(--alert); background: rgba(255, 90, 86, 0.1); border-color: rgba(255, 90, 86, 0.3); }
.card-icon.green { color: var(--green); background: rgba(74, 222, 155, 0.1); border-color: rgba(74, 222, 155, 0.3); }

/* stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }

.stat {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: rgba(9, 17, 29, 0.72);
}

.stat b {
  display: block;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cyan);
}

.stat span {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* --- steps --------------------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 14px; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: rgba(9, 17, 29, 0.66);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(53, 211, 255, 0.08);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 700;
}

.step h3 { margin-bottom: 5px; }
.step p { margin: 0; }

/* --- crew ---------------------------------------------------------------- */

.crew { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }

.crew-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(53, 211, 255, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(16, 32, 50, 0.7), rgba(7, 13, 23, 0.9));
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}

.crew-card:hover { transform: translateY(-4px); border-color: var(--line-2); }

.crew-card figure {
  margin: 0 0 14px;
  height: 190px;
  display: grid;
  place-items: end center;
}

.crew-card img {
  max-height: 100%;
  width: auto;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.8));
  transition: transform 0.26s var(--ease);
}

.crew-card:hover img { transform: translateY(-6px) scale(1.03); }

.crew-card .tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.crew-card h3 { margin: 6px 0 6px; font-size: 1.05rem; }
.crew-card p { margin: 0; font-size: 0.9rem; }

/* --- screenshot rails ---------------------------------------------------- */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.shot {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #05090f;
  cursor: zoom-in;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.shot:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 26px 54px -30px rgba(53, 211, 255, 0.8);
}

.shot img { width: 100%; height: auto; }

.shot figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(3, 7, 13, 0.94));
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

/* phone frame variant */
.phone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
}

.phone {
  position: relative;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(30, 52, 74, 0.9), rgba(8, 14, 24, 0.95));
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.95);
  cursor: zoom-in;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.phone:hover {
  transform: translateY(-5px);
  box-shadow: 0 34px 66px -30px rgba(53, 211, 255, 0.55);
}

.phone img { border-radius: 17px; width: 100%; }

.phone figcaption {
  padding: 10px 4px 2px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-align: center;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 4vh 4vw;
  background: rgba(2, 5, 10, 0.94);
  backdrop-filter: blur(6px);
}

.lightbox[data-open="true"] { display: grid; }

.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 40px 90px -40px rgba(53, 211, 255, 0.6);
}

.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(10, 20, 33, 0.9);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox button:hover { border-color: var(--cyan); color: #fff; }

/* --- world tiles --------------------------------------------------------- */

.world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 14px;
}

.world {
  position: relative;
  aspect-ratio: 9 / 14;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease);
}

.world:hover { transform: translateY(-4px) scale(1.015); border-color: var(--cyan); }

.world span {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 12px 12px;
  background: linear-gradient(transparent, rgba(3, 7, 13, 0.95));
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #eaf5ff;
}

/* --- gravity demo -------------------------------------------------------- */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(260px, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

@media (max-width: 800px) { .demo { grid-template-columns: 1fr; } }

.board {
  --n: 8;
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--rad);
  background:
    linear-gradient(180deg, rgba(14, 30, 48, 0.85), rgba(5, 11, 20, 0.95));
  box-shadow: 0 0 60px -30px rgba(53, 211, 255, 0.7) inset;
}

.board-cells {
  position: absolute;
  inset: 10px;
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  grid-template-rows: repeat(var(--n), 1fr);
  gap: 3px;
}

.board-cells i {
  border-radius: 4px;
  background: rgba(120, 190, 240, 0.045);
  box-shadow: inset 0 0 0 1px rgba(120, 190, 240, 0.05);
}

.piece {
  position: absolute;
  border-radius: 6px;
  transition: left 0.34s var(--ease), top 0.34s var(--ease);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
}

.piece.wall { background: linear-gradient(160deg, #4c6076, #26323f); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); transition: none; }
.piece.block { background: linear-gradient(160deg, #ff8b6a, #d64a2c); box-shadow: 0 0 16px -4px rgba(255, 120, 80, 0.9); }
.piece.core  { background: linear-gradient(160deg, #7ef0ff, #16a6d8); box-shadow: 0 0 18px -2px rgba(53, 211, 255, 0.95); }
.piece.goal  { background: rgba(74, 222, 155, 0.14); border: 1px dashed rgba(74, 222, 155, 0.85); transition: none; }
.piece.goal.filled { background: rgba(74, 222, 155, 0.5); }

.dpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.dpad button {
  padding: 14px 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(16, 32, 50, 0.7);
  color: var(--cyan);
  cursor: pointer;
  transition: background 0.16s var(--ease), transform 0.12s var(--ease);
}

.dpad button:hover { background: rgba(53, 211, 255, 0.18); }
.dpad button:active { transform: scale(0.94); }
.dpad button svg { width: 20px; height: 20px; margin-inline: auto; }
.dpad .spacer { visibility: hidden; }

.readout {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(6, 12, 21, 0.8);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.readout b { color: var(--cyan); }
.readout.win b { color: var(--green); }

/* --- store / download ---------------------------------------------------- */

.store-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.store-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(53, 211, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(16, 32, 50, 0.7), rgba(7, 13, 23, 0.9));
}

.store-card > .pill,
.store-card > .store-badge,
.store-card > .btn { align-self: flex-start; }

.store-card.soon { background: linear-gradient(180deg, rgba(30, 24, 16, 0.62), rgba(9, 12, 20, 0.9)); }

.store-badge img { height: 54px; width: auto; }
.store-badge.apple img { height: 54px; }

.qr-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 12, 21, 0.7);
}

.qr-card img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: #e8f6ff;
  padding: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(53, 211, 255, 0.1);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.pill.amber { color: var(--amber); border-color: rgba(255, 180, 67, 0.4); background: rgba(255, 180, 67, 0.1); }
.pill.green { color: var(--green); border-color: rgba(74, 222, 155, 0.4); background: rgba(74, 222, 155, 0.1); }

.pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

/* spec table */
.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.spec th,
.spec td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec th {
  width: 40%;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.spec td { color: var(--text); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

.table-wrap { overflow-x: auto; }

/* --- video --------------------------------------------------------------- */

.video-frame {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--rad);
  overflow: hidden;
  background: #04070d;
  box-shadow: 0 34px 80px -44px rgba(53, 211, 255, 0.7);
}

.video-frame video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }

.video-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.reel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.beat {
  position: relative;
  min-height: 210px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.22s var(--ease);
}

.beat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 14, 0.35) 0%, rgba(4, 8, 14, 0.92) 78%);
}

.beat:hover { transform: translateY(-4px); }
.beat > * { position: relative; }
.beat .t { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; color: var(--amber); }
.beat h3 { margin: 6px 0 6px; font-size: 1.02rem; }
.beat p { margin: 0; font-size: 0.88rem; }

/* --- prose (legal pages) ------------------------------------------------- */

.prose { max-width: 76ch; }
.prose h2 { margin-top: 34px; font-size: clamp(1.2rem, 2.3vw, 1.5rem); }
.prose h3 { margin-top: 24px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose li { color: var(--text-dim); }

.notice {
  padding: 18px 20px;
  border: 1px solid rgba(53, 211, 255, 0.32);
  border-left-width: 3px;
  border-radius: var(--rad-sm);
  background: rgba(53, 211, 255, 0.07);
}

.notice p:last-child { margin-bottom: 0; }
.notice.amber { border-color: rgba(255, 180, 67, 0.4); background: rgba(255, 180, 67, 0.07); }

/* --- faq ----------------------------------------------------------------- */

details.faq {
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  background: rgba(9, 17, 29, 0.66);
  margin-bottom: 10px;
}

details.faq summary {
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 700;
  color: #eaf5ff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--cyan); font-family: var(--mono); }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding: 0 18px 16px; }
details.faq p:last-child { margin-bottom: 0; }

/* --- cta band ------------------------------------------------------------ */

.cta-band {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background:
    radial-gradient(120% 130% at 12% 0%, rgba(53, 211, 255, 0.2), transparent 58%),
    radial-gradient(90% 120% at 92% 100%, rgba(255, 180, 67, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(14, 30, 48, 0.85), rgba(6, 12, 21, 0.94));
}

.cta-band h2 { max-width: 22ch; }
.cta-band p { max-width: 58ch; }

.cta-band .robot-peek {
  position: absolute;
  right: clamp(-40px, -2vw, 0px);
  bottom: -14px;
  width: min(30%, 230px);
  opacity: 0.9;
  filter: drop-shadow(0 0 40px rgba(53, 211, 255, 0.4));
  pointer-events: none;
}

@media (max-width: 780px) { .cta-band .robot-peek { display: none; } }

/* --- footer -------------------------------------------------------------- */

.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: rgba(4, 8, 15, 0.7);
  padding: clamp(34px, 5vw, 54px) 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
}

.footer-grid h4 {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-dim); font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(120, 190, 240, 0.1);
  font-size: 0.8rem;
  color: var(--text-mute);
}

.footer-bottom a { color: var(--text-mute); }

/* --- audio dock ---------------------------------------------------------- */

.audio-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 12, 21, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.95);
}

.audio-dock button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(53, 211, 255, 0.1);
  color: var(--cyan);
  cursor: pointer;
}

.audio-dock button:hover { background: rgba(53, 211, 255, 0.22); }
.audio-dock button svg { width: 15px; height: 15px; }

.audio-dock input[type="range"] {
  width: 78px;
  accent-color: var(--cyan);
  background: transparent;
}

@media (max-width: 560px) {
  .audio-dock input[type="range"] { display: none; }
  .audio-dock { padding: 8px; }
}

/* --- misc ---------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 38px);
  align-items: center;
}

.figure-frame {
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  background: #05090f;
}

.figure-frame img { width: 100%; }

.figure-frame figcaption {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.checklist { list-style: none; padding: 0; }

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.crosslist { list-style: none; padding: 0; }

.crosslist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.crosslist li::before {
  content: "×";
  position: absolute;
  left: 3px; top: -0.06em;
  color: var(--alert);
  font-size: 1.25rem;
  font-weight: 700;
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
}

.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--cyan); }

.page-head {
  padding: clamp(34px, 5vw, 60px) 0 clamp(6px, 2vw, 18px);
  border-bottom: 1px solid rgba(120, 190, 240, 0.09);
}

.page-head h1 { max-width: 20ch; }
.page-head p.lead { max-width: 64ch; }

.mono { font-family: var(--mono); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--cyan);
  color: #04121a;
  font-weight: 700;
}

.skip-link:focus { left: 12px; }
