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

:root {
  --black:    #000000;
  --surface:  #070710;
  --card:     #0c0c1a;
  --elevated: #121228;
  --border:   #2a2a42;
  --border2:  #3a3a60;
  --dim:      #7070a0;
  --mid:      #a0a0c0;
  --sub:      #c0c0e0;
  --text:     #e8e8f4;
  --bright:   #f4f4ff;
  --white:    #ffffff;
  --blue:     #6aa9ff;
  --blue-dim: rgba(106,169,255,0.18);
  --blue-glow: rgba(106,169,255,0.5);
  --mono:  'IBM Plex Mono', monospace;
  --sans:  'IBM Plex Sans', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--black); color: var(--text);
  font-family: var(--sans); font-weight: 400; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 18px;
}
body.nav-open { overflow: hidden; }

a { text-decoration: none; }


::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-thumb { background: var(--border2); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* Scroll targets land with the section title just below the fixed nav (68px) */
#how        { scroll-margin-top: 84px; }
#for        { scroll-margin-top: 36px; }
#principles { scroll-margin-top: 36px; }
#pilot      { scroll-margin-top: 68px; }
#signup     { scroll-margin-top: 44px; }

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(0,0,0,0.95); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-logo-img { height: 48px; width: auto; cursor: pointer; display: block; }
.nav-links {
  display: flex; position: absolute;
  left: 50%; transform: translateX(-50%);
}
.nav-links a {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid);
  padding: 10px 18px; cursor: pointer; transition: color 0.25s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--white); color: var(--black); border: none;
  padding: 10px 24px; border-radius: 40px; cursor: pointer;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  background: transparent; border: none; cursor: pointer;
  padding: 8px; width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  z-index: 901;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--bright);
  transition: transform 0.3s, opacity 0.25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile dropdown — hidden on desktop */
.nav-dropdown {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0;
  z-index: 899;
  background: rgba(0,0,0,0.98); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}
.nav-dropdown.open { max-height: 100vh; padding: 1rem 1rem 1.5rem; }
.nav-dropdown a {
  display: block;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text);
  padding: 14px 4px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
  text-decoration: none;
}
.nav-dropdown a:hover,
.nav-dropdown a:active { color: var(--blue); }
.nav-dropdown a:last-of-type { border-bottom: none; }
.nav-dropdown-cta {
  display: block; width: 100%; margin-top: 1rem;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--white); color: var(--black); border: none;
  padding: 14px 20px; border-radius: 40px; cursor: pointer;
}

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 5rem 2.5rem 0;
  overflow: hidden;
  background: #000008;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 65% 55% at 65% 32%, rgba(20,15,70,0.25) 0%, transparent 68%),
    linear-gradient(to bottom, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.0) 35%, rgba(0,0,0,0.88) 100%),
    linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.0) 60%);
}

/* HUD */
.hud {
  position: absolute; z-index: 5;
  display: flex; flex-direction: column; gap: 5px;
  pointer-events: none;
}
.hud-tr {
  top: 84px; right: 2.25rem;
  text-align: right;
  background: rgba(0,0,0,0.28); backdrop-filter: blur(6px);
  border: 1px solid rgba(106,169,255,0.12); border-radius: 6px;
  padding: 12px 16px;
}
.hud-line {
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(140,160,210,0.55);
  display: flex; gap: 10px; align-items: center; justify-content: flex-end;
}
.hud-val { color: rgba(106,169,255,0.82); font-weight: 600; }
.hud-divider { height: 1px; background: rgba(106,169,255,0.12); margin: 4px 0; }

/* Corner brackets */
.corner {
  position: absolute; z-index: 5;
  width: 20px; height: 20px; pointer-events: none;
}
.corner-tl { top: 72px;    left: 1.5rem;  border-top:    1px solid rgba(106,169,255,0.22); border-left:  1px solid rgba(106,169,255,0.22); }
.corner-tr { top: 72px;    right: 1.5rem; border-top:    1px solid rgba(106,169,255,0.22); border-right: 1px solid rgba(106,169,255,0.22); }
.corner-bl { bottom: 49px; left: 1.5rem;  border-bottom: 1px solid rgba(106,169,255,0.22); border-left:  1px solid rgba(106,169,255,0.22); }
.corner-br { bottom: 49px; right: 1.5rem; border-bottom: 1px solid rgba(106,169,255,0.22); border-right: 1px solid rgba(106,169,255,0.22); }

