/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --amber: #f5a623;
  --amber-dim: rgba(245, 166, 35, 0.15);
  --amber-glow: rgba(245, 166, 35, 0.08);
  --green: #22c55e;
  --text: #e8e6e3;
  --text-dim: #6b6b6b;
  --text-muted: #3d3d3d;
  --border: #2a2a2a;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px 60px;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, var(--amber-glow) 0%, transparent 60%),
    var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(245,166,35,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: pulse 2s infinite;
}

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

.eyebrow-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
}

.hero-headline {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.stat-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--amber);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* === MONITOR WIDGET === */
.monitor-frame {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(245,166,35,0.04);
}

.monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.monitor-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.monitor-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

.monitor-body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }

.data-stream { display: flex; flex-direction: column; gap: 6px; }

.stream-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stream-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  background: var(--bg);
  border-radius: 1px;
}

.stream-key {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.stream-val {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}

.stream-val.green { color: var(--green); }
.stream-val.amber { color: var(--amber); }

/* === SCROLL INDICATOR === */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-muted);
}

/* === SECTION LABEL === */
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

/* === MONITOR SECTION === */
.monitor-section {
  padding: 120px 48px;
  background: var(--bg);
}

.monitor-section-inner { max-width: 1200px; margin: 0 auto; }

.monitor-section-headline {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.monitor-section-sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 64px;
  line-height: 1.7;
}

.workflow-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 64px;
}

.workflow-step {
  flex: 1;
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  position: relative;
}

.workflow-step:first-child { border-radius: 2px 0 0 2px; }
.workflow-step:last-child { border-radius: 0 2px 2px 0; }

.workflow-arrow {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--amber);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.step-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* === TERMINAL BLOCK === */
.terminal-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); }

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

.terminal-line { display: flex; gap: 16px; align-items: baseline; }

.t-date { font-size: 10px; color: var(--text-muted); flex-shrink: 0; width: 120px; }
.t-msg { font-size: 12px; color: var(--text-dim); }
.t-highlight { color: var(--amber); }
.t-muted { color: var(--text-muted); }

.terminal-prompt { margin-top: 8px; font-size: 11px; color: var(--text-dim); border-top: 1px solid var(--border); padding-top: 12px; }
.t-cursor { color: var(--amber); margin-right: 6px; }

/* === FEATURES === */
.features-section {
  padding: 120px 48px;
  background: var(--bg);
}

.features-inner { max-width: 1200px; margin: 0 auto; }

.features-headline {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.features-sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 64px;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg-elevated);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon { color: var(--amber); }

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* === METRICS === */
.metrics-section {
  padding: 120px 48px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.metrics-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

.metrics-bg-accent {
  position: absolute;
  top: 0;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--amber-dim) 0%, transparent 70%);
  pointer-events: none;
}

.metrics-header { margin-bottom: 64px; }

.metrics-header h2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 64px;
}

.metric-card {
  background: var(--bg-elevated);
  padding: 32px 28px;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 500;
  color: var(--amber);
  margin-bottom: 4px;
}

.metric-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.metric-bar {
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 1px;
}

.metrics-quote {
  padding: 40px 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  position: relative;
}

.quote-mark {
  font-size: 64px;
  color: var(--amber);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}

blockquote {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 700px;
  font-style: italic;
  margin-bottom: 20px;
}

.quote-source {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* === MANIFESTO === */
.manifesto-section { padding: 80px 48px; background: var(--bg-elevated); }
.manifesto-inner { max-width: 800px; margin: 0 auto; }
.manifesto-rule { height: 1px; background: var(--border); margin: 40px 0; }
.manifesto-body { display: flex; flex-direction: column; gap: 24px; }
.manifesto-text { font-size: 18px; color: var(--text-dim); line-height: 1.75; }
.manifesto-emphasis { font-size: 20px; color: var(--text) !important; font-weight: 600; }

/* === CLOSING === */
.closing-section { padding: 120px 48px; background: var(--bg); }
.closing-inner { max-width: 1200px; margin: 0 auto; }
.closing-headline {
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 64px;
}
.closing-data {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.closing-datum {
  background: var(--bg-elevated);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.datum-key {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--amber);
}
.datum-val {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* === FOOTER === */
.site-footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-logo {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--amber);
}
.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer-status { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.footer-links { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.link-sep { color: var(--text-muted); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { order: -1; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .workflow-grid { flex-direction: column; }
  .workflow-arrow { transform: rotate(90deg); justify-content: center; }
  .closing-data { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 80px 24px 60px; }
  .monitor-section, .features-section, .metrics-section, .closing-section { padding: 80px 24px; }
  .features-grid, .metrics-grid, .closing-data { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 24px; align-items: flex-start; }
  .footer-meta { align-items: flex-start; }
  .hero-stats { gap: 20px; }
  .hero-headline { font-size: 36px; }
}