/* SpiroWright landing — Wright Diagnostics
   Premium clinical-cockpit aesthetic. NO teal. */

:root {
  --bg:           #0A0F1A;
  --bg-2:         #0E1626;
  --surface:      #141B2C;
  --surface-2:    #1A2238;
  --border:       #243049;
  --gold:         #D4A53B;
  --gold-soft:    #E6BF66;
  --blood:        #A8252C;
  --text:         #F0F4FA;
  --text-2:       #B7C2D6;
  --text-dim:     #7B8AA3;
  --green:        #2E7D32;
  --amber:        #E65100;
  --red:          #C62828;
  --radius:       14px;
  --shadow:       0 18px 60px rgba(0,0,0,0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }

/* ====================== HEX GRID BACKGROUND ====================== */
.hex-grid {
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 50% 10%, rgba(212,165,59,0.06) 0%, transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(168,37,44,0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.hex-grid::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'><polygon points='30,2 56,16 56,38 30,52 4,38 4,16' fill='none' stroke='%23D4A53B' stroke-opacity='0.04' stroke-width='1'/></svg>");
  background-size: 60px 52px;
  opacity: 0.6;
}

/* ====================== NAV ====================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(10,15,26,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--gold);
}
.brand-mark { color: var(--gold); }
.brand-text {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text);
}
.nav-links {
  display: flex; gap: 36px; align-items: center;
  font-size: 14px;
  color: var(--text-2);
}
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  padding: 10px 18px;
  background: var(--gold);
  color: var(--bg) !important;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--gold-soft); }

/* ====================== HERO BANNER IMAGE ====================== */
.hero-banner {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 90px rgba(0,0,0,0.55), 0 0 60px rgba(212,165,59,0.08);
}
.banner-overlay {
  position: absolute;
  bottom: 18px; left: 42px;
  pointer-events: none;
}
.banner-tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(10,15,26,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212,165,59,0.35);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold);
}

/* ====================== HERO ====================== */
.hero {
  position: relative; z-index: 1;
  padding: 60px 48px 100px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-inner { max-width: 920px; }

.hex-badge {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 14px 22px 14px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 32px;
}
.badge-meta {
  display: flex; flex-direction: column;
  gap: 2px;
  font-size: 12px;
}
.kicker {
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.powered {
  color: var(--text);
  font-weight: 500;
}
.powered strong { color: var(--gold); font-weight: 700; }

.hero-title {
  font-size: clamp(38px, 6.5vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.hero-title .accent {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 720px;
  margin: 0 0 40px;
}

.cta-row {
  display: flex; gap: 14px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stats li {
  display: flex; flex-direction: column; gap: 6px;
}

/* Flow-volume loop trace under hero stats */
.trace-frame {
  margin-top: 56px;
  padding: 22px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.trace-frame::before {
  content: 'LIVE CAPTURE · MANEUVER 3 OF 3 · ACCEPTABILITY VERIFIED';
  position: absolute;
  top: 8px; right: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: var(--green);
  background: rgba(46,125,50,0.12);
  padding: 4px 10px;
  border-radius: 4px;
}
.trace-svg {
  width: 100%;
  height: auto;
  display: block;
}
.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ====================== SECTIONS ====================== */
.section {
  position: relative; z-index: 1;
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-head { max-width: 740px; margin-bottom: 60px; }
.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.eyebrow.gold { color: var(--gold); }
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.section-head p {
  font-size: 18px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
}

/* ====================== PRODUCT CARDS ====================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.card-mark {
  color: var(--gold);
  margin-bottom: 18px;
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text);
}
.card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

/* ====================== HEXAR CORE SECTION ====================== */
.section-core {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none;
  padding: 100px 48px;
}
.core-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.core-text h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.lede {
  font-size: 18px;
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  margin: 0 0 18px;
  line-height: 1.55;
}
.core-text p {
  color: var(--text-2);
  font-size: 16px;
  margin: 0 0 18px;
}
.core-bullets {
  margin-top: 28px;
  display: flex; flex-direction: column;
  gap: 12px;
}
.core-bullets > div {
  padding: 14px 18px;
  background: var(--surface);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-2);
}
.core-bullets strong { color: var(--gold); }

.hex-art {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 12px 40px rgba(212,165,59,0.18));
  animation: gentle-pulse 6s ease-in-out infinite;
}
@keyframes gentle-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* ====================== HERITAGE TIMELINE ====================== */
.timeline {
  display: flex; flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 100px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--border);
}
.tl-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 18px 0;
  position: relative;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: 96px;
  top: 28px;
  width: 9px;
  height: 9px;
  background: var(--text-dim);
  border-radius: 50%;
  z-index: 1;
}
.tl-item.highlight::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(212,165,59,0.18); }
.tl-item.future::before { background: var(--blood); }
.tl-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  padding-top: 2px;
}
.tl-item.future .tl-year { color: var(--blood); }
.tl-text {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}
.tl-text strong { color: var(--text); font-weight: 600; }

/* ====================== TIERS ====================== */
.section-tiers { padding-top: 60px; }
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  display: flex; flex-direction: column;
}
.tier-feature {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(212,165,59,0.12);
}
.tier header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
}
.tier-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
}
.tier-sub {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}
.tier-tag {
  position: absolute;
  top: -12px; right: 22px;
  padding: 5px 14px;
  background: var(--gold);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 1.5px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
}
.tier-price {
  display: flex; align-items: baseline; gap: 8px;
  margin: 14px 0 22px;
}
.tier-price .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
}
.tier-price .per {
  font-size: 13px;
  color: var(--text-dim);
}
.tier-feats {
  display: flex; flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
  flex: 1;
}
.tier-feats li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 22px;
  position: relative;
}
.tier-feats li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 12px;
  height: 1.5px;
  background: var(--gold);
}
.tier-note {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  line-height: 1.5;
}

