/* WhitePhone — B2B white-label landing
 * Design principles adapted from AppMaker:
 * evidence-first editorial · cool paper · cobalt accent · floating dual devices
 */

:root {
  --bg: #edf1f2;
  --bg-2: #dfe6e9;
  --paper: #f7f7f4;
  --surface: #ffffff;
  --steel: #d8e0e4;
  --blue-wash: #dce5f5;
  --sand: #e8dcc8;
  --ink: #0d1118;
  --ink-2: #27303b;
  --muted: #5b6672;
  --line: rgba(13, 17, 24, 0.12);
  --line-strong: rgba(13, 17, 24, 0.22);
  --accent: #1a4ee8;
  --accent-2: #103bb9;
  --accent-soft: rgba(26, 78, 232, 0.09);
  --navy: #101821;
  --navy-2: #182433;
  --on-ink: #f4f6f9;
  --on-ink-muted: rgba(244, 246, 249, 0.68);
  --warn: #9a4d1c;
  --max: 1180px;
  --gutter: clamp(1rem, 3vw, 1.75rem);
  --header-h: 4.35rem;
  --font-brand: "Bricolage Grotesque", "Manrope", sans-serif;
  --font-display: "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
  --radius-xs: 0.375rem;
  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --section-y: clamp(4.5rem, 9vw, 7rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Official Apple iPhone 17 Pro Max portrait bezel crop ≈ 1428×2959 */
  --device-ratio: 1428 / 2959;
  --shadow-device: 0 28px 72px rgba(11, 13, 18, 0.22);
  --shadow-media: 0 18px 52px rgba(11, 13, 18, 0.11);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.018;
  background: url("noise.svg");
  mix-blend-mode: multiply;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-xs);
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* Type */
.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before,
.hero-kicker::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.eyebrow--light {
  color: var(--on-ink-muted);
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(248, 249, 251, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled,
.site-header:has(.mobile-nav.is-open) {
  border-bottom-color: var(--line);
  background: rgba(248, 249, 251, 0.96);
}

.site-header .inner {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  min-height: var(--header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: grid;
  gap: 0.1rem;
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
}

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

.brand-powered {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.brand-powered a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 40%, transparent);
}

.brand-powered a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}

.site-nav a:not(.btn):hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.mobile-nav {
  display: none;
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.85rem;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 1.1rem var(--gutter) 1.4rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

/* Buttons */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(11, 13, 18, 0.14);
}

.btn-primary:hover {
  color: #fff;
  background: var(--accent);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--surface);
}

.btn-light {
  color: var(--ink);
  background: var(--on-ink);
}

.btn-light:hover {
  color: var(--accent);
  background: #fff;
}

.btn-dark-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
  background: transparent;
}

.btn-dark-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  min-height: 40px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(13, 17, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 17, 24, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper), var(--bg));
  background-size: 72px 72px, 72px 72px, auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  min-height: min(86vh, 760px);
}

.hero-copy {
  max-width: 34rem;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-brand);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.95;
  animation: rise 0.85s var(--ease) both;
}

.hero-brand span {
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.12;
  animation: rise 0.85s var(--ease) 0.08s both;
}

.hero .lede {
  margin: 0 0 1.5rem;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.05rem;
  animation: rise 0.85s var(--ease) 0.14s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.85s var(--ease) 0.2s both;
}

.hero-proof {
  width: fit-content;
  max-width: 100%;
  margin-top: 1.45rem;
  display: grid;
  grid-template-columns: 44px minmax(0, auto) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  animation: rise 0.85s var(--ease) 0.24s both;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.hero-proof:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-2px);
}

.hero-proof img {
  width: 44px;
  height: 44px;
  border-radius: 0.8rem;
}

.hero-proof span:not(.hero-proof__arrow) {
  min-width: 0;
  display: grid;
}

.hero-proof strong {
  font-size: 0.88rem;
  line-height: 1.25;
}

.hero-proof small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-proof__arrow {
  color: var(--accent);
  font-weight: 800;
}

.hero-stage {
  position: relative;
  min-height: 610px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1.15rem;
  padding: 1.5rem 0 0.25rem;
}

.hero-stage__plane {
  position: absolute;
  width: 78%;
  aspect-ratio: 0.9;
  border: 1px solid rgba(22, 71, 232, 0.15);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #dce5f7, #cfd9e6 62%, #d9cfbd);
  transform: rotate(5deg);
  animation: float-plane 13s ease-in-out infinite;
  top: 8%;
}