/* Hero content */
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px; margin-bottom: 4rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--blue);
  margin-top: 1rem; margin-bottom: 1.5rem;
}
.bdot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px 4px var(--blue-glow);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.2; }
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300; line-height: 1.05; letter-spacing: -0.01em;
  color: var(--white); margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.hero h1 em { font-style: italic; }
.hero-sub {
  font-family: var(--sans); font-size: 1.15rem; font-weight: 400;
  color: var(--sub); max-width: 580px; line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  margin-bottom: 2rem;
}
.btn-white, .btn-outline { padding: 12px 28px; font-size: 11px; }
.btn-white {
  font-family: var(--mono); font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; background: var(--white); color: var(--black);
  border: none; border-radius: 40px; cursor: pointer;
  transition: opacity 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.btn-white:hover { opacity: 0.88; }
.btn-outline {
  font-family: var(--mono); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text); background: transparent;
  border: 1px solid var(--border2); border-radius: 40px; cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* Hero live ratio stat */
.hero-stat {
  position: absolute; right: 3rem; bottom: 7rem;
  z-index: 2; text-align: right;
  background: rgba(0,0,0,0.3); backdrop-filter: blur(8px);
  padding: 0.5rem 1rem; border-radius: 20px;
}
.ratio-big {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1; color: var(--white);
  letter-spacing: -0.03em;
}
.ratio-x {
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(2rem, 5vw, 4rem);
}
.ratio-label {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--dim); margin-top: 0.2rem;
}
.ratio-sub {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(106,169,255,0.6);
}

/* Hero bottom bar */
.hero-bar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border2);
  background: rgba(0,0,0,0.96); backdrop-filter: blur(20px);
  padding: 0.5rem 0;
  overflow: hidden;
}
.hero-bar-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.bar-cell {
  padding: 14px 1.25rem;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); border-right: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.bar-cell:last-child { border-right: none; }
.bar-cell.on { color: var(--bright); }
.dot-sm { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.dot-sm.live {
  background: var(--blue);
  box-shadow: 0 0 9px 3px var(--blue-glow);
  animation: blink 2.4s ease-in-out infinite;
}

/* ---- SECTION SPACING & TYPOGRAPHY ---- */
main.container { padding-top: 7rem; }
.section-pad { padding: 3rem 2.5rem 1.5rem; border-top: 1px solid var(--border); }
#how .section-pad { padding-top: 0; }
#principles .section-pad { padding-top: 3rem; }

.kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 1rem; display: block;
}
.section-h2 {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400; color: var(--white); letter-spacing: 0.01em;
  line-height: 1.2; margin-bottom: 1rem;
}
.section-preamble {
  font-family: var(--sans); font-size: 1.1rem; font-weight: 400;
  color: var(--mid); line-height: 1.85; max-width: 680px;
  margin-top: 1rem; margin-bottom: 1.25rem;
}

/* ---- OPS GRID (How it works) ---- */
.ops-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.op-card {
  background: var(--surface); padding: 2.75rem 2.25rem;
  position: relative; transition: background 0.3s;
}
.op-card:hover { background: var(--card); }
.op-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.op-card:hover::after { transform: scaleX(1); }
.op-num {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 8px;
}
.op-num::after { content: ''; flex: 1; height: 1px; background: var(--border2); }
.op-title {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 500;
  color: var(--white); margin-bottom: 0.75rem; line-height: 1.3;
}
.op-desc {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 400;
  color: var(--mid); line-height: 1.8; margin-bottom: 1.25rem;
}
.op-specs {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
  border-top: 1px solid var(--border); padding-top: 1rem;
  display: flex; flex-direction: column; gap: 6px;
}
.op-specs span { display: flex; align-items: center; gap: 6px; }
.op-specs span::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(106,169,255,0.7);
}

