@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #0a0c0e;
  --bg-raised: #101317;
  --surface: #15181c;
  --surface-2: #1b1f24;
  --line: #24282e;
  --bone: #e8e6e1;
  --bone-dim: #9a9d9f;
  --ember: #ff5a1f;
  --ember-dim: #d4491a;
  --teal: #2a9d8f;
  --teal-dim: #1f746a;
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Utility ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--ember);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--ember);
  color: #0a0c0e;
}
.btn-primary:hover { background: #ff6e3a; }
.btn-secondary {
  background: transparent;
  color: var(--bone);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--bone-dim); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 14, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 16px;
  height: 16px;
  background: var(--ember);
  transform: rotate(45deg);
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a {
  color: var(--bone-dim);
  transition: color 0.15s ease;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--bone);
}
.nav-links a.active {
  border-bottom-color: var(--ember);
}
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--bone);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Stat strip (signature motif) ---------- */
.stat-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  text-align: left;
}
.stat:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 4px;
}

@media (max-width: 700px) {
  .stat-strip { grid-auto-flow: row; grid-auto-columns: unset; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  margin-top: 120px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--bone-dim);
  font-size: 14px;
  margin-top: 12px;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--bone);
  opacity: 0.85;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--ember); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--bone-dim);
  font-family: var(--font-mono);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ---------- Hero (home) ---------- */
.hero { padding: 88px 0 0; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 64px;
}
.hero-copy h1 {
  font-size: clamp(44px, 6vw, 72px);
  margin-top: 20px;
}
.hero-sub {
  color: var(--bone-dim);
  font-size: 18px;
  max-width: 480px;
  margin-top: 24px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--bone-dim);
  margin-bottom: 24px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.15);
}
.panel-value {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 700;
  color: var(--ember);
  letter-spacing: -0.02em;
}
.panel-sub {
  color: var(--bone-dim);
  font-size: 13px;
  margin-top: 6px;
  font-family: var(--font-mono);
}
.panel-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.panel-mini {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
}
.panel-mini-label {
  font-size: 11px;
  color: var(--bone-dim);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* ---------- Pillars ---------- */
.pillars-title {
  font-size: clamp(28px, 4vw, 40px);
  margin: 16px 0 48px;
  max-width: 600px;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar {
  background: var(--bg);
  padding: 40px 32px;
}
.pillar-index {
  font-family: var(--font-mono);
  color: var(--ember);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.pillar h3 { font-size: 20px; margin-bottom: 12px; }
.pillar p { color: var(--bone-dim); font-size: 14.5px; }

@media (max-width: 860px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* ---------- Showcase ---------- */
.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.showcase-copy h2 { font-size: clamp(28px, 4vw, 40px); margin: 16px 0 20px; }
.showcase-copy p { color: var(--bone-dim); font-size: 16px; margin-bottom: 28px; max-width: 420px; }

.mock-hud {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.mock-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone-dim);
  letter-spacing: 0.05em;
}
.mock-row:last-child { border-bottom: none; }
.mock-dim { color: var(--bone); }
.mock-teal { color: var(--teal); }
.mock-ember { color: var(--ember); }

@media (max-width: 860px) {
  .showcase-inner { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-band-inner h2 { font-size: clamp(24px, 3.5vw, 34px); max-width: 460px; }

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-top: 16px;
}
.page-header p {
  color: var(--bone-dim);
  font-size: 17px;
  max-width: 560px;
  margin-top: 16px;
}

/* ---------- Section spacing ---------- */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 24px 32px;
    gap: 20px;
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
