@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Crimson+Pro:wght@500;600;700&family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@500;600;700&display=swap");

:root {
  --color-primary: #1e3a5f;
  --color-on-primary: #ffffff;
  --color-secondary: #334155;
  --color-on-secondary: #ffffff;
  --color-accent: #b45309;
  --color-on-accent: #ffffff;
  --color-cta: #2563eb;
  --color-cta-hover: #1d4ed8;
  --color-on-cta: #ffffff;
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-alt: #f3f6f9;
  --color-foreground: #0f172a;
  --color-card: #ffffff;
  --color-card-foreground: #0f172a;
  --color-muted: #e9eef5;
  --color-muted-foreground: #475569;
  --color-border: #cbd5e1;
  --color-destructive: #dc2626;
  --color-ring: #1e3a5f;
  --color-success: #047857;

  --font-heading: "Crimson Pro", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Atkinson Hyperlegible", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.5rem;
  --text-xl: 2rem;
  --text-2xl: 3rem;
  --text-3xl: 4rem;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  --radius: 8px;
  --header-height: 72px;
  --container: 1120px;
  --container-wide: 1280px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 15px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 40px rgba(30, 58, 95, 0.12);
  --ease: 200ms ease;
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-press: 160ms;
  --duration-swap: 160ms;
  --duration-dropdown-open: 200ms;
  --duration-dropdown-close: 120ms;
  --duration-nav-open: 180ms;
  --duration-nav-close: 120ms;
  --dropdown-pre-scale: 0.96;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-md));
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

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

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100px;
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 700;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--space-sm);
}

.section-shell {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section-space {
  padding-block: var(--space-3xl);
}

.section-band,
.section-band-alt {
  width: 100%;
}

.section-band {
  background: var(--color-surface);
}

.section-band-alt {
  background: var(--color-surface-alt);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  padding: 0 max(24px, calc((100vw - var(--container)) / 2));
  display: flex;
  align-items: center;
  gap: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-background) 92%, white);
  backdrop-filter: blur(16px);
}

body:has(main > .hero) .site-header {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  transition:
    background-color var(--ease),
    border-color var(--ease);
}

body:has(main > .hero) .site-header.is-on-hero {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--color-primary);
}

.brand img,
.site-header .brand img {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.desktop-nav {
  margin-left: var(--space-sm);
  display: flex;
  gap: var(--space-lg);
  color: var(--color-muted-foreground);
  font-size: var(--text-sm);
  font-weight: 700;
}

.desktop-nav a {
  position: relative;
  padding-block: var(--space-sm);
  cursor: pointer;
  transition: color var(--ease);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-link {
  padding-block: var(--space-sm);
  color: var(--color-muted-foreground);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: color var(--ease);
}

.header-link[aria-current="page"] {
  color: var(--color-primary);
}

.button,
.workspace-tab,
.phase,
.workflow-tab,
.menu-button {
  touch-action: manipulation;
}

.button {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), opacity var(--ease), transform var(--duration-press) var(--ease-enter);
}

.button:active,
.workspace-tab:active,
.phase:active,
.workflow-tab:active,
.menu-button:active {
  transform: scale(0.97);
  transition-duration: 0s;
}

.button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.button-primary {
  color: var(--color-on-cta);
  background: var(--color-cta);
}

.button-secondary {
  border-color: color-mix(in srgb, var(--color-border) 80%, white);
  background: color-mix(in srgb, var(--color-card) 86%, transparent);
  color: var(--color-foreground);
  backdrop-filter: blur(10px);
}

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  width: 100%;
  min-height: calc(100dvh + 2px);
  margin: 0;
  padding: var(--space-2xl) max(24px, calc((100vw - var(--container-wide)) / 2)) var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-surface);
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: -64px;
  z-index: 0;
  background: url("assets/hero-agent.png") center 12% / cover no-repeat;
  filter: blur(22px) saturate(1.14) contrast(1.08);
  transform: scale(1.08);
}

.hero::after {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 58% 44% at 50% 46%,
      color-mix(in srgb, var(--color-surface) 70%, transparent) 0%,
      color-mix(in srgb, var(--color-surface) 22%, transparent) 55%,
      color-mix(in srgb, var(--color-surface) 4%, transparent) 100%
    );
}

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

.hero-copy {
  max-width: 42rem;
  margin: auto;
}

.hero h1 {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, var(--text-3xl));
  font-weight: 600;
  line-height: 1.12;
}

.hero-copy > p {
  max-width: 65ch;
  margin: var(--space-md) auto 0;
  color: var(--color-muted-foreground);
  font-size: var(--text-md);
  line-height: 1.7;
}

