/* ================================================================
   Aigon — Swiss Light Design System
   One font family · One accent · Border depth · Zero decoration
   ================================================================ */

:root {
  --bg: #ffffff;
  --bg-subtle: #f6f6f6;
  --text: #111111;
  --text-muted: #6b6b6b;
  --accent: #c23a22;
  --border-1: #e8e8e8;
  --border-2: #d0d0d0;
  --border-3: #999999;
  --mono: 'DM Mono', monospace;
  --sans: 'DM Sans', sans-serif;
  --container: min(1120px, calc(100% - 3rem));
  --section-space: clamp(4rem, 10vh, 7rem);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

/* ── Layout ──────────────────────────────────────────────────── */

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--border-1);
}

.section-sub {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--border-1);
}

.section-head h2,
.section-head h3 {
  margin: 0.7rem 0 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.section-head h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
}

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lead {
  max-width: 72ch;
  margin: 0.6rem 0 0;
  color: var(--text-muted);
}

/* ── Skip link ───────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--text);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  z-index: 100;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.skip-link:focus-visible {
  left: 1rem;
}

/* ── Header ──────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-row {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  flex-shrink: 0;
}

.site-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 2rem);
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--text);
}

/* ── Buttons ─────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 3px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}

.button:hover,
.button:focus-visible {
  opacity: 0.85;
}

.button-ghost {
  background: transparent;
  color: var(--accent);
  transition: background 0.15s, color 0.15s;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: var(--accent);
  color: #fff;
  opacity: 1;
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  border-top: none;
  padding-top: clamp(4rem, 8vh, 6rem);
  padding-bottom: 0;
}

.hero-grid {
  display: block;
  max-width: 720px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 720px;
  text-wrap: balance;
}

.hero-copy {
  display: block;
}

.hero-subtitle {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-install-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  border: 1px solid var(--border-2);
  padding: 0.65rem 1.2rem;
  border-radius: 4px;
  background: var(--bg-subtle);
  cursor: pointer;
  transition: border-color 0.15s;
  text-decoration: none;
}

.hero-install-cta:hover {
  border-color: var(--border-3);
}

.hero-install-cta-label {
  font-family: var(--mono);
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero-install-cta-state {
  font-family: var(--sans);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 0.5rem;
}

.hero-install-cta[data-copied="true"] {
  border-color: var(--accent);
}

.hero-install-beta {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border-2);
  border-radius: 3px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  align-self: center;
}

.hero-copy-status {
  min-height: 1.35rem;
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.hero-meta {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-meta a {
  color: var(--accent);
  text-decoration: none;
}

.hero-meta a:hover {
  text-decoration: underline;
}

/* ── Hero Video ──────────────────────────────────────────────── */

.hero-video {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.hero-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: #000;
}

.hero-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── Hero Fleet Showcase ─────────────────────────────────────── */

.hero-fleet-showcase {
  margin-top: clamp(3rem, 5vw, 4rem);
}

.hero-fleet-modes {
  margin: 0 0 0.5rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.4;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  text-wrap: balance;
}

.hero-fleet-modes strong {
  font-weight: 700;
}

.fleet-demo-steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

.fleet-demo-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.fleet-demo-frame {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-2);
  cursor: pointer;
  transition: border-color 0.15s;
}

.fleet-demo-frame:hover {
  border-color: var(--border-3);
}

.fleet-demo-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── CLI Demo ────────────────────────────────────────────────── */

.cli-demo-visual {
  max-width: 42rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.agent-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border-1);
}

.agent-tab {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.agent-tab:hover {
  color: var(--text);
}

.agent-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.agent-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.hero-terminal {
  overflow: hidden;
  border-radius: 6px;
}

.hero-terminal terminal-window {
  display: block;
  width: 100%;
}

/* ── Step Walkthrough ────────────────────────────────────────── */

.step-walkthrough {
  margin-top: 2rem;
}

.step-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-1);
}

.step-tab {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.step-tab:hover {
  color: var(--text);
}

.step-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.step-tab-num {
  color: var(--accent);
  margin-right: 0.25em;
}

.step-panel {
  padding-top: 1.25rem;
}

.step-context {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.step-context p {
  margin: 0;
}

.step-mode-selector {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-1);
}

.step-mode-tab {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.step-mode-tab:hover {
  color: var(--text);
}

.step-mode-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.step-terminal-wrap {
  max-width: 48rem;
}

/* ── Modes section — tabbed ──────────────────────────────────── */

.modes-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.modes-heading {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.mode-tabs,
.exec-mode-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-1);
  margin-bottom: 2rem;
}

.mode-tab {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.65rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.mode-tab:hover {
  color: var(--text);
}

.mode-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.mode-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.mode-desc h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

.mode-cmd {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-1);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  line-height: 1.7;
}

.mode-cmd .prompt {
  color: var(--text-muted);
}

/* ── Feature grid & cards ────────────────────────────────────── */

.feature-grid {
  margin-top: 1.7rem;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border-1);
  border-radius: 4px;
}