/* ---- PIPELINE ---- */
.pipeline-wrap {
  margin: 2.5rem 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border2); border-radius: 24px;
  padding: 2.5rem; position: relative;
}
.pipeline-flow {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}
.pipe-node {
  flex: 1; min-width: 100px; text-align: center;
  padding: 1rem 0.75rem; background: var(--card);
  border: 1px solid var(--border2); border-radius: 16px;
}
.pipe-node.hl {
  background: var(--blue-dim);
  border-color: rgba(106,169,255,0.5);
}
.node-label {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 4px;
}
.node-val {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: 1.6rem; color: var(--white); margin: 0.3rem 0;
}
.node-note {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue);
}
.pipe-arrow { color: var(--border2); font-size: 1.4rem; flex-shrink: 0; }

.ratio-slider {
  margin-top: 2rem; display: flex; align-items: center;
  justify-content: center; gap: 1.5rem; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 1.5rem;
}
.ratio-slider label {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim);
}
input[type="range"] {
  width: 280px; height: 3px;
  background: var(--border2); -webkit-appearance: none;
}
input[type="range"]:focus { outline: none; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue); cursor: pointer; border: none;
  box-shadow: 0 0 8px var(--blue-glow);
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.25); }
.ratio-value {
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  color: var(--blue); background: var(--card);
  padding: 5px 12px; border-radius: 30px;
  border: 1px solid var(--border2);
  min-width: 60px; text-align: center;
}
.validation-note {
  text-align: center; margin-top: 1.5rem;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue);
  border-top: 1px solid var(--border); padding-top: 1rem;
}

/* ---- WHO IT'S FOR (cards) ---- */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 1.25rem 0;
}
.who-card {
  background: var(--surface); overflow: hidden;
  transition: background 0.35s;
}
.who-card:hover { background: var(--card); }
.card-img-box {
  width: 100%; height: 240px;
  background: var(--card); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.card-img-box img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.who-card:hover .card-img-box img { transform: scale(1.04); }
.card-img-box::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(106,169,255,0.6), transparent);
  animation: scan 5s linear infinite;
  animation-delay: var(--d, 0s); top: 0;
}
@keyframes scan {
  0%   { top: 0;    opacity: 0; }
  8%   { opacity: 0.6; }
  88%  { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}
.card-body { padding: 2.25rem 2.25rem 2.75rem; }
.card-cat {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 1rem;
}
.card-title {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 500;
  color: var(--white); margin-bottom: 0.75rem; line-height: 1.3;
}
.card-text {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 400;
  color: var(--mid); line-height: 1.8;
}

/* ---- FIRST PRINCIPLES ---- */
.principles-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 1.25rem 0;
}
.principle {
  background: var(--surface); padding: 3rem;
  transition: background 0.35s;
}
.principle:hover { background: var(--card); }
.principle h4 {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500;
  color: var(--bright); margin-bottom: 0.85rem; line-height: 1.35;
}
.principle p {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 400;
  color: var(--mid); line-height: 1.85;
}

/* ---- TRY IT ---- */
.tryit-banner {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 28px; padding: 3.5rem;
  margin: 4rem 0 2rem;
  position: relative; overflow: hidden;
}
.tryit-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.tryit-banner::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 70% at 0% 50%, rgba(106,169,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.tryit-top { margin-bottom: 3rem; }
.tryit-heading {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400; color: var(--white); letter-spacing: 0.01em;
  line-height: 1.2; margin-bottom: 1.1rem;
}
.tryit-sub {
  font-family: var(--sans); font-size: 1.1rem; font-weight: 400;
  color: var(--mid); line-height: 1.85;
  max-width: 560px; margin-bottom: 1.75rem;
}
.shadow-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(106,169,255,0.08);
  border: 1px solid rgba(106,169,255,0.25);
  border-radius: 8px; padding: 8px 16px;
  margin-bottom: 1.25rem;
}
.shadow-badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 7px 2px var(--blue-glow);
  animation: blink 2.4s ease-in-out infinite;
}
.shadow-badge-text {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue);
}
.tryit-badge-section { margin: 1rem 0; }
.tryit-badge-line,
.tryit-badge-single {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--bright);
  background: rgba(0,0,0,0.4); border: 1px solid var(--border2);
  padding: 6px 14px; border-radius: 40px;
  display: inline-block; margin: 0 0.5rem 0.5rem 0;
}

