:root {
  --bg-primary: #07090E;
  --bg-surface: #0E121B;
  --bg-surface-elevated: #141A26;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent-cyan: #38BDF8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);
  --accent-amber: #F59E0B;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-tertiary: #64748B;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Lighting */
.ambient-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.glow-top {
  width: 700px;
  height: 400px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, transparent 70%);
}

.glow-bottom {
  width: 800px;
  height: 500px;
  bottom: 10%;
  left: 30%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aside-mark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1;
}

.b-bracket {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.b-dash {
  display: inline-block;
  width: 9px;
  height: 2.5px;
  background-color: var(--accent-cyan);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--accent-cyan);
  margin: 0 1px;
}

.brand-title {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 15px;
  color: var(--text-primary);
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--text-primary);
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 10;
  padding: 96px 24px 64px;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 18, 27, 0.9);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  margin-bottom: 28px;
}

.telemetry-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
}

.hero-headline {
  font-size: 56px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.headline-gradient {
  background: linear-gradient(135deg, #F8FAFC 30%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 48px;
}

/* Channel Action Matrix (Bio Link Replacement) */
.channel-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.channel-pill:hover {
  transform: translateY(-2px);
  background: var(--bg-surface-elevated);
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.pill-icon {
  width: 18px;
  height: 18px;
}

.x-pill:hover { border-color: rgba(255, 255, 255, 0.4); }
.ig-pill:hover { border-color: rgba(225, 48, 108, 0.5); }
.tt-pill:hover { border-color: rgba(0, 242, 234, 0.5); }
.yt-pill:hover { border-color: rgba(255, 0, 0, 0.5); }
.li-pill:hover { border-color: rgba(10, 102, 194, 0.5); }

/* Simulator Section */
.simulator-section {
  position: relative;
  z-index: 10;
  padding: 80px 24px;
  max-width: 1040px;
  margin: 0 auto;
}

.section-container {
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 17px;
}

.scenario-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.scenario-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scenario-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.scenario-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Terminal Card */
.terminal-card {
  background: #0B0E14;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #080A0F;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.control-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.control-dot.red { background: #EF4444; }
.control-dot.yellow { background: #F59E0B; }
.control-dot.green { background: #10B981; }

.terminal-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
}

.pulse-cyan {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.terminal-meta {
  color: var(--text-tertiary);
}

.terminal-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.block-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.query-block {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 8px 8px 0;
}

.query-text {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
  color: #FAF8F5;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.trace-accordion {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
}

.accordion-bar {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.05);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.trace-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
  color: var(--text-secondary);
}

.trace-line {
  line-height: 1.5;
}

.output-block {
  padding: 20px;
  background: rgba(245, 158, 11, 0.04);
  border-left: 3px solid var(--accent-amber);
  border-radius: 0 8px 8px 0;
}

.output-text {
  font-size: 18px;
  font-weight: 500;
  color: #FEF3C7;
  line-height: 1.5;
}

/* Monograph Book Waitlist Section */
.monograph-section {
  position: relative;
  z-index: 10;
  padding: 96px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 18, 27, 0.5) 100%);
  border-top: 1px solid var(--border-subtle);
}

.monograph-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}

/* 3D Book Mockup */
.book-card-3d {
  position: relative;
  width: 320px;
  height: 440px;
  margin: 0 auto;
  transform: perspective(1000px) rotateY(-18deg) rotateX(8deg);
  transition: transform 0.4s ease;
  box-shadow: 
    -20px 30px 60px rgba(0, 0, 0, 0.9),
    0 10px 20px rgba(0, 0, 0, 0.5);
  border-radius: 4px 16px 16px 4px;
}

.book-card-3d:hover {
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg) translateY(-8px);
}

.book-cover {
  width: 100%;
  height: 100%;
  background: #0D1017;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px 16px 16px 4px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 4px 0 10px rgba(0, 0, 0, 0.8);
}

.cover-telemetry {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-amber);
}

.cover-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #FAF8F5;
}

.cover-subtitle {
  font-size: 14px;
  color: #94A3B8;
  margin-top: 6px;
}

.cover-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.05);
  margin: 24px 0;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.emblem-bracket {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-amber);
  line-height: 1;
}

.emblem-dash {
  display: inline-block;
  width: 22px;
  height: 3px;
  background: var(--accent-amber);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--accent-amber);
}

.cover-footer {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #64748B;
}

.monograph-heading {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.monograph-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.monograph-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.monograph-features li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--text-primary);
}

.monograph-features span {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Waitlist Form */
.waitlist-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  padding: 24px;
  border-radius: 14px;
}

.waitlist-price-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-amber);
  margin-bottom: 14px;
}

.waitlist-form {
  display: flex;
  gap: 10px;
}

.waitlist-input {
  flex: 1;
  background: #080A0F;
  border: 1px solid var(--border-subtle);
  padding: 14px 18px;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
}

.waitlist-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.waitlist-submit {
  background: #F8FAFC;
  color: #07090E;
  border: none;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.waitlist-submit:hover {
  background: #E2E8F0;
  transform: translateY(-1px);
}

.waitlist-success {
  display: none;
  margin-top: 12px;
  color: #34D399;
  font-size: 14px;
  font-weight: 600;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px;
  background: #050609;
}

.footer-container {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* Responsive Breakpoints */
@media (max-width: 860px) {
  .hero-headline { font-size: 38px; }
  .monograph-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .book-card-3d { margin: 0 auto 24px; }
  .waitlist-form { flex-direction: column; }
  .monograph-features { text-align: left; }
  .channel-pills { flex-direction: column; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}


/* Punch-Up Additions from Editorial Review Board */
.terminal-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #10B981;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulse 2s infinite ease-in-out;
}

.output-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.share-trace-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-trace-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FAF8F5;
  transform: translateY(-1px);
}

.monograph-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
  padding-left: 12px;
  border-left: 2px solid rgba(245, 158, 11, 0.4);
}

.spec-item {
  font-size: 13.5px;
  line-height: 1.55;
  color: #94A3B8;
}

.spec-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #FAF8F5;
  font-weight: 700;
  display: inline-block;
  min-width: 120px;
}

.scarcity-meter {
  margin: 16px 0 20px 0;
}

.meter-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #F59E0B);
  border-radius: 3px;
}

.meter-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #F59E0B;
  font-weight: 500;
}

.waitlist-note {
  font-size: 11.5px;
  line-height: 1.5;
  color: #64748B;
  margin-top: 12px;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
  .hero-section {
    padding: 48px 16px 36px !important;
  }
  .hero-headline {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }
  .channel-pills {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 8px !important;
    padding-bottom: 12px !important;
    -webkit-overflow-scrolling: touch;
  }
  .channel-pill {
    flex: 0 0 auto !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
  }
  .spec-label {
    display: block;
    margin-bottom: 2px;
  }
  .site-header .nav-links {
    display: none !important;
  }
}
