:root {
  color-scheme: light;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", serif;

  --ink: #15110f;
  --ink-soft: #40342f;
  --ash: #6c625d;
  --paper: #fffdf9;
  --paper-warm: #fff6ec;
  --paper-deep: #f8eee2;
  --ember: #f45b14;
  --ember-hot: #ff7a1a;
  --ember-dark: #be3f0a;
  --signal: #0f8f6f;
  --signal-soft: #e3f6ef;
  --plum: #4a2337;
  --amber: #ffbf3f;
  --danger: #d93025;

  --border-subtle: rgb(21 17 15 / 0.08);
  --border-default: rgb(21 17 15 / 0.12);
  --border-strong: rgb(21 17 15 / 0.2);
  --shadow-brand: 0 12px 32px rgb(244 91 20 / 0.16);
  --shadow-soft: 0 10px 28px rgb(21 17 15 / 0.08);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  --radius-card: 8px;
  --radius-small: 6px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgb(21 17 15 / 0.035) 1px, transparent 1px) 0 0 /
      40px 40px,
    linear-gradient(0deg, rgb(21 17 15 / 0.025) 1px, transparent 1px) 0 0 /
      40px 40px,
    var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

body::selection {
  background: rgb(244 91 20 / 0.22);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

:focus-visible {
  outline: 3px solid rgb(244 91 20 / 0.45);
  outline-offset: 3px;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  inset-block-start: 16px;
  inset-inline-start: 16px;
  z-index: 200;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: white;
  background: var(--ink);
  border-radius: var(--radius-small);
}

.site-header {
  position: fixed;
  inset-block-start: 14px;
  inset-inline: 16px;
  z-index: 80;
  transition: transform 260ms var(--ease);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  max-width: 1180px;
  min-height: 64px;
  margin-inline: auto;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgb(21 17 15 / 0.12);
  border-radius: var(--radius-card);
  background: rgb(255 253 249 / 0.82);
  box-shadow: 0 14px 38px rgb(21 17 15 / 0.08);
  backdrop-filter: blur(18px) saturate(1.5);
}

.site-header.is-scrolled .nav-shell {
  background: rgb(255 253 249 / 0.94);
  box-shadow: 0 16px 44px rgb(21 17 15 / 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  background:
    linear-gradient(135deg, var(--ember), var(--amber)),
    var(--ember);
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-brand);
  font-family: var(--font-display);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-weight: 900;
}

.brand small {
  margin-block-start: 3px;
  color: var(--ember-dark);
  font-size: 12px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
}

.nav-links > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: var(--radius-small);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  transition:
    background 160ms var(--ease),
    color 160ms var(--ease),
    transform 160ms var(--ease);
}

.nav-links > a:hover {
  color: var(--ember-dark);
  background: rgb(244 91 20 / 0.08);
}

.nav-links .nav-cta {
  margin-inline-start: var(--space-2);
  color: white;
  background: var(--ink);
}

.nav-links .nav-cta:hover {
  color: white;
  background: var(--ember);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  justify-self: end;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-small);
  background: white;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 900;
  line-height: 1;
  transition:
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease),
    background 160ms var(--ease),
    color 160ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--ember), var(--ember-hot));
  box-shadow: var(--shadow-brand);
}

.button.primary:hover {
  box-shadow: 0 16px 40px rgb(244 91 20 / 0.28);
}

.button.secondary {
  color: var(--ink);
  background: rgb(255 255 255 / 0.78);
  border-color: var(--border-default);
}

.hero {
  position: relative;
  min-height: 88svh;
  padding: 104px 24px 0;
  overflow: clip;
  background:
    linear-gradient(115deg, rgb(255 253 249 / 0.95) 0 48%, rgb(255 246 236 / 0.86) 48% 100%),
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 18px,
      rgb(244 91 20 / 0.06) 18px 19px,
      transparent 19px 42px
    );
  mask-image: linear-gradient(90deg, transparent, black 45%, black 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
  opacity: 0.38;
}

.hero-grid span {
  border-inline-end: 1px solid rgb(21 17 15 / 0.07);
}