.tryit-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border2);
  border-radius: 12px; overflow: hidden;
  margin: 2rem 0;
}
.tryit-step { background: var(--elevated); padding: 2.5rem 2rem; }
.ts-num {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px;
}
.ts-num::after { content: ''; flex: 1; height: 1px; background: var(--border2); }
.ts-title {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 500;
  color: var(--white); margin-bottom: 0.75rem; line-height: 1.3;
}
.ts-body {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 400;
  color: var(--mid); line-height: 1.8;
}

.deploy-row {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--border2); border-radius: 8px;
  overflow: hidden; margin: 2rem 0;
}
.deploy-scroller { display: flex; }
.deploy-track { display: flex; }
.deploy-label {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim);
  padding: 10px 18px;
  border-right: 1px solid var(--border2);
  display: flex; align-items: center;
}
.deploy-item {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sub);
  padding: 10px 16px;
  border-right: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
  justify-content: center;
  white-space: nowrap;
}
.deploy-item:last-child { border-right: none; }
.deploy-item::before {
  content: ''; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(106,169,255,0.35);
}

.tryit-cta-row {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 2rem;
}
.tryit-arrow {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--mid);
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; background: none; border: none;
  transition: color 0.25s;
}
.tryit-arrow:hover { color: var(--white); }
.tryit-arrow svg { transition: transform 0.25s; }
.tryit-arrow:hover svg { transform: translateY(3px); }

/* ---- FORM ---- */
.form-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 7rem; align-items: start; margin: 0;
}
.form-left h2 {
  font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400; color: var(--white); margin-bottom: 1rem;
}
.form-left p {
  font-family: var(--sans); font-size: 1rem; font-weight: 400;
  color: var(--mid); line-height: 1.85;
}
.f-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.f-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-label {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim);
}
.fi, .fs {
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--bright); font-family: var(--sans);
  font-size: 16px; font-weight: 400;
  padding: 14px 16px; border-radius: 12px;
  width: 100%; outline: none;
  transition: border-color 0.3s;
}
.fi:focus, .fs:focus { border-color: rgba(106,169,255,0.7); }
.fi::placeholder { color: var(--dim); }
.fs { -webkit-appearance: none; cursor: pointer; color: var(--mid); }
.fs option { background: var(--card); color: var(--text); }
.fsub {
  background: var(--white); color: var(--black);
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 15px; border: none; border-radius: 40px;
  width: 100%; cursor: pointer;
  margin-top: 6px; transition: opacity 0.2s;
}
.fsub:hover { opacity: 0.88; }
.fnote {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim); text-align: center; margin-top: 12px;
}
#formSuccess {
  display: none; text-align: center; padding: 3rem;
  border: 1px solid var(--border2); background: var(--surface);
  border-radius: 24px;
}
#formSuccess p {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 400;
  color: var(--blue);
}
#formSuccess small {
  display: block; margin-top: 10px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem;
  margin-top: 3rem;
}
.footer-logo-img { height: 44px; width: auto; display: block; }
.footer-links { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--sans); font-size: 14px; font-weight: 400;
  color: var(--mid); cursor: pointer; transition: color 0.25s;
  text-decoration: none;
}
.footer-links a[href^="mailto"] { text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--white); }
.footer-legal {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim);
}
.privacy-link { color: var(--mid); text-decoration: none; transition: color 0.25s; }
.privacy-link:hover { color: var(--white); text-decoration: underline; }

