/* ------------------------------------------------------------------
   Mirdain Systems — locked hero plus Gunmetal + Amber body system.
   ------------------------------------------------------------------ */

:root {
  --bg: #0B1316;
  --surface: #121C20;
  --surface-2: #18242A;
  --border: rgba(138,174,201,0.13);
  --border-strong: rgba(138,174,201,0.26);
  --text: #E7EEF4;
  --text-dim: #9DACBC;
  --text-mute: #5F6E7E;
  --steel: #8AAEC9;
  --amber: #E8913A;
  --amber-soft: #F4A555;
  --amber-ink: #1A1206;
  --hero-slate: #060C15;
  --hero-azure: #1A7FC2;
  --hero-steel: #7FA8C9;
  --hero-prism: #FF5FA2;
  --hero-rainbow-mask: #010305;
  --hero-white: #ECF1F5;
  --error: #C8552E;
  --success: #8AAEC9;
  --font-display: 600 38px/1.1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-h3: 600 17px/1.3 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-stat: 700 26px/1.15 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 400 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body-sm: 400 13.5px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-eyebrow: 700 11.5px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-label: 700 11.5px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 500 12px/1 JetBrains Mono, "SFMono-Regular", Consolas, monospace;
  --sec-pad: 54px;
  --gutter: 56px;
  --gap: 14px;
  --radius: 12px;
  --radius-sm: 10px;
  --max: 1120px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 200ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font: var(--font-body);
  overflow-x: hidden;
}

::selection {
  background: rgba(232,145,58,0.32);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.container {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

:is(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid rgba(232,145,58,0.9);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: 28px;
}

/* ------------------------------ scroll reveal ----------------------------- */

.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ---------------------------------- nav ---------------------------------- */

.site-header {
  position: absolute;
  top: clamp(22px, 4svh, 42px);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hero-nav {
  position: relative;
  width: min(94vw, 1000px);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  color: var(--text);
  background: rgba(18,28,32,0.9);
  border: 1px solid var(--border-strong);
  border-radius: 17px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1;
}

.brand-mark {
  width: auto;
  height: 22px;
  flex: 0 0 auto;
  display: block;
}

.nav-links,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a,
.nav-links button,
.nav-links summary,
.nav-menu a,
.nav-menu button,
.nav-menu summary,
.footer-nav a {
  padding: 9px 13px;
  border: 0;
  border-radius: 9px;
  color: var(--text-dim);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
  text-align: left;
  transition:
    color var(--speed) ease,
    background var(--speed) ease;
}

.nav-links a:hover,
.nav-links button:hover,
.nav-links summary:hover,
.nav-menu a:hover,
.nav-menu button:hover,
.nav-menu summary:hover,
.footer-nav a:hover {
  color: var(--text);
  background: rgba(231,238,244,0.05);
}

.nav-services {
  position: relative;
}

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

.nav-services summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  cursor: pointer;
}

.nav-services summary::-webkit-details-marker {
  display: none;
}

.nav-services summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--speed) ease;
}

.nav-services[open] summary::after {
  transform: translateY(1px) rotate(225deg);
}

.services-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  min-width: 190px;
  display: grid;
  gap: 2px;
  padding: 8px;
  background: rgba(18,28,32,0.96);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 54px rgba(0,0,0,0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.services-menu a {
  line-height: 1.25;
}

.nav-links a.nav-cta,
.nav-menu a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-ink);
  background: var(--hero-white);
}

.nav-links a.nav-cta:hover,
.nav-menu a.nav-cta:hover {
  color: var(--amber-ink);
  background: var(--text);
}

