/* ============================================
   TheNightOps — Static Website Styles
   Dark theme with neon accents
   ============================================ */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #0f1420;
  --bg-card: #141a2a;
  --bg-card-hover: #1a2236;
  --border: #1e293b;
  --border-glow: #3b82f620;

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
  --accent-orange: #f97316;

  --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --gradient-hero: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-cyan); }

img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  flex-shrink: 0;
  margin-right: 24px;
}

.logo-icon { font-size: 1.4rem; }

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

.nav-link {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  white-space: nowrap;
  font-size: 0.8rem;
}

.nav-cta:hover {
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

.nav-coffee {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #ff813f, #ffdd00);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: #1a1a1a !important;
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-coffee:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(255, 129, 63, 0.35);
  color: #1a1a1a !important;
}

.github-icon { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.stars {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--max-opacity); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.badge-beta {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 4px;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--text-primary);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  color: white;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* Terminal */
.hero-terminal, .scenario-command {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  font-size: 0.8rem;
  color: #8b949e;
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
}

.terminal-line {
  color: #c9d1d9;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-line .prompt {
  color: var(--accent-green);
  margin-right: 8px;
}

.terminal-line.output {
  color: #8b949e;
}

.terminal-line.success {
  color: var(--accent-green);
}

.terminal-line.info {
  color: var(--accent-cyan);
}

.terminal-line.warn {
  color: var(--accent-yellow);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll a { color: var(--text-muted); }
.hero-scroll a:hover { color: var(--text-primary); }

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-secondary);
}

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

.section-tag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Features Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Architecture ---- */
.arch-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.arch-tab {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.arch-tab:hover { border-color: var(--accent-blue); color: var(--text-primary); }

.arch-tab.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

.arch-panel { display: none; }
.arch-panel.active { display: block; }

.arch-diagram {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow-x: auto;
  margin-bottom: 32px;
}

.arch-ascii {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  line-height: 1.5;
  white-space: pre;
  margin: 0;
}

.arch-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.arch-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.arch-feature strong {
  color: var(--text-primary);
}

/* ---- Investigation Phases ---- */
.phases-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.phases-timeline::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
}

.phase-item {
  display: flex;
  gap: 28px;
  margin-bottom: 48px;
  position: relative;
}

.phase-item:last-child { margin-bottom: 0; }

.phase-number {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--accent-blue);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-blue);
  z-index: 1;
}

.phase-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 8px;
}

.phase-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Demo Scenarios ---- */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
}

.scenario-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
}

.scenario-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.scenario-tag {
  display: inline-block;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  padding: 4px 12px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.scenario-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.scenario-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.scenario-command {
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Remediation Policies ---- */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.policy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.policy-level-0::before { background: var(--accent-green); }
.policy-level-1::before { background: var(--accent-yellow); }
.policy-level-2::before { background: var(--accent-orange); }
.policy-level-3::before { background: var(--accent-red); }

.policy-level {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.policy-level-0 .policy-level { color: var(--accent-green); }
.policy-level-1 .policy-level { color: var(--accent-yellow); }
.policy-level-2 .policy-level { color: var(--accent-orange); }
.policy-level-3 .policy-level { color: var(--accent-red); }

.policy-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.policy-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.policy-card ul {
  list-style: none;
  padding: 0;
}

.policy-card li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.policy-card li::before {
  content: '>';
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  color: var(--accent-blue);
}

/* ---- Metrics ---- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
}

.metric-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-glow);
}

.metric-header {
  margin-bottom: 20px;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.metric-comparison {
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-before, .metric-after {
  flex: 1;
  text-align: center;
}

.metric-before .metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-red);
  display: block;
}

.metric-after .metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-green);
  display: block;
}

.metric-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.metric-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ---- Sponsor Section ---- */
.section-sponsor {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(59, 130, 246, 0.06), rgba(6, 182, 212, 0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sponsor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.sponsor-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
}

.sponsor-featured {
  border-color: var(--accent-yellow);
  position: relative;
  overflow: hidden;
}

.sponsor-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff813f, #ffdd00);
}

.sponsor-featured:hover {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 40px rgba(255, 129, 63, 0.2);
}

.sponsor-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.sponsor-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.sponsor-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-coffee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff813f, #ffdd00);
  color: #1a1a1a;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-coffee:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 129, 63, 0.4);
  color: #1a1a1a;
}

/* ---- Tech Stack ---- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-item:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.tech-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.tech-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Timeline ---- */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple), var(--accent-cyan), var(--text-muted));
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 3px solid var(--bg-primary);
  z-index: 1;
}

.timeline-future .timeline-marker {
  background: var(--text-muted);
  border-style: dashed;
  border-color: var(--text-muted);
}

.section-dark .timeline-marker {
  border-color: var(--bg-secondary);
}

.timeline-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.timeline-future .timeline-date {
  color: var(--text-muted);
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-content p,
.timeline-content ul {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
}

.timeline-content li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

.timeline-content li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-purple);
  font-family: var(--font-mono);
}

/* ---- Quick Start ---- */
.quickstart-steps {
  max-width: 700px;
  margin: 0 auto;
}

.qs-step {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.qs-step:last-child { margin-bottom: 0; }

.qs-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
}

.qs-content { flex: 1; }

.qs-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.code-block {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  padding: 20px;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #c9d1d9;
  line-height: 1.8;
}

/* ---- CTA Section ---- */
.section-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-cta p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-tagline {
  margin-top: 8px;
  font-style: italic;
}

/* ---- Animations ---- */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .policy-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .arch-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sponsor-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {

  .features-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .policy-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .sponsor-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: 24px; }

  .hero-title { font-size: 2.2rem; }

  .phases-timeline::before { left: 28px; }
  .phase-number { width: 56px; height: 56px; font-size: 1rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .arch-ascii { font-size: 0.6rem; }

  .qs-step { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 0 60px; }
  .section { padding: 64px 0; }
  .hero-terminal { margin: 0 -12px; border-radius: var(--radius-md); }
  .scenario-command { margin: 0 -12px; border-radius: var(--radius-md); }
  .stats-grid { flex-direction: column; gap: 16px; }
  .stat-item { display: flex; align-items: center; gap: 12px; }
  .stat-number { font-size: 1.5rem; }
}