/* ---- REVEAL ---- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .ops-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid,
  .principles-grid,
  .tryit-steps { grid-template-columns: 1fr; }
  .deploy-row { flex-wrap: wrap; }
  .form-section { grid-template-columns: 1fr; gap: 3rem; }
  .hero-stat   { right: 1.5rem; bottom: 7rem; }
  .hero-bar    { grid-template-columns: 1fr 1fr; }
  .hero        { padding: 4rem 1.5rem 0; min-height: 95vh; }
  .hero h1     { font-size: clamp(2rem, 6vw, 4rem); }
  .hud         { display: none; }
  .corner      { display: none; }
}

@media (max-width: 700px) {
  /* --- Nav: hamburger left, logo center, CTA moves to dropdown --- */
  nav {
    padding: 0 1rem;
    height: 60px;
    justify-content: space-between;
  }
  .nav-hamburger { display: flex; position: relative; z-index: 902; }
  .nav-dropdown  { display: block; }
  .nav-logo-img {
    height: 34px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav-cta { display: none; }

  /* --- Layout --- */
  .container       { padding: 0 1rem; }
  main.container   { padding-top: 4.5rem; }
  .section-pad     { padding: 2rem 1rem 1rem; }
  #principles .section-pad { padding-top: 2rem; }

  /* --- Scroll anchors: shorter nav (60px) --- */
  #how        { scroll-margin-top: 72px; }
  #for        { scroll-margin-top: 48px; }
  #principles { scroll-margin-top: 12px; }
  #pilot      { scroll-margin-top: 72px; }
  #signup     { scroll-margin-top: 20px; }

  /* --- Hero (bigger headline + bigger sub-text on phone) --- */
  .hero {
    padding: 4.5rem 1.25rem 0;
    min-height: 88vh;
  }
  .hero-content { margin-bottom: 4.5rem; }
  .hero h1 {
    font-size: clamp(2.75rem, 11vw, 4rem);
    line-height: 1.08;
    margin-bottom: 1.25rem;
  }
  .hero h1 br { display: block; }
  .hero-sub {
    font-size: 1.15rem;
    line-height: 1.65;
    max-width: 100%;
    margin-bottom: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 0.5rem;
  }
  .hero-actions .btn-white,
  .hero-actions .btn-outline {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: auto;
    padding: 11px 22px;
  }
  .hero-stat { display: none; }
  .hud, .corner { display: none; }

  /* --- Hero bar: auto-scrolling marquee --- */
  .hero-bar { padding: 0; }
  .hero-bar-track {
    display: flex;
    grid-template-columns: none;
    width: max-content;
    animation: marquee-scroll 28s linear infinite;
    will-change: transform;
  }
  .hero-bar-track .bar-cell {
    flex-shrink: 0;
    padding: 10px 1.5rem;
    font-size: 10px;
    border-right: 1px solid var(--border);
    white-space: nowrap;
  }

  /* --- Single column areas --- */
  .f-row { grid-template-columns: 1fr; }

  /* --- Op-cards: horizontal swipe carousel --- */
  .ops-grid {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: none; border-bottom: none;
    background: transparent;
    gap: 0;
    margin: 0 -1rem;
    padding: 0 1rem 0.5rem;
  }
  .ops-grid::-webkit-scrollbar { display: none; }
  .op-card {
    flex: 0 0 82%;
    min-width: 82%;
    scroll-snap-align: start;
    padding: 2rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-right: 0.75rem;
  }
  .op-card:last-child { margin-right: 0.5rem; }
  .op-title { font-size: 1.25rem; }

  /* --- Who it's for: horizontal swipe carousel --- */
  .cards-grid {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: none; border-bottom: none;
    background: transparent;
    gap: 0;
    margin: 1rem -1rem 0.5rem;
    padding: 0 1rem 0.5rem;
  }
  .cards-grid::-webkit-scrollbar { display: none; }
  .who-card {
    flex: 0 0 82%;
    min-width: 82%;
    scroll-snap-align: start;
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-right: 0.75rem;
    overflow: hidden;
  }
  .who-card:last-child { margin-right: 0.5rem; }
  .card-img-box { height: 200px; }
  .card-body    { padding: 1.75rem 1.25rem 2rem; }
  .card-title   { font-size: 1.25rem; }

  /* --- First principles: 2x2 grid, bigger headings --- */
  .principles-grid { grid-template-columns: 1fr 1fr; gap: 1px; }
  .principle       { padding: 1.25rem 1rem; }
  .principle h4    { font-size: 1.15rem; margin-bottom: 0.5rem; line-height: 1.25; }
  .principle p     { font-size: 0.82rem; line-height: 1.55; }

  /* --- Pipeline: vertical stack with rotated arrows --- */
  .pipeline-wrap {
    margin: 1.5rem 0;
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
  }
  .pipeline-flow { flex-direction: column; gap: 0.35rem; }
  .pipe-node     { width: 100%; min-width: 0; padding: 0.75rem; }
  .pipe-arrow    { transform: rotate(90deg); font-size: 0.9rem; line-height: 0.5; }
  .node-label    { font-size: 8.5px; }
  .node-val      { font-size: 1.2rem; margin: 0.15rem 0; }
  .node-note     { font-size: 8.5px; }
  .ratio-slider {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  }
  input[type="range"] { width: 100%; max-width: 280px; }

  /* --- Try-it banner --- */
  .tryit-banner   { padding: 1.75rem 1.25rem; border-radius: 20px; }
  .tryit-top      { margin-bottom: 2rem; }
  .tryit-heading  { font-size: clamp(1.75rem, 7vw, 2.25rem); line-height: 1.15; }
  .tryit-sub      { font-size: 1rem; max-width: 100%; }
  .shadow-badge   { padding: 7px 12px; }
  .shadow-badge-text { font-size: 9px; letter-spacing: 0.14em; }
  .tryit-cta-row  { flex-wrap: wrap; }

  /* --- Try-it badges: swipeable + auto-advancing carousel --- */
  .tryit-badge-section {
    margin: 1rem -1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* No scroll-snap here — conflicts with the translateX animation below */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .tryit-badge-section::-webkit-scrollbar { display: none; }
  .tryit-badge-track {
    display: flex;
    width: max-content;
    gap: 0;
    padding: 0 0.375rem;
    animation: marquee-scroll 22s linear infinite;
    will-change: transform;
  }
  .tryit-badge-track > * {
    flex-shrink: 0;
    margin: 0 0.375rem;
    white-space: nowrap;
  }
  .tryit-badge-section:hover .tryit-badge-track,
  .tryit-badge-section.paused .tryit-badge-track {
    animation-play-state: paused;
  }

  /* --- Try-it steps: horizontal swipe carousel --- */
  .tryit-steps {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: transparent;
    border-radius: 0;
    gap: 0.75rem;
    margin: 1.25rem -1.25rem;
    padding: 0 1.25rem 0.5rem;
  }
  .tryit-steps::-webkit-scrollbar { display: none; }
  .tryit-step {
    flex: 0 0 78%;
    min-width: 78%;
    scroll-snap-align: start;
    padding: 1.75rem 1.25rem;
    border: 1px solid var(--border2);
    border-radius: 14px;
  }
  .ts-title { font-size: 1.2rem; }

  /* --- Deploy row: fixed label + swipeable marquee items --- */
  .deploy-row {
    display: flex;           /* full width on mobile — label is absolute positioned */
    position: relative;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    border-radius: 10px;
    padding-left: 118px;
  }
  .deploy-label {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 118px; z-index: 2;
    background: var(--card);
    border-right: 1px solid var(--border2);
    border-bottom: none;
    padding: 10px 12px;
    justify-content: center;
    flex-shrink: 0;
  }
  .deploy-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* No scroll-snap — conflicts with marquee animation and causes half-cut items */
    flex: 1;
  }
  .deploy-scroller::-webkit-scrollbar { display: none; }
  .deploy-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 18s linear infinite;
    will-change: transform;
  }
  .deploy-scroller:hover .deploy-track,
  .deploy-scroller.paused .deploy-track {
    animation-play-state: paused;
  }
  .deploy-item {
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    border-bottom: none;
    padding: 10px 14px;
    white-space: nowrap;
    min-width: max-content;
  }
  .deploy-item:last-child { border-right: 1px solid var(--border); }
  .deploy-row::before {
    content: '';
    position: absolute;
    left: 118px; top: 0; bottom: 0;
    width: 18px; z-index: 1;
    background: linear-gradient(to right, var(--card), rgba(12,12,26,0));
    pointer-events: none;
  }

  /* --- Carousel end-spacer for visual affordance --- */
  .ops-grid::after,
  .cards-grid::after,
  .tryit-steps::after {
    content: '';
    flex: 0 0 1rem;
  }

  /* --- Form --- */
  .form-section { gap: 2rem; }
  .form-left h2 { font-size: clamp(1.6rem, 6vw, 2rem); }
  .fi, .fs      { font-size: 16px; padding: 12px 14px; }

  /* --- Footer --- */
  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1rem;
  }
  .footer-links { gap: 1.25rem 1.75rem; }
}

@media (max-width: 380px) {
  .hero h1        { font-size: 2.4rem; }
  .section-h2     { font-size: 1.75rem; }
  .tryit-heading  { font-size: 1.75rem; }
  .hero-actions .btn-white,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .nav-logo-img   { height: 30px; }
}

/* ---- Marquee animation (outside media queries for broad support) ---- */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}