.hero-actions {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-promises {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  text-align: left;
}

.hero-promise {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  border: 1px solid color-mix(in srgb, var(--color-border) 72%, white);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-card) 82%, transparent);
  backdrop-filter: blur(14px);
}

.hero-promise-index {
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-promise strong {
  color: var(--color-foreground);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.4;
}

.hero-promise p {
  margin: 0;
  color: var(--color-muted-foreground);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.section-heading h2 {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: clamp(var(--text-xl), 4vw, var(--text-2xl));
  font-weight: 600;
  line-height: 1.2;
}

.section-heading p {
  margin: var(--space-md) 0 0;
  max-width: 65ch;
  color: var(--color-muted-foreground);
  font-size: var(--text-md);
  line-height: 1.7;
}

.section-heading.centered { text-align: center; }
.section-heading.centered p { margin-inline: auto; }
.section-heading.narrow { max-width: 820px; margin-inline: auto; }

.split-heading {
  display: flex;
  justify-content: space-between;
  gap: var(--space-xl);
  align-items: center;
}

.split-heading.align-end { align-items: end; }

.collaboration {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-2xl);
  align-items: center;
}

.collab-board {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-card);
}

.collab-timeline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--color-border);
}

.phase {
  position: relative;
  min-height: 64px;
  border: 0;
  border-right: 1px solid var(--color-border);
  background: var(--color-card);
  cursor: pointer;
  color: var(--color-muted-foreground);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: color var(--ease), background-color var(--ease), transform var(--duration-press) var(--ease-enter);
}

.phase:last-child { border-right: 0; }

.phase span {
  display: block;
  font-size: var(--text-xs);
  color: #64748b;
}

.phase::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-cta);
  transform: scaleX(0);
  transform-origin: center;
  pointer-events: none;
  transition: transform var(--duration-swap) var(--ease-enter);
}

.phase.active {
  color: var(--color-cta);
  background: #f8fafc;
}

.phase.active::after {
  transform: scaleX(1);
}

.lane-content {
  min-height: 192px;
  padding: var(--space-lg) var(--space-md);
  transition: opacity var(--duration-swap) var(--ease-enter);
}

.collab-board.is-switching .lane-content {
  opacity: 0;
}

.human-content {
  grid-column: 1;
  background: var(--color-background);
}

.agent-content {
  grid-column: 3;
  background: #f8fbff;
}

.lane-kicker {
  font-size: var(--text-xs);
  color: var(--color-muted-foreground);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lane-content h3 {
  margin: 12px 0 var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.lane-content p {
  margin: 0;
  color: var(--color-muted-foreground);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.handoff {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--color-background), #f8fbff);
}

.handoff svg {
  width: 40px;
  color: var(--color-cta);
}

.workspace-band {
  width: 100%;
}

.workspace-band > .section-shell {
  width: min(var(--container-wide), calc(100% - 48px));
}

.workspace-tabs {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
}

.workspace-tab {
  min-width: 128px;
  min-height: 44px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-muted-foreground);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 700;
  transition: color var(--ease), border-color var(--ease), transform var(--duration-press) var(--ease-enter);
}

.workspace-tab.active {
  color: var(--color-cta);
  border-bottom-color: var(--color-cta);
}

.workspace-showcase {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-xl);
  align-items: center;
  transition: opacity var(--duration-swap) var(--ease-enter);
}

.workspace-showcase.is-switching {
  opacity: 0;
}

.workspace-description h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.workspace-description > p {
  color: var(--color-muted-foreground);
  line-height: 1.7;
}

.workspace-description ul {
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--color-secondary);
  font-size: var(--text-sm);
}

.workspace-description li {
  position: relative;
  padding-left: 20px;
}

.workspace-description li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}

.workspace-media {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow-md);
}

.workspace-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4px;
  background: var(--color-muted);
}

.workflow-tab {
  min-height: 40px;
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--color-muted-foreground);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: color var(--ease), background-color var(--ease), transform var(--duration-press) var(--ease-enter);
}

.workflow-tab.active {
  background: var(--color-card);
  color: var(--color-cta);
  box-shadow: var(--shadow-sm);
}

.workflow-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy intro";
  align-items: stretch;
}

.workflow-intro {
  grid-area: intro;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl) 0 var(--space-xl) var(--space-xl);
}

.workflow-intro h2 {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: clamp(var(--text-xl), 3.2vw, var(--text-2xl));
  font-weight: 600;
  line-height: 1.2;
}

.workflow-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-xl) var(--space-xl) 0;
}

.workflow-copy > * {
  transition: opacity var(--duration-swap) var(--ease-enter);
}

.workflow-copy.is-switching > * {
  opacity: 0;
}

.workflow-label {
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workflow-copy h3 {
  margin: 16px 0 var(--space-md);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.workflow-copy ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.workflow-copy li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--color-secondary);
  font-size: var(--text-sm);
}

