/* ============================================================
   SpaceMan — marketing site
   Design system: deep-space navy, electric blue, mascot orange
   Type: Clash Display (display) + Satoshi (body) + mono details
   ============================================================ */

:root {
  --bg: #030814;
  --bg-2: #050d1f;
  --bg-3: #081328;
  --ink: #eaf2ff;
  --ink-soft: #c6d4ec;
  --muted: #8fa3c4;
  --faint: #5c6f92;
  --blue: #2f81f7;
  --blue-bright: #4da3ff;
  --cyan: #38bdf8;
  --orange: #ff9f43;
  --line: rgba(148, 178, 224, 0.14);
  --line-soft: rgba(148, 178, 224, 0.08);
  --glass: rgba(10, 20, 42, 0.55);
  --glass-heavy: rgba(8, 16, 34, 0.82);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
  --font-display: 'Clash Display', 'Avenir Next', sans-serif;
  --font-body: 'Satoshi', 'Avenir Next', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, monospace;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --container: 1180px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: rgba(47, 129, 247, 0.45);
  color: #fff;
}

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top 0.25s var(--ease-out);
}

.skip-link:focus-visible {
  top: 12px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* Grain overlay for depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 160;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 150;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(4, 10, 24, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line-soft);
}

.nav-shell {
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.brand img {
  border-radius: 9px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav-menu a {
  position: relative;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.25s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease-out);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--ink);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.nav-toggle[aria-expanded='true'] span:nth-of-type(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-of-type(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3b93ff 0%, var(--blue) 55%, #1f6ae0 100%);
  box-shadow: 0 12px 32px -12px rgba(47, 129, 247, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 18px 44px -12px rgba(47, 129, 247, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(16, 28, 54, 0.6);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(148, 178, 224, 0.35);
  background: rgba(22, 38, 70, 0.7);
}

.btn-nav {
  padding: 11px 20px;
  font-size: 0.92rem;
  color: #fff;
  background: linear-gradient(135deg, #3b93ff, #1f6ae0);
  border-radius: 12px;
  box-shadow: 0 10px 26px -12px rgba(47, 129, 247, 0.7);
}

.btn-lg {
  padding: 18px 32px;
  font-size: 1.05rem;
  border-radius: 16px;
}

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1.5px;
  flex: none;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section-heading {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 20px;
  margin-bottom: 64px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.section-lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 58ch;
}

/* ---------- Inline security triggers ---------- */
.link-quiet {
  display: inline;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  border-bottom: 1px dashed rgba(56, 189, 248, 0.55);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.link-quiet:hover,
.link-quiet:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.card-link {
  justify-self: start;
  padding: 0;
  margin-top: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-bright);
  transition: color 0.25s ease, transform 0.25s var(--ease-out);
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--cyan);
  transform: translateX(3px);
}

/* Split-text lines */
[data-split] .split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

[data-split] .split-word > span {
  display: inline-block;
  will-change: transform;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 56px) 0 120px;
  overflow: clip;
}

.space-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-earth {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  pointer-events: none;
}

.hero-earth img {
  width: 100%;
  height: min(72vh, 700px);
  object-fit: cover;
  object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(1000px 520px at 18% 30%, rgba(47, 129, 247, 0.14), transparent 65%),
    linear-gradient(180deg, rgba(3, 8, 20, 0.5) 0%, transparent 26%, transparent 70%, var(--bg) 100%);
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
}

.hero-copy {
  display: grid;
  gap: 26px;
  justify-items: start;
}

.hero h1 {
  font-size: clamp(2.3rem, 3.9vw, 3.45rem);
  font-weight: 700;
  line-height: 1.12;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-bright);
  text-shadow: 0 0 70px rgba(77, 163, 255, 0.35);
}

.hero-lede {
  color: var(--ink-soft);
  font-size: 1.14rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-list svg {
  width: 15px;
  height: 15px;
  fill: var(--cyan);
  flex: none;
}

/* --- Product stage / app window --- */
.product-stage {
  position: relative;
  perspective: 1400px;
}

.hero-mascot {
  position: absolute;
  z-index: 5;
  top: -118px;
  right: -18px;
  width: clamp(120px, 12vw, 175px);
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.app-window {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid rgba(148, 178, 224, 0.18);
  background: linear-gradient(165deg, rgba(16, 30, 58, 0.92), rgba(7, 14, 30, 0.96));
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 120px -30px rgba(47, 129, 247, 0.35);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.app-window::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(120, 180, 255, 0.06) 45%, transparent 62%);
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(6, 12, 26, 0.65);
}

.window-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.window-brand img {
  border-radius: 4px;
}

.window-controls {
  display: flex;
  gap: 7px;
}

.window-controls span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(148, 178, 224, 0.22);
}

.window-controls span:nth-child(1) {
  background: #ff5f57;
}

.window-controls span:nth-child(2) {
  background: #febc2e;
}

.window-controls span:nth-child(3) {
  background: #28c840;
}

.app-layout {
  display: grid;
  grid-template-columns: 158px 1fr;
  min-height: 380px;
}

.app-sidebar {
  padding: 16px 12px;
  border-right: 1px solid var(--line-soft);
  background: rgba(5, 10, 22, 0.5);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.78rem;
}

.app-sidebar p {
  margin: 10px 6px 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.app-sidebar p:first-child {
  margin-top: 0;
}

.app-sidebar span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
}

.app-sidebar .dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: rgba(148, 178, 224, 0.4);
  flex: none;
}

.app-sidebar span.active {
  background: rgba(47, 129, 247, 0.16);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(47, 129, 247, 0.35);
}

.app-sidebar span.active .dot {
  background: var(--blue-bright);
  box-shadow: 0 0 8px rgba(77, 163, 255, 0.9);
}

.app-sidebar span.add {
  color: var(--blue-bright);
  font-weight: 600;
}

.app-content {
  position: relative;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.toolbar-title {
  display: grid;
  line-height: 1.3;
}

.toolbar-title strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
}

.toolbar-title span {
  font-size: 0.7rem;
  color: var(--faint);
}

.toolbar-btn {
  padding: 7px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b93ff, #1f6ae0);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(47, 129, 247, 0.8);
}

.search-preview {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(5, 10, 22, 0.55);
  color: var(--faint);
  font-size: 0.78rem;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.file-grid article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(11, 20, 40, 0.55);
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
}

.file-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 163, 255, 0.35);
}

