:root {
  --bg: oklch(21% 0.006 255);
  --panel: oklch(24% 0.007 255);
  --border: oklch(35% 0.01 255);
  --border-input: oklch(38% 0.01 255);
  --border-divider: oklch(32% 0.01 255);
  --accent: oklch(68% 0.19 45);
  --accent-hover: oklch(76% 0.17 45);
  --accent-on: oklch(15% 0.02 45);
  --accent-tint: oklch(30% 0.05 45 / 0.25);
  --accent-tint-soft: oklch(30% 0.05 45 / 0.18);
  --text-primary: oklch(96% 0.003 255);
  --text-secondary: oklch(74% 0.012 255);
  --text-secondary-2: oklch(80% 0.008 255);
  --text-muted: oklch(62% 0.01 255);
  --text-muted-2: oklch(58% 0.01 255);
  --success: oklch(72% 0.17 145);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'IBM Plex Sans', sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent); color: var(--accent-on); }

.mono { font-family: 'IBM Plex Mono', monospace; }

.hidden { display: none !important; }

/* ---------- notch shapes ---------- */
.notch-both {
  clip-path: polygon(var(--n) 0, 100% 0, 100% calc(100% - var(--n)), calc(100% - var(--n)) 100%, 0 100%, 0 var(--n));
}
.notch-br {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--n)), calc(100% - var(--n)) 100%, 0 100%);
}

/* ---------- animations ---------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scanSweep { 0% { top: -2%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes blinkDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- buttons ---------- */
.btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  border: none;
  padding: 16px 26px;
  cursor: pointer;
}
.btn:disabled { cursor: not-allowed; opacity: 0.6; }
.btn-accent { background: var(--accent); color: var(--accent-on); }
.btn-accent:hover:not(:disabled) { background: var(--accent-hover); }
.btn-dark { background: var(--accent-on); color: oklch(92% 0.02 45); font-weight: 700; padding: 17px 28px; white-space: nowrap; }
.btn-outline {
  background: none;
  color: var(--text-secondary);
  border: 1px solid var(--border-input);
  padding: 14px 22px;
  font-size: 13px;
}
.btn-lg { font-size: 14px; padding: 16px 26px; }
.link-btn {
  background: none;
  border: none;
  color: var(--text-muted-2);
  font-size: 13px;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
}
.text-link {
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid oklch(45% 0.01 255);
  padding-bottom: 2px;
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border-divider);
  position: sticky;
  top: 0;
  background: oklch(21% 0.006 255 / 0.94);
  backdrop-filter: blur(6px);
  z-index: 50;
}
.nav-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.blink-dot { width: 11px; height: 11px; background: var(--accent); animation: blinkDot 1.6s infinite; }
.wordmark { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 17px; letter-spacing: 0.5px; }
.accent-dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 14px; color: oklch(78% 0.01 255); }
.nav-links a { color: inherit; }

/* ---------- view containers ---------- */
.view { display: none; }
.view.active { display: block; }
.narrow-view.active { display: flex; justify-content: center; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  padding: 88px 48px 64px;
  max-width: 1440px;
  margin: 0 auto;
  align-items: center;
}
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-rule { width: 22px; height: 1px; background: var(--accent); display: inline-block; }
.hero h1 { font-size: 56px; line-height: 1.06; font-weight: 600; margin: 0 0 24px; letter-spacing: -0.5px; }
.lede { font-size: 18px; line-height: 1.6; color: var(--text-secondary); max-width: 520px; margin: 0 0 36px; }
.hero-cta-row { display: flex; gap: 16px; align-items: center; }
.stat-row { display: flex; gap: 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border-divider); }
.stat-num { font-family: 'IBM Plex Mono', monospace; font-size: 26px; font-weight: 600; }
.stat-num.accent { color: var(--accent); }
.stat-label { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

.scan-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  background: repeating-linear-gradient(135deg, oklch(26% 0.007 255) 0 2px, oklch(24% 0.006 255) 2px 14px);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.scan-tag { position: absolute; top: 14px; left: 16px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-muted-2); letter-spacing: 1px; }
.scan-placeholder { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: oklch(50% 0.01 255); letter-spacing: 1px; }
.scan-sweep {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanSweep 3.2s linear infinite;
}
.defect-chip {
  position: absolute;
  background: oklch(25% 0.007 255 / 0.95);
  border: 1px solid oklch(68% 0.19 45 / 0.6);
  padding: 7px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}
