:root {
  --ink: #101312;
  --paper: #EEF0EC;
  --teal: #1D9E75;
  --teal-deep: #04342C;
  --amber: #EF9F27;
  --gray: #6B6F68;
  --gray-light: #C7CBC3;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* -------- Nav -------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16,19,18,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(29,158,117,0.25);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-decoration: none;
}
.nav-brand img { width: 28px; height: 28px; display: block; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--gray-light);
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.3px;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--teal); }

/* -------- Hero -------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(29,158,117,0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(29,158,117,0); }
}
.hero h1 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.hero .sub-brand {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(13px, 2vw, 16px);
  letter-spacing: 6px;
  color: var(--gray-light);
  margin: 0 0 28px;
}
.hero p.lede {
  max-width: 560px;
  font-size: 18px;
  color: var(--gray-light);
  margin: 0 0 32px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--teal);
}
.hero-meta span { color: var(--gray-light); }

.oscilloscope {
  width: 100%;
  height: auto;
  margin-top: 8px;
}
.trace {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3200;
  stroke-dashoffset: 3200;
  animation: draw 6.5s ease-in-out infinite;
}
.trace-ghost {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1;
  opacity: 0.18;
}
@keyframes draw {
  0% { stroke-dashoffset: 3200; }
  55% { stroke-dashoffset: 0; }
  85% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -3200; opacity: 0.4; }
}

/* -------- Sections -------- */
section { padding: 88px 0; }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 16px;
}
h2 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 24px;
  letter-spacing: -0.3px;
}

.origin {
  background: var(--paper);
}
.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}
.log {
  background: var(--ink);
  color: var(--gray-light);
  border-radius: 4px;
  padding: 28px 28px 32px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13.5px;
  line-height: 1.85;
}
.log .line-label { color: var(--teal); }
.log p { margin: 0 0 14px; }
.log p:last-child { margin-bottom: 0; }

.origin p.body-copy {
  font-size: 17px;
  color: #2c2f2c;
  margin: 0 0 18px;
  max-width: 52ch;
}

/* -------- Process pipeline -------- */
.process { background: var(--ink); color: var(--paper); }
.process .eyebrow { color: var(--teal); }
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  position: relative;
}
.pipeline::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  padding-right: 20px;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 20px;
}
.step h3 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}
.step p {
  font-size: 14px;
  color: var(--gray-light);
  margin: 0;
}

/* -------- Pint program -------- */
.pint {
  background: var(--paper);
}
.pint-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.stat {
  font-family: 'Space Grotesk', Arial, sans-serif;
}
.stat .num {
  font-size: 40px;
  font-weight: 700;
  color: var(--teal-deep);
  display: block;
  line-height: 1;
}
.stat .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.terminal-card {
  background: var(--ink);
  border-radius: 4px;
  padding: 28px;
  color: var(--teal);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13.5px;
  line-height: 1.9;
}
.terminal-card .prompt { color: var(--gray-light); }

/* -------- Footer -------- */
footer {
  background: var(--ink);
  color: var(--gray-light);
  padding: 56px 0 40px;
  border-top: 1px solid rgba(29,158,117,0.2);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { width: 36px; height: 36px; }
.footer-brand .name {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: 700;
  color: var(--paper);
  font-size: 15px;
}
.footer-brand .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 1px;
}
.footer-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--gray-light);
  text-align: right;
}
.footer-meta div { margin-bottom: 6px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--gray);
}

/* -------- Responsive -------- */
@media (max-width: 860px) {
  .origin-grid, .pint-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .pipeline::before { display: none; }
  .footer-grid { flex-direction: column; }
  .footer-meta { text-align: left; }
}
@media (max-width: 560px) {
  .pipeline { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 64px 0; }
}