.file-grid strong {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-grid small {
  font-size: 0.62rem;
  color: var(--faint);
}

.tile {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2.4;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.tile.folder {
  background: linear-gradient(150deg, #2c65c8, #17346e);
  position: relative;
}

.tile.folder::before {
  content: '';
  width: 34%;
  height: 46%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  clip-path: polygon(0 18%, 38% 18%, 48% 0, 100% 0, 100% 100%, 0 100%);
}

.tile.pdf {
  background: linear-gradient(150deg, #f5f7fb, #d9e0ee);
  color: #c02f2f;
}

.tile.sketch {
  background: linear-gradient(150deg, #ffd28f, #f7a940);
  color: #7c4a00;
  font-size: 0.9rem;
}

.tile.img {
  background: linear-gradient(160deg, #274b9f 0%, #142c63 55%, #f7a940 130%);
}

.tile.mark {
  background: linear-gradient(150deg, #4d7bf0, #2c4ecf);
  color: #fff;
  font-size: 0.85rem;
}

.tile.csv {
  background: linear-gradient(150deg, #e8f6ee, #c9e9d6);
  color: #1e7e46;
}

.upload-toast {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(77, 163, 255, 0.3);
  background: rgba(8, 16, 34, 0.92);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  min-width: 215px;
}

.upload-toast i {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b93ff, #1f6ae0);
  position: relative;
  flex: none;
}

.upload-toast i::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 21a1 1 0 0 1-1-1v-8.59l-2.3 2.3a1 1 0 1 1-1.4-1.42l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 1 1-1.4 1.42l-2.3-2.3V20a1 1 0 0 1-1 1Zm-7-17a1 1 0 0 1 0-2h14a1 1 0 1 1 0 2H5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.upload-toast div {
  display: grid;
  gap: 5px;
  flex: 1;
}

.upload-toast strong {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.upload-toast .bar {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: rgba(148, 178, 224, 0.18);
  overflow: hidden;
}

.upload-toast .bar b {
  display: block;
  height: 100%;
  width: 68%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.upload-toast em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--cyan);
}

/* --- scroll cue --- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.scroll-cue:hover {
  color: var(--cyan);
}

.scroll-cue-track {
  width: 22px;
  height: 34px;
  border: 1.5px solid currentColor;
  border-radius: 12px;
  display: block;
  position: relative;
  opacity: 0.8;
}

.scroll-cue-track span {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: currentColor;
  animation: cue-drop 1.8s ease-in-out infinite;
}

@keyframes cue-drop {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

/* ============================================================
   PROOF STRIP
   ============================================================ */
.proof {
  position: relative;
  padding: 34px 0;
  z-index: 4;
}

.proof-shell {
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  align-items: center;
  gap: clamp(22px, 3.5vw, 56px);
  padding: 26px clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(13, 24, 48, 0.75), rgba(6, 12, 26, 0.85));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.proof-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: clamp(20px, 3vw, 44px);
  border-right: 1px solid var(--line-soft);
}

.do-mark {
  width: 42px;
  height: 42px;
  fill: var(--blue-bright);
  filter: drop-shadow(0 0 14px rgba(77, 163, 255, 0.45));
}

.proof-brand small {
  display: block;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.proof-brand strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  white-space: nowrap;
}

.proof-brand strong span {
  color: var(--blue-bright);
}

.proof-item p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.proof-item strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

/* ============================================================
   MISSION (scroll-scrubbed video frames)
   ============================================================ */
.mission {
  position: relative;
}

.mission-pin {
  position: relative;
  height: 100svh;
  overflow: clip;
}

.mission-canvas,
.mission-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-poster {
  z-index: 0;
}

.mission-canvas {
  z-index: 1;
}

.mission-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 80%, var(--bg) 100%),
    radial-gradient(900px 500px at 30% 55%, rgba(3, 8, 20, 0.55), transparent 70%);
}

.mission-hud {
  position: absolute;
  z-index: 3;
  top: calc(var(--nav-h) + 18px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  background: rgba(4, 10, 24, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
}

.mission-meter {
  width: 120px;
  height: 3px;
  border-radius: 3px;
  background: rgba(56, 189, 248, 0.18);
  overflow: hidden;
}

.mission-meter b {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.mission-beats {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  align-items: center;
}

.mission-beat {
  grid-area: 1 / 1;
  width: min(560px, calc(100% - 48px));
  margin-left: clamp(24px, 8vw, 120px);
  opacity: 0;
  visibility: hidden;
}

.beat-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.mission-beat h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 18px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

.mission-beat p:last-child {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 46ch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  position: relative;
  padding: 130px 0 90px;
  background:
    radial-gradient(900px 480px at 82% 0%, rgba(47, 129, 247, 0.08), transparent 65%),
    var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.workflow-step,
.download-card,
.pricing-shell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(165deg, rgba(13, 24, 48, 0.6), rgba(6, 12, 26, 0.8));
  overflow: hidden;
}

/* pointer-tracking glow */
[data-glow]::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(77, 163, 255, 0.13),
    transparent 65%
  );
}

[data-glow]:hover::before {
  opacity: 1;
}

.feature-card {
  padding: 26px 24px 28px;
  display: grid;
  gap: 12px;
  align-content: start;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 163, 255, 0.4);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  border-radius: 13px;
  background: rgba(47, 129, 247, 0.12);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.28);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: translateY(-3px) rotate(-4deg);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.55), 0 8px 22px -8px rgba(47, 129, 247, 0.6);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--blue-bright);
}

.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================================================
   WORKFLOW
   ============================================================ */
.workflow {
  padding: 90px 0;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.workflow-step {
  padding: 34px 30px 36px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--orange);
}

.workflow-step h3 {
  font-size: 1.5rem;
}

.workflow-step p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ============================================================
   SECURITY
   ============================================================ */
.security {
  padding: 110px 0;
  background:
    radial-gradient(820px 480px at 12% 100%, rgba(56, 189, 248, 0.07), transparent 65%),
    var(--bg);
}

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(48px, 6vw, 90px);
}

.security-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.security-copy h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
}

