@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/jetbrainsmono/v20/tDbY2o-flEEny0FPpR0e8AhtaE2NxPWoexQ.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/jetbrainsmono/v20/tDbY2o-flEEny0FPpR0e8AhtaE2NxPWoexQ.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/jetbrainsmono/v20/tDbY2o-flEEny0FPpR0e8AhtaE2NxPWoexQ.woff2') format('woff2');
}

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

:root {
  --bg: #06090f;
  --bg-elevated: #0c1018;
  --bg-card: #0f1520;
  --border: #1a2436;
  --border-hover: #2a3a52;
  --text: #8899aa;
  --text-bright: #d4dde8;
  --text-muted: #455060;
  --accent: #4f9cf7;
  --accent-glow: rgba(79, 156, 247, 0.15);
  --accent-dim: #2a5a9e;
  --green: #7ec699;
  --green-glow: rgba(126, 198, 153, 0.1);
  --yellow: #e6c07b;
  --red: #e06c75;
  --orange: #d19a66;
  --purple: #c678dd;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
  line-height: 1.75;
  font-size: 13px;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: #7bb8ff; }

/* ════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

.animate-in {
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* ════════════════════════════════════════
   BACKGROUND ATMOSPHERE
   ════════════════════════════════════════ */

/* no background glow — pure flat dark */

/* ════════════════════════════════════════
   NAV
   ════════════════════════════════════════ */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-brand .glyph {
  color: var(--accent);
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.nav-links a {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-bright); }

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */

.hero {
  padding: 100px 0 72px;
  position: relative;
}

.hero-version {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-version .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--green);
  animation: glowPulse 2s ease-in-out infinite;
}

h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.25;
  margin-bottom: 24px;
  max-width: 680px;
  letter-spacing: -0.5px;
}

h1 .keyword {
  color: var(--accent);
}

.hero-sub {
  font-size: 14px;
  color: var(--text);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}

.btn:hover {
  text-decoration: none;
  border-color: var(--border-hover);
  color: var(--text-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #5eaaff;
  color: var(--bg);
  border-color: #5eaaff;
  box-shadow: 0 4px 20px var(--accent-glow), 0 0 40px var(--accent-glow);
}

/* ════════════════════════════════════════
   QUALITY SIGNAL BAR — THE HERO ELEMENT
   ════════════════════════════════════════ */

.signal-display {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* no signal glow — flat */

.signal-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.signal-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.signal-bar {
  font-size: 22px;
  letter-spacing: 2px;
  line-height: 1;
  font-weight: 400;
}

.signal-score {
  font-size: 40px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -1px;
  /* no glow */
}

.signal-max {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ════════════════════════════════════════
   DEMO
   ════════════════════════════════════════ */

.demo {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.demo-frame {
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}

.demo-frame::before {
  content: '● ● ●';
  display: block;
  padding: 10px 16px;
  font-size: 8px;
  color: var(--text-muted);
  letter-spacing: 4px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.demo-frame img {
  display: block;
  width: 100%;
}

.demo-caption {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 20px;
  line-height: 1.8;
}

.demo-caption em { color: var(--yellow); font-style: normal; }

/* ════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════ */

section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

h2 .prefix {
  color: var(--accent);
  margin-right: 8px;
  font-weight: 400;
}

/* ════════════════════════════════════════
   PROBLEM
   ════════════════════════════════════════ */

.problem p {
  margin-bottom: 20px;
  max-width: 600px;
  font-size: 13px;
}

.problem strong { color: var(--text-bright); }

.callout {
  border-left: 2px solid var(--yellow);
  padding-left: 20px;
  margin: 28px 0;
  color: var(--yellow);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
}

/* ════════════════════════════════════════
   METRICS
   ════════════════════════════════════════ */

.metrics-header {
  margin-bottom: 32px;
  max-width: 560px;
}

.metrics-header p {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 12px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.metric-card {
  padding: 24px;
  background: var(--bg-card);
  transition: background 0.2s;
}

.metric-card:hover {
  background: var(--bg-elevated);
}

.metric-name {
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 2px;
}

.metric-theory {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.metric-desc {
  font-size: 12px;
  color: var(--text);
  line-height: 1.7;
}

/* ════════════════════════════════════════
   CODE BLOCKS
   ════════════════════════════════════════ */

.terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
}

.terminal-dot.red { background: var(--red); opacity: 0.8; }
.terminal-dot.yellow { background: var(--yellow); opacity: 0.8; }
.terminal-dot.green { background: var(--green); opacity: 0.8; }

.terminal-body {
  padding: 20px 24px;
  font-size: 13px;
  line-height: 2;
  overflow-x: auto;
}

.cm { color: var(--text-muted); }          /* comment */
.fn { color: var(--green); }               /* function/command */
.fl { color: var(--orange); }              /* flag */
.st { color: var(--yellow); }              /* string */
.kw { color: var(--purple); }              /* keyword */
.nr { color: var(--accent); }              /* number */
.op { color: var(--text-muted); }          /* operator */
.out { color: var(--text-muted); font-style: italic; }

/* ════════════════════════════════════════
   FEATURES
   ════════════════════════════════════════ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature-cell {
  padding: 24px;
  background: var(--bg-card);
  transition: background 0.2s;
}

.feature-cell:hover { background: var(--bg-elevated); }

.feature-cell .name {
  color: var(--text-bright);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.feature-cell .desc {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
}

/* ════════════════════════════════════════
   LANGUAGES
   ════════════════════════════════════════ */

.lang-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.lang-chip {
  padding: 8px 14px;
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  margin: -0.5px;
  transition: all 0.15s;
  cursor: default;
}

.lang-chip:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: var(--accent-glow);
  z-index: 1;
  position: relative;
}

/* ════════════════════════════════════════
   FEEDBACK LOOP DIAGRAM
   ════════════════════════════════════════ */

.loop-diagram {
  text-align: center;
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 14px;
  line-height: 2.2;
}

.loop-diagram .arrow { color: var(--text-muted); }
.loop-diagram .node-sensor { color: var(--accent); font-weight: 700; }
.loop-diagram .node-signal { color: var(--green); font-weight: 700; }
.loop-diagram .node-agent { color: var(--yellow); font-weight: 700; }
.loop-diagram .node-code { color: var(--orange); font-weight: 700; }
.loop-diagram .node-system { color: var(--text-bright); font-weight: 700; }

.loop-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ════════════════════════════════════════
   CTA
   ════════════════════════════════════════ */

.cta {
  text-align: center;
  padding: 96px 0;
  position: relative;
}

/* no cta glow — flat */

.cta-meta {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.cta h2 {
  font-size: 22px;
  margin-bottom: 32px;
}

.cta .hero-actions { justify-content: center; }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */

footer {
  padding: 32px 0;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  letter-spacing: 0.5px;
}

footer a { color: var(--text-muted); }
footer a:hover { color: var(--text-bright); }

/* ════════════════════════════════════════
   COLOR HELPERS
   ════════════════════════════════════════ */

.c-red { color: var(--red); }
.c-orange { color: var(--orange); }
.c-yellow { color: var(--yellow); }
.c-green { color: var(--green); }
.c-dim { color: var(--border); }
.c-accent { color: var(--accent); }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */

@media (max-width: 680px) {
  h1 { font-size: 26px; }
  body { font-size: 12px; padding: 0 20px; }
  .hero { padding: 60px 0 48px; }
  section { padding: 48px 0; }
  .signal-score { font-size: 28px; }
  .signal-bar { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
}