.device-stack {
  position: relative;
  z-index: 2;
  width: min(318px, 68vw);
  aspect-ratio: var(--device-ratio);
  flex-shrink: 0;
}

.device {
  position: absolute;
  margin: 0;
  background: transparent;
  filter: drop-shadow(0 28px 48px rgba(11, 13, 18, 0.28));
}

.device img {
  width: 100%;
  height: auto;
  display: block;
}

.device--primary {
  inset: 0;
  z-index: 2;
  animation: float-primary 7.5s ease-in-out infinite;
}

.device--satellite {
  z-index: 1;
  bottom: 4%;
  left: -34%;
  width: 52%;
  transform: rotate(-7deg);
  animation: float-satellite 6.4s ease-in-out 0.7s infinite;
  filter: drop-shadow(0 18px 36px rgba(11, 13, 18, 0.22));
}

.hero-stage__caption {
  position: relative;
  z-index: 3;
  margin: 0;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-stage__caption span {
  color: var(--accent);
}

/* Proof rail */
.proof-rail {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.proof-rail__inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem 2rem;
  align-items: center;
}

.proof-rail__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-rail__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.4rem;
  margin: 0;
  padding: 0.9rem 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 650;
}

/* Bands */
.band {
  position: relative;
  padding: var(--section-y) 0;
}

.band-paper {
  background: var(--paper);
}

.band-warm {
  background: var(--bg-2);
}

.band-steel {
  background: var(--steel);
}

.band-sand {
  background: var(--sand);
}

.band-ink {
  color: var(--on-ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, var(--navy), var(--navy-2));
  background-size: 72px 72px, 72px 72px, auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-head.single {
  grid-template-columns: 1fr;
}

.section-head--editorial {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.band-ink .section-head--editorial {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.band-ink .sub {
  color: var(--on-ink-muted);
}

/* Problem */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.problem-grid article {
  padding-top: 1.2rem;
  border-top: 2px solid var(--ink);
}

.problem-grid .n {
  margin-bottom: 1.4rem;
  color: var(--accent);
  font-family: var(--font-brand);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.problem-grid h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  letter-spacing: -0.035em;
}

.problem-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.offer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.15rem;
}

.offer-list li {
  display: grid;
  gap: 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.offer-list strong {
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.offer-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.offer-media {
  position: relative;
}

.offer-media .device-single {
  position: relative;
  width: min(280px, 70%);
  margin-inline: auto;
  aspect-ratio: var(--device-ratio);
  background: transparent;
  filter: drop-shadow(0 24px 44px rgba(11, 13, 18, 0.22));
  animation: float-primary 8.2s ease-in-out infinite;
}

.offer-media .device-single img {
  width: 100%;
  height: auto;
  display: block;
}

.offer-media .caption {
  margin: 1rem auto 0;
  max-width: 22rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.process article {
  min-width: 0;
  padding: 1.45rem 0 0;
  border-top: 2px solid var(--on-ink);
}

.process .n {
  margin-bottom: 2rem;
  color: #8fb0ff;
  font-family: var(--font-brand);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
}

.process h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.process p {
  margin: 0 0 1rem;
  color: var(--on-ink-muted);
  font-size: 0.92rem;
}

.process small {
  color: rgba(244, 246, 249, 0.85);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

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

.case-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.case-copy ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.case-copy li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.case-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.shot-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.shot-rail figure {
  margin: 0;
  display: grid;
  gap: 0.7rem;
  justify-items: center;
}

.shot-rail img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 36px rgba(11, 13, 18, 0.16));
}

.shot-rail figcaption {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

/* Scope */
.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.scope {
  padding: 1.5rem 1.35rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.scope h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.scope.in h3 {
  color: var(--accent-2);
}

.scope.out h3 {
  color: var(--warn);
}

.scope ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.scope li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.95rem;
}

.scope.in li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.scope.out li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--warn);
  font-weight: 800;
}

.scope-note {
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 58ch;
}

/* Compare */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: 0;
}

.compare th {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.compare td:first-child,
.compare th:first-child {
  width: 28%;
  color: var(--muted);
  font-weight: 650;
}

.compare .yes {
  color: var(--accent-2);
  font-weight: 750;
}

.compare .no {
  color: var(--warn);
}

/* Roadmap */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.roadmap article {
  padding-top: 1.2rem;
  border-top: 2px solid var(--ink);
}

.roadmap .tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roadmap h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  letter-spacing: -0.035em;
}

.roadmap p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}

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

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-weight: 750;
  letter-spacing: -0.025em;
  font-size: 1.05rem;
}

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

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 500;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0.75rem 0 0;
  max-width: 54rem;
  color: var(--muted);
}

