/* =========================================================
   PilotRegain marketing site
   Plain CSS. Dark by default, light when the OS asks for it.
   No external fonts, no frameworks, no trackers.
   ========================================================= */

:root {
  color-scheme: dark;

  --bg: #070d17;
  --bg-deep: #050a12;
  --surface: #0f1725;
  --surface-2: #131d2e;
  --surface-3: #18243a;
  --line: #1f2b40;
  --line-strong: #2c3b54;
  --text: #eaf0f8;
  --muted: #a3b1c6;
  --muted-2: #8494ac;
  --accent: #6cb0ff;
  --accent-hover: #8cc3ff;
  --accent-soft: #142a44;
  --accent-ink: #06121f;
  --teal: #5eead4;
  --navy: #0a1a2f;
  --warning: #e9b95f;
  --success: #4ecf93;

  --btn-bg: var(--accent);
  --btn-ink: var(--accent-ink);
  --focus: #9ecbff;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --wrap: 1140px;
  --header-h: 72px;

  --shadow-card: 0 1px 1px rgb(0 0 0 / 0.3), 0 18px 50px -30px rgb(0 0 0 / 0.9);
  --shadow-pop: 0 30px 80px -40px rgb(0 0 0 / 0.95);

  --font-sans: "Inter", "Inter Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --bg: #eef1f6;
    --bg-deep: #e7ecf4;
    --surface: #ffffff;
    --surface-2: #f6f8fb;
    --surface-3: #e8f1fb;
    --line: #dde3ec;
    --line-strong: #c5cede;
    --text: #0b1728;
    --muted: #4e5b70;
    --muted-2: #5f6b80;
    --accent: #0e5aa8;
    --accent-hover: #0b4a8b;
    --accent-soft: #e8f1fb;
    --accent-ink: #ffffff;
    --teal: #0f766e;

    --btn-bg: var(--accent);
    --btn-ink: #ffffff;
    --focus: #0e5aa8;

    --shadow-card: 0 1px 2px rgb(11 23 40 / 0.04), 0 16px 40px -28px rgb(11 23 40 / 0.35);
    --shadow-pop: 0 24px 60px -36px rgb(11 23 40 / 0.4);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image:
      radial-gradient(900px 480px at 8% -8%, rgb(108 176 255 / 0.09), transparent 62%),
      radial-gradient(760px 420px at 100% 0%, rgb(94 234 212 / 0.045), transparent 58%);
    background-repeat: no-repeat;
  }
}

/* A fixed wash is nice on desktop and janky on phones, so only pin it where there is room. */
@media (prefers-color-scheme: dark) and (min-width: 900px) {
  body {
    background-attachment: fixed;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: color-mix(in oklab, var(--accent) 30%, transparent);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 650;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--btn-ink);
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgb(7 13 23 / 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (prefers-color-scheme: light) {
  .site-header {
    background: rgb(255 255 255 / 0.86);
  }
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  box-shadow: 0 6px 18px -10px rgb(108 176 255 / 0.8);
}

.brand-word em {
  font-style: normal;
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}

.site-nav > a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 550;
  padding-block: 0.45rem;
  border-bottom: 2px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}

.site-nav > a:hover {
  color: var(--text);
}

.site-nav > a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.site-nav .nav-app {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.4rem;
  padding: 0.58rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 650;
  border-bottom: 0;
  transition: background 140ms ease, transform 140ms ease;
}

.site-nav .nav-app:hover {
  background: var(--accent-hover);
  color: var(--btn-ink);
  transform: translateY(-1px);
}

.site-nav .nav-app .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-bars {
  display: grid;
  gap: 5px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------------------------------------------------------
   Buttons, pills, shared bits
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease,
    box-shadow 150ms ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: 0 10px 30px -16px color-mix(in oklab, var(--accent) 75%, transparent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--btn-ink);
  box-shadow: 0 14px 36px -16px color-mix(in oklab, var(--accent) 85%, transparent);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: color-mix(in oklab, var(--surface) 55%, transparent);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--muted-2);
  color: var(--text);
}

.btn-small {
  min-height: 42px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.72rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pill-accent {
  border-color: color-mix(in oklab, var(--accent) 38%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
}

.pill-warning {
  border-color: color-mix(in oklab, var(--warning) 45%, transparent);
  background: color-mix(in oklab, var(--warning) 12%, transparent);
  color: var(--warning);
}

.dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--teal) 18%, transparent);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}

