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

:root {
  --bg: #070710;
  --gold: #e8b817;
  --green: #a8ff3e;
  --purple: #9955cc;
  --text: #eeeef2;
  --muted: #55556a;
  --muted2: #8888aa;

  /* VS Code syntax colors */
  --c-comment:  #6a9955;
  --c-keyword:  #569cd6;
  --c-type:     #4ec9b0;
  --c-string:   #ce9178;
  --c-number:   #b5cea8;
  --c-fn:       #dcdcaa;
  --c-property: #9cdcfe;
  --c-line-num: #404040;
  --c-text:     #d4d4d4;
  --c-bg:       #0d0d1a;
  --c-border:   #1e1e2e;
}

body {
  background: rgb(12,11,16);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── NAV — Inknut, EchtRaaW branding ── */
.main-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  width: 100%;
  max-width: 1600px;
  background: var(--bg);
  border-bottom: 1px solid #1e1e2e;
}

.nav-logo {
  font-family: 'Inknut Antiqua', serif;
  font-size: 18px;
  color: var(--text);
}

.nav-logo .aa {
  font-family: 'Vollkorn', serif;
  font-style: italic;
  color: var(--green);
  font-size: 14px;
  position: relative;
  top: -4px;
}

.nav-buttons { display: flex; gap: 12px; }

.nav-buttons a {
  font-family: 'Inknut Antiqua', serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
}

.nav-buttons a.primary {
  background: #ff8c00;
  border-color: #ff8c00;
  color: var(--bg);
}

/* ── WORDMARK — full Inknut, gold borders ── */
.wordmark-header {
  position: sticky;
  top: 53px;
  z-index: 90;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
  background: var(--bg);
}

.hero-wordmark {
  border-top: 3px solid rgba(232,184,23,0.8);
  border-bottom: 3px solid rgba(232,184,23,0.8);
  border-left: none;
  border-right: none;
  outline: none;
  padding: 12px 40px;
  text-align: center;
  background: transparent;
}

.hero-wordmark img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── STREAM WINDOW — autonomous ticker ── */
.stream-window-wrapper {
  position: sticky;
  z-index: 89;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
  background: var(--bg);
}

.stream-window {
  position: relative;
  border-top: 2px solid #e8b817;
  border-bottom: 2px solid #e8b817;
  height: 84px;
  overflow: hidden;
  background: #080810;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stream-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(232,184,23,0.03) 3px,
    rgba(232,184,23,0.03) 4px
  );
  pointer-events: none;
  z-index: 2;
}

.stream-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 28px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
}

.stream-dim  { color: #555555; }
.stream-mid  { color: #cccccc; }
.stream-live { color: #eeeef2; }

.stream-lnum {
  width: 56px;
  text-align: right;
  padding-right: 16px;
  flex-shrink: 0;
}

.stream-sep {
  color: rgba(232,184,23,0.4);
  flex-shrink: 0;
  padding-right: 8px;
}

.stream-code {
  flex: 1;
  overflow: hidden;
}

.stream-cursor {
  color: #a8ff3e;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  animation: blink 1s step-end infinite;
  position: relative;
  z-index: 1;
}

/* ── CODE BODY ── */
.code-body {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

.code-section {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding: 32px 0;
}

.code-section:last-child { border-bottom: none; }

/* line numbers column */
.lns {
  width: 56px;
  flex-shrink: 0;
  padding-right: 20px;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--c-line-num);
  line-height: 24px;
  user-select: none;
}

.ln { display: block; border-right: 1px solid rgba(232,184,23,0.35); padding-right: 16px; }
.ln.blank-ln { border-right: none; }

/* code column */
.code {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 24px;
  color: var(--c-text);
}

.code-line {
  display: block;
  padding: 0 8px;
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 28px;
}

.code-line:hover { background: rgba(255,255,255,0.02); }

/* highlighted block */
.code-line.hl {
  background: rgba(232,184,23,0.05);
}

/* syntax */
.cm  { color: var(--c-comment); font-style: italic; }
.kw  { color: var(--c-keyword); }
.ty  { color: var(--c-type); }
.st  { color: var(--c-string); }
.nm  { color: var(--c-number); }
.fn  { color: var(--c-fn); }
.pr  { color: var(--c-property); }
.pu  { color: #808080; }

/* brand colors in syntax */
.sy-gold   { color: var(--gold); }
.sy-green  { color: var(--green); }
.sy-orange { color: #ff8c00; }
.sy-purple { color: #8844aa; }

/* ── SOURCES SECTION — keep visual style ── */
.sources-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.sources-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #eeeef2;
  margin-bottom: 20px;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
}

.feed-item {
  background: rgba(232,184,23,0.04);
  border: 1px solid rgba(232,184,23,0.2);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8888aa;
}

.feed-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.sources-more {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(168,255,62,0.5);
  margin-top: 12px;
  letter-spacing: 1px;
}

/* ── STATS — code style ── */
.stats-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px 0;
}

.stats-bar {
  display: flex;
  background: rgba(232,184,23,0.04);
  border-top: 2.4px solid rgba(232,184,23,0.5);
  border-bottom: 2.4px solid rgba(232,184,23,0.5);
  border-left: none;
  border-right: none;
  outline: none;
}

.stat {
  flex: 1;
  padding: 20px;
  text-align: center;
  border-right: 1px solid rgba(232,184,23,0.15);
  font-family: 'JetBrains Mono', monospace;
}

.stat:last-child { border-right: none; }
.stat-num { font-size: 28px; font-weight: 500; color: var(--gold); margin-bottom: 6px; }
.stat-label { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

/* ── WAITLIST ── */
.waitlist-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 40px 80px;
  display: flex;
}

.waitlist-lns {
  width: 56px;
  flex-shrink: 0;
  padding-right: 20px;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--c-line-num);
  line-height: 24px;
  user-select: none;
}

.waitlist-code {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 24px;
}

.waitlist-form-wrapper {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid rgba(232,184,23,0.2);
  background: rgba(232,184,23,0.02);
  max-width: 480px;
}

.waitlist-form-label {
  font-size: 10px;
  color: var(--c-line-num);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

/* ── FOOTER ── */
.main-footer {
  border-top: 1px solid #1e1e2e;
  padding: 24px 40px;
  text-align: center;
  font-family: 'Inknut Antiqua', serif;
}

.footer-links {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 13px;
  background: #aeafad;
  animation: blink 1.2s step-end infinite;
  vertical-align: middle;
  margin-left: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

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