/* CTA */
.cta-band .cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: end;
}

.cta-band h2 {
  margin: 0 0 0.85rem;
  max-width: 16ch;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.cta-band p {
  margin: 0;
  color: var(--on-ink-muted);
  max-width: 38ch;
}

.cta-band .hero-actions {
  margin-top: 0.5rem;
}

.cta-mail {
  margin: 1rem 0 0;
  color: var(--on-ink-muted);
  font-size: 0.92rem;
}

.cta-mail a {
  color: #9db7ff;
}

/* ---------- Tech page ---------- */
.page-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(13, 17, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 17, 24, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper), var(--bg));
  background-size: 72px 72px, 72px 72px, auto;
}

.page-hero h1 {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.page-hero .lede {
  margin: 0 0 1.35rem;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.tech-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-toc a {
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.tech-toc a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.arch {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

.arch-node {
  padding: 1.1rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.arch-node strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.arch-node p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.arch-node.is-optional {
  border-style: dashed;
  background: color-mix(in srgb, var(--blue-wash) 55%, var(--surface));
}

.arch-arrow {
  display: none;
}

.stack-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.stack-table th,
.stack-table td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.stack-table th {
  width: 28%;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stack-table code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.86em;
  padding: 0.12em 0.35em;
  border-radius: 0.3rem;
  background: var(--steel);
}

.stack-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  position: relative;
  padding: 0.85rem 0.95rem 0.85rem 2.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  color: var(--accent);
  font-weight: 800;
}

.note-box {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 0.95rem;
}

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

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  background: #0a0e14;
  color: rgba(244, 246, 249, 0.55);
  font-size: 0.85rem;
}

.site-footer .inner {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.site-footer a {
  color: rgba(244, 246, 249, 0.72);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

/* Motion */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-primary {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.7deg);
  }
  50% {
    transform: translate3d(0, -15px, 0) rotate(0.8deg);
  }
}

@keyframes float-satellite {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-7deg);
  }
  50% {
    transform: translate3d(-4px, 11px, 0) rotate(-4.5deg);
  }
}

@keyframes float-plane {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(5deg);
  }
  50% {
    transform: translate3d(8px, -8px, 0) rotate(6.2deg);
  }
}

@keyframes float-primary-mobile {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.4deg);
  }
  50% {
    transform: translate3d(0, -7px, 0) rotate(0.4deg);
  }
}

@keyframes float-satellite-mobile {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-7deg);
  }
  50% {
    transform: translate3d(-2px, 5px, 0) rotate(-5.5deg);
  }
}

@keyframes float-plane-mobile {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(5deg);
  }
  50% {
    transform: translate3d(4px, -4px, 0) rotate(5.6deg);
  }
}

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

  .hero-brand,
  .hero h1,
  .hero .lede,
  .hero-actions,
  .hero-proof,
  .device--primary,
  .device--satellite,
  .hero-stage__plane,
  .offer-media .device-single {
    animation: none !important;
  }

  .btn:hover,
  .hero-proof:hover {
    transform: none;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .section-head,
  .offer-layout,
  .case-feature__layout,
  .cta-band .cta-grid,
  .problem-grid,
  .roadmap,
  .scope-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-grid {
    padding: 3.25rem 0 2.5rem;
    min-height: auto;
  }

  .hero-stage {
    min-height: 480px;
  }

  .device--satellite {
    left: -22%;
  }

  .hero-stage__plane {
    animation-name: float-plane-mobile;
  }

  .device--primary {
    animation-name: float-primary-mobile;
  }

  .device--satellite {
    animation-name: float-satellite-mobile;
  }

  .site-nav .desk-only {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .proof-rail__inner {
    grid-template-columns: 1fr;
    padding: 1rem 0;
  }
}

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

  .hero-stage {
    min-height: 420px;
  }

  .device-stack {
    width: min(260px, 72vw);
  }

  .device--satellite {
    left: -18%;
    width: 46%;
  }

  .brand-powered {
    display: none;
  }

  .hero-proof {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .hero-proof__arrow {
    display: none;
  }
}
