/* Nomad Digital Technologies. One stylesheet, no framework. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #06080b;
  --bg-2: #0a0e13;
  --surface: #0e131a;
  --surface-2: #131a23;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e9eef3;
  --text-2: #b4bec9;
  --muted: #7d8996;
  --accent: #5eead4;
  --accent-2: #7aa2ff;
  --accent-ink: #032420;
  --hot: #ff7a59;
  --ok: #5eead4;
  --grad: linear-gradient(120deg, #5eead4 0%, #7aa2ff 60%, #b69cff 100%);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --section: clamp(80px, 11vw, 150px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { padding: 0; margin: 0; list-style: none; }
::selection { background: rgba(94, 234, 212, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.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 { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 0.8em; letter-spacing: 0.01em; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- type scale ---------- */
.display { font-size: clamp(44px, 7.2vw, 92px); font-weight: 620; letter-spacing: -0.045em; line-height: 0.98; }
.h1 { font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -0.04em; line-height: 1.02; }
.h2 { font-size: clamp(30px, 3.8vw, 48px); letter-spacing: -0.035em; }
.h3 { font-size: clamp(21px, 1.8vw, 24px); letter-spacing: -0.02em; line-height: 1.25; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); line-height: 1.55; max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }

/* ---------- buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font: 600 15.5px/1 var(--font); letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.3s, color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
.btn-primary:hover { background: #8af3e2; box-shadow: 0 8px 30px -8px rgba(94, 234, 212, 0.55); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 550; }
.link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow .arrow { transition: transform 0.25s var(--ease); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(6, 8, 11, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { display: flex; flex-direction: column; font-weight: 650; font-size: 15.5px; letter-spacing: -0.015em; line-height: 1.1; }
.brand-sub { font-family: var(--mono); font-weight: 450; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-size: 15px; font-weight: 500; transition: color 0.2s, background 0.2s; }
.nav a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] { color: var(--text); }
.nav-cta { margin-left: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); cursor: pointer; border-radius: 12px; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-icon { position: relative; margin: 0 auto; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.is-open .menu-icon { background: transparent; }
.is-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.is-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav[hidden] { display: none; }
.mobile-nav { padding: 8px var(--gutter) 28px; display: grid; gap: 2px; }
.mobile-nav a { padding: 14px 4px; font-size: 22px; font-weight: 560; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(640px, 100svh, 980px); display: flex; align-items: flex-end; padding: 140px 0 clamp(56px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; opacity: 0.35; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 0% 100%, rgba(6, 8, 11, 0.95), transparent 70%),
    linear-gradient(180deg, rgba(6, 8, 11, 0.55) 0%, transparent 25%, transparent 55%, var(--bg) 100%);
}
.hero-content { max-width: 880px; }
@media (min-width: 900px) { .hero-content { max-width: 56%; } .hero .display { font-size: clamp(48px, 5.6vw, 84px); } }
.hero .lede { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-meta {
  position: absolute; right: var(--gutter); top: 112px; z-index: 1;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; line-height: 1.8;
  letter-spacing: 0.02em;
}
.hero-meta b { color: var(--text-2); font-weight: 500; }
.hero-meta .live { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.hero-meta .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(94, 234, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); } }
@media (max-width: 860px) { .hero-meta { display: none; } }

.page-hero { position: relative; padding: clamp(150px, 18vw, 210px) 0 clamp(56px, 7vw, 90px); overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 420px at 85% 0%, rgba(122, 162, 255, 0.14), transparent 70%),
    radial-gradient(700px 380px at 10% 20%, rgba(94, 234, 212, 0.09), transparent 70%);
}
.page-hero .grid-bg { position: absolute; inset: 0; z-index: -1; opacity: 0.5; mask-image: linear-gradient(180deg, #000 0%, transparent 90%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%); }
.page-hero .lede { margin-top: 26px; }

.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 14px; padding: 20px 28px; font-family: var(--mono); font-size: 13px; color: var(--text-2); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.ticker-item::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.6; margin-left: 28px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.split { max-width: none; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 48px; }
.section-head.split .lede { margin: 0; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- capability cards ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cap-card {
  grid-column: span 2; position: relative; display: flex; flex-direction: column;
  padding: 32px 30px 30px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(14, 19, 26, 0.6) 100%);
  border: 1px solid var(--line); overflow: hidden; min-height: 330px;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.cap-card:nth-child(4), .cap-card:nth-child(5) { grid-column: span 3; }
.cap-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(500px 240px at var(--mx, 50%) var(--my, 0%), rgba(94, 234, 212, 0.1), transparent 60%);
}
.cap-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.cap-card:hover::before { opacity: 1; }
.cap-num { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.cap-icon { width: 48px; height: 48px; margin: 26px 0 22px; color: var(--accent); }
.cap-card h3 { margin-bottom: 12px; }
.cap-card p { color: var(--text-2); font-size: 16px; margin: 0; }
.cap-card .link-arrow { margin-top: auto; padding-top: 24px; font-size: 15px; }
.cap-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); white-space: nowrap; }
@media (max-width: 1020px) { .cap-card, .cap-card:nth-child(4), .cap-card:nth-child(5) { grid-column: span 3; } .cap-card:nth-child(5) { grid-column: span 6; } }
@media (max-width: 680px) { .cap-grid { grid-template-columns: 1fr; } .cap-card, .cap-card:nth-child(n) { grid-column: auto; min-height: 0; } }

/* ---------- live demo panel ---------- */
.demo { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.demo-copy .lede { margin: 22px 0 30px; }
.demo-legend { display: grid; gap: 14px; margin-top: 8px; }
.demo-legend li { display: flex; gap: 14px; align-items: baseline; color: var(--text-2); font-size: 15.5px; }
.demo-legend .key { flex: none; width: 22px; height: 3px; border-radius: 2px; transform: translateY(-4px); }
.panel {
  position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #0d1218, #090c11); overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.panel-bar .dots { display: flex; gap: 6px; }
.panel-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.panel-stats div { padding: 14px 18px; border-right: 1px solid var(--line); }
.panel-stats div:last-child { border-right: 0; }
.panel-stats dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.panel-stats dd { margin: 4px 0 0; font-family: var(--mono); font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.panel-stats dd.hot { color: var(--hot); }
.signal-canvas { width: 100%; height: clamp(240px, 30vw, 340px); }
@media (max-width: 960px) { .demo { grid-template-columns: 1fr; } }

/* ---------- claims ---------- */
.claims { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.claim { padding: 36px 32px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.3s; }
.claim:hover { background: rgba(255, 255, 255, 0.015); }
.claim-k { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 30px; display: block; }
.claim h3 { margin-bottom: 12px; }
.claim p { color: var(--text-2); font-size: 16px; margin: 0; }
@media (max-width: 960px) { .claims { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .claims { grid-template-columns: 1fr; } }

/* ---------- pipeline diagram ---------- */
.pipeline { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); padding: clamp(20px, 3vw, 36px); overflow: hidden; }
.pipeline svg { width: 100%; height: auto; }
.pipeline .flow { stroke-dasharray: 4 8; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.pipe-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 28px; }
.pipe-steps li { border-top: 1px solid var(--line-2); padding-top: 16px; }
.pipe-steps b { display: block; font-weight: 600; margin-bottom: 6px; font-size: 16px; }
.pipe-steps span { color: var(--muted); font-size: 14.5px; line-height: 1.5; display: block; }
@media (max-width: 900px) { .pipe-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pipe-steps { grid-template-columns: 1fr; } }

/* ---------- sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sector { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.sector h3 { font-size: 19px; margin-bottom: 10px; }
.sector p { color: var(--text-2); font-size: 15px; margin: 0; }
.sector .mono { color: var(--accent); display: block; margin-bottom: 18px; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 1020px) { .sectors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sectors { grid-template-columns: 1fr; } }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.step { padding: 34px 28px 10px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; }
.step h3 { margin: 18px 0 10px; }
.step p { color: var(--text-2); font-size: 15.5px; }
.step .when { font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(3) { padding-left: 0; border-left: 0; } .step:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step, .step + .step { padding-left: 0; border-left: 0; } .step + .step { border-top: 1px solid var(--line); } }

/* ---------- stack ---------- */
.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack li { font-family: var(--mono); font-size: 13.5px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); }

/* ---------- quote ---------- */
.quote-band { text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 900px; font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1.2; font-weight: 520; }
.quote-band cite { display: block; margin-top: 28px; font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- CTA ---------- */
.cta {
  position: relative; border-radius: 28px; overflow: hidden; isolation: isolate;
  padding: clamp(48px, 8vw, 100px) clamp(28px, 6vw, 80px);
  border: 1px solid var(--line-2);
  background: radial-gradient(900px 400px at 100% 0%, rgba(122, 162, 255, 0.22), transparent 60%), radial-gradient(800px 400px at 0% 100%, rgba(94, 234, 212, 0.16), transparent 60%), var(--surface);
}
.cta .grid-bg { position: absolute; inset: 0; z-index: -1; opacity: 0.45; mask-image: radial-gradient(closest-side, #000, transparent); -webkit-mask-image: radial-gradient(closest-side, #000, transparent); }
.cta h2 { max-width: 16ch; }
.cta .lede { margin: 22px 0 36px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- detail pages ---------- */
.detail { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 96px); padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.detail:first-of-type { border-top: 0; }
.detail-side { position: sticky; top: 110px; align-self: start; }
.detail-side .cap-icon { margin: 0 0 22px; }
.detail-side .mono { color: var(--muted); }
.detail-body h2 { margin-bottom: 20px; }
.detail-body > p { color: var(--text-2); font-size: 18px; max-width: 64ch; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.box h3 { font-size: 15px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 16px; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 11px; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 9px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); transform-origin: 30% 60%; }
.methods li { font-family: var(--mono); font-size: 13.5px; color: var(--text-2); padding: 9px 0; border-bottom: 1px dashed var(--line); }
.methods li:last-child { border-bottom: 0; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.subnav a { font-size: 14.5px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); transition: all 0.2s; }
.subnav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .detail-side { position: static; } .cols { grid-template-columns: 1fr; } }

.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.principle { padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.principle h3 { margin: 18px 0 10px; }
.principle p { color: var(--text-2); margin: 0; font-size: 16px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 32px 24px 32px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact b { display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px; }
.fact span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { padding-left: 0; border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }

.prose { max-width: 72ch; }
.prose h2 { font-size: 26px; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { margin: 0 0 1em; }
.prose ul li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-aside { position: sticky; top: 110px; }
.next-steps { counter-reset: n; margin-top: 36px; display: grid; gap: 22px; }
.next-steps li { position: relative; padding-left: 52px; color: var(--text-2); font-size: 16px; }
.next-steps li b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.next-steps li::before {
  counter-increment: n; content: counter(n);
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--accent);
  border: 1px solid rgba(94, 234, 212, 0.35); background: rgba(94, 234, 212, 0.06);
}
.assure { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.assure p { display: flex; gap: 12px; margin: 0; color: var(--muted); font-size: 14.5px; }
.assure svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } .contact-aside { position: static; } }

.form-card { border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface), #0b1016); padding: clamp(24px, 4vw, 44px); box-shadow: 0 40px 120px -50px rgba(0, 0, 0, 0.9); position: relative; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 14px; font-weight: 550; color: var(--text); display: flex; justify-content: space-between; gap: 12px; }
.field .opt { color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--text);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 16px; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #56616d; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, 0.24); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); background: rgba(94, 234, 212, 0.035); box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.12); }
.textarea { min-height: 170px; resize: vertical; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237d8996' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; cursor: pointer; }
.select option { background: #0e131a; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; padding: 10px 15px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14.5px; color: var(--text-2); cursor: pointer; transition: all 0.2s; user-select: none; }
.chip span:hover { border-color: rgba(255, 255, 255, 0.26); color: var(--text); }
.chip input:checked + span { background: rgba(94, 234, 212, 0.1); border-color: var(--accent); color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.count { font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-weight: 400; }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); cursor: pointer; line-height: 1.5; }
.check input { flex: none; appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); display: grid; place-items: center; cursor: pointer; transition: all 0.2s; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 0.2s var(--ease); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.help { font-size: 13.5px; color: var(--muted); min-height: 0; margin: 0; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea, .field.invalid .check input { border-color: rgba(255, 122, 89, 0.7); box-shadow: 0 0 0 4px rgba(255, 122, 89, 0.08); }
.field.invalid .help { color: #ffb4a1; }
.field.shake { animation: shake 0.4s var(--ease); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.form-foot .muted { font-size: 13.5px; margin: 0; }
.form-status { margin: 22px 0 0; padding: 14px 16px; border-radius: 12px; font-size: 15px; border: 1px solid rgba(255, 122, 89, 0.35); background: rgba(255, 122, 89, 0.07); color: #ffd2c6; }
.form-status[hidden] { display: none; }
.btn[aria-busy="true"] { pointer-events: none; opacity: 0.85; }
.btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(3, 36, 32, 0.25); border-top-color: var(--accent-ink); animation: spin 0.7s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: block; }
.btn[aria-busy="true"] .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.success { text-align: left; padding: clamp(8px, 2vw, 20px) 0; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(94, 234, 212, 0.1); border: 1px solid rgba(94, 234, 212, 0.4); margin-bottom: 28px; }
.success-icon svg { width: 28px; height: 28px; color: var(--accent); }
.success-icon path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.6s 0.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h2 { margin-bottom: 14px; }
.success p { color: var(--text-2); }
.success .ref { display: inline-flex; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.success .ref b { color: var(--text); font-weight: 500; }
.form-card.is-done { animation: rise 0.6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 80px 0 36px; margin-top: var(--section); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { margin-top: 20px; font-size: 15px; max-width: 34ch; }
.footer-h { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--text-2); font-size: 15px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.site-footer .btn { margin-top: 4px; }
.site-footer p.muted { font-size: 15px; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.footer-base p { margin: 0; }
.no-footer-gap .site-footer { margin-top: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

/* ---------- utilities (no inline styles, strict CSP) ---------- */
.d1 { --d: .07s; } .d2 { --d: .12s; } .d3 { --d: .18s; }
.k-sig { background: #5eead4; } .k-hot { background: #ff7a59; } .k-band { background: rgba(122, 162, 255, .5); }
.flush { border-top: 0 !important; padding-top: 0 !important; }
.bare { border: 0; padding: 0; margin: 0; min-width: 0; }
.mb10 { margin-bottom: 10px; } .mt44 { margin-top: 44px; } .pt0 { padding-top: 0 !important; }
.cf-turnstile { margin-top: 22px; }
@media (max-width: 640px) { .pipeline svg { display: none; } .pipe-steps { margin-top: 0; } }
@media (max-width: 899px) { .hero { min-height: 0; align-items: flex-start; padding-top: 340px; } }

/* ---------- doors: start from the buyer's problem ---------- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.door {
  display: flex; flex-direction: column; gap: 14px; padding: 32px 30px 30px;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s, transform .4s var(--ease), background .3s;
}
.door:hover { border-color: rgba(94, 234, 212, .4); background: linear-gradient(180deg, rgba(94, 234, 212, .05), var(--surface)); transform: translateY(-3px); }
.door-k { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.door h3 { margin-top: 6px; }
.door p { color: var(--text-2); font-size: 16px; margin: 0; }
.door .link-arrow { margin-top: auto; padding-top: 12px; font-size: 15px; }
.door:hover .arrow { transform: translateX(3px); }
@media (max-width: 960px) { .doors { grid-template-columns: 1fr; } }