.workflow-copy li span {
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--color-muted-foreground);
  font-size: var(--text-xs);
  font-weight: 700;
  flex: none;
}

.text-link {
  color: var(--color-cta);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: color var(--ease);
}

.text-link span { margin-left: var(--space-xs); }

.tool-grid {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.tool-card {
  padding: var(--space-lg);
  border-right: 1px solid var(--color-border);
}

.tool-card:last-child { border-right: 0; }

.tool-number {
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.tool-card h3 {
  margin: var(--space-md) 0 var(--space-xs);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
}

.tool-card > p {
  margin: 0;
  color: var(--color-muted-foreground);
  font-size: var(--text-sm);
}

.mini-tool {
  margin: var(--space-md) 0 0;
  height: 96px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-muted);
}

.citation-tool {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--color-muted-foreground);
  font-size: var(--text-xs);
}

.formula-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
}

.formula-tool span {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-family: ui-monospace, monospace;
  color: var(--color-muted-foreground);
  font-size: 0.625rem;
}

.table-tool {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
  padding: 16px;
  background: var(--color-muted);
}

.table-tool i { background: var(--color-card); }

.roadmap {
  list-style: none;
  margin: var(--space-2xl) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roadmap-item {
  position: relative;
  min-height: 0;
  padding: 0 var(--space-lg) var(--space-md) 0;
}

.roadmap-item + .roadmap-item {
  padding-left: var(--space-lg);
  border-left: 1px solid color-mix(in srgb, var(--color-border) 72%, transparent);
}

.roadmap-bar {
  display: block;
  height: 4px;
  margin-bottom: var(--space-md);
  border-radius: 2px;
  background: color-mix(in srgb, var(--color-secondary) 22%, var(--color-border));
}

.roadmap-item.is-current .roadmap-bar {
  background: var(--color-cta);
}

.roadmap-kicker {
  display: block;
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.roadmap-item h3 {
  margin: 12px 0 var(--space-sm);
  color: var(--color-foreground);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.roadmap-item:not(.is-current) h3 {
  color: var(--color-secondary);
}

.roadmap-item p {
  margin: 0;
  max-width: 28ch;
  color: var(--color-muted-foreground);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-3xl);
}

.faq-list { border-top: 1px solid var(--color-border); }

.faq-list details {
  border-bottom: 1px solid var(--color-border);
  padding: 0 4px;
}

.faq-list summary {
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-right: 28px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  transition: color var(--ease);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::before,
.faq-list summary::after {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 1em;
  margin-top: -0.5em;
  color: var(--color-cta);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  transition: opacity 150ms var(--ease-enter);
}

.faq-list summary::after { content: "+"; }
.faq-list summary::before {
  content: "−";
  opacity: 0;
}

.faq-list details[open] summary::after,
.faq-list details.is-closing summary::after { opacity: 0; }

.faq-list details[open] summary::before,
.faq-list details.is-closing summary::before { opacity: 1; }

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 180ms var(--ease-enter);
}

.faq-list details[open]:not(.is-closing) .faq-body {
  grid-template-rows: 1fr;
}

.faq-body-inner {
  overflow: hidden;
}

.faq-list p {
  margin: 0 0 var(--space-md);
  color: var(--color-muted-foreground);
  font-size: var(--text-sm);
  line-height: 1.8;
  max-width: 65ch;
}

.cta-band {
  padding-block: var(--space-2xl);
}

.final-cta {
  width: min(var(--container-wide), calc(100% - 48px));
  margin-inline: auto;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-on-primary);
  text-align: center;
}

.final-cta-inner img {
  width: auto;
  height: 48px;
  object-fit: contain;
  margin: 0 auto var(--space-md);
  filter: brightness(0) invert(1);
}

.final-cta h2 {
  margin: 0;
  color: var(--color-on-primary);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
}

.final-cta p {
  margin: var(--space-md) 0 0;
  color: #dbe4f0;
  font-size: var(--text-md);
}

.centered-actions { margin-top: var(--space-lg); }

.button-light {
  background: var(--color-card);
  color: var(--color-primary);
}

.button-ghost {
  border-color: color-mix(in srgb, white 40%, transparent);
  color: var(--color-on-primary);
}

.site-footer {
  position: relative;
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: var(--space-2xl) 0 96px;
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-xl);
  color: var(--color-muted-foreground);
  font-size: var(--text-sm);
}

.footer-brand .brand img {
  height: 32px;
}

.footer-brand p { max-width: 240px; }

.site-footer > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.site-footer strong {
  color: var(--color-foreground);
  margin-bottom: var(--space-sm);
}

.site-footer a {
  cursor: pointer;
  transition: color var(--ease);
}