.heat-ribbon {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: 42%;
  height: 100%;
  background:
    linear-gradient(180deg, rgb(244 91 20 / 0.1), transparent 68%),
    repeating-linear-gradient(
      90deg,
      transparent 0 18px,
      rgb(244 91 20 / 0.08) 18px 24px,
      transparent 24px 48px
    );
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 480px);
  align-items: center;
  gap: var(--space-12);
  max-width: 1180px;
  margin-inline: auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 var(--space-4);
  color: var(--ember-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero h1,
.section h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  font-size: 58px;
}

.hero-lede {
  max-width: 660px;
  margin: var(--space-6) 0 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-start: var(--space-6);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  max-width: 660px;
  margin: var(--space-8) 0 0;
}

.hero-metrics div {
  padding-block-start: var(--space-4);
  border-block-start: 2px solid rgb(244 91 20 / 0.35);
}

.hero-metrics dt {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.hero-metrics dd {
  margin: var(--space-2) 0 0;
  color: var(--ash);
  font-size: 13px;
  font-weight: 700;
}

.war-map {
  position: relative;
  min-height: 500px;
  padding: var(--space-5);
  color: white;
  background:
    linear-gradient(145deg, rgb(21 17 15 / 0.96), rgb(74 35 55 / 0.94)),
    var(--ink);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-card);
  box-shadow:
    0 18px 60px rgb(21 17 15 / 0.28),
    0 0 0 1px rgb(244 91 20 / 0.16) inset;
  overflow: hidden;
}

.war-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px) 0 0 /
      28px 28px,
    linear-gradient(0deg, rgb(255 255 255 / 0.04) 1px, transparent 1px) 0 0 /
      28px 28px;
  opacity: 0.8;
}

.war-map::after {
  content: "";
  position: absolute;
  inset-block: 24px;
  inset-inline-end: -80px;
  width: 220px;
  border: 1px solid rgb(244 91 20 / 0.28);
  transform: skewX(-14deg);
  background: repeating-linear-gradient(
    180deg,
    rgb(244 91 20 / 0.18) 0 8px,
    transparent 8px 22px
  );
}

.war-map-top,
.flywheel,
.signal-board {
  position: relative;
  z-index: 1;
}

.war-map-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  color: rgb(255 255 255 / 0.72);
  font-size: 13px;
  font-weight: 800;
}

.war-map-top strong {
  color: var(--amber);
}

.flywheel {
  display: grid;
  place-items: center;
  width: 300px;
  height: 300px;
  margin: 34px auto 22px;
  border: 1px dashed rgb(255 122 26 / 0.52);
  border-radius: 50%;
  animation: pulse-ring 3.6s ease-in-out infinite;
}

.flywheel::before,
.flywheel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.flywheel::before {
  inset: 40px;
  border: 1px solid rgb(255 255 255 / 0.14);
}

.flywheel::after {
  inset: 86px;
  background: conic-gradient(
    from 18deg,
    rgb(244 91 20 / 0.94),
    rgb(255 191 63 / 0.92),
    rgb(15 143 111 / 0.76),
    rgb(244 91 20 / 0.94)
  );
  mask: radial-gradient(circle, transparent 0 56%, black 57% 66%, transparent 67%);
  animation: rotate-map 18s linear infinite;
}

.flywheel-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 28px rgb(244 91 20 / 0.42);
  text-align: center;
}

.flywheel-core span,
.flywheel-core strong {
  display: block;
  line-height: 1.05;
}

.flywheel-core span {
  color: var(--ember);
  font-size: 15px;
  font-weight: 900;
}

.flywheel-core strong {
  margin-block-start: 4px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 900;
}

.fly-node {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 86px;
  min-height: 38px;
  padding: 8px 11px;
  color: white;
  background: rgb(255 255 255 / 0.09);
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 900;
}

.node-position {
  inset-block-start: 16px;
}

.node-traffic {
  inset-inline-end: -8px;
}

.node-close {
  inset-block-end: 16px;
}

.node-referral {
  inset-inline-start: -8px;
}

.signal-board {
  display: grid;
  gap: var(--space-2);
}

.signal-board div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: var(--space-3);
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-small);
  background: rgb(255 255 255 / 0.06);
}

.signal-board span {
  color: rgb(255 255 255 / 0.58);
  font-size: 12px;
  font-weight: 800;
}

