/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #07070c;
  --bg-alt: #0d0d14;
  --surface: #12121a;
  --surface-raised: #181825;
  --border: #1c1c2a;
  --border-bright: #2a2a3e;
  --teal: #00FFD1;
  --teal-dim: rgba(0, 255, 209, 0.08);
  --teal-glow: rgba(0, 255, 209, 0.18);
  --amber: #FFAA00;
  --amber-dim: rgba(255, 170, 0, 0.08);
  --red: #ff4d5a;
  --red-dim: rgba(255, 77, 90, 0.08);
  --text: #e4e4ec;
  --text-dim: #7878a0;
  --text-muted: #44445a;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.08em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta {
  padding: 8px 20px;
  background: var(--teal);
  color: #000;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.8; }
.nav-link {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.2s;
}
.nav-link:hover { color: rgba(255,255,255,0.9); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 128px 48px 80px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.75;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1.04;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}

.hero-headline em {
  font-style: italic;
  color: var(--teal);
}

.hero-sub {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 32px;
  font-weight: 300;
}

.hero-sub em {
  font-style: normal;
  color: var(--text);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 11px 28px;
  background: var(--teal);
  color: #000;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-bright); }

/* Long-range metric chips */
.hero-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metric-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.metric-chip:hover { border-color: var(--border-bright); }

.metric-chip::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--teal);
  opacity: 0.5;
}

.chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chip-icon--up { background: var(--teal-dim); color: var(--teal); }
.chip-icon--neutral { background: var(--amber-dim); color: var(--amber); }

.chip-body {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.chip-stat {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.chip-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.3;
}

/* ===== HERO VISUAL ===== */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  overflow: hidden;
}

/* Atmospheric gradient placeholder — replaced by <img> when URL is available */
.hero-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0, 255, 209, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 170, 0, 0.05) 0%, transparent 50%),
    linear-gradient(160deg, #0d0d18 0%, #0a0a12 40%, #070710 100%);
  border: 1px solid var(--border);
}

/* Skeleton overlay SVG sits on top of the image */
.skeleton-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Floating metric callout inside image area */
.img-callout {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  background: rgba(10, 10, 18, 0.88);
  border: 1px solid var(--border);
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
.img-callout--bl {
  bottom: 20px;
  left: 16px;
}

.callout-stat {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--teal);
  line-height: 1;
}

.callout-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  line-height: 1.4;
  letter-spacing: 0.04em;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.pulse-glow {
  animation: pulse-glow 2.4s ease-in-out infinite;
}

.viz-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.viz-caption-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-rule {
  max-width: 1200px;
  width: 100%;
  margin: 60px auto 0;
  height: 1px;
  background: var(--border);
}

/* ===== RESPONSIVE HERO ===== */
@media (max-width: 900px) {
  .hero { padding: 100px 28px 60px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy { order: 1; }
  .hero-visual { order: 0; }

  .hero-sub { max-width: 100%; }
  .hero-actions { margin-bottom: 28px; }
  .hero-metrics { gap: 8px; }
}

@media (max-width: 600px) {
  .hero { padding: 88px 20px 48px; }

  .hero-inner { gap: 36px; }

  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }

  .hero-img-wrap { max-width: 100%; }
  .chip-body { flex-direction: column; gap: 2px; }
  .callout-stat { font-size: 18px; }
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 120px 0 120px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 80px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.manifesto-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 0 calc(80px + 60px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}

.manifesto-tag {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  position: relative;
}

.manifesto-tag::before {
  content: '';
  position: absolute;
  left: calc(-80px - 60px - 48px);
  width: 2px;
  height: 100%;
  background: var(--teal);
  opacity: 0.4;
}

.tag-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.1em;
}

.tag-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.manifesto-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.18;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.manifesto-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 20px;
}

.manifesto-body em {
  font-style: normal;
  color: var(--text);
}

/* ===== HOW IT WORKS ===== */
.howitworks {
  padding: 120px 48px;
  position: relative;
}

.howitworks::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.howitworks-header {
  max-width: 1200px;
  margin: 0 auto 56px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.18;
  font-weight: 400;
  color: var(--text);
  max-width: 600px;
  letter-spacing: -0.01em;
}

.steps-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  position: relative;
}

.step-num {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 500;
  color: var(--border);
  line-height: 1;
  letter-spacing: -0.03em;
}

.step-icon {
  margin-bottom: 24px;
}

.step-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.4;
}

.step-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.step-example {
  border-left: 2px solid var(--teal);
  padding-left: 16px;
}

.example-quote {
  position: relative;
}

.quote-icon {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--teal);
  line-height: 1;
  position: absolute;
  top: -8px;
  left: -4px;
  opacity: 0.5;
}

.example-quote p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-dim);
  padding-left: 8px;
  font-style: italic;
}

.step-metrics {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--teal);
  line-height: 1;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step-trend {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.trend-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.trend-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
}

.trend-bar {
  flex: 1;
  background: var(--border);
  border-radius: 3px 3px 0 0;
  transition: background 0.3s;
}

.trend-bar.active {
  background: var(--teal);
  box-shadow: 0 0 12px rgba(0, 255, 209, 0.3);
}

/* ===== BLUEPRINT ===== */
.blueprint {
  padding: 100px 48px;
  background: var(--bg-alt);
}

.blueprint-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.blueprint-tag {
  margin-bottom: 16px;
}

.blueprint-headline-block {
  max-width: 700px;
  margin-bottom: 64px;
}

.blueprint-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-top: 20px;
}

.blueprint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.blueprint-item {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.bp-icon {
  margin-bottom: 20px;
}

.bp-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}

.bp-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
}

/* ===== TECH ===== */
.tech {
  padding: 100px 48px;
}

.tech-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.tech-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-top: 24px;
  margin-bottom: 40px;
  max-width: 520px;
}

.tech-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.spec-key {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec-val {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.tech-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
}

.diagram-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.d-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.d-box {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.d-box.highlight {
  border-color: var(--amber);
  box-shadow: 0 0 20px rgba(255, 170, 0, 0.08);
}

.diagram-arrow {
  display: flex;
  align-items: center;
}

.tech-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--teal-dim);
  border: 1px solid rgba(0, 255, 209, 0.2);
  border-radius: 8px;
}

.tech-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.tech-note p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ===== CLOSING ===== */
.closing {
  padding: 120px 48px;
  background: var(--bg-alt);
  text-align: center;
}

.closing-inner {
  max-width: 760px;
  margin: 0 auto;
}

.closing-kicker {
  margin-bottom: 24px;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.closing-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 56px;
}

.closing-statement {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.statement-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.statement-prefix {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  color: var(--teal);
}

.statement-text {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  color: var(--text-dim);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.footer-sep {
  color: var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    order: -1;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .blueprint-grid {
    grid-template-columns: 1fr;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .manifesto::before { display: none; }
  .manifesto-inner {
    padding-left: 48px;
  }
  .manifesto-tag::before { display: none; }
}

@media (max-width: 600px) {
  .nav, .hero, .howitworks, .blueprint, .tech, .closing, .footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .manifesto {
    padding-left: 0;
    padding-right: 0;
  }
  .manifesto-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero {
    padding-top: 100px;
  }
  .nav {
    padding: 16px 24px;
  }
  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .tech-diagram {
    padding: 24px;
  }
}