:root {
  --bg: #0b0c10;
  --bg-elevated: #14161d;
  --bg-card: #1a1c24;
  --bg-card-hover: #20232d;
  --border: #2a2d39;
  --border-subtle: #1e2129;
  --text: #f5f6f8;
  --text-muted: #9aa0ad;
  --text-dim: #6c7280;
  --accent: #22d3ee;
  --accent-strong: #06b6d4;
  --accent-glow: rgba(34, 211, 238, 0.18);
  --accent-secondary: #a78bfa;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --transition: 200ms ease;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

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

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 16, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    var(--accent-strong),
    var(--accent-secondary)
  );
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-text {
  color: var(--text);
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 6px;
  vertical-align: middle;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.main-nav a {
  transition: color var(--transition);
}

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

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #081016 !important;
  font-weight: 700;
}

.nav-cta:hover {
  background: var(--accent-strong);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 16px 4%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.mobile-menu a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 96px;
}

.hero-glow {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.8vw, 4.7rem);
  line-height: 1.01;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-title-animated {
  display: block;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-title-animated .hero-word {
  display: inline-block;
  white-space: nowrap;
}

.hero-title-animated .hero-letter {
  display: inline-block;
  transform-origin: 50% 58%;
  will-change: transform, opacity;
  animation: hero-letter-float 3.2s ease-in-out infinite;
  animation-delay: calc(var(--hero-letter-index, 0) * -72ms);
}

.hero-title-animated .hero-space {
  display: inline-block;
  width: 0.28em;
}

@keyframes hero-letter-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  25% {
    transform: translate3d(1.5px, -7px, 0) rotate(2.4deg) scale(1.025);
  }

  50% {
    transform: translate3d(-1px, 3px, 0) rotate(-1.7deg) scale(0.99);
  }

  75% {
    transform: translate3d(2px, -4px, 0) rotate(1.2deg) scale(1.015);
  }
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition);
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #081016;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.22);
}

.btn-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.3);
}

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

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

.buy-link {
  border-color: rgba(167, 139, 250, 0.6);
  color: #d8ccff;
}

.btn-large {
  padding: 12px 22px;
  font-size: 0.92rem;
}

.hero-stats {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 28px;
}

.hero-stats strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Hero image visual */
.hero-visual {
  position: relative;
}

.hero-image-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s ease;
}

.hero-image-frame:hover {
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}

.hero-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.hero-image-frame:hover img {
  transform: scale(1.02);
}

/* Window visual */
.window-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s ease;
}

.window-frame:hover {
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}

.window-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

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

.window-dot.red {
  background: var(--danger);
}
.window-dot.yellow {
  background: var(--warning);
}
.window-dot.green {
  background: var(--success);
}

.window-title {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.window-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 320px;
}

.sidebar {
  padding: 16px;
  border-right: 1px solid var(--border);
  background: rgba(20, 22, 29, 0.6);
  font-size: 0.82rem;
}

.sidebar-section {
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.65rem;
  margin: 18px 0 8px;
}

.sidebar-section:first-child {
  margin-top: 0;
}

.tree-line {
  padding: 5px 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tree-line.active {
  color: var(--accent);
  font-weight: 600;
}

.tree-line.child {
  padding-left: 18px;
}

.tree-icon {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--text-dim);
}

.metric-row span:last-child {
  color: var(--text);
  font-weight: 600;
}

.content-pane {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prompt-area {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.prompt-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}

.prompt-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.file-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
}