/* ====================== ACCESS ====================== */
.section-access {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  max-width: none;
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}
.access-inner {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}
.access-inner h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.access-inner > p {
  font-size: 18px;
  color: var(--text-2);
  margin: 0 0 36px;
  line-height: 1.6;
}
.access-form {
  display: flex; gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.access-form input {
  flex: 1; min-width: 240px;
  padding: 14px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.15s;
}
.access-form input:focus {
  outline: none;
  border-color: var(--gold);
}
.access-form input::placeholder { color: var(--text-dim); }
.access-form button { flex-shrink: 0; }
.access-form .confirm {
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: var(--gold);
  padding-top: 14px;
  min-height: 18px;
}
.access-meta {
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-dim);
}
.access-meta a { color: var(--gold); }

/* ====================== FOOTER ====================== */
.footer {
  position: relative; z-index: 1;
  padding: 60px 48px 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}
.foot-brand {
  display: flex; align-items: flex-start; gap: 14px;
  color: var(--gold);
}
.foot-name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 4px;
}
.foot-sub {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.foot-head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.foot-cols a, .foot-cols span {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  padding: 4px 0;
  transition: color 0.15s;
}
.foot-cols a:hover { color: var(--gold); }
.foot-soon { color: var(--text-dim) !important; font-style: italic; }

.foot-legal {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  gap: 20px;
  flex-wrap: wrap;
}
.foot-class { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.5px; }

/* ====================== RESPONSIVE ====================== */
@media (max-width: 880px) {
  .nav { padding: 14px 22px; }
  .nav-links { gap: 18px; font-size: 13px; }
  .nav-links li:not(:last-child):not(:first-child) { display: none; }
  .hero { padding: 56px 22px 80px; }
  .section { padding: 70px 22px; }
  .section-core { padding: 70px 22px; }
  .section-access { padding: 70px 22px; }
  .core-inner { grid-template-columns: 1fr; gap: 50px; }
  .footer { padding: 50px 22px 30px; }
  .foot-inner { grid-template-columns: 1fr; gap: 40px; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 70px; }
  .tl-item { grid-template-columns: 70px 1fr; gap: 22px; }
  .tl-item::before { left: 66px; }
}
@media (max-width: 480px) {
  .nav-links li:not(.nav-cta-li):not(:first-child) { display: none; }
  .hero-title { font-size: 36px; }
  .access-form { flex-direction: column; }
  .access-form input { width: 100%; }
}
