/* ——— Design System ——— */
:root {
  --bg: #0A0B0F;
  --bg-2: #0F1117;
  --bg-3: #141821;
  --fg: #E8ECF0;
  --fg-muted: #6B7280;
  --fg-dim: #3D4450;
  --teal: #00F0CC;
  --teal-dim: #00F0CC33;
  --teal-glow: #00F0CC18;
  --amber: #FFB03A;
  --amber-dim: #FFB03A33;
  --red: #FF4B6E;
  --red-dim: #FF4B6E33;
  --green: #00E87A;
  --green-dim: #00E87A33;
  --border: #1E2330;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

/* ——— Navbar ——— */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
}

.brand-icon {
  color: var(--teal);
  font-size: 22px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ——— Hero ——— */
.hero {
  padding: 80px 48px 80px;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 40px;
}

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

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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--fg);
  margin-bottom: 24px;
}

.headline-accent {
  color: var(--teal);
}

.hero-lede {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
}

/* ——— Terminal ——— */
.hero-terminal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 240, 204, 0.04), 0 24px 48px rgba(0,0,0,0.4);
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.chrome-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #28CA41; }

.chrome-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--fg-muted);
  font-family: 'Courier New', monospace;
}

.chrome-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--green);
  font-family: 'Courier New', monospace;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

.terminal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Courier New', monospace;
  font-size: 11.5px;
  min-height: 300px;
}

.log-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.log-line:last-child { border-bottom: none; }

.log-ts { color: var(--fg-dim); min-width: 64px; }
.log-label { min-width: 44px; font-weight: 700; font-size: 10px; letter-spacing: 0.06em; }
.log-info .log-label { color: var(--fg-muted); }
.log-ok .log-label { color: var(--green); }
.log-warn .log-label { color: var(--amber); }
.log-error .log-label { color: var(--red); }
.log-action .log-label { color: var(--teal); }
.log-line span:not(.log-ts):not(.log-label) { color: var(--fg-muted); }

.cursor-line { padding-top: 8px; }
.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--teal);
  opacity: 0.8;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ——— Trace Section ——— */
.trace-section {
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.trace-container {
  max-width: 900px;
  margin: 0 auto;
}

.trace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.trace-label { display: flex; flex-direction: column; gap: 6px; }

.trace-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim);
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}

.trace-session {
  font-size: 12px;
  color: var(--fg-muted);
  font-family: 'Courier New', monospace;
}

.trace-stats { display: flex; gap: 28px; }
.stat { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.stat-value { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--fg); }
.stat-label { font-size: 10px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.1em; }

.trace-waterfall { margin-bottom: 24px; }

.wf-row {
  display: grid;
  grid-template-columns: 220px 1fr 60px;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.wf-row:last-child { border-bottom: none; }
.wf-root { border-top: 1px solid var(--border); padding-top: 12px; }
.wf-1 { padding-left: 16px; }
.wf-2 { padding-left: 32px; }

.wf-name {
  font-family: 'Courier New', monospace;
  font-size: 11.5px;
  color: var(--fg-muted);
}
.wf-indent { color: var(--fg-dim); }

.wf-bar {
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
}

.wf-fill { height: 100%; border-radius: 3px; }

.wf-time {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--fg-dim);
  text-align: right;
}

.trace-annotation {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--teal-glow);
  border: 1px solid var(--teal-dim);
  border-radius: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 20px;
}

.ann-icon {
  color: var(--teal);
  font-size: 18px;
  flex-shrink: 0;
}

/* ——— Features ——— */
.features {
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
}

.section-header { margin-bottom: 56px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
}

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

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

.feature-card:hover { background: var(--bg-2); }

.feature-icon {
  font-size: 28px;
  color: var(--teal);
  margin-bottom: 16px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ——— Incident ——— */
.incident-section {
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.incident-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.incident-tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.incident-headline {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--red);
  margin-bottom: 16px;
}

.incident-headline--teal { color: var(--teal); }

.incident-body {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.incident-terminal {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.terminal-dark .log-line:last-child { border-bottom: none; }

.savings-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--teal-glow), transparent);
  border-top: 1px solid var(--teal-dim);
}

.savings-label { font-size: 12px; color: var(--fg-muted); }
.savings-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--teal);
}

/* ——— Philosophy ——— */
.philosophy {
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
}

.philosophy-inner { max-width: 840px; margin: 0 auto; }

.philosophy-label { margin-bottom: 24px; }

.section-tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.philosophy-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 48px;
}

.philosophy-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.philosophy-text {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.philosophy-text em { color: var(--fg); font-style: normal; font-weight: 500; }

/* ——— Closing ——— */
.closing {
  padding: 100px 48px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--teal-glow) 0%, transparent 70%);
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.closing-icon {
  font-size: 48px;
  color: var(--teal);
  margin-bottom: 32px;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.closing-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tech-tag {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--fg-muted);
  font-family: 'Courier New', monospace;
}

/* ——— Footer ——— */
.footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
}

.footer-inner { max-width: 840px; margin: 0 auto; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
  margin-bottom: 12px;
}

.footer-copy {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.footer-meta {
  font-size: 12px;
  color: var(--fg-dim);
}

/* ——— Responsive ——— */
@media (max-width: 768px) {
  .navbar { padding: 16px 24px; }
  .nav-links { display: none; }

  .hero { padding: 48px 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }

  .features { padding: 48px 24px; }
  .features-grid { grid-template-columns: 1fr; }

  .incident-section { padding: 48px 24px; }
  .incident-grid { grid-template-columns: 1fr; }

  .philosophy { padding: 48px 24px; }
  .philosophy-columns { grid-template-columns: 1fr; }

  .trace-section { padding: 48px 24px; }
  .trace-stats { gap: 16px; }

  .closing { padding: 64px 24px; }
  .footer { padding: 32px 24px; }

  .wf-row { grid-template-columns: 140px 1fr 50px; }
}