.nav-links button,
.nav-menu button {
  cursor: pointer;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-content: center;
  gap: 6px;
  margin-right: -11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  width: 24px;
  height: 2px;
  display: block;
  background: var(--text-dim);
  border-radius: 999px;
  transition:
    background 160ms ease,
    transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.menu-button:hover span {
  background: var(--text);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 256px;
  display: grid;
  gap: 2px;
  padding: 8px;
  background: rgba(18,28,32,0.94);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 54px rgba(0,0,0,0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-menu .nav-services summary {
  display: flex;
  justify-content: space-between;
}

.nav-menu .services-menu {
  position: static;
  min-width: 0;
  margin-top: 2px;
  padding: 3px 0 0 12px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-menu[hidden] {
  display: none;
}

.nav-menu:not([hidden]) {
  transform-origin: top right;
  animation: menu-pop 220ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.nav-menu.is-closing {
  animation: menu-pop 180ms cubic-bezier(0.4, 0, 0.7, 1) reverse forwards;
}

@keyframes menu-pop {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------------------------------- hero --------------------------------- */

.hero {
  --hero-art-ratio: 1.7778958555;
  --hero-art-focus-x: 50%;
  --hero-art-w: max(100vw, calc(100svh * var(--hero-art-ratio)));
  --hero-art-h: max(100svh, calc(100vw / var(--hero-art-ratio)));
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.hero-media,
.hero-overlay,
.hero-rainbow-mask {
  position: absolute;
  top: 50%;
  left: var(--hero-art-focus-x);
  width: var(--hero-art-w);
  height: var(--hero-art-h);
  transform: translate(calc(var(--hero-art-focus-x) * -1), -50%);
}

.hero-media {
  z-index: 0;
  margin: 0;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  filter: saturate(0.95) contrast(1.03);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,12,21,0.36) 0%, rgba(6,12,21,0.22) 38%, rgba(6,12,21,0.05) 76%),
    linear-gradient(180deg, rgba(6,12,21,0.38) 0%, rgba(6,12,21,0.03) 46%, rgba(6,12,21,0.08) 100%);
  pointer-events: none;
}

.hero-overlay {
  z-index: 3;
  overflow: visible;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-rainbow-mask {
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.rainbow-occluder {
  fill: var(--hero-rainbow-mask);
  opacity: 0.98;
}

.hero-overlay * {
  vector-effect: non-scaling-stroke;
}

.scan-register {
  opacity: 0.34;
  animation: scan-register 14s ease-in-out infinite;
}

.scan-haze {
  fill: none;
  stroke-linecap: round;
}

.scan-haze-warm {
  stroke: var(--hero-prism);
  stroke-width: 3;
  opacity: 0.24;
  animation: scan-breathe 7s ease-in-out infinite;
}

.scan-haze-cool {
  stroke: var(--hero-azure);
  stroke-width: 3;
  opacity: 0.24;
  animation: scan-breathe 7s ease-in-out infinite;
  animation-delay: -1.1s;
}

.scan-core {
  fill: none;
  stroke: var(--hero-white);
  stroke-width: 1;
  opacity: 0.52;
  stroke-linecap: round;
  animation: scan-core-pulse 7s ease-in-out infinite;
}

.scan-rim {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.2;
  opacity: 0.44;
  stroke-linecap: round;
}

.ghost-contour {
  fill: none;
  stroke: url(#ghost-grad);
  stroke-width: 1.4px;
  opacity: 0.6;
  stroke-dasharray: 1;
  animation: ghost-draw 1.7s cubic-bezier(0.3, 0, 0.2, 1) 0.35s both;
}

.ghost-lip {
  opacity: 0.5;
  animation-duration: 1.3s;
  animation-delay: 1.8s;
}

.ghost-lip-inner {
  stroke: var(--hero-steel);
  stroke-width: 1px;
  stroke-dasharray: none;
  opacity: 0.18;
  animation: ghost-fade 1.2s ease 2.9s both;
}

.glint {
  animation: glint-pulse 3.6s ease-in-out 0.35s infinite;
}

.glint-b {
  animation-delay: 2.15s;
}

.glint-halo {
  fill: var(--hero-azure);
  opacity: 0.09;
}

.glint-core {
  fill: var(--text);
  opacity: 0.5;
}

.future-striation {
  fill: none;
  stroke: var(--hero-steel);
  stroke-width: 1;
  stroke-dasharray: 2 6;
  opacity: 0.07;
  stroke-linecap: round;
  animation: 14s ease-in-out infinite;
}

.striation-1 { animation-name: striate-1; }
.striation-2 { animation-name: striate-2; }
.striation-3 { animation-name: striate-3; }
.striation-4 { animation-name: striate-4; }
.striation-5 { animation-name: striate-5; }
.striation-6 { animation-name: striate-6; }
.striation-7 { animation-name: striate-7; }
.striation-8 { animation-name: striate-8; }
.striation-9 { animation-name: striate-9; }

.hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 18%;
  background: linear-gradient(180deg, rgba(11,19,22,0) 0%, var(--bg) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  min-height: 100svh;
  display: grid;
  align-items: start;
  pointer-events: none;
}

.hero-copy-block {
  --hero-copy-y-original: clamp(128px, 20svh, 206px);
  --hero-copy-y-current: clamp(128px, 24svh, 224px);
  --hero-actions-y-offset: clamp(14px, 1.6svh, 18px);
  width: min(45vw, 580px);
  margin-left: 0;
  padding-top: var(--hero-copy-y-current);
  display: grid;
  justify-items: center;
  text-align: center;
  pointer-events: auto;
}

.hero h1 {
  max-width: 580px;
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 520px;
  margin: clamp(16px, 2svh, 22px) 0 0;
  color: var(--text-dim);
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.4;
  font-weight: 400;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: calc(
    clamp(110px, 19svh, 168px) -
    (var(--hero-copy-y-current) - var(--hero-copy-y-original)) +
    var(--hero-actions-y-offset)
  );
}

.hero-cta {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 15px 30px;
  color: var(--amber-ink);
  background: var(--hero-white);
  border-radius: 999px;
  box-shadow: 0 22px 56px rgba(0,0,0,0.35);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-weight: 500;
  line-height: 1;
  transition:
    transform var(--speed) var(--ease-out),
    background var(--speed) ease,
    box-shadow var(--speed) ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  background: var(--text);
  box-shadow: 0 26px 64px rgba(0,0,0,0.4);
}

.hero-cta-ghost {
  color: var(--text);
  background: rgba(18,28,32,0.55);
  border: 1px solid var(--border-strong);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-cta-ghost:hover {
  background: rgba(18,28,32,0.75);
  border-color: var(--border-strong);
  box-shadow: none;
}

/* -------------------------------- sections ------------------------------- */

.section {
  position: relative;
  padding: var(--sec-pad) 0;
  background: var(--bg);
}

.why-section {
  padding-top: var(--sec-pad);
}

.stats-section {
  padding-top: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--steel);
  font: var(--font-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  flex: 0 0 22px;
  background: var(--amber);
  opacity: 0.7;
}

h2 {
  margin-bottom: 16px;
  color: var(--text);
  font: var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-lede {
  max-width: 440px;
  margin-bottom: 0;
  color: var(--text-dim);
  font: var(--font-body);
}

/* ------------------------------- why it matters -------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 54px;
  align-items: start;
}

.why-copy {
  min-width: 0;
}

.why-copy h2 {
  max-width: 650px;
}

.data-list {
  display: grid;
  align-self: stretch;
}

.data-list div {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.data-list div:first-child {
  padding-top: 4px;
}

.data-list div:last-child {
  border-bottom: 0;
}

.data-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font: var(--font-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.data-list strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

/* ------------------------------- how it works ---------------------------- */

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-card {
  position: relative;
  overflow: hidden;
  min-height: 252px;
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    transform 200ms ease,
    border-color 200ms ease;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 30px;
  background: repeating-linear-gradient(
    180deg,
    color-mix(in srgb, var(--steel) 16%, transparent) 0 1px,
    transparent 1px 6px
  );
  pointer-events: none;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.step-num {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 36px;
  color: var(--text-mute);
  font: var(--font-mono);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.step-card h3 {
  margin-bottom: 8px;
  color: var(--text);
  font: var(--font-h3);
  letter-spacing: -0.01em;
}

.step-card p {
  margin: 0 0 22px;
  color: var(--text-dim);
  font: var(--font-body-sm);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--text-mute);
  font: var(--font-mono);
  letter-spacing: 0.02em;
}

.status-chip span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.status-live {
  color: var(--amber);
}

.status-live span {
  box-shadow: 0 0 7px var(--amber);
  animation: live-pulse 2s ease-in-out infinite;
}

.status-production {
  color: var(--steel);
}

/* -------------------------------- stat band ------------------------------ */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 22px 22px 22px 40px;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: 0;
}

.stat::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 22px;
  width: 2px;
  background: var(--amber);
}

.stat strong {
  color: var(--text);
  font: var(--font-stat);
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--text-dim);
  font: var(--font-body-sm);
}

/* -------------------------------- waitlist ------------------------------- */

.waitlist-section {
  padding-bottom: var(--sec-pad);
}

.waitlist-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 54px;
  align-items: start;
  padding: 0;
}

.waitlist-copy p {
  max-width: 520px;
  margin-bottom: 22px;
  color: var(--text-dim);
  font: var(--font-body);
}

.button {
  appearance: none;
  -webkit-appearance: none;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:active {
  transform: scale(0.98);
}

.button:disabled {
  cursor: default;
  opacity: 0.45;
  pointer-events: none;
}

.button-primary {
  width: 100%;
  color: var(--amber-ink);
  background: var(--amber);
  border: 1px solid var(--amber);
}

.button-primary:hover {
  background: var(--amber-soft);
  border-color: var(--amber-soft);
}

.button-primary:active {
  background: var(--amber);
  border-color: var(--amber);
}

.button-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
}

.button-ghost:hover {
  border-color: var(--amber);
}

.waitlist-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.waitlist-form label {
  display: grid;
  gap: 8px;
  color: var(--text-dim);
  font: var(--font-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.waitlist-form input,
.waitlist-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--speed) ease,
    box-shadow var(--speed) ease;
}

.waitlist-form textarea {
  resize: vertical;
}

.waitlist-form input::placeholder,
.waitlist-form textarea::placeholder {
  color: var(--text-mute);
}

.waitlist-form input:focus,
.waitlist-form input:focus-visible,
.waitlist-form textarea:focus,
.waitlist-form textarea:focus-visible {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(232,145,58,0.4);
}

.waitlist-form input[aria-invalid="true"],
.waitlist-form textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.waitlist-form .hidden {
  display: none;
}

.form-status {
  min-height: 21px;
  margin: 0;
  color: var(--text-mute);
  font: var(--font-body-sm);
}

.form-status.is-success {
  color: var(--steel);
}

.form-status.is-error {
  color: var(--error);
}

/* --------------------------------- footer -------------------------------- */

.site-footer {
  padding: 36px 0;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.footer-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font: var(--font-body-sm);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--steel);
  transition: color var(--speed) ease;
}

.footer-bottom a:hover {
  color: var(--text);
}

/* ------------------------------- animations ------------------------------ */

@keyframes scan-breathe {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.46; }
}

@keyframes scan-core-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

@keyframes scan-register {
  0%, 12%, 100% { transform: translateY(0); }
  24%, 34% { transform: translateY(-4px); }
  52% { transform: translateY(-2px); }
}

@keyframes striate-1 { 0%, 4% { opacity: 0.07; } 8%, 78% { opacity: 0.42; } 88%, 100% { opacity: 0.07; } }
@keyframes striate-2 { 0%, 10% { opacity: 0.07; } 14%, 78% { opacity: 0.42; } 88%, 100% { opacity: 0.07; } }
@keyframes striate-3 { 0%, 16% { opacity: 0.07; } 20%, 78% { opacity: 0.42; } 88%, 100% { opacity: 0.07; } }
@keyframes striate-4 { 0%, 22% { opacity: 0.07; } 26%, 78% { opacity: 0.42; } 88%, 100% { opacity: 0.07; } }
@keyframes striate-5 { 0%, 28% { opacity: 0.07; } 32%, 78% { opacity: 0.42; } 88%, 100% { opacity: 0.07; } }
@keyframes striate-6 { 0%, 34% { opacity: 0.07; } 38%, 78% { opacity: 0.42; } 88%, 100% { opacity: 0.07; } }
@keyframes striate-7 { 0%, 40% { opacity: 0.07; } 44%, 78% { opacity: 0.42; } 88%, 100% { opacity: 0.07; } }
@keyframes striate-8 { 0%, 46% { opacity: 0.07; } 50%, 78% { opacity: 0.42; } 88%, 100% { opacity: 0.07; } }
@keyframes striate-9 { 0%, 52% { opacity: 0.07; } 56%, 78% { opacity: 0.42; } 88%, 100% { opacity: 0.07; } }

@keyframes ghost-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes ghost-fade {
  from { opacity: 0; }
}

@keyframes glint-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes live-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.62;
  }
}

/* ------------------------------- responsive ------------------------------ */

@media (max-width: 1080px) {
  .hero-copy-block {
    width: min(54vw, 600px);
  }
}

@media (max-width: 940px) {
  :root {
    --gutter: 34px;
  }

  .why-grid,
  .waitlist-panel {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .nav-links {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }
}

@media (max-width: 820px) {
  .hero {
    --hero-art-focus-x: 70%;
  }

  .hero-nav {
    width: min(72vw, 430px);
  }

  .nav-links {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(6,12,21,0.5) 0%, rgba(6,12,21,0.18) 42%, rgba(6,12,21,0.1) 100%),
      linear-gradient(90deg, rgba(6,12,21,0.1) 0%, rgba(6,12,21,0.22) 58%, rgba(6,12,21,0.1) 100%);
  }

  .hero-copy-block {
    width: 100%;
    padding-top: clamp(132px, 19svh, 178px);
    margin: 0 auto;
  }

  .hero-actions {
    margin-top: clamp(120px, 19svh, 168px);
  }
}

@media (max-width: 560px) {
  :root {
    --sec-pad: 34px;
  }

  .container {
    width: min(100% - (var(--gutter) * 2), var(--max));
  }

  h2 {
    font-size: 30px;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    top: 18px;
  }

  .hero {
    --hero-art-focus-x: 72%;
  }

  .hero-nav {
    width: calc(100% - 32px);
    min-width: 0;
    min-height: 48px;
    padding: 0 18px;
  }

  .brand {
    font-size: 1.04rem;
  }

  .brand-mark {
    height: 19px;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    margin-right: -10px;
  }

  .hero-copy-block {
    padding-top: clamp(118px, 18svh, 158px);
  }

  .hero-subtitle {
    max-width: 340px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta {
    width: min(280px, 84vw);
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .button-ghost,
  .button-primary {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .hero {
    --hero-art-w: calc(var(--hero-art-h) * var(--hero-art-ratio));
    --hero-art-h: max(86svh, calc(100vw / var(--hero-art-ratio)));
    --hero-art-focus-x: 77.3%;
  }

  .hero h1 {
    max-width: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .scan-register,
  .scan-haze-warm,
  .scan-haze-cool,
  .scan-core,
  .future-striation,
  .ghost-contour,
  .ghost-lip-inner,
  .glint,
  .status-live span {
    animation: none !important;
  }

  .future-striation {
    opacity: 0.12;
  }
}