.defect-chip-neutral { border-color: oklch(50% 0.01 255); }
.chip-strong { color: oklch(80% 0.01 255); font-weight: 600; }

/* ---------- ticker ---------- */
.ticker-wrap {
  border-top: 1px solid var(--border-divider);
  border-bottom: 1px solid var(--border-divider);
  overflow: hidden;
  background: var(--panel);
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  width: fit-content;
  animation: marquee 26s linear infinite;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 13px 0;
}
.ticker-item { padding: 0 28px; }
.ticker-dot { padding: 0 28px; color: var(--accent); }

/* ---------- sections ---------- */
.section { padding: 0 48px 96px; max-width: 1440px; margin: 0 auto; }
#problem.section { padding-top: 96px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 44px; }
.section-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--accent); letter-spacing: 2px; }
.section h2 { font-size: 34px; font-weight: 600; margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card { background: var(--panel); border: 1px solid var(--border); padding: 32px; }
.card-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-muted-2); letter-spacing: 1px; margin-bottom: 14px; }
.card-eyebrow.accent { color: var(--accent); }
.card h3 { font-size: 21px; font-weight: 600; margin: 0 0 12px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

.result-line {
  font-size: 15px;
  color: var(--text-muted);
  margin: 22px 0 0;
  font-family: 'IBM Plex Mono', monospace;
}

/* ---------- solution steps ---------- */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; padding-top: 96px; }
.steps-line { position: absolute; top: 118px; left: 0; right: 0; height: 1px; background: var(--border); z-index: 0; }
.step-item { position: relative; z-index: 1; padding-right: 20px; }
.step-num {
  width: 44px; height: 44px;
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.step-item h3 { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.step-item p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* ---------- pricing ---------- */
.pricing-card { display: flex; flex-direction: column; padding: 28px; }
.pricing-card-accent { background: var(--accent-tint-soft); border-color: var(--accent); }
.pricing-card h3 { font-size: 18px; margin: 0 0 10px; }
.pricing-card p { margin: 0 0 24px; flex: 1; }
.pricing-note { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--accent); letter-spacing: 1px; margin-bottom: 6px; }
.pricing-price { font-family: 'IBM Plex Mono', monospace; font-size: 26px; font-weight: 600; }
.price-strike { text-decoration: line-through; color: oklch(50% 0.01 255); font-size: 18px; margin-right: 8px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--accent);
  color: var(--accent-on);
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: 1.5px; margin-bottom: 10px; }
.cta-banner h2 { font-size: 30px; font-weight: 700; margin: 0; }

/* ---------- team / trust ---------- */
.trust-strip { border: 1px solid var(--border); margin-bottom: 24px; }
.trust-head { padding: 16px 24px; border-bottom: 1px solid var(--border-divider); font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent); letter-spacing: 1.5px; }
.trust-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-col { padding: 24px; border-right: 1px solid var(--border-divider); font-size: 14.5px; line-height: 1.6; color: var(--text-secondary-2); }
.trust-col-last { border-right: none; }
.trust-icon { width: 26px; height: 26px; border: 1.5px solid var(--accent); margin-bottom: 16px; }
.trust-icon-diamond { transform: rotate(45deg); }
.trust-icon-circle { border-radius: 50%; }

.team-card { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px; }
.team-photo-slot {
  width: 220px; height: 220px;
  border: 1px dashed var(--border-input);
  color: var(--text-muted-2);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--panel);
}
img.team-photo-slot { object-fit: cover; border: none; }
.team-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 14px; }
.fact-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.fact-list li { font-size: 13.5px; color: var(--text-secondary); padding-left: 14px; position: relative; }
.fact-list li::before { content: '–'; position: absolute; left: 0; color: var(--accent); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border-divider);
  padding: 40px 48px;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; align-items: center; gap: 32px; font-size: 13.5px; color: var(--text-muted); flex-wrap: wrap; }
.footer-links a { color: inherit; }

