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

:root {
  --bg-primary: #0a0b10;
  --bg-secondary: #0e0f16;
  --bg-card: #12131c;
  --bg-card-hover: #181924;
  --border: #1c1d2b;
  --border-light: #282940;

  --text-primary: #eaeaf0;
  --text-secondary: #9496ad;
  --text-muted: #5f6179;

  --accent: #14b8a6;
  --accent-light: #2dd4bf;
  --accent-dark: #0d9488;
  --accent-glow: rgba(20, 184, 166, 0.12);

  --accent2: #f59e0b;
  --accent2-glow: rgba(245, 158, 11, 0.10);

  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.12);
  --red: #ef4444;
  --red-muted: #dc2626;
  --red-glow: rgba(239, 68, 68, 0.10);
  --yellow: #eab308;
  --orange: #f97316;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --font-display: 'DM Serif Display', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --container: 1200px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ===== Focus states ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Container ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 11, 16, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 11, 16, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.nav-logo-icon {
  filter: drop-shadow(0 0 6px rgba(20, 184, 166, 0.35));
  flex-shrink: 0;
  margin-left: -2px;
}

/* Animated I-beam wordmark (footer) */
.footer-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1;
  color: inherit;
  filter: drop-shadow(0 0 10px rgba(20, 184, 166, 0.15));
}

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.nav-github {
  display: flex;
  align-items: center;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.nav-github:hover { opacity: 1; }

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0a0b10;
  box-shadow: 0 0 24px var(--accent-glow), 0 4px 12px rgba(0,0,0,0.4);
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 0 36px rgba(20, 184, 166, 0.2), 0 6px 16px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

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

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

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius);
}

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

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 184, 166, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 900px;
  background: radial-gradient(ellipse 70% 55% at 50% 20%, rgba(20, 184, 166, 0.22) 0%, rgba(20, 184, 166, 0.08) 35%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--accent-light), var(--accent2), #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.hero-scroll-cue {
  display: block;
  margin-top: 40px;
  color: var(--accent);
  opacity: 0.6;
  animation: scrollBounce 2.5s ease-in-out infinite;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.hero-scroll-cue:hover {
  opacity: 1;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-first { padding-top: 48px; }
.section-alt { background: var(--bg-secondary); }

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
  text-wrap: pretty;
}

/* ===== Steps ===== */
.steps {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.step:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-arrow {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Compact inline steps */
.steps-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.step-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.step-compact-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(20, 184, 166, 0.25);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-compact-text strong {
  color: var(--text-primary);
}

.step-compact-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.5;
}

/* ===== Interactive Demo ===== */
.demo-container {
  max-width: 960px;
  margin: 0 auto;
}

.demo-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  overflow-x: auto;
  padding: 8px 0;
}

.demo-step-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  color: var(--text-muted);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.demo-step-btn:hover { color: var(--text-secondary); }
.demo-step-btn.active { color: var(--accent); }
.demo-step-btn.done { color: var(--green); }

.demo-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid currentColor;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.demo-step-btn.active .demo-step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

.demo-step-btn.done .demo-step-num {
  background: var(--green);
  border-color: var(--green);
  color: var(--bg-primary);
}

.demo-step-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.demo-step-line {
  width: 32px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 23px;
}

/* Split layout */
.demo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.demo-chat,
.demo-code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.demo-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.demo-chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.demo-chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Chat messages */
.msg {
  max-width: 90%;
  padding: 12px 16px;
  border-radius: var(--radius) var(--radius) var(--radius) 4px;
  font-size: 0.88rem;
  line-height: 1.55;
  animation: msgIn 0.3s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-user {
  align-self: flex-end;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.2);
  color: var(--text-primary);
  border-radius: var(--radius) var(--radius) 4px var(--radius);
}