.security-list {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.security-list li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
  font-size: 0.98rem;
}

.security-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: rgba(56, 189, 248, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2338bdf8'%3E%3Cpath d='M6.5 11.2 3.3 8l-1 1 4.2 4.2 7.2-7.2-1-1-6.2 6.2Z'/%3E%3C/svg%3E") center/11px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.3);
}

.security-list strong {
  color: var(--ink);
}

/* orbit visual */
.security-visual {
  display: grid;
  place-items: center;
}

.orbit-rings {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.ring {
  position: absolute;
  border: 1px solid rgba(77, 163, 255, 0.22);
  border-radius: 50%;
}

.ring.r1 {
  inset: 0;
  border-style: dashed;
  animation: spin 46s linear infinite;
}

.ring.r2 {
  inset: 13%;
  animation: spin 32s linear infinite reverse;
  border-color: rgba(56, 189, 248, 0.28);
}

.ring.r3 {
  inset: 27%;
  border-style: dashed;
  animation: spin 22s linear infinite;
}

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

.orbit-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

.orbit-node.n1 {
  top: 50%;
  left: 50%;
  margin: -5px 0 0 -5px;
  animation: orbit-path-a 26s linear infinite;
}

.orbit-node.n2 {
  top: 50%;
  left: 50%;
  margin: -5px 0 0 -5px;
  background: var(--orange);
  box-shadow: 0 0 16px var(--orange);
  animation: orbit-path-b 18s linear infinite reverse;
}

@keyframes orbit-path-a {
  from {
    transform: rotate(0turn) translateX(calc(min(380px, 80vw) / 2)) rotate(0turn);
  }
  to {
    transform: rotate(1turn) translateX(calc(min(380px, 80vw) / 2)) rotate(-1turn);
  }
}

@keyframes orbit-path-b {
  from {
    transform: rotate(0turn) translateX(calc(min(380px, 80vw) / 2 * 0.46)) rotate(0turn);
  }
  to {
    transform: rotate(1turn) translateX(calc(min(380px, 80vw) / 2 * 0.46)) rotate(-1turn);
  }
}

.orbit-core {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(20, 38, 74, 0.9), rgba(8, 16, 34, 0.95));
  border: 1px solid rgba(77, 163, 255, 0.35);
  box-shadow: 0 0 80px -18px rgba(47, 129, 247, 0.6);
}

