/* Extodan — design system */
:root {
  --bg: #0A0A0B;
  --bg-elev: #101012;
  --fg: #E8E4D9;
  --fg-dim: rgba(232, 228, 217, 0.62);
  --fg-faint: rgba(232, 228, 217, 0.38);
  --rule: rgba(232, 228, 217, 0.12);
  --rule-strong: rgba(232, 228, 217, 0.24);
  --signal: #E8E4D9;
  --signal-glow: rgba(232, 228, 217, 0.18);
  --warn: #F5A742;
  --ok: #7CC074;
  --err: #E5654A;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

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

::selection { background: var(--fg); color: var(--bg); }

/* Layout */
.shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.rule-top { border-top: 1px solid var(--rule); }
.rule-bottom { border-bottom: 1px solid var(--rule); }

/* Section marker */
.marker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: inline-flex;
  gap: 14px;
  align-items: baseline;
}
.marker .glyph { color: var(--fg-dim); }

/* Type */
.h-display {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
  font-size: clamp(48px, 7.4vw, 116px);
}
.h-section {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  font-size: clamp(36px, 4.6vw, 64px);
}
.h-product {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.05;
  font-size: clamp(32px, 3.2vw, 48px);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--fg-dim);
  letter-spacing: -0.008em;
  max-width: 56ch;
}
.mono { font-family: var(--mono); }

/* Buttons */
.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 20px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn .arrow { display: inline-block; transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--primary:hover { background: transparent; color: var(--fg); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .mark {
  width: 18px;
  height: 18px;
  position: relative;
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--fg-dim);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
}
.nav-cta:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Schematic primitives */
.tick {
  position: absolute;
  width: 1px;
  height: 8px;
  background: var(--rule-strong);
}
.coord-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--fg-faint);
  letter-spacing: 0.06em;
}
.crosshair {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
}
.crosshair::before, .crosshair::after {
  content: "";
  position: absolute;
  background: var(--fg-faint);
}
.crosshair::before { left: 0; right: 0; top: 50%; height: 1px; }
.crosshair::after { top: 0; bottom: 0; left: 50%; width: 1px; }

/* Diagram canvas */
.diag {
  position: relative;
  border: 1px solid var(--rule);
  background:
    linear-gradient(to right, transparent 0, transparent calc(100% - 1px), var(--rule) calc(100% - 1px)) 0 0 / 80px 100%,
    linear-gradient(to bottom, transparent 0, transparent calc(100% - 1px), var(--rule) calc(100% - 1px)) 0 0 / 100% 80px;
}

/* Status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}
.status.warn .dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.status.err .dot { background: var(--err); box-shadow: 0 0 8px var(--err); }

/* Terminal */
.term {
  background: #060607;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
}
.term-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.term-body {
  padding: 18px 20px;
  min-height: 320px;
}
.term-line { white-space: pre; }
.term-prompt { color: var(--fg-faint); }
.term-cmd { color: var(--fg); }
.term-meta { color: var(--fg-faint); }
.term-status-402 { color: var(--warn); }
.term-status-200 { color: var(--ok); }
.term-key { color: var(--fg-dim); }
.term-val { color: var(--fg); }
.term-comment { color: var(--fg-faint); font-style: italic; }
.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--fg);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Number ticker */
.numfeed {
  font-variant-numeric: tabular-nums;
}

/* Stat */
.stat-num {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(40px, 4.4vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 12px;
}

/* Subtle scanlines for diagrams */
.scan::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(232, 228, 217, 0.012) 3px,
    rgba(232, 228, 217, 0.012) 4px
  );
}

/* Logo mark — concentric squares with a signal dot */
.logo-mark {
  display: inline-block;
  position: relative;
  width: 1em;
  height: 1em;
}
.logo-mark svg { display: block; width: 100%; height: 100%; }