.msg-user::before {
  content: "User";
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.msg-ai {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.msg-ai::before {
  content: "AI Agent";
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.msg-tool {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.msg-tool::before {
  content: "MCP Tool Call";
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  color: #818cf8;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.msg-result-block {
  background: var(--red-glow);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--text-primary);
}

.msg-result-block::before {
  content: "Acutis Result";
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.msg-result-allow {
  background: var(--green-glow);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--text-primary);
}

.msg-result-allow::before {
  content: "Acutis Result";
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Code panel */
.demo-code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}

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

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

.demo-code-title {
  margin-left: 8px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.demo-code-body {
  flex: 1;
  padding: 20px;
  overflow: auto;
}

.demo-code-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  white-space: pre;
  animation: codeIn 0.3s ease;
}

@keyframes codeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.demo-code-body code {
  background: none;
  padding: 0;
  border: none;
  font-size: inherit;
}

/* Demo controls */
.demo-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.demo-ctrl-btn {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.demo-ctrl-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Syntax highlighting */
.hl-kw { color: #c084fc; }
.hl-fn { color: var(--accent-light); }
.hl-str { color: #34d399; }
.hl-key { color: #60a5fa; }
.hl-cmt { color: var(--text-muted); }
.hl-err { color: var(--red); font-weight: 700; }
.hl-ok { color: var(--green); font-weight: 700; }
.hl-prop { color: var(--orange); }

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 20px;
  border: 1px solid rgba(20, 184, 166, 0.15);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 10px;
}

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

/* ===== Comparison ===== */
.comparison {
  display: flex;
  align-items: stretch;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-card {
  flex: 1;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.comparison-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 24px;
}

.comparison-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.comparison-card li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.comparison-old {
  background: var(--red-glow);
  border-color: rgba(239, 68, 68, 0.15);
}

.comparison-old li svg { color: var(--red-muted); }
.comparison-old h3 { color: var(--text-secondary); }

.comparison-new {
  background: var(--green-glow);
  border-color: rgba(34, 197, 94, 0.18);
}

.comparison-new li svg { color: var(--green); }

.comparison-vs {
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== CWE Grid ===== */
.cwe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cwe-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s ease;
}

.cwe-card:hover { border-color: var(--border-light); }

.cwe-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--red);
  background: var(--red-glow);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
  margin-bottom: 16px;
}

.cwe-badge-future {
  color: var(--accent);
  background: var(--accent-glow);
  border-color: rgba(20, 184, 166, 0.2);
}

.cwe-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.cwe-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cwe-card-future { border-style: dashed; }

.cwe-sinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cwe-sink-tag {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.cwe-sink-tag.future {
  border-style: dashed;
  color: var(--text-muted);
}

/* ===== Install Tabs ===== */
.install-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.install-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.install-tab:hover {
  color: var(--text-secondary);
  border-color: var(--border-light);
}

.install-tab.active {
  color: var(--accent);
  background: var(--accent-glow);
  border-color: rgba(20, 184, 166, 0.3);
}

/* Install panels */
.install-panel {
  display: none;
}

.install-panel.active {
  display: block;
  animation: panelIn 0.25s ease;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.install-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.install-card-primary {
  border-color: rgba(20, 184, 166, 0.25);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.05), rgba(245, 158, 11, 0.02));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.install-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-secondary);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.install-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 8px;
}

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

.install-btn {
  width: 100%;
  justify-content: center;
}

.install-note {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
  margin-top: 12px !important;
}

.install-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.install-url-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  width: 100%;
}

.install-url-box code {
  flex: 1;
  font-size: 0.82rem;
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-light);
  user-select: all;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.copy-btn:hover { color: var(--text-primary); }

.code-block {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  max-width: 100%;
  padding: 20px;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

.code-block code {
  background: none;
  padding: 0;
  border: none;
  font-size: inherit;
}

/* ===== CTA Section ===== */
/* Nerd content — collapsed by default */
.nerd-content {
  display: none;
}

.nerd-content.expanded {
  display: block;
  animation: nerdReveal 0.4s ease-out;
}

@keyframes nerdReveal {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.deep-dive-chevron {
  transition: transform 0.3s ease;
}

.deep-dive-btn[aria-expanded="true"] .deep-dive-chevron {
  transform: rotate(180deg);
}

/* Deep dive divider */
.deep-dive-divider {
  padding: 80px 0;
  border-top: none;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.deep-dive-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(20, 184, 166, 0.02);
  position: relative;
  overflow: hidden;
}

.deep-dive-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.deep-dive-prompt {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.deep-dive-btn {
  font-size: 0.95rem;
  border-color: rgba(20, 184, 166, 0.3);
  transition: all 0.3s ease;
}

.deep-dive-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.15);
}

.cta-section { padding: 100px 0; }

.cta-inner {
  text-align: center;
  padding: 64px 40px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.06), rgba(245, 158, 11, 0.03));
  border: 1px solid rgba(20, 184, 166, 0.12);
  border-radius: var(--radius-xl);
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.cta-inner .hero-actions {
  justify-content: center;
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-left { max-width: 300px; }

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

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

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

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid,
  .cwe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 11, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

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

  .hero {
    padding: 120px 0 60px;
    min-height: 100vh;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .hero-stat-divider {
    width: 40px;
    height: 1px;
  }

  .steps { flex-direction: column; gap: 16px; }
  .step-arrow { display: none; }

  .steps-compact { gap: 10px; }
  .step-compact { padding: 8px 14px; font-size: 0.82rem; }
  .step-compact-arrow { display: none; }

  .features-grid,
  .cwe-grid {
    grid-template-columns: 1fr;
  }

  .comparison { flex-direction: column; }
  .comparison-vs { justify-content: center; padding: 8px 0; }

  .install-grid { grid-template-columns: 1fr; }
  .install-card { padding: 28px 20px; }

  .demo-split { grid-template-columns: 1fr; }
  .demo-chat { min-height: 280px; }
  .demo-code { min-height: 240px; }

  .demo-progress { justify-content: flex-start; }

  .footer-inner { flex-direction: column; }
  .footer-links { gap: 40px; }
  .section { padding: 80px 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.65rem; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn { justify-content: center; }

  .demo-step-label { display: none; }
  .demo-step-line { width: 16px; }
}