.orbit-core svg {
  width: 52px;
  height: 52px;
  fill: var(--blue-bright);
}

/* ============================================================
   DOWNLOADS
   ============================================================ */
.downloads {
  position: relative;
  padding: 110px 0;
}

.downloads-mascot {
  position: absolute;
  top: 44px;
  right: clamp(12px, 9vw, 160px);
  width: clamp(110px, 12vw, 185px);
  height: auto;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.5));
  pointer-events: none;
  z-index: 1;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 940px;
  margin-inline: auto;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 30px 30px;
  border-radius: var(--r-lg);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 163, 255, 0.4);
}

.platform-logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 20px;
  background: rgba(47, 129, 247, 0.1);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.25);
}

.platform-logo svg {
  width: 34px;
  height: 34px;
  fill: var(--ink);
}

.download-meta {
  flex: 1;
  display: grid;
  gap: 4px;
}

.download-meta h3 {
  font-size: 1.35rem;
}

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

.arch-chips {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.arch-chips span {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  padding: 40px 0 110px;
}

.pricing-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(36px, 5vw, 64px);
  border-radius: 28px;
}

.pricing-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.pricing-rings span {
  position: absolute;
  border: 1px dashed rgba(77, 163, 255, 0.18);
  border-radius: 50%;
}

.pricing-rings span:nth-child(1) {
  width: 560px;
  height: 560px;
  right: -180px;
  top: -260px;
  animation: spin 60s linear infinite;
}

.pricing-rings span:nth-child(2) {
  width: 380px;
  height: 380px;
  right: -90px;
  top: -170px;
  animation: spin 40s linear infinite reverse;
}

.pricing-copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.pricing-copy h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.pricing-copy > p {
  color: var(--muted);
  max-width: 46ch;
}

.pricing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 4px;
}