.grad {
  color: var(--accent);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad {
    background: linear-gradient(100deg, var(--accent) 8%, var(--teal) 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.lead {
  color: var(--muted);
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.65;
  max-width: 34rem;
}

.section {
  padding-block: clamp(4.25rem, 9vw, 7.5rem);
}

.section-tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section-line {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

h2,
h3 {
  letter-spacing: -0.025em;
}

@supports (text-wrap: balance) {
  h1,
  h2,
  h3 {
    text-wrap: balance;
  }

  p,
  li {
    text-wrap: pretty;
  }
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 1.1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 130%;
  z-index: -1;
  background:
    radial-gradient(600px 340px at 18% 22%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(520px 320px at 88% 14%, color-mix(in oklab, var(--teal) 12%, transparent), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--text) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--text) 5%, transparent) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 75% 65% at 55% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 55% 30%, #000 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.55;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-copy h1 {
  font-size: clamp(2.85rem, 6vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 1.45rem;
}

.hero-copy .lead {
  max-width: 31rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  margin-top: 1.9rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-points .icon {
  width: 15px;
  height: 15px;
  color: var(--teal);
  stroke-width: 2.4;
}

.hero-art {
  position: relative;
  isolation: isolate;
}

.hero-scene {
  position: absolute;
  top: -40%;
  left: -12%;
  z-index: 0;
  width: 152%;
  aspect-ratio: 1;
  opacity: 0.82;
  pointer-events: none;
}

.hero-scene svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-art > .diorama,
.hero-art > .hud-readout,
.hero-art > .diorama-caption,
.hero-art > .media-credit {
  position: relative;
  z-index: 1;
}

.globe-spin,
.orbit,
.scene-sun {
  transform-box: view-box;
  transform-origin: 430px 500px;
}

.scene-sun {
  transform-origin: 690px 190px;
}

.scene-route {
  fill: none;
}

.js .globe-spin {
  animation: globeTurn 150s linear infinite;
}

.js .orbit-a {
  animation: orbitTurn 34s linear infinite;
}

.js .orbit-b {
  animation: orbitTurn 52s linear infinite reverse;
}

.js .scene-sun {
  animation: sunBreathe 9s ease-in-out infinite;
}

.js .scene-route {
  animation: routeFlow 7s linear infinite;
}

.hero-art.is-paused .globe-spin,
.hero-art.is-paused .orbit,
.hero-art.is-paused .scene-sun,
.hero-art.is-paused .scene-route {
  animation-play-state: paused;
}

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

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

@keyframes sunBreathe {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes routeFlow {
  to {
    stroke-dashoffset: -68;
  }
}

.diorama {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  overflow: hidden;
  background: #0a1626;
  box-shadow: var(--shadow-pop);
  aspect-ratio: 1000 / 750;
}

.diorama-image,
.diorama svg,
.diorama-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diorama-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}

.diorama-video.is-playing {
  opacity: 1;
}

.diorama-top,
.diorama-bottom {
  z-index: 2;
}

.diorama::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
  pointer-events: none;
}

.diorama-top,
.diorama-bottom {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
}

.diorama-top {
  top: 0.9rem;
}

.diorama-bottom {
  bottom: 0.9rem;
}

.diorama-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius-pill);
  background: rgb(6 18 31 / 0.72);
  color: #dbe7f6;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(6px);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.diorama-toggle[hidden] {
  display: none;
}

.diorama-toggle:hover {
  border-color: rgb(255 255 255 / 0.35);
  background: rgb(6 18 31 / 0.92);
  color: #fff;
}

.diorama-toggle .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.reg-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.68rem;
  border: 1px solid rgb(140 195 255 / 0.35);
  border-radius: 8px;
  background: rgb(6 18 31 / 0.72);
  color: #eaf0f8;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
}

.live-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 0 3px rgb(94 234 212 / 0.16);
}