.copyright {
  position: absolute;
  bottom: var(--space-md);
  left: 0;
  margin: 0;
}

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

  .menu-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: transform var(--duration-press) var(--ease-enter);
  }

  .menu-button svg { width: 24px; }

  .mobile-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--duration-nav-close) var(--ease-enter), transform var(--duration-nav-close) var(--ease-enter), visibility 0s var(--duration-nav-close);
  }

  .mobile-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity var(--duration-nav-open) var(--ease-enter), transform var(--duration-nav-open) var(--ease-enter), visibility 0s;
  }

  .mobile-nav.is-closing {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition-duration: var(--duration-nav-close);
    transition-delay: 0s, 0s, var(--duration-nav-close);
  }

  .mobile-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: var(--text-sm);
    cursor: pointer;
  }

  .collaboration,
  .faq {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .workspace-showcase { grid-template-columns: 1fr; }

  .workflow-stage {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "copy";
  }

  .workflow-intro {
    padding: 0 0 var(--space-xl);
  }

  .workflow-copy {
    padding: var(--space-xl) 0 0;
  }

  .site-footer { grid-template-columns: 2fr 1fr 1fr; }
  .footer-brand { grid-row: span 2; }
}

@media (max-width: 700px) {
  :root { --header-height: 64px; }

  .section-shell { width: min(100% - 32px, var(--container)); }
  .section-space { padding-block: var(--space-2xl); }

  .site-header { padding-inline: 16px; }

  .hero {
    width: 100%;
    padding: var(--space-xl) 16px;
  }

  .workspace-band > .section-shell {
    width: min(100% - 32px, var(--container-wide));
  }

  .hero h1 { font-size: var(--text-xl); }
  .hero-copy > p { font-size: var(--text-base); margin-top: 16px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }

  .hero-copy {
    margin: 0 auto var(--space-lg);
  }

  .hero-promises {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-promise { min-height: 0; }

  .header-actions { display: none; }
  .menu-button { margin-left: auto; }

  .section-heading h2 { font-size: var(--text-xl); }
  .section-heading p { font-size: var(--text-base); }

  .split-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .collab-board {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

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

  .phase { border-bottom: 1px solid var(--color-border); }

  .human-content,
  .agent-content,
  .handoff { grid-column: 1; }

  .handoff {
    min-height: 48px;
    transform: rotate(90deg);
  }

  .lane-content {
    min-height: 0;
    padding: var(--space-md);
  }

  .workspace-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .workspace-tab { min-width: max-content; }
  .workspace-showcase { gap: var(--space-md); }
  .workspace-description { display: block; }
  .workspace-description h3,
  .workspace-description > p,
  .workspace-description ul { grid-column: auto; }
  .workspace-media img { aspect-ratio: 4 / 3; }

  .segmented { width: 100%; }
  .workflow-tab { flex: 1; padding-inline: 8px; }
  .workflow-intro { padding-bottom: var(--space-lg); }
  .workflow-intro h2 { font-size: var(--text-xl); }
  .workflow-copy { padding: var(--space-lg) 0 0; }

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

  .tool-card {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-lg) 0;
  }

  .tool-card:last-child { border-bottom: 0; }

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

  .roadmap-item,
  .roadmap-item + .roadmap-item {
    border-left: 0;
    padding: 0 0 var(--space-xl);
  }

  .roadmap-item:last-child { padding-bottom: 0; }

  .roadmap-bar {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .copyright { bottom: var(--space-md); }
}

@media (hover: hover) and (pointer: fine) {
  .desktop-nav a:hover,
  .header-link:hover { color: var(--color-primary); }
  .button-primary:hover { background: var(--color-cta-hover); }
  .button-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
  }
  .button-light:hover { background: #eef2f7; }
  .button-ghost:hover {
    border-color: white;
    background: color-mix(in srgb, white 8%, transparent);
  }
  .phase:hover { color: var(--color-primary); }
  .workspace-tab:hover { color: var(--color-primary); }
  .workflow-tab:hover { color: var(--color-primary); }
  .text-link:hover { color: var(--color-cta-hover); }
  .faq-list summary:hover { color: var(--color-cta); }
  .site-footer a:hover { color: var(--color-cta); }
}

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

  body:has(main > .hero) .site-header {
    transition: none;
  }

  .button:active,
  .workspace-tab:active,
  .phase:active,
  .workflow-tab:active,
  .menu-button:active {
    transform: none;
  }

  .phase::after,
  .workspace-showcase,
  .lane-content,
  .workflow-copy > *,
  .faq-body,
  .faq-list summary::before,
  .faq-list summary::after,
  .mobile-nav {
    transition: none;
  }

  .mobile-nav {
    transform: none;
  }
}