.signal-board strong {
  font-size: 14px;
}

.fit-strip {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  max-width: 1180px;
  margin: var(--space-4) auto 0;
  padding: 16px 20px;
  color: var(--ink-soft);
  border-block: 1px solid var(--border-subtle);
  background: rgb(255 253 249 / 0.7);
}

.mobile-growth-strip {
  display: none;
}

.fit-strip span {
  color: var(--ash);
  font-weight: 700;
}

.fit-strip strong {
  padding: 6px 10px;
  color: var(--ink);
  border: 1px solid rgb(244 91 20 / 0.18);
  border-radius: var(--radius-pill);
  background: rgb(244 91 20 / 0.06);
  font-size: 13px;
}

.section {
  padding: var(--space-20) 24px;
}

.section-head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-kicker span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-inline-end: 8px;
  color: white;
  background: var(--ember);
  border-radius: var(--radius-small);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.section h2 {
  font-size: 44px;
}

.section-head p:not(.section-kicker) {
  margin: var(--space-5) 0 0;
  color: var(--ash);
  font-size: 17px;
}

.pain-grid,
.system-grid,
.metric-grid,
.timeline {
  max-width: 1180px;
  margin: var(--space-12) auto 0;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.pain-card,
.system-tile,
.metric-card,
.timeline-item,
.diagnosis-form {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: rgb(255 255 255 / 0.82);
  box-shadow: var(--shadow-soft);
}

.pain-card {
  min-height: 250px;
  padding: var(--space-6);
}

.pain-card i,
.system-tile i {
  color: var(--ember);
}

.pain-card > i {
  width: 28px;
  height: 28px;
}

.pain-card h3,
.system-tile h3,
.timeline-item h3,
.tab-panel h3 {
  margin: var(--space-5) 0 var(--space-3);
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
}

.pain-card p,
.system-tile p,
.timeline-item p,
.tab-panel p,
.metric-card p {
  margin: 0;
  color: var(--ash);
}

.system-section {
  background:
    linear-gradient(180deg, var(--paper-warm), var(--paper) 46%, var(--paper-deep));
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(230px, auto);
  gap: var(--space-4);
}

.system-tile {
  position: relative;
  padding: var(--space-6);
  overflow: hidden;
}

.system-tile::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ember), var(--amber), var(--signal));
}

.system-tile.wide {
  grid-column: span 2;
}

.system-tile.visual-tile {
  grid-row: span 2;
  color: white;
  background:
    linear-gradient(145deg, var(--ink), var(--plum)),
    var(--ink);
  border-color: rgb(255 255 255 / 0.1);
}

.system-tile.visual-tile h3,
.system-tile.visual-tile p {
  color: white;
}

.system-tile.visual-tile p {
  color: rgb(255 255 255 / 0.74);
}

.tile-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  color: var(--ember-dark);
  background: rgb(244 91 20 / 0.1);
  border: 1px solid rgb(244 91 20 / 0.18);
  border-radius: var(--radius-small);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 900;
}

.check-list {
  display: grid;
  gap: var(--space-2);
  padding: 0;
  margin: var(--space-5) 0 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink-soft);
  font-weight: 700;
}

.check-list i {
  width: 18px;
  height: 18px;
}

.funnel-visual {
  display: grid;
  gap: var(--space-3);
  margin-block-end: var(--space-8);
}

.funnel-visual span {
  width: var(--w);
  padding: 11px 14px;
  color: white;
  background:
    linear-gradient(90deg, rgb(244 91 20 / 0.92), rgb(255 191 63 / 0.72)),
    var(--ember);
  border-radius: var(--radius-small);
  font-size: 14px;
  font-weight: 900;
}

.method-section {
  background: var(--ink);
  color: white;
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: var(--space-16);
  max-width: 1180px;
  margin-inline: auto;
}

.method-section .section-head {
  margin: 0;
  text-align: start;
}

.method-section h2 {
  color: white;
}

.method-section .section-head p:not(.section-kicker) {
  color: rgb(255 255 255 / 0.72);
}

.sticky-head {
  position: sticky;
  inset-block-start: 120px;
  align-self: start;
}