.js .live-dot {
  animation: livePulse 2.6s ease-in-out infinite;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Aircraft-style HUD corners and a slow scan line over the live replay. */
.hud-corners {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hud-corners span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgb(140 195 255 / 0.55);
  border-style: solid;
}

.hud-corners span:nth-child(1) {
  top: 10px;
  left: 10px;
  border-width: 1px 0 0 1px;
}

.hud-corners span:nth-child(2) {
  top: 10px;
  right: 10px;
  border-width: 1px 1px 0 0;
}

.hud-corners span:nth-child(3) {
  bottom: 10px;
  left: 10px;
  border-width: 0 0 1px 1px;
}

.hud-corners span:nth-child(4) {
  right: 10px;
  bottom: 10px;
  border-width: 0 1px 1px 0;
}

.hud-scan {
  position: absolute;
  top: 0;
  right: 8%;
  left: 8%;
  z-index: 1;
  display: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(140 195 255 / 0.7), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.js .hud-scan {
  display: block;
  animation: hudScan 7s linear infinite;
}

.hero-art.is-paused .hud-scan {
  animation: none;
  opacity: 0;
}

.hero-art.is-paused .live-dot {
  animation: none;
  opacity: 0.55;
}

@keyframes hudScan {
  0% {
    top: 0;
    opacity: 0;
  }
  12% {
    opacity: 0.55;
  }
  88% {
    opacity: 0.55;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* A small instrument readout under the replay. */
.hud-readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 0.7rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.hud-readout div {
  min-width: 0;
  padding: 0.45rem 0.6rem;
  background: var(--surface-2);
}

.hud-readout dt {
  color: var(--muted-2);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hud-readout dd {
  overflow: hidden;
  margin-top: 0.15rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.glass-chip {
  padding: 0.32rem 0.65rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius-pill);
  background: rgb(6 18 31 / 0.62);
  color: #dbe7f6;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  backdrop-filter: blur(6px);
}

.telemetry {
  display: flex;
  gap: 0.4rem;
  width: 100%;
}

.telemetry > div {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 10px;
  background: rgb(6 18 31 / 0.72);
  backdrop-filter: blur(6px);
}

.telemetry span {
  display: block;
  color: #8fa8c6;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.telemetry strong {
  display: block;
  color: #eef5ff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.telemetry em {
  color: #8fa8c6;
  font-style: normal;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.diorama-caption {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
  color: var(--muted-2);
  font-size: 0.72rem;
}

.diorama-caption .icon {
  width: 13px;
  height: 13px;
}

.media-credit {
  margin-top: 0.35rem;
  max-width: 40rem;
  color: var(--muted-2);
  font-size: 0.68rem;
  line-height: 1.55;
}

.media-credit a {
  color: var(--muted-2);
  text-underline-offset: 0.14em;
}

.media-credit a:hover {
  color: var(--muted);
}

/* ---------------------------------------------------------
   Benefits
   --------------------------------------------------------- */

.benefit {
  position: relative;
  padding: 1.65rem 1.55rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}

.benefit:hover {
  border-color: color-mix(in oklab, var(--accent) 32%, var(--line));
  transform: translateY(-2px);
}

.benefit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px 160px at 15% 0%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%);
  pointer-events: none;
}

.benefit-num {
  display: block;
  margin-bottom: 1.6rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.benefit h3 {
  margin-bottom: 0.55rem;
  font-size: 1.16rem;
  line-height: 1.28;
}

.benefit p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------------------------------------------------------
   Feature cards
   --------------------------------------------------------- */

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.feature-card:hover {
  border-color: color-mix(in oklab, var(--accent) 42%, var(--line));
  background: var(--surface-2);
  transform: translateY(-2px);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in oklab, var(--accent) 24%, var(--line));
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform 180ms ease;
}

.feature-card:hover .icon-tile {
  transform: rotate(-4deg) scale(1.06);
}

.icon-tile .icon {
  width: 21px;
  height: 21px;
}

.feature-card h3 {
  font-size: 1.02rem;
  line-height: 1.35;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.3rem;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
}

.card-link .icon {
  width: 14px;
  height: 14px;
  transition: transform 140ms ease;
}

.card-link:hover .icon {
  transform: translateX(3px);
}

.section-more {
  margin-top: 2rem;
  text-align: center;
}

.section-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.section-more .icon {
  width: 15px;
  height: 15px;
  transition: transform 140ms ease;
}

.section-more a:hover .icon {
  transform: translateX(3px);
}

/* ---------------------------------------------------------
   Import split
   --------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split-start {
  align-items: start;
}

/* The home import block keeps the copy narrow and gives the roster screenshot the full width,
   so its text is still readable on a phone-to-desktop spread. */
.import-layout {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.import-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.import-details .check-list {
  margin-top: 0;
}

.split h2 {
  font-size: clamp(1.95rem, 3.8vw, 2.9rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}

.split p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.check-list .icon {
  width: 17px;
  height: 17px;
  margin-top: 0.18rem;
  color: var(--teal);
  stroke-width: 2.3;
}

.panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.import-panel {
  overflow: hidden;
}

.import-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.import-panel-head h3 {
  font-size: 0.95rem;
}

.import-list {
  display: grid;
}

.import-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.import-list li:last-child {
  border-bottom: 0;
}

.filetag {
  display: grid;
  place-items: center;
  width: 44px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.import-list div {
  min-width: 0;
}

.import-list strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.import-list span {
  display: block;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.import-list .icon {
  margin-left: auto;
  width: 17px;
  height: 17px;
  color: var(--success);
  stroke-width: 2.3;
}

.import-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.import-flow i {
  color: var(--muted-2);
  font-style: normal;
}

.import-note {
  padding: 0.8rem 1.25rem 1rem;
  color: var(--muted-2);
  font-size: 0.74rem;
}

.screenshot-panel {
  margin: 0;
  overflow: hidden;
}

.screenshot-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
  background: #08101f;
}

.screenshot-panel figcaption {
  padding: 0.85rem 1.25rem 1rem;
  color: var(--muted-2);
  font-size: 0.75rem;
  line-height: 1.55;
}

/* A gallery of real app captures. */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: start;
}

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.shot--wide {
  grid-column: 1 / -1;
}

.shot-image,
.roster-image {
  position: relative;
  display: block;
  text-decoration: none;
}

.shot-image::after,
.roster-image::after {
  content: "Expand";
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.28rem 0.58rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius-pill);
  background: rgb(6 18 31 / 0.74);
  color: #dbe7f6;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(3px);
  pointer-events: none;
  backdrop-filter: blur(5px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.shot-image:hover::after,
.shot-image:focus-visible::after,
.roster-image:hover::after,
.roster-image:focus-visible::after {
  opacity: 1;
  transform: none;
}

.shot-image img,
.roster-image img {
  transition: transform 300ms ease, opacity 150ms ease;
}

/* The figure clips its corners, so keep this one focus ring inside the image. */
.shot-image:focus-visible {
  outline-offset: -4px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
  background: #08101f;
  transition: opacity 150ms ease;
}

.shot-image:hover img {
  opacity: 0.94;
  transform: scale(1.012);
}

.roster-image:hover img {
  transform: scale(1.004);
}

.shot figcaption {
  padding: 0.9rem 1.1rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.shot figcaption strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------------------------------------------------------
   Why teaser / dark panels
   --------------------------------------------------------- */

.dark-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #22395a;
  border-radius: 24px;
  background: #0a1a2f;
  color: #eaf0f8;
  padding: clamp(2rem, 5vw, 3.75rem);
}

.dark-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 260px at 88% 10%, rgb(108 176 255 / 0.2), transparent 70%),
    radial-gradient(380px 240px at 5% 100%, rgb(94 234 212 / 0.13), transparent 72%);
  pointer-events: none;
}

.dark-panel > * {
  position: relative;
}

.dark-panel h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 22ch;
  margin-bottom: 1rem;
}

.dark-panel p {
  color: #a9bad0;
  max-width: 52ch;
}

.dark-panel .kicker {
  color: #7bbdff;
}

.dark-panel .btn-secondary {
  border-color: #2c4a70;
  background: rgb(255 255 255 / 0.05);
  color: #eaf0f8;
}

.dark-panel .btn-secondary:hover {
  background: rgb(255 255 255 / 0.1);
  border-color: #456993;
  color: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

/* ---------------------------------------------------------
   Final CTA
   --------------------------------------------------------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    radial-gradient(600px 300px at 50% -20%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 70%),
    linear-gradient(170deg, var(--surface) 0%, var(--surface-2) 100%);
  text-align: center;
}

.cta-panel h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 20ch;
  margin-inline: auto;
}

.cta-panel p {
  max-width: 42ch;
  margin: 1rem auto 0;
  color: var(--muted);
}

.cta-panel .cta-row {
  justify-content: center;
}

/* ---------------------------------------------------------
   Page hero + prose
   --------------------------------------------------------- */

.page-hero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto -20%;
  height: 160%;
  z-index: -1;
  background:
    radial-gradient(640px 340px at 20% 45%, color-mix(in oklab, var(--accent) 15%, transparent), transparent 70%),
    radial-gradient(480px 300px at 82% 20%, color-mix(in oklab, var(--teal) 9%, transparent), transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
  max-width: 19ch;
  margin-bottom: 1.2rem;
}

.page-hero .lead {
  max-width: 42rem;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.page-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.8rem;
}

.page-jump a {
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.page-jump a:hover {
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line));
  background: var(--surface-2);
  color: var(--text);
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  margin-top: 2.6rem;
  margin-bottom: 0.85rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.9rem;
  margin-bottom: 0.5rem;
}

.prose p,
.prose li {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.prose ul {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.15rem;
  margin: 0;
}

.prose ul li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.prose strong {
  color: var(--text);
  font-weight: 650;
}

.prose a {
  font-weight: 550;
}

.callout {
  margin-block: 1.75rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-2);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout--warning {
  border-left-color: var(--warning);
}

/* ---------------------------------------------------------
   Features page
   --------------------------------------------------------- */

.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.75rem, 5.5vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.feature-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.feature-aside {
  position: relative;
}

.feature-aside .kicker {
  margin-bottom: 0.85rem;
}

.feature-aside h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 0.9rem;
  transition: color 160ms ease;
}

.feature-section:target .feature-aside h2 {
  color: var(--accent);
}

.feature-aside p {
  color: var(--muted);
  font-size: 0.97rem;
}

.feature-body {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.feature-row {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.feature-row .icon-tile {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex: none;
}

.feature-row .icon-tile .icon {
  width: 18px;
  height: 18px;
}

.feature-row h3 {
  font-size: 0.96rem;
  margin-bottom: 0.25rem;
}

.feature-row p {
  color: var(--muted);
  font-size: 0.88rem;
}

.feature-row ul {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.feature-row ul li {
  position: relative;
  padding-left: 0.95rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.feature-row ul li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.small-note {
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.55;
}

.feature-section .small-note {
  margin-top: 0.2rem;
}

/* ---------------------------------------------------------
   Pricing
   --------------------------------------------------------- */

.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid color-mix(in oklab, var(--warning) 30%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--warning) 7%, var(--surface));
}

.notice-bar .icon {
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  color: var(--warning);
  flex: none;
}

.notice-bar p {
  color: var(--muted);
  font-size: 0.88rem;
}

.notice-bar strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  height: 100%;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan--featured {
  border-color: color-mix(in oklab, var(--accent) 52%, var(--line));
  background:
    radial-gradient(360px 220px at 50% 0%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 72%),
    var(--surface);
  box-shadow: var(--shadow-card);
}

.plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.plan h2 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.plan-sub {
  color: var(--muted);
  font-size: 0.86rem;
  min-height: 2.6em;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.15rem;
}

.price strong {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price span {
  color: var(--muted);
  font-size: 0.85rem;
}

.plan-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-features {
  display: grid;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.plan-features li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.86rem;
}

.plan-features .icon {
  width: 15px;
  height: 15px;
  margin-top: 0.2rem;
  color: var(--teal);
  stroke-width: 2.4;
}

.plan .btn {
  width: 100%;
  margin-top: auto;
}

.plan-note {
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1.5;
}

.currency-note {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.76rem;
}

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 160ms ease, color 160ms ease;
}

.faq details[open] summary::after {
  content: "–";
  color: var(--accent);
  transform: rotate(180deg);
}

.faq details p {
  max-width: 62ch;
  padding: 0 2.5rem 1.25rem 0.25rem;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------------------------------------------------------
   About
   --------------------------------------------------------- */

.about-hero {
  max-width: 56rem;
}

.story {
  max-width: 65ch;
}

.story p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.story p:first-of-type {
  color: var(--text);
  font-size: 1.22rem;
  line-height: 1.65;
}

.story strong {
  color: var(--text);
  font-weight: 650;
}

.story a {
  font-weight: 550;
}

.pullquote {
  margin-block: 2.25rem;
  padding: 1.6rem 0 1.6rem 1.6rem;
  border-left: 3px solid var(--accent);
}

.pullquote p {
  color: var(--text);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0;
}

.sibling-panel {
  margin-block: 2.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid #22395a;
  border-radius: var(--radius);
  background:
    radial-gradient(420px 220px at 100% 0%, rgb(108 176 255 / 0.16), transparent 70%),
    #0a1a2f;
  color: #eaf0f8;
}

.sibling-panel p {
  margin: 0;
  color: #a9bad0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sibling-panel strong {
  display: block;
  margin-top: 0.5rem;
  color: #eaf0f8;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.signature-card {
  max-width: 24rem;
  margin: 2.5rem 0 0;
  padding: 1.5rem 1.75rem 1.15rem;
  border: 1px solid #d8e0ec;
  border-radius: var(--radius);
  background: #f5f2ea;
  box-shadow: 0 18px 45px -30px rgb(0 0 0 / 0.8);
}

.signature-card img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.signature-card figcaption {
  margin-top: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(11 23 40 / 0.14);
  color: #5f6b80;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.value {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.value h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.value p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid #1c2a3d;
  background: #060c15;
  color: #eaf0f8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 1.1fr;
  gap: 2.5rem;
  padding-block: 3.25rem 2.5rem;
}

.footer-brand .brand {
  color: #eaf0f8;
  margin-bottom: 1rem;
}

.footer-brand .brand:hover {
  color: #fff;
}

.footer-tagline {
  max-width: 26ch;
  color: #a9bad0;
  font-size: 0.94rem;
}

.footer-small {
  margin-top: 0.45rem;
  color: #7f91ab;
  font-size: 0.78rem;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-nav h2,
.footer-contact h2 {
  margin-bottom: 0.4rem;
  color: #7f91ab;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-nav a,
.footer-contact a {
  color: #c6d3e5;
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #6cb0ff;
  text-underline-offset: 0.2em;
}

.footer-contact .footer-small {
  max-width: 32ch;
}

.daltsync-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin-top: 1.1rem;
  padding: 0.4rem 0.85rem 0.4rem 0.45rem;
  border: 1px solid #2c3b54;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.035);
  color: #a9bad0;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.daltsync-badge img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex: none;
}

.daltsync-badge strong {
  color: #fff;
  font-weight: 700;
}

.daltsync-badge:hover {
  border-color: rgb(255 77 26 / 0.55);
  background: rgb(255 77 26 / 0.07);
  color: #eaf0f8;
}

.daltsync-badge:hover strong {
  color: #ffd9cc;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 2rem;
  padding-block: 1.25rem 1.5rem;
  border-top: 1px solid #162234;
  color: #7f91ab;
  font-size: 0.76rem;
}

.footer-legal {
  max-width: 46ch;
}

/* ---------------------------------------------------------
   404
   --------------------------------------------------------- */

.error-page {
  min-height: 55vh;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding-block: 5rem;
}

.error-code {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

.error-page h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.error-page p {
  max-width: 38rem;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Motion + responsive + print
   --------------------------------------------------------- */

/* Dark panels keep a light focus ring in both themes, because their background is always navy. */
.site-footer :where(a, button, summary):focus-visible,
.dark-panel :where(a, button, summary):focus-visible,
.sibling-panel :where(a, button):focus-visible {
  outline-color: #9ecbff;
}

.roster-image:focus-visible {
  outline-offset: -4px;
}

/* ---------------------------------------------------------
   Screenshot lightbox
   --------------------------------------------------------- */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  width: min(96vw, 1480px);
  max-width: none;
  max-height: 94dvh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #2c3b54;
  border-radius: 18px;
  background: #0a1422;
  color: #eaf0f8;
  box-shadow: 0 40px 120px -30px rgb(0 0 0 / 0.9);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.lightbox::backdrop {
  background: rgb(2 7 13 / 0.88);
  backdrop-filter: blur(6px);
}

.lightbox :where(button):focus-visible {
  outline-color: #9ecbff;
}

.lightbox-head,
.lightbox-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #0d1a2b;
}

.lightbox-head {
  border-bottom: 1px solid #1f2b40;
}

.lightbox-foot {
  border-top: 1px solid #1f2b40;
}

.lightbox-title {
  color: #9fb0c7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lightbox-close {
  min-height: 38px;
  padding: 0.35rem 0.9rem;
  border: 1px solid #2c3b54;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.05);
  color: #eaf0f8;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: #456993;
  background: rgb(255 255 255 / 0.1);
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0.75rem 4rem;
  background: #070f1b;
}

.lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70dvh;
  border: 1px solid #1f2b40;
  border-radius: 9px;
  background: #08101f;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #2c3b54;
  border-radius: 50%;
  background: rgb(6 18 31 / 0.82);
  color: #eaf0f8;
  font-size: 1.1rem;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(5px);
}

.lightbox-nav:hover {
  border-color: #456993;
  background: rgb(6 18 31 / 0.96);
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-prev {
  left: 0.9rem;
}

.lightbox-next {
  right: 0.9rem;
}

.lightbox-meta {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.lightbox-caption {
  max-width: 80ch;
  color: #a3b1c6;
  font-size: 0.82rem;
  line-height: 1.55;
}

.lightbox-original {
  flex: none;
  padding-left: 1rem;
  border-left: 1px solid #2c3b54;
  color: #9ecbff;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.lightbox-original:hover {
  text-decoration: underline;
}

.lightbox-count {
  flex: none;
  color: #7f91ab;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Scroll reveals
   --------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 550ms ease,
    transform 550ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal-d1 {
  transition-delay: 70ms;
}

.js .reveal-d2 {
  transition-delay: 140ms;
}

.js .reveal-d3 {
  transition-delay: 210ms;
}

/* Keep the lift on the card after the reveal transition has finished. */
.js .reveal.is-visible.feature-card:hover,
.js .reveal.is-visible.benefit:hover {
  transform: translateY(-2px);
}

@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;
  }

  .hud-scan {
    display: none;
  }

  .js .globe-spin,
  .js .orbit-a,
  .js .orbit-b,
  .js .scene-sun,
  .js .scene-route {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .hero-art {
    max-width: 560px;
    padding-top: 150px;
  }

  .hero-scene {
    top: -40px;
    left: -6%;
    width: 128%;
    opacity: 0.65;
  }

  .feature-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 64px;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem 1.25rem 1.1rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 28px 40px -30px rgb(0 0 0 / 0.7);
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .site-nav > a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .site-nav > a[aria-current="page"] {
    border-bottom-color: var(--line);
    color: var(--accent);
  }

  .site-nav .nav-app {
    justify-content: center;
    margin: 0.9rem 0 0;
    border-bottom: 0;
    padding: 0.8rem 1rem;
  }

  .split,
  .import-copy {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .import-details .check-list {
    margin-top: 1.25rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: 1fr;
  }

  .shot--wide {
    grid-column: auto;
  }

  .why-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-nav a,
  .footer-contact a {
    padding-block: 0.28rem;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 2rem, var(--wrap));
  }

  /* The roster capture is a wide desktop strip; on a phone the bullet list above carries it. */
  .home-roster-shot {
    display: none;
  }

  .hero {
    padding-top: 2.75rem;
  }

  .hero-art {
    padding-top: 120px;
  }

  .hero-scene {
    top: -30px;
    left: -5%;
    width: 124%;
    opacity: 0.56;
  }

  .hero-copy h1 {
    font-size: clamp(2.55rem, 13vw, 3.6rem);
  }

  .cta-row .btn {
    width: 100%;
  }

  .hero-points {
    gap: 0.55rem 0.9rem;
  }

  .diorama {
    border-radius: 18px;
  }

  .diorama-top,
  .diorama-bottom {
    left: 0.65rem;
    right: 0.65rem;
  }

  .telemetry > div {
    padding: 0.4rem 0.35rem;
  }

  .telemetry strong {
    font-size: 0.7rem;
  }

  .telemetry span,
  .telemetry em {
    font-size: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-block: 2.5rem 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .plan {
    padding: 1.4rem;
  }

  .faq summary {
    font-size: 0.94rem;
  }

  .faq details p {
    padding-right: 0.25rem;
  }

  .lightbox {
    width: 100vw;
    max-height: 100dvh;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .lightbox-stage {
    padding: 0.5rem;
  }

  .lightbox-image {
    max-height: 58dvh;
  }

  .lightbox-head,
  .lightbox-foot {
    padding-inline: 0.75rem;
  }

  .lightbox-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .lightbox-meta {
    flex-direction: column;
    gap: 0.35rem;
  }

  .lightbox-original {
    padding-left: 0;
    border-left: 0;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
  }

  .lightbox-prev {
    left: 0.45rem;
  }

  .lightbox-next {
    right: 0.45rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .cta-row,
  .hero-art {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section,
  .page-hero {
    padding-block: 1.2rem;
  }

  a {
    color: #000;
  }
}