.pricing-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.pricing-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2338bdf8'%3E%3Cpath d='M6.5 11.2 3.3 8l-1 1 4.2 4.2 7.2-7.2-1-1-6.2 6.2Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.price-lockup {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.price-figure {
  display: flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 60px rgba(77, 163, 255, 0.5);
}

.price-figure sup {
  font-size: 2rem;
  margin-top: 12px;
  color: var(--blue-bright);
}

.price-figure strong {
  font-size: clamp(4.4rem, 8vw, 6.4rem);
  letter-spacing: -0.03em;
}

.price-lockup > span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 70px 0 130px;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  display: grid;
  gap: 20px;
  justify-items: start;
}

.faq-intro h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.faq-mascot {
  width: clamp(140px, 15vw, 210px);
  height: auto;
  margin-top: 12px;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.5));
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(165deg, rgba(13, 24, 48, 0.55), rgba(6, 12, 26, 0.75));
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item[open] {
  border-color: rgba(77, 163, 255, 0.4);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

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

.faq-item summary:hover {
  color: var(--blue-bright);
}

.faq-item summary i {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
}

.faq-item summary i::before,
.faq-item summary i::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out);
}

.faq-item summary i::before {
  width: 14px;
  height: 2px;
}

.faq-item summary i::after {
  width: 2px;
  height: 14px;
}

.faq-item[open] summary i::after {
  transform: rotate(90deg);
}

.faq-body {
  overflow: hidden;
}

.faq-body p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 62ch;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line-soft);
  padding: 80px 0 40px;
  background: linear-gradient(180deg, var(--bg) 0%, #02060f 100%);
  overflow: hidden;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr 1.4fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 70px;
}

.footer-brand {
  display: grid;
  gap: 16px;
  align-content: start;
  justify-items: start;
}

.footer-brand > p {
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 30ch;
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-row a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out), background 0.25s ease;
}

.social-row a:hover {
  border-color: rgba(77, 163, 255, 0.5);
  background: rgba(47, 129, 247, 0.1);
  transform: translateY(-2px);
}

.social-row svg {
  width: 17px;
  height: 17px;
  fill: var(--muted);
  transition: fill 0.25s ease;
}

.social-row a:hover svg {
  fill: var(--ink);
}

.footer-col {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-col h2,
.newsletter h2 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.94rem;
  width: fit-content;
  transition: color 0.25s ease, transform 0.25s var(--ease-out);
}

.footer-col a:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.newsletter {
  display: grid;
  gap: 12px;
  align-content: start;
}

.newsletter > p {
  color: var(--muted);
  font-size: 0.92rem;
}

.newsletter-row {
  display: flex;
  gap: 8px;
}

.newsletter-field {
  flex: 1;
}

.newsletter input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 16, 34, 0.7);
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.newsletter input::placeholder {
  color: var(--faint);
}

.newsletter input:focus {
  outline: none;
  border-color: rgba(77, 163, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(47, 129, 247, 0.18);
}

.newsletter button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b93ff, #1f6ae0);
  box-shadow: 0 10px 24px -10px rgba(47, 129, 247, 0.7);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.newsletter button svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.84rem;
  color: var(--cyan);
}

.form-status.is-error {
  color: #ff8080;
}

.footer-watermark {
  position: absolute;
  left: 50%;
  bottom: -0.32em;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(90px, 17vw, 250px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(180deg, rgba(77, 163, 255, 0.1), transparent 78%);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.copyright {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--faint);
  font-size: 0.8rem;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ============================================================
   SECURITY BRIEFING MODAL
   ============================================================ */
.sec-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
}

.sec-modal[hidden] {
  display: none;
}

.sec-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.sec-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(86vh, 820px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 26px;
  border: 1px solid rgba(77, 163, 255, 0.28);
  background: linear-gradient(165deg, rgba(15, 28, 56, 0.97), rgba(6, 12, 26, 0.99));
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.9), 0 0 120px -40px rgba(47, 129, 247, 0.5);
  outline: none;
}

.sec-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.sec-rings span {
  position: absolute;
  border: 1px dashed rgba(77, 163, 255, 0.16);
  border-radius: 50%;
}