/* ---------- article ---------- */
.article-wrap { max-width: 760px; width: 100%; margin: 0 auto; padding: 64px 32px 100px; }
.back-link { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--text-muted-2); }
.article-h1 { font-size: 38px; font-weight: 600; line-height: 1.15; margin: 0 0 28px; }
.article-body { display: flex; flex-direction: column; gap: 28px; font-size: 16px; line-height: 1.7; color: var(--text-secondary-2); }
.article-body p { margin: 0; }
.article-body h2 { font-size: 20px; font-weight: 600; color: var(--text-primary); margin: 0 0 10px; }

/* ---------- calculator ---------- */
.calc-wrap { max-width: 820px; width: 100%; margin: 0 auto; padding: 56px 32px 100px; }
.calc-head-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calc-scan-label { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--accent); letter-spacing: 1.5px; }
.close-btn { background: none; border: none; color: var(--text-muted-2); font-size: 13px; cursor: pointer; font-family: 'IBM Plex Mono', monospace; }
.progress-track { height: 2px; background: var(--border-divider); margin-bottom: 44px; position: relative; }
.progress-fill { height: 2px; background: var(--accent); transition: width 0.3s; }

.calc-wrap h2 { font-size: 26px; font-weight: 600; margin: 0 0 8px; }
.calc-wrap .step-intro { font-size: 14.5px; color: oklch(66% 0.012 255); margin: 0 0 32px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-span2 { grid-column: 1 / 3; }
.field-label { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--text-muted-2); letter-spacing: 1px; }
.field input, .field select, .field textarea {
  background: var(--panel);
  border: 1px solid var(--border-input);
  color: var(--text-primary);
  padding: 13px 14px;
  font-size: 15px;
  font-family: 'IBM Plex Sans', sans-serif;
}
.field textarea { resize: vertical; }
.field input[type="text"], .field input:not([type]) {}
input::placeholder, textarea::placeholder { color: oklch(50% 0.01 255); }

.toggle-row { display: flex; gap: 10px; }
.toggle-col { display: flex; flex-direction: column; gap: 10px; }
.toggle-btn {
  flex: 1;
  padding: 13px;
  border: 1px solid var(--border-input);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
  font-family: 'IBM Plex Sans', sans-serif;
}
.toggle-btn-wide { text-align: left; padding: 14px 16px; font-size: 14.5px; }
.toggle-btn.selected { border-color: var(--accent); background: var(--accent-tint); }
.toggle-btn:hover { border-color: var(--accent); }

.scanning-block { text-align: center; padding: 60px 0; }
.scanning-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 20px;
  animation: blinkDot 1.1s infinite;
}
.scanning-bar-track { width: 100%; height: 3px; background: oklch(30% 0.01 255); overflow: hidden; position: relative; }
.scanning-bar-fill { position: absolute; height: 100%; width: 40%; background: var(--accent); animation: marquee 1s linear infinite; }

.wizard-nav-row { display: flex; justify-content: space-between; margin-top: 44px; }

.result-block { text-align: center; padding: 60px 0; width: 100%; }
.result-gauge { width: 64px; height: 64px; border: 1.5px solid var(--accent); margin: 0 auto 28px; position: relative; }
.result-gauge-sweep {
  position: absolute; left: 0; right: 0; height: 2px; top: 50%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanSweep 2.4s linear infinite;
}
.result-block h2 { margin: 0 0 14px; }
.result-copy { font-size: 15px; line-height: 1.6; color: var(--text-secondary); max-width: 460px; margin: 0 auto 8px; }
.result-email { color: var(--text-primary); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { display: none; }
  .hero { grid-template-columns: 1fr; padding: 48px 20px; }
  .hero h1 { font-size: 38px; }
  .section { padding: 56px 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; gap: 32px; padding-top: 0; }
  .steps-line { display: none; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 32px; }
  .team-card { grid-template-columns: 1fr; }
  .team-photo-slot { width: 100%; height: 180px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-span2 { grid-column: 1; }
  .footer { flex-direction: column; align-items: flex-start; }
  .trust-cols { grid-template-columns: 1fr; }
  .trust-col { border-right: none; border-bottom: 1px solid var(--border-divider); }
}