.file-header {
  background: var(--bg-elevated);
  padding: 8px 12px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.file-code {
  padding: 12px;
  color: var(--text-muted);
}

.file-code .kw {
  color: var(--accent-secondary);
}
.file-code .type {
  color: var(--accent);
}

/* Trust */
.trust {
  padding: 22px 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

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

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

.section-alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.trial-note {
  max-width: 560px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.chat-section {
  border-block: 1px solid var(--border-subtle);
  background:
    linear-gradient(115deg, rgba(34, 211, 238, 0.07), transparent 38%),
    var(--bg-elevated);
}

.chat-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 64px;
  align-items: end;
}

.chat-layout .section-header {
  margin-bottom: 0;
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.use-grid article {
  min-width: 0;
  padding: 22px 20px 8px;
  border-left: 1px solid var(--border);
}

.use-grid article:last-child {
  border-right: 1px solid var(--border);
}

.use-grid span {
  color: var(--accent);
  font: 500 0.7rem var(--font-mono);
}

.use-grid h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
}

.use-grid p {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-glow);
  border: 1px solid rgba(34, 211, 238, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font: 500 0.78rem var(--font-mono);
  margin-bottom: 14px;
}

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

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

.feature-card code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

.scale-note {
  max-width: 790px;
  margin: 28px auto 0;
  color: var(--text-dim);
  text-align: center;
  font-size: 0.84rem;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.product-gallery figure {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.product-gallery .gallery-wide {
  grid-column: span 2;
}

.product-gallery img {
  width: 100%;
  height: auto;
}

.product-gallery figure:not(.gallery-wide) img {
  aspect-ratio: 1.28 / 1;
  object-fit: cover;
  object-position: top;
}

.product-gallery figcaption {
  padding: 12px 15px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Mode cards */
.mode-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition:
    background var(--transition),
    transform var(--transition);
}

.mode-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.mode-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.mode-icon {
  font-size: 1.2rem;
}

.mode-card h3 {
  font-size: 1rem;
  font-weight: 700;
  flex: 1;
}

.mode-status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
}

.mode-status.available {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.mode-status.planned {
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent-secondary);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

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

.app-preview {
  margin-top: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.app-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.app-preview figcaption {
  padding: 10px 14px;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.mode-card code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

/* CLI section */
.cli-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.compact-header {
  margin-bottom: 0;
}

.cli-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.cli-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cli-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.cli-list strong {
  color: var(--text);
  font-weight: 600;
}

.terminal {
  background: #0d0f14;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
}

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
}

.terminal-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-x: auto;
}

.terminal-body pre {
  margin: 0;
}

.term-prompt {
  color: var(--accent-secondary);
  font-weight: 700;
}
.term-cmd {
  color: var(--text);
}
.term-arg {
  color: var(--accent);
}
.term-flag {
  color: var(--warning);
}
.term-path {
  color: var(--success);
}

/* Security */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

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

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

.security-card code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Roadmap */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.roadmap-item {
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.roadmap-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  flex-shrink: 0;
  margin-top: 4px;
}

.roadmap-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 4px;
}

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

/* CTA */
.cta {
  position: relative;
  padding: 64px 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(34, 211, 238, 0.12),
      transparent 55%
    ),
    var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
}

.cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.cta .lead {
  margin-inline: auto;
  max-width: 520px;
  font-size: 1rem;
  margin-bottom: 20px;
}

.cta-actions {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta {
  padding: 18px 0 0;
  background: transparent;
  border-top: none;
  text-align: left;
}

.hero-cta .cta-actions {
  justify-content: flex-start;
}

.hero-cta .cta-meta {
  display: block;
  margin-top: 10px;
}

.cta-meta {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.mac-install-help {
  margin-top: 16px;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  max-width: 560px;
}

.version-section {
  background:
    radial-gradient(circle at 12% 30%, rgba(167, 139, 250, 0.11), transparent 34%),
    var(--bg);
}

.version-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

.version-choice h2 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.035em;
}

.version-choice p:last-child {
  max-width: 760px;
  color: var(--text-muted);
}

.final-cta {
  padding-block: 58px;
}

.mac-install-help summary {
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  user-select: none;
}

.mac-install-help summary:hover {
  color: var(--accent);
}

.mac-install-help ol {
  margin: 12px 0 0 0;
  padding-left: 20px;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.mac-install-help li {
  margin-bottom: 6px;
}

.mac-install-help li strong {
  color: var(--text);
}

.mac-install-help pre {
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 12px;
  margin: 6px 0;
  overflow-x: auto;
}

.mac-install-help code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
}

.mac-install-help pre code {
  color: var(--text);
}

.mac-install-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  gap: 22px;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-visual {
    order: -1;
  }

  .window-frame,
  .hero-image-frame {
    transform: none;
    max-width: 600px;
    margin-inline: auto;
  }

  .window-frame:hover,
  .hero-image-frame:hover {
    transform: none;
  }

  .feature-grid,
  .mode-cards,
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cli-layout,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .chat-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .terminal {
    order: -1;
  }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
  }

  .hero h1 {
    width: 100%;
    font-size: clamp(2.45rem, 12vw, 3.2rem);
  }

  .hero .eyebrow {
    letter-spacing: 0.08em;
  }

  .section {
    padding: 48px 0;
  }

  .cta {
    padding: 48px 0;
  }

  .cta-actions {
    flex-direction: column;
  }

  .feature-grid,
  .mode-cards,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .use-grid,
  .product-gallery,
  .version-choice {
    grid-template-columns: 1fr;
  }

  .use-grid article,
  .use-grid article:last-child {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .product-gallery .gallery-wide {
    grid-column: auto;
  }

  .product-gallery figure:not(.gallery-wide) img {
    aspect-ratio: auto;
  }

  .version-choice {
    gap: 28px;
  }

  .window-body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .feature-card,
  .mode-card,
  .window-frame,
  .hero-image-frame {
    transition: none;
  }

  .btn:hover,
  .feature-card:hover,
  .mode-card:hover,
  .window-frame:hover,
  .hero-image-frame:hover {
    transform: none;
  }
}

/* Utilities */
[hidden] {
  display: none !important;
}
