:root {
  --bg: #09090b;
  --surface: #121215;
  --surface-2: #1c1c21;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-glow: rgba(96, 165, 250, 0.4);
  --rust: #dea584;
  --success: #22c55e;
  --border: #27272a;
  --code-bg: #0d0d10;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --container: 1080px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #2563eb;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  top: 0;
}

/* Visually hidden — accessible to screen readers, invisible on screen */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-icon {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.btn-nav {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text);
  transition: border-color 0.2s;
}

.btn-nav:hover {
  border-color: var(--text-dim);
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(5rem, 12vw, 8rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background:
    radial-gradient(circle at 30% 40%, rgba(96, 165, 250, 0.5) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(167, 139, 250, 0.4) 0%, transparent 55%);
  opacity: 0.18;
  z-index: -1;
  filter: blur(80px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.badge-rust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(222, 165, 132, 0.08);
  color: var(--rust);
  border: 1px solid rgba(222, 165, 132, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.badge-rust .dot {
  width: 6px;
  height: 6px;
  background: var(--rust);
  border-radius: 50%;
  display: inline-block;
}

a.badge-release {
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a.badge-release:hover,
a.badge-release:focus-visible {
  background: rgba(222, 165, 132, 0.14);
  border-color: rgba(222, 165, 132, 0.35);
  transform: translateY(-1px);
}

a.badge-release:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

.badge-release .dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

.badge-release .badge-pill {
  background: var(--rust);
  color: #1a0f08;
  padding: 0.05rem 0.45rem;
  border-radius: 99px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(222, 165, 132, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(222, 165, 132, 0); }
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom right, #fff, #a1a1aa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.highlight {
  color: var(--accent);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.install-wrapper {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s;
}

.install-wrapper:hover {
  border-color: var(--text-dim);
}

.prompt {
  color: var(--text-dim);
  margin-right: 0.75rem;
  user-select: none;
}

.install-cmd {
  font-family: var(--font-mono);
  color: var(--text);
  user-select: all;
  background: none;
  border: none;
  font-size: inherit;
}

.copy-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  margin-left: 0.75rem;
  padding: 0.25rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s, background 0.2s;
}

.copy-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.copy-btn.copied {
  color: var(--success);
}

.copy-btn::after {
  content: "Copied!";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--success);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-btn.copied::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.trust-line {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  text-align: center;
  min-height: 44px;
  line-height: 1.4;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 0 25px var(--accent-glow);
}

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

.btn-secondary:hover {
  border-color: var(--text-dim);
  background: var(--surface-2);
}

/* Focus states */
.btn:focus-visible,
.btn-nav:focus-visible,
.copy-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Sections */
section {
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-bottom: 1px solid var(--border);
}

main > section:last-of-type {
  border-bottom: none;
}

section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Problem */
.problem {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.problem::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.06) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.problem .container {
  position: relative;
  z-index: 1;
}

.problem h2 {
  margin-bottom: 0.25rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin: 2.5rem auto 0;
  max-width: 880px;
}

.problem-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
}

.problem-item.before {
  justify-self: end;
}

.problem-item.after {
  justify-self: start;
}

.problem-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.problem-item h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  color: var(--text-dim);
}

.problem-item.before .before-card {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  flex: 1;
}

.problem-item.before ul {
  list-style: none;
  color: var(--text-muted);
}

.problem-item.before li {
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.5;
}

.problem-item.before li:last-child {
  margin-bottom: 0;
}

.problem-item.before li::before {
  content: "\00d7";
  position: absolute;
  left: 0.15rem;
  top: -0.05rem;
  color: #ef4444;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
}

.problem-item.before code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  background: rgba(239, 68, 68, 0.08);
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
}

.problem-item.after h3 {
  color: var(--success);
}

.problem-item.after p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.85rem;
  line-height: 1.5;
}

.problem-arrow {
  font-size: 1.5rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  align-self: center;
  padding: 0 0.25rem;
  user-select: none;
}

/* Terminal Window */
.terminal-window {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.terminal-window:hover {
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(96, 165, 250, 0.08);
}

.terminal-header {
  background: var(--surface-2);
  padding: 0.5rem 0.75rem;
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.tdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.tdot.red { background: #ef4444; }
.tdot.yellow { background: #eab308; }
.tdot.green { background: #22c55e; }

.terminal-window pre {
  padding: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--text-dim) transparent;
}

.terminal-window pre::-webkit-scrollbar {
  height: 6px;
}

.terminal-window pre::-webkit-scrollbar-thumb {
  background: var(--text-dim);
  border-radius: 3px;
}

.terminal-window pre::-webkit-scrollbar-track {
  background: transparent;
}

.terminal-window code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.6;
}

/* Terminal syntax highlighting */
.t-p { color: var(--success); font-weight: 600; user-select: none; }
.t-c { color: var(--accent); font-weight: 500; }
.t-mute { color: var(--text-dim); }
.t-warn { color: #fbbf24; }
.t-ok { color: var(--success); }
.t-json { color: #c4b5fd; }

/* Pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
  opacity: 0;
  transform: translateY(16px);
  position: relative;
  overflow: hidden;
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.pillar.visible {
  opacity: 1;
  transform: translateY(0);
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.pillar:hover::before {
  opacity: 1;
}

.pillar > * {
  position: relative;
}

.pillar-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.pillar h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.pillar h3 code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pillar-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pillar-link:hover,
.pillar-link:focus-visible {
  border-bottom-color: var(--accent);
}

.pillar-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Workflow / Personas */
.workflow {
  background: var(--bg);
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 3rem;
}

.persona {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.persona.visible {
  opacity: 1;
  transform: translateY(0);
}

.persona-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.persona h3 {
  font-size: 1rem;
  color: var(--text);
}

.persona .terminal-window {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.persona .terminal-window pre {
  flex: 1;
}

.role-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-dim);
  font-weight: 700;
}

.role-badge.ai {
  color: var(--accent);
  background: rgba(96, 165, 250, 0.1);
}

.persona .terminal-window {
  margin-bottom: 0.75rem;
}

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

.callout {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
}

/* Teams */
.teams {
  background: var(--surface);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.team-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.team-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.team-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.team-card code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(96, 165, 250, 0.08);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

/* Plugins */
.plugins {
  text-align: center;
}

.code-showcase {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.code-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.comment {
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
}

.cmd-line {
  color: var(--text);
}

/* Get Started */
.get-started {
  background: var(--surface);
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.cta-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.cta-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.cta-card h3 {
  margin-bottom: 0.75rem;
  margin-top: 0.25rem;
}

.cta-card pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin: 0;
}

.cta-card code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.alt-install {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.alt-install code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
}

.final-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* Footer */
footer {
  padding: 3rem 0 1.5rem;
  background: var(--bg);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand .logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

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

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--accent);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1,
.hero .tagline,
.hero-cta,
.badge-rust,
.trust-line {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.badge-rust { animation-delay: 0s; }
.hero h1 { animation-delay: 0.1s; }
.hero .tagline { animation-delay: 0.2s; }
.hero-cta { animation-delay: 0.3s; }
.trust-line { animation-delay: 0.4s; }

/* Stagger IntersectionObserver items */
.pillar:nth-child(1), .persona:nth-child(1), .team-card:nth-child(1), .cta-card:nth-child(1), .code-block:nth-child(1) { transition-delay: 0s; }
.pillar:nth-child(2), .persona:nth-child(2), .team-card:nth-child(2), .cta-card:nth-child(2), .code-block:nth-child(2) { transition-delay: 0.1s; }
.pillar:nth-child(3), .persona:nth-child(3), .team-card:nth-child(3), .cta-card:nth-child(3), .code-block:nth-child(3) { transition-delay: 0.15s; }
.pillar:nth-child(4), .team-card:nth-child(4) { transition-delay: 0.2s; }
.pillar:nth-child(5) { transition-delay: 0.25s; }
.pillar:nth-child(6) { transition-delay: 0.3s; }

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

  .pillar, .persona, .team-card, .cta-card, .problem-item, .code-block {
    opacity: 1;
    transform: none;
  }
}

/* Responsive — Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive — Mobile */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .nav-links a[href^="#"] {
    display: none;
  }

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

  .install-wrapper {
    justify-content: space-between;
  }

  .btn {
    width: 100%;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 420px;
  }

  .problem-item.before,
  .problem-item.after {
    justify-self: stretch;
    max-width: none;
  }

  .problem-arrow {
    transform: rotate(90deg);
    text-align: center;
    justify-self: center;
  }

  .pillar-grid,
  .persona-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 2.5rem 0;
  }

  .final-cta {
    flex-direction: column;
    align-items: stretch;
  }
}
