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

:root {
  --bg: #0a0a0c;
  --bg-2: #111116;
  --surface: #1a1a22;
  --surface-2: #222230;
  --accent: #ff6b35;
  --accent-dim: #ff6b3520;
  --text: #f0ede8;
  --text-2: #9a9790;
  --text-3: #5a5750;
  --border: #2a2a36;
  --code-green: #4ade80;
  --code-blue: #60a5fa;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav { border-bottom: 1px solid var(--border); padding: 20px 0; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 16px; }
.nav-logo { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.nav-tagline { color: var(--text-2); font-size: 0.85rem; }

/* === HERO === */
.hero { position: relative; padding: 100px 0 80px; overflow: hidden; }
.hero-bg-shape {
  position: absolute;
  top: -80px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(circle at center, #ff6b3515 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-eyebrow { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.badge { background: var(--accent-dim); color: var(--accent); border: 1px solid #ff6b3540; font-size: 0.75rem; padding: 4px 10px; border-radius: 20px; font-family: 'JetBrains Mono', monospace; }
.hero-headline { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 20px; }
.hero-sub { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; max-width: 420px; }

/* Window frame */
.window-frame { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 80px #00000060; }
.window-titlebar { background: var(--surface-2); padding: 10px 16px; display: flex; align-items: center; gap: 6px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.window-label { margin-left: 10px; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-3); }
.window-body { padding: 20px; }

.annot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.annot-box { border: 1px solid #ff6b3560; border-radius: 8px; padding: 10px; background: #ff6b3508; }
.annot-region { height: 48px; background: linear-gradient(135deg, #2a2a36 0%, #1a1a22 100%); border-radius: 4px; margin-bottom: 6px; position: relative; }
.annot-region::after { content: ''; position: absolute; top: 4px; left: 4px; right: 4px; bottom: 4px; border: 1px dashed #ff6b3540; border-radius: 2px; }
.annot-region-2 { background: linear-gradient(135deg, #1e2a3a 0%, #111c28 100%); }
.annot-label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--accent); }

.session-note { background: var(--bg); border-radius: 6px; padding: 8px 12px; margin-bottom: 14px; }
.note-mono { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--text-2); }

.route-row { display: flex; gap: 8px; }
.route-btn { flex: 1; padding: 8px; text-align: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-2); cursor: pointer; }
.route-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* === WORKFLOW === */
.workflow { padding: 80px 0; border-top: 1px solid var(--border); }
.section-header { max-width: 1100px; margin: 0 auto 60px; padding: 0 40px; text-align: center; }
.section-title { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 12px; }
.section-sub { color: var(--text-2); font-size: 1rem; }
.workflow-steps { max-width: 1100px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.step { padding: 28px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.step:nth-child(3n) { border-right: none; }
.step:nth-child(4), .step:nth-child(5), .step:nth-child(6) { border-bottom: none; }
.step-num { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--accent); margin-bottom: 10px; font-weight: 500; }
.step-title { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.step-desc { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }

/* === FEATURES === */
.features { padding: 60px 0 80px; border-top: 1px solid var(--border); background: var(--bg-2); }
.features-grid { max-width: 1100px; margin: 0 auto; padding: 0 40px; 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-2); padding: 32px 28px; }
.feature-icon { font-size: 1.4rem; margin-bottom: 14px; font-family: 'JetBrains Mono', monospace; color: var(--accent); }
.feature-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.feature-desc { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; }

/* === CODE SECTION === */
.code-section { padding: 80px 0; border-top: 1px solid var(--border); }
.code-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.code-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.code-title { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 16px; }
.code-desc { color: var(--text-2); font-size: 0.95rem; line-height: 1.7; }
.code-block { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.code-header { padding: 10px 16px; background: var(--surface-2); display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.lang-tag { background: #ff6b3525; color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; }
.file-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-2); }
.code-content { padding: 20px; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; line-height: 1.7; color: var(--text-2); overflow-x: auto; white-space: pre; }
.key { color: #60a5fa; }
.str { color: #4ade80; }

/* === CLOSING === */
.closing { padding: 80px 0; border-top: 1px solid var(--border); background: var(--bg-2); }
.closing-inner { max-width: 700px; margin: 0 auto; text-align: center; padding: 0 40px; }
.closing-headline { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; letter-spacing: -0.04em; margin-bottom: 20px; }
.closing-body { color: var(--text-2); font-size: 1rem; line-height: 1.7; margin-bottom: 32px; }
.closing-cta { display: flex; align-items: center; justify-content: center; gap: 10px; }
.cta-badge { font-size: 0.8rem; color: var(--text-2); }
.cta-sep { color: var(--text-3); }

/* === FOOTER === */
.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-weight: 700; font-size: 0.95rem; }
.footer-tag { color: var(--text-3); font-size: 0.8rem; margin-left: 12px; }
.footer-links { display: flex; gap: 20px; }
.footer-link { color: var(--text-2); font-size: 0.85rem; text-decoration: none; transition: color 0.15s; }
.footer-link:hover { color: var(--text); }
.footer-left { display: flex; align-items: center; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .workflow-steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }
  .features-grid { grid-template-columns: 1fr; }
  .code-inner { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-left { flex-direction: column; gap: 4px; }
  .footer-tag { margin-left: 0; }
  .annot-row { grid-template-columns: 1fr; }
}