.method-panel {
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.04)),
    rgb(255 255 255 / 0.04);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.24);
  overflow: hidden;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-block-end: 1px solid rgb(255 255 255 / 0.12);
}

.tab {
  min-height: 58px;
  padding: 12px 14px;
  color: rgb(255 255 255 / 0.66);
  background: transparent;
  border: 0;
  border-inline-end: 1px solid rgb(255 255 255 / 0.1);
  font-size: 15px;
  font-weight: 900;
  transition:
    color 160ms var(--ease),
    background 160ms var(--ease);
}

.tab:last-child {
  border-inline-end: 0;
}

.tab:hover,
.tab.is-active {
  color: white;
  background: rgb(244 91 20 / 0.18);
}

.tab-panel {
  min-height: 400px;
  padding: var(--space-10);
}

.panel-badge {
  display: inline-flex;
  padding: 7px 10px;
  color: var(--amber);
  border: 1px solid rgb(255 191 63 / 0.3);
  border-radius: var(--radius-small);
  background: rgb(255 191 63 / 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
}

.tab-panel h3 {
  max-width: 560px;
  color: white;
  font-family: var(--font-display);
  font-size: 40px;
}

.tab-panel p {
  max-width: 620px;
  color: rgb(255 255 255 / 0.74);
  font-size: 17px;
}

.formula-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-block-start: var(--space-10);
}

.formula-row strong,
.formula-row span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
}

.formula-row strong {
  padding: 10px 15px;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius-small);
}

.formula-row span {
  color: var(--ember-hot);
  font-size: 24px;
  font-weight: 900;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.timeline::before {
  content: "";
  position: absolute;
  inset-block-start: 42px;
  inset-inline: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--amber), var(--signal));
}

.timeline-item {
  position: relative;
  padding: var(--space-6);
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset-block-start: 34px;
  inset-inline-start: 24px;
  width: 16px;
  height: 16px;
  background: var(--ember);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgb(244 91 20 / 0.3);
}

.timeline-item span {
  display: inline-flex;
  margin-inline-start: 28px;
  color: var(--ember-dark);
  font-size: 13px;
  font-weight: 900;
}

.metrics-section {
  background:
    linear-gradient(180deg, var(--paper-deep), var(--paper)),
    var(--paper);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.metric-card {
  padding: var(--space-6);
}

.metric-card span {
  display: block;
  color: var(--ash);
  font-size: 13px;
  font-weight: 900;
}

.metric-card strong {
  display: block;
  margin: var(--space-3) 0 var(--space-4);
  color: var(--ember);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.diagnosis-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: var(--space-12);
  max-width: 1180px;
  margin-inline: auto;
  padding-block: var(--space-20);
}

.diagnosis-section .section-kicker span {
  background: var(--ink);
}

.diagnosis-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1.12;
}

.diagnosis-copy p {
  margin: var(--space-5) 0 0;
  color: var(--ash);
  font-size: 17px;
}

.diagnosis-points {
  display: grid;
  gap: var(--space-3);
  margin-block-start: var(--space-8);
}

.diagnosis-points span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink-soft);
  font-weight: 900;
}

.diagnosis-points i {
  width: 22px;
  height: 22px;
  color: var(--ember);
}

.diagnosis-form {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-8);
  background: white;
}

.diagnosis-form label {
  display: grid;
  gap: var(--space-2);
}

.diagnosis-form label span {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 900;
}

.diagnosis-form input,
.diagnosis-form select,
.diagnosis-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fffaf4;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-small);
  transition:
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease),
    background 160ms var(--ease);
}

.diagnosis-form textarea {
  resize: vertical;
}

.diagnosis-form input:focus,
.diagnosis-form select:focus,
.diagnosis-form textarea:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 4px rgb(244 91 20 / 0.12);
  outline: none;
  background: white;
}

.form-submit {
  width: 100%;
  margin-block-start: var(--space-2);
}

.form-note {
  margin: 0;
  color: var(--ash);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 28px 24px;
  color: white;
  background: var(--ink);
}

