/* td Landing Page Styles */
/* Kinetic Minimal - Motion IS the personality */

:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --text-muted: #737373;
  --accent: #0a0a0a;
  --border: #e5e5e5;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.125rem;
}

.mono {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
}

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

/* Header */
header {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}

.logo svg {
  width: 39px;
  height: 39px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo svg .logo-shape {
  transition: fill 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              rx 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-left: 24px;
  transition: color 0.2s ease;
}

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

/* Hero */
.hero {
  min-height: calc(100vh - 87px); /* Account for header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero-headline {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
}

/* Smaller H1 on laptop-height screens */
@media (max-height: 900px) {
  .hero-headline {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
  }
}

.hero-headline .line {
  display: block;
}

.hero-headline .char {
  opacity: 0;
  display: inline-block;
}

.hero-headline .char.visible {
  opacity: 1;
}

.hero-headline .char.space {
  width: 0.3em;
}

/* Kinetic text - weight shifts on hover + Burano colors */
.kinetic-word {
  display: inline-block;
  transition: font-weight 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              letter-spacing 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.kinetic-word:hover {
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* Burano palette - each word gets its own color */
/* Line 1: Stop, your, AI */
.hero-headline .line:nth-child(1) .kinetic-word:nth-child(1):hover { color: #c93545; } /* crimson red */
.hero-headline .line:nth-child(1) .kinetic-word:nth-child(2):hover { color: #4a90c2; } /* sky blue */
.hero-headline .line:nth-child(1) .kinetic-word:nth-child(3):hover { color: #e87d3e; } /* bright orange */
/* Line 2: from, yolo'ing */
.hero-headline .line:nth-child(2) .kinetic-word:nth-child(1):hover { color: #9b8bb8; } /* soft lavender */
.hero-headline .line:nth-child(2) .kinetic-word:nth-child(2):hover { color: #4fb06d; } /* bright green */
/* Line 3: your, codebase */
.hero-headline .line:nth-child(3) .kinetic-word:nth-child(1):hover { color: #d4917a; } /* coral pink */
.hero-headline .line:nth-child(3) .kinetic-word:nth-child(2):hover { color: #e8c93d; } /* sunny yellow */

.hero-sub {
  font-size: 1.35rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 48px;
  font-weight: 400;
}

.install-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.install-box {
  background: var(--text);
  color: var(--bg);
  padding: 28px 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 24px;
  border-radius: 6px;
  box-shadow: 12px 12px 0 #c93545;
  transform: translate(-6px, -6px);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

/* Keyboard key press effect - pushes down on hover/click */
.install-box:hover {
  transform: translate(0, 0);
  box-shadow: 4px 4px 0 #c93545;
}

.install-box:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 #c93545;
}

.install-box button {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid #444;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 50px;
  pointer-events: none;
}

.install-box.copied button {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.install-box.copy-failed button {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.install-box:focus {
  outline: none;
}

.install-box-small {
  margin-top: 48px;
  padding: 16px 24px;
  font-size: 1rem;
  gap: 16px;
  box-shadow: 8px 8px 0 #c93545;
  transform: translate(-4px, -4px);
}

.install-box-small:hover {
  transform: translate(0, 0);
  box-shadow: 3px 3px 0 #c93545;
}

.install-box-small:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #c93545;
}

.install-box-small button {
  padding: 8px 14px;
  font-size: 0.8rem;
}

.install-hint {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.install-hint.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.install-hint .arrow {
  display: inline-block;
  animation: bounce-arrow 1s ease-in-out infinite;
}

@keyframes bounce-arrow {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

.install-hint code {
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 1rem;
}

/* Email Capture Link - Kinetic Style */
.email-cta {
  flex-basis: 100%;
  margin-top: 16px;
}

.kinetic-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}

.kinetic-link .link-icon {
  font-size: 1.1em;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kinetic-link:hover .link-icon {
  transform: rotate(-10deg) scale(1.1);
}

.kinetic-link .link-text {
  position: relative;
  transition: font-weight 0.3s ease, letter-spacing 0.3s ease;
}

.kinetic-link .link-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.kinetic-link .link-arrow {
  display: inline-block;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kinetic-link:hover .link-text {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.kinetic-link:hover .link-text::after {
  width: 100%;
}

.kinetic-link:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg);
  border-radius: 12px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text);
}

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

.modal-intro {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-group input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input[type="email"]:focus {
  outline: none;
  border-color: var(--text);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.form-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.email-success {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #4fb06d;
  color: white;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.email-success h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.email-success p {
  color: var(--text-muted);
}

/* Sections */
section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

/* Content Density Variations */
section:nth-of-type(2) {
  /* Markdown First - more spacious */
  padding: 120px 0;
}

section:nth-of-type(3) {
  /* Embedded Methodology - standard */
  padding: 100px 0;
}

section:nth-of-type(4) {
  /* Context Survival - compact */
  padding: 80px 0;
}

section:nth-of-type(5) {
  /* Built on Agile - more spacious */
  padding: 120px 0;
}

section:nth-of-type(6) {
  /* Git Native - standard */
  padding: 100px 0;
}

section:nth-of-type(7) {
  /* AI Planning - compact */
  padding: 80px 0;
}

section:nth-of-type(3) .lead,
section:nth-of-type(5) .lead {
  /* Larger lead text for some sections */
  font-size: 1.25rem;
}

section:nth-of-type(4) .lead,
section:nth-of-type(7) .lead {
  /* Smaller lead text for compact sections */
  font-size: 1.05rem;
}

section:nth-of-type(4) .context-docs,
section:nth-of-type(7) .planning-content {
  /* Tighter gap for compact sections */
  gap: 20px;
}

section:nth-of-type(5) .agile-grid {
  /* More spacious grid */
  gap: 32px;
  margin-top: 48px;
}

/* Terminal Demo Section */
.demo-section {
  padding: 80px 0 100px;
  border-bottom: none;
}

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

.demo-header {
  text-align: center;
  margin-bottom: 48px;
}

.demo-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.demo-intro {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.toggle-wrapper {
  display: flex;
  background: var(--text);
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
}

.toggle-btn {
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: #888;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.toggle-btn.active {
  background: var(--bg);
  color: var(--text);
}

.toggle-btn:hover:not(.active) {
  color: #aaa;
}

/* Lead text */
.lead {
  font-size: 1.35rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.lead code {
  background: var(--text);
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 1rem;
}

.subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 32px;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.col-visual {
  display: flex;
}

.col-visual .section-terminal,
.col-visual .code-preview {
  flex: 1;
  height: auto;
  min-height: 300px;
}

.col-content {
  padding-top: 8px;
}

.feature-list {
  list-style: none;
  margin-top: 24px;
}

.feature-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
  font-size: 1.05rem;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list code {
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Code preview */
.code-preview {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

.code-header {
  background: #2a2a2a;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3a3a3a;
}

.code-header .dot:nth-child(1) { background: #ff5f57; }
.code-header .dot:nth-child(2) { background: #ffbd2e; }
.code-header .dot:nth-child(3) { background: #28ca42; }

.code-header .filename {
  margin-left: 12px;
  color: #888;
  font-size: 0.75rem;
}

.code-preview pre {
  padding: 20px;
  margin: 0;
  overflow-x: auto;
}

.code-preview code {
  color: #e0e0e0;
  line-height: 1.6;
}

/* Methodology Section */
.methodology-section {
  padding: 100px 0;
}

.methodology-header {
  text-align: center;
  margin-bottom: 48px;
}

.methodology-header .section-title {
  margin-bottom: 20px;
}

.methodology-header .lead {
  max-width: 600px;
  margin: 0 auto;
}

.methodology-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: stretch;
}

.methodology-tiers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.methodology-terminal {
  display: flex;
  align-items: stretch;
}

.methodology-terminal .section-terminal {
  width: 100%;
  height: 280px;
}

.tier-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tier-item {
  padding-left: 0;
}

.tier-item dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.tier-item dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.methodology-footer {
  text-align: center;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.inline-link:hover {
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .methodology-grid {
    grid-template-columns: 1fr;
  }

  .methodology-terminal {
    order: -1;
  }

  .methodology-terminal .section-terminal {
    min-height: 300px;
  }
}

/* Bento items with monospace headers (for memory section) */
.bento-item h3 {
  font-family: 'JetBrains Mono', monospace;
}

/* Bento lead */
.bento-lead {
  max-width: 700px;
  margin: 0 0 48px;
  text-align: left;
}

/* Agile grid */
.agile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.agile-item {
  padding-top: 16px;
  border-top: 2px solid var(--text);
}

.agile-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.agile-item p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.agile-item code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85rem;
}

/* Bento Grid Layout */
.bento-section {
  padding: 100px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 16px;
  margin-top: 48px;
}

.bento-item {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.bento-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.bento-item:hover .bento-icon {
  transform: scale(1.05);
}

.bento-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.bento-terminal {
  grid-column: 1;
  grid-row: 1 / 4;
  display: flex;
  align-items: stretch;
}

.bento-terminal .section-terminal {
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.bento-left-top { grid-column: 2; grid-row: 1; }
.bento-left-mid { grid-column: 2; grid-row: 2; }
.bento-left-bottom { grid-column: 2; grid-row: 3; }
.bento-right-top { grid-column: 3; grid-row: 1; }
.bento-right-mid { grid-column: 3; grid-row: 2; }
.bento-right-bottom { grid-column: 3; grid-row: 3; }

/* Bento grid - terminal on right variant */
.bento-grid-terminal-right {
  grid-template-columns: 1fr 1fr 2fr;
}

.bento-grid-terminal-right .bento-terminal {
  grid-column: 3;
  grid-row: 1 / 4;
}

.bento-grid-terminal-right .bento-left-top { grid-column: 1; grid-row: 1; }
.bento-grid-terminal-right .bento-left-mid { grid-column: 1; grid-row: 2; }
.bento-grid-terminal-right .bento-left-bottom { grid-column: 1; grid-row: 3; }
.bento-grid-terminal-right .bento-right-top { grid-column: 2; grid-row: 1; }
.bento-grid-terminal-right .bento-right-mid { grid-column: 2; grid-row: 2; }
.bento-grid-terminal-right .bento-right-bottom { grid-column: 2; grid-row: 3; }

/* Clickable bento tiles */
.bento-clickable {
  cursor: pointer;
  user-select: none;
}

.bento-clickable.active {
  background: var(--text);
  border-color: var(--text);
}

.bento-clickable.active h3,
.bento-clickable.active p {
  color: #ffffff;
}

/* Bento responsive */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .bento-terminal {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .bento-left-top { grid-column: 1; grid-row: 2; }
  .bento-right-top { grid-column: 2; grid-row: 2; }
  .bento-left-mid { grid-column: 1; grid-row: 3; }
  .bento-right-mid { grid-column: 2; grid-row: 3; }
  .bento-left-bottom { grid-column: 1; grid-row: 4; }
  .bento-right-bottom { grid-column: 2; grid-row: 4; }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-terminal {
    grid-column: 1;
    grid-row: 1;
  }

  .bento-left-top { grid-column: 1; grid-row: 2; }
  .bento-right-top { grid-column: 1; grid-row: 3; }
  .bento-left-mid { grid-column: 1; grid-row: 4; }
  .bento-right-mid { grid-column: 1; grid-row: 5; }
  .bento-left-bottom { grid-column: 1; grid-row: 6; }
  .bento-right-bottom { grid-column: 1; grid-row: 7; }
}

/* Git features */
.git-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.git-feature h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.git-feature p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.git-feature code {
  background: var(--text);
  color: var(--bg);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Planning content */
.planning-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.planning-item h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.planning-item p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.planning-item code {
  background: var(--text);
  color: var(--bg);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 60px;
  line-height: 1.1;
}

/* Problem Section */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 80px;
}

.problem-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.problem-item h3::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--text);
  border-radius: 50%;
}

.problem-item p {
  color: var(--text-muted);
  padding-left: 20px;
}

/* Solution Section */
.solution-list {
  max-width: 600px;
}

.solution-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
}

.solution-item:last-child {
  border-bottom: none;
}

.solution-num {
  font-size: 3rem;
  font-weight: 200;
  line-height: 1;
  color: var(--text-muted);
  transition: font-weight 0.4s ease, color 0.4s ease;
}

.solution-item:hover .solution-num {
  font-weight: 700;
  color: var(--text);
}

.solution-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.solution-item p {
  color: var(--text-muted);
}

/* Best Practices */
.practices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.practice-item {
  padding-top: 16px;
  border-top: 2px solid var(--text);
}

.practice-item h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* Quick Start */
.quickstart {
  padding: 100px 0 120px;
  border-bottom: none;
}

.quickstart-steps {
  max-width: 480px;
}

.qs-step {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  display: flex;
  gap: 16px;
  transition: padding-left 0.3s ease;
}

.qs-step:hover {
  padding-left: 12px;
}

.qs-step .num {
  color: var(--text-muted);
}

.qs-step.highlight {
  background: var(--text);
  color: var(--bg);
  padding: 20px;
  margin: 0 -20px;
  border: none;
}

.qs-step.highlight:hover {
  padding-left: 20px;
}

.qs-step.highlight .num {
  color: #666;
}

/* Legal Pages */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px;
}

.legal-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.legal-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text);
}

.legal-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-content li {
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content a {
  color: var(--text);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.legal-content a:hover {
  color: #4a90c2;
}

.legal-content strong {
  font-weight: 600;
  color: var(--text);
}

/* Footer */
footer {
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  gap: 32px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .three-tiers {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .agile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

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

@media (max-width: 800px) {
  .hero {
    padding: 80px 0 60px;
  }

  .hero-badge {
    width: 100px;
    height: 100px;
    top: -10px;
    right: 20px;
  }

  .badge-text {
    font-size: 0.65rem;
  }

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

  .practices-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .lead {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  .agile-grid {
    grid-template-columns: 1fr;
  }

  .install-box {
    padding: 20px 24px;
    font-size: 1.1rem;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .install-box button {
    padding: 10px 16px;
  }

  .code-preview {
    font-size: 0.7rem;
  }

  .code-preview pre {
    padding: 16px;
  }
}

@media (max-width: 500px) {
  .practices-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .install-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .install-hint {
    flex-wrap: wrap;
  }
}

/* ============================================
   Section Terminals (Animated)
   ============================================ */

.section-terminal {
  background: rgba(0, 0, 0, 0.95);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  height: 340px;
  display: flex;
  flex-direction: column;
}

.section-terminal-header {
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 6px;
}

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

.section-terminal-dot.red { background: #ff5f56; }
.section-terminal-dot.yellow { background: #ffbd2e; }
.section-terminal-dot.green { background: #27c93f; }

.section-terminal-body {
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #e0e0e0;
  flex: 1;
  overflow-y: auto;
}

/* ============================================
   MacBook Terminal Mockup
   ============================================ */

.macbook-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Laptop Upper Body */
.macbook-body {
  position: relative;
  z-index: 20;
  filter: drop-shadow(0 50px 100px rgba(0, 0, 0, 0.4));
}

/* Bezel / Frame */
.macbook-bezel {
  position: relative;
  background: #0d0d0d;
  border-radius: 24px;
  padding: 1.5%;
  padding-bottom: 2%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* The Screen Area */
.macbook-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
}

/* The Notch */
.macbook-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18%;
  height: 22px;
  background: #0d0d0d;
  border-radius: 0 0 10px 10px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.notch-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1a1a1a;
}

.notch-camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #121212;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* macOS Desktop */
.macos-desktop {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #312e81 0%, #0f172a 50%, #064e3b 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
}

/* Menu Bar */
.macos-menubar {
  height: 24px;
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  z-index: 40;
}

.menubar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menubar-apple {
  width: 12px;
  height: 12px;
}

.menubar-app-name {
  font-weight: 600;
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Desktop Content Area */
.macos-content {
  flex: 1;
  position: relative;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Terminal Window */
.macos-terminal {
  width: 100%;
  max-width: 680px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  z-index: 5;
  display: flex;
  flex-direction: column;
  position: relative;
}

.macos-terminal-header {
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

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

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title-bar {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Terminal Tabs */
.terminal-tabs {
  display: flex;
  gap: 2px;
  margin-left: auto;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: 6px;
}

.terminal-tab {
  padding: 5px 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.terminal-tab:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.terminal-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.macos-terminal-body {
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  height: 280px;
  overflow-y: auto;
}

/* Resize Handle */
.terminal-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.terminal-resize-handle::before {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
}

.macos-terminal:hover .terminal-resize-handle {
  opacity: 1;
}

/* Desktop Icons */
.desktop-icons {
  position: absolute;
  top: 32px;
  right: 16px;
  display: flex;
  flex-direction: column;
  z-index: 1;
  gap: 16px;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: default;
}

.desktop-icon-img {
  width: 40px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-icon-img svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.desktop-icon:hover .desktop-icon-img {
  transform: scale(1.1);
}

.desktop-icon-img.blue { background: #3b82f6; }
.desktop-icon-img.green { background: #10b981; }
.desktop-icon-img.amber { background: #f59e0b; }

.desktop-icon-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Dock */
.macos-dock {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.dock-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  cursor: default;
}

.dock-icon:hover {
  transform: scale(1.15) translateY(-4px);
}

.dock-icon.emerald { background: rgba(16, 185, 129, 0.8); }
.dock-icon.blue { background: rgba(59, 130, 246, 0.8); }
.dock-icon.slate { background: rgba(71, 85, 105, 0.8); }
.dock-icon.white { background: rgba(255, 255, 255, 0.2); }

.dock-icon svg {
  width: 18px;
  height: 18px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.dock-separator {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
}

/* Glassy Screen Overlay */
.screen-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
  z-index: 10;
}

/* Laptop Hinge */
.macbook-hinge {
  position: relative;
  z-index: 10;
  width: 105%;
  margin-left: -2.5%;
  height: 14px;
  background: #1a1a1a;
  border-radius: 0 0 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: none;
}

.hinge-indent {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 25%;
  height: 8px;
  background: #0d0d0d;
  border-radius: 0 0 8px 8px;
}

/* Terminal Line Styles */
.term-line {
  display: flex;
  gap: 8px;
  margin-bottom: 2px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.term-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.term-prompt {
  color: #10b981;
  user-select: none;
}

.term-command {
  color: #f1f5f9;
  font-weight: 500;
}

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #10b981;
  margin-left: 2px;
  vertical-align: middle;
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.term-output {
  color: #94a3b8;
}

.term-success {
  color: #10b981;
}

.term-info {
  color: #3b82f6;
}

.term-warning {
  color: #f59e0b;
}

.term-highlight {
  color: #f97316;
}

.term-muted {
  color: #475569;
}

/* AI Agent specific styles */
.term-user-input {
  color: #3b82f6;
  margin-bottom: 8px;
}

.term-tool-call {
  color: #a78bfa;
  margin-top: 4px;
}

.term-tool-cmd {
  color: #fbbf24;
}

.term-tool-output {
  color: #64748b;
  padding-left: 16px;
  margin-bottom: 2px;
}

/* Mode toggle updates */
.demo-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

/* Hide panels */
.macbook-panel {
  display: none;
}

.macbook-panel.active {
  display: block;
}

/* Responsive adjustments for MacBook */
@media (max-width: 768px) {
  .macbook-notch {
    height: 16px;
    width: 22%;
  }

  .macos-menubar {
    font-size: 9px;
    height: 20px;
    padding: 0 8px;
  }

  .menubar-left {
    gap: 8px;
  }

  .menubar-left span:nth-child(n+4) {
    display: none;
  }

  .macos-terminal-body {
    font-size: 11px;
    padding: 12px;
    min-height: 200px;
    max-height: 200px;
  }

  .desktop-icons {
    display: none;
  }

  .macos-dock {
    height: 40px;
    padding: 0 6px;
    gap: 4px;
  }

  .dock-icon {
    width: 28px;
    height: 28px;
  }

  .dock-icon svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 500px) {
  .macbook-bezel {
    border-radius: 16px;
  }

  .macbook-screen {
    border-radius: 6px;
  }

  .macos-terminal {
    border-radius: 8px;
  }

  .macos-terminal-header {
    height: 28px;
  }

  .terminal-dot {
    width: 10px;
    height: 10px;
  }

  .macos-dock {
    display: none;
  }
}

/* Section terminals: Mobile responsive */
@media (max-width: 768px) {
  .two-col {
    flex-direction: column;
  }

  .col-visual {
    margin-top: 32px;
  }

  .section-terminal {
    height: 250px;
  }

  .three-tiers {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .agile-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .git-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .planning-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .context-docs {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Mobile: Strip MacBook frame, show terminal only */
@media (max-width: 640px) {
  .macbook-container {
    max-width: 100%;
  }

  /* Reduce container padding for wider terminal */
  .demo-container {
    padding: 0 12px;
  }

  /* Hide MacBook frame elements */
  .macbook-bezel {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
  }

  .macbook-body {
    filter: none;
  }

  .macbook-notch,
  .macbook-hinge,
  .macos-dock,
  .desktop-icons,
  .screen-gloss,
  .terminal-resize-handle {
    display: none;
  }

  /* Screen becomes simple container */
  .macbook-screen {
    aspect-ratio: auto;
    background: transparent;
    border-radius: 0;
    position: relative;
    height: auto;
  }

  /* Desktop becomes normal flow container */
  .macos-desktop {
    position: relative;
    inset: auto;
    background: transparent;
    display: block;
  }

  /* Content wrapper becomes normal flow */
  .macos-content {
    position: relative;
    padding: 0;
    display: block;
  }

  /* Hide menu bar */
  .macos-menubar {
    display: none;
  }

  /* Terminal fills the space */
  .macos-terminal {
    max-width: 100%;
    border-radius: 12px;
    margin: 0;
    background: rgba(0, 0, 0, 0.95);
  }

  /* Terminal header adjustments */
  .macos-terminal-header {
    height: auto;
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .terminal-dots {
    order: 1;
  }

  .terminal-tabs {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 4px;
  }

  .terminal-tab {
    padding: 6px 10px;
    font-size: 11px;
  }

  /* Terminal body - fixed height, scrolls if needed */
  .macos-terminal-body {
    min-height: 280px;
    max-height: 280px;
    font-size: 13px;
    padding: 14px;
    overflow-y: auto;
  }

  /* Demo section adjustments */
  .demo-section {
    padding: 40px 0 60px;
  }

  .demo-header {
    margin-bottom: 32px;
  }

  .demo-toggle {
    margin-bottom: 48px;
  }

  .toggle-btn {
    padding: 10px 18px;
    font-size: 0.875rem;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.cookie-content a {
  color: var(--text);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

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

.cookie-btn-primary:hover {
  opacity: 0.9;
}

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

.cookie-btn-secondary:hover {
  border-color: var(--text);
}

.footer-link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.footer-link-btn:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    max-width: 140px;
  }
}