.sec-rings span:nth-child(1) {
  width: 420px;
  height: 420px;
  right: -150px;
  top: -190px;
  animation: spin 50s linear infinite;
}

.sec-rings span:nth-child(2) {
  width: 260px;
  height: 260px;
  right: -60px;
  top: -110px;
  animation: spin 34s linear infinite reverse;
}

.sec-mascot {
  position: absolute;
  top: -20px;
  right: 18px;
  width: clamp(96px, 12vw, 140px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.sec-close {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 34, 0.7);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease-out);
}

.sec-close:hover,
.sec-close:focus-visible {
  border-color: rgba(77, 163, 255, 0.5);
  background: rgba(22, 38, 70, 0.8);
  transform: rotate(90deg);
}

.sec-close svg {
  width: 16px;
  height: 16px;
  fill: var(--ink-soft);
}

.sec-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 26px 0 14px;
}

.sec-dialog h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  max-width: 17ch;
  margin-bottom: 12px;
}

.sec-lede {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 52ch;
  margin-bottom: 26px;
}

.sec-points {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.sec-points li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sec-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: rgba(47, 129, 247, 0.12);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.3);
}

.sec-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--blue-bright);
}

.sec-points strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.sec-points p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.sec-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.sec-footer span {
  color: var(--faint);
  font-size: 0.8rem;
  max-width: 30ch;
  line-height: 1.5;
}

/* --- Get SpaceMan modal form --- */
.dl-form {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}

.dl-field {
  display: grid;
  gap: 7px;
}

.dl-field span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.dl-field em {
  font-style: normal;
  color: var(--faint);
  text-transform: none;
  letter-spacing: 0.04em;
}

.dl-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 10, 22, 0.7);
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.dl-field input::placeholder {
  color: var(--faint);
}

.dl-field input:focus {
  outline: none;
  border-color: rgba(77, 163, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(47, 129, 247, 0.18);
}

.dl-form .btn {
  width: 100%;
  margin-top: 6px;
}

.dl-success {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding-top: 10px;
}

.dl-success[hidden] {
  display: none;
}

.dl-success img {
  width: 130px;
  height: auto;
  margin-bottom: 4px;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.5));
}

.dl-success h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin-bottom: 6px;
}

.dl-success p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 46ch;
  margin-bottom: 18px;
}

body.modal-open {
  overflow: hidden;
}

/* ============================================================
   Reveal defaults (JS enhances; CSS keeps content visible if JS fails)
   ============================================================ */
.js [data-reveal],
.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
}

.js.no-motion [data-reveal],
.js.no-motion [data-stagger] > * {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 40px);
  }

  .hero-copy {
    justify-items: center;
    text-align: center;
  }

  .hero-mascot {
    top: -96px;
    right: -10px;
  }

  .product-stage {
    max-width: 640px;
    margin-inline: auto;
    width: 100%;
  }

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

  .proof-shell {
    grid-template-columns: 1fr 1fr;
    row-gap: 26px;
  }

  .proof-brand {
    border-right: 0;
    padding-right: 0;
  }

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

  .security-visual {
    order: -1;
  }

  .orbit-rings {
    width: min(300px, 70vw);
  }

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

  .faq-intro {
    position: static;
  }

  .faq-mascot {
    display: none;
  }

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

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

@media (max-width: 720px) {
  :root {
    --nav-h: 64px;
  }

  body {
    font-size: 1rem;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 149;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 14px 20px 22px;
    background: rgba(4, 10, 24, 0.97);
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease, visibility 0.3s;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    padding: 13px 10px;
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: flex;
  }

  /* Desktop app only — hide the download CTA on phones */
  .btn-nav {
    display: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .trust-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-inline: auto;
  }

  .hero-mascot {
    width: 110px;
    top: -56px;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none;
  }

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

  .upload-toast {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .proof-shell {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .feature-grid,
  .workflow-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .mission-beat {
    margin-inline: 24px;
  }

  .mission-hud {
    display: none;
  }

  .downloads-mascot {
    width: 96px;
    top: 20px;
    right: 14px;
  }

  .download-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-card .btn {
    width: 100%;
  }

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

  .price-lockup {
    justify-items: start;
    text-align: left;
  }

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

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