.site-footer div {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.site-footer strong {
  font-family: var(--font-display);
  font-size: 22px;
}

.site-footer span,
.site-footer p,
.site-footer a {
  color: rgb(255 255 255 / 0.72);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.toast {
  position: fixed;
  inset-inline-end: 20px;
  inset-block-end: 20px;
  z-index: 120;
  max-width: 340px;
  padding: 14px 16px;
  color: white;
  background: var(--ink);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 48px rgb(21 17 15 / 0.24);
}

.toast.is-visible {
  animation: toast-in 220ms var(--ease) both;
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(3px);
}

.has-js .reveal.is-visible {
  animation: reveal-up 720ms var(--ease) forwards;
}

.has-js .delay-1.is-visible {
  animation-delay: 80ms;
}

.has-js .delay-2.is-visible {
  animation-delay: 160ms;
}

.has-js .delay-3.is-visible {
  animation-delay: 240ms;
}

.has-js .delay-4.is-visible {
  animation-delay: 320ms;
}

.has-js .delay-5.is-visible {
  animation-delay: 400ms;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse-ring {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(244 91 20 / 0.22);
  }
  50% {
    box-shadow: 0 0 0 18px rgb(244 91 20 / 0);
  }
}

@media (max-width: 1060px) {
  .hero-inner,
  .method-layout,
  .diagnosis-section {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 46px;
  }

  .war-map {
    max-width: 560px;
    margin-inline: auto;
  }

  .sticky-head {
    position: static;
  }

  .pain-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .site-header {
    inset-block-start: 10px;
    inset-inline: 10px;
  }

  .nav-shell {
    grid-template-columns: auto auto;
    min-height: 58px;
    padding: 7px 8px 7px 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset-block-start: 76px;
    inset-inline: 10px;
    display: grid;
    justify-content: stretch;
    gap: var(--space-2);
    padding: var(--space-3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    background: rgb(255 253 249 / 0.96);
    box-shadow: var(--shadow-soft);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 180ms var(--ease),
      transform 180ms var(--ease);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links > a {
    justify-content: space-between;
    min-height: 48px;
  }

  .nav-links .nav-cta {
    margin: 0;
  }

  .hero {
    min-height: auto;
    padding: 96px 16px 0;
  }

  .hero::before,
  .heat-ribbon {
    display: none;
  }

  .hero-inner {
    gap: var(--space-8);
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .mobile-growth-strip {
    display: grid;
    grid-template-columns: repeat(7, auto);
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-block-start: var(--space-5);
    padding: 10px 12px;
    color: var(--ink);
    border: 1px solid rgb(244 91 20 / 0.2);
    border-radius: var(--radius-card);
    background: rgb(244 91 20 / 0.08);
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-growth-strip i {
    width: 15px;
    height: 15px;
    color: var(--ember);
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
    margin-block-start: var(--space-6);
  }

  .hero-metrics dt {
    font-size: 28px;
  }

  .hero-metrics dd {
    font-size: 11px;
    line-height: 1.35;
  }

  .war-map {
    display: none;
  }

  .fit-strip {
    margin-block-start: var(--space-6);
    justify-content: flex-start;
  }

  .section {
    padding: var(--space-16) 16px;
  }

  .section h2,
  .diagnosis-copy h2 {
    font-size: 32px;
  }

  .section-head {
    text-align: start;
  }

  .pain-grid,
  .system-grid,
  .metric-grid,
  .timeline {
    grid-template-columns: 1fr;
    margin-block-start: var(--space-8);
  }

  .system-tile.wide,
  .system-tile.visual-tile {
    grid-column: auto;
    grid-row: auto;
  }

  .method-layout {
    gap: var(--space-8);
  }

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

  .tab-panel {
    min-height: auto;
    padding: var(--space-6);
  }

  .tab-panel h3 {
    font-size: 30px;
  }

  .timeline::before {
    inset-block: 0;
    inset-inline-start: 31px;
    width: 2px;
    height: 100%;
  }

  .timeline-item {
    padding-inline-start: 58px;
  }

  .timeline-item::before {
    inset-inline-start: 23px;
  }

  .timeline-item span {
    margin-inline-start: 0;
  }

  .diagnosis-section {
    padding: var(--space-16) 16px;
    gap: var(--space-8);
  }

  .diagnosis-form {
    padding: var(--space-5);
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 33px;
  }

  .tab {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