.feature-card {
  padding: 1.5rem;
  position: relative;
}

.feature-grid .feature-card + .feature-card {
  border-left: 1px solid var(--border-1);
}

.feature-grid .feature-card:nth-child(2n+1) {
  border-left: none;
}

.feature-grid .feature-card:nth-child(n+3) {
  border-top: 1px solid var(--border-1);
}

.feature-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.28;
}

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

.feature-tag {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--text-muted);
}

.feature-card--remote {
  border: 1px solid var(--border-1);
  border-radius: 4px;
  grid-column: 1 / -1;
}

.remote-mobile-pair {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 1rem auto 0;
}

.remote-mobile-screenshot {
  display: block;
  max-width: 150px;
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--border-1);
}

/* ── Why grid (3-column bordered) ────────────────────────────── */

.hero-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-1);
  border-radius: 4px;
  margin-top: 2rem;
}

.hero-payoff {
  padding: 1.75rem;
  border-right: 1px solid var(--border-1);
}

.hero-payoff:last-child {
  border-right: none;
}

.hero-payoff-num {
  display: none;
}

.hero-payoff-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.hero-payoff-body {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Dashboard gallery ───────────────────────────────────────── */

.dashboard-gallery {
  margin-top: 2.5rem;
}

.dashboard-tabs {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-1);
}

.dashboard-tab {
  padding: 0.65rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.dashboard-tab:hover {
  color: var(--text);
}

.dashboard-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.dashboard-panel {
  border: 1px solid var(--border-1);
  border-top: none;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.dashboard-screenshot {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
}

/* ── Reports section ─────────────────────────────────────────── */

.landing-image {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border-1);
}

/* ── Code blocks ─────────────────────────────────────────────── */

pre {
  margin: 0.9rem 0 0;
  padding: 0.68rem 0.75rem;
  border-radius: 4px;
  background: #111;
  overflow: auto;
}

pre code {
  font-family: var(--mono);
  color: #d4d4d4;
  font-size: 0.84rem;
  line-height: 1.7;
}

/* ── Docs / Get started ──────────────────────────────────────── */

.docs-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.docs-head {
  max-width: 42rem;
}

.quickstart {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--text);
  overflow-x: auto;
}

.quickstart code {
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--text);
}

.docs-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border-1);
  border-radius: 4px;
}

.docs-link {
  padding: 1rem;
  text-decoration: none;
  border-right: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  transition: background 0.15s;
}

.docs-link:nth-child(3n) {
  border-right: none;
}

.docs-link:nth-last-child(-n+3) {
  border-bottom: none;
}

.docs-link:hover,
.docs-link:focus-visible {
  background: var(--bg-subtle);
}

.docs-link h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.docs-link p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ── Insights CTA section ────────────────────────────────────── */

.insights-cta-section {
  border-top: 1px solid var(--border-1);
}

.insights-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.insights-cta-heading {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0.75rem 0 1rem;
}

.insights-cta-lead {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 44ch;
}

.insights-cta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.insights-cta-list li {
  font-size: 0.82rem;
  color: var(--text);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.insights-cta-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.insights-cta-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.55rem 1.2rem;
  border-radius: 3px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  transition: opacity 0.15s;
}

.insights-cta-btn:hover {
  opacity: 0.85;
}

.insights-cta-frame {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-2);
}

.insights-cta-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Footer ──────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border-1);
  padding-block: 1.5rem;
}

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

.site-footer p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ── Lightbox ────────────────────────────────────────────────── */

.hero-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease-out;
}

.hero-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.hero-lightbox-img {
  max-width: min(95vw, 1600px);
  max-height: 90vh;
  border-radius: 6px;
  object-fit: contain;
}

.hero-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.hero-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Reveal animation ────────────────────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

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

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 860px) {
  .insights-cta-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .insights-cta-visual {
    order: -1;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

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

  .hero-install-cta {
    max-width: 100%;
  }

  .hero-install-cta-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mode-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(1120px, calc(100% - 1.5rem));
  }

  .header-row {
    height: auto;
    padding-block: 0.65rem;
    justify-content: center;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero-grid {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

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

  .hero-install-beta {
    align-self: flex-start;
  }

  .hero-why-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-payoff:last-child {
    border-bottom: none;
  }

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

  .feature-card {
    border-right: none;
  }

  .feature-card:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border-1);
  }

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

  .mode-content {
    grid-template-columns: 1fr;
  }

  .docs-links {
    grid-template-columns: 1fr;
  }

  .docs-link {
    border-right: none;
  }

  .docs-link:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--border-1);
  }

  .docs-link:last-child {
    border-bottom: none;
  }

  .dashboard-tabs {
    gap: 0;
  }

  .step-tabs,
  .step-mode-selector,
  .mode-tabs,
  .exec-mode-tabs {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
