/* Kardan marketing site
   Editorial product design, shared by all marketing and documentation pages. */

:root {
  color-scheme: dark;
  --bg: #121310;
  --surface: #191a17;
  --surface-2: #23241f;
  --text: #f7f6f2;
  --muted: #aaa99f;
  --line: rgba(247, 246, 242, 0.16);
  --accent: #ff7957;
  --accent-ink: #121310;
  --accent-text: #ff7957;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --header-height: 74px;
  --radius: 3px;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
  --page-gutter: clamp(1.25rem, 4vw, 3rem);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #eceae3;
  --text: #121310;
  --muted: #62635d;
  --line: rgba(18, 19, 16, 0.16);
  --accent: #ff7957;
  --accent-ink: #121310;
  --shadow: 0 32px 80px rgba(32, 31, 26, 0.13);
  --accent-text: #b53d21;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(to right, transparent calc(100% - 1px), var(--line) 1px),
    linear-gradient(to bottom, transparent calc(100% - 1px), var(--line) 1px);
  background-size: min(25vw, 300px) 100%, 100% 12rem;
  opacity: 0.16;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

img {
  height: auto;
}

button,
input,
textarea {
  margin: 0;
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - (2 * var(--page-gutter)), 1200px);
  margin-inline: auto;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-150%);
  border: 1px solid var(--accent);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.header-inner {
  display: flex;
  align-items: center;
  width: min(100% - (2 * var(--page-gutter)), 1200px);
  height: 100%;
  margin-inline: auto;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.65rem;
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

.brand svg,
.brand img,
.footer-brand svg,
.footer-brand img {
  width: 28px;
  height: 28px;
  color: var(--accent-text);
}

.desktop-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.desktop-nav a,
.footer-links a,
.mobile-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 150ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--accent);
  transition: transform 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.footer-links a:hover,
.mobile-nav a:hover {
  color: var(--text);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.language-switch {
  display: flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switch a {
  display: grid;
  place-items: center;
  text-decoration: none;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.25rem 0.45rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.language-switch a:hover {
  color: var(--text);
}

.language-switch a[aria-current="true"],
.language-switch a.active,
.language-switch a[data-active="true"] {
  background: var(--text);
  color: var(--bg);
}

.theme-toggle,
.menu-toggle {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  transition: border-color 150ms ease, background 150ms ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--text);
  background: var(--surface-2);
}

.theme-toggle svg,
.menu-toggle svg {
  width: 1rem;
  height: 1rem;
}

.theme-toggle .sun,
:root[data-theme="light"] .theme-toggle .moon {
  display: block;
}

.theme-toggle .moon,
:root[data-theme="light"] .theme-toggle .sun {
  display: none;
}

.menu-toggle {
  display: none;
  border-radius: var(--radius);
}

.mobile-nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  padding: 0.8rem var(--page-gutter) 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

/* Shared controls */
.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.25rem;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.button-primary,
.header-cta {
  border-color: var(--accent-text);
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover,
.header-cta:hover {
  border-color: #ff9276;
  background: #ff9276;
}

.button-secondary:hover {
  background: var(--text);
  color: var(--bg);
}

.button-small,
.header-cta {
  min-height: 2.35rem;
  padding: 0.62rem 0.9rem;
  font-size: 0.73rem;
}

.eyebrow,
.demo-label,
.workspace-label,
.usecase-label,
.step-index,
.feature-number {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.status-dot {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 15%, transparent);
  animation: status-pulse 2.4s ease-out infinite;
}

/* Hero */
.hero {
  display: grid;
  min-height: 620px;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.45fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(4rem, 7vw, 6rem);
}

.hero-copy {
  max-width: 950px;
}

.hero h1,
.page-hero h1,
.closing h2 {
  max-width: 14ch;
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
  font-size: clamp(3.5rem, 7.5vw, 6.5rem);
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 1;
  text-wrap: balance;
}

.hero-accent {
  color: var(--accent-text);
  font-style: normal;
}

.hero-description,
.page-lead {
  max-width: 670px;
  margin-bottom: 2.1rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.hero-note::before {
  width: 1.75rem;
  height: 1px;
  content: "";
  background: var(--line);
}

.hero-aside {
  display: grid;
  min-height: 330px;
  place-items: center;
  border-left: 1px solid var(--line);
}

.orbit-mark {
  position: relative;
  width: min(100%, 310px);
  aspect-ratio: 1;
  color: var(--accent-text);
  animation: orbit-float 7s ease-in-out infinite;
}

.orbit-mark::before,
.orbit-mark::after {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.orbit-mark::before {
  inset: 8%;
}

.orbit-mark::after {
  inset: 28%;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.orbit-mark svg {
  width: 100%;
  height: 100%;
}

/* Interactive product demonstration */
.product-demo {
  overflow: hidden;
  margin-bottom: clamp(4rem, 9vw, 8rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.demo-toolbar {
  display: flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.demo-brand::before {
  display: none;
  width: 0.65rem;
  height: 0.65rem;
  content: "";
  transform: rotate(45deg);
  border: 2px solid var(--accent);
}

.demo-label {
  margin: 0;
  font-size: 0.59rem;
}

.demo-layout {
  display: grid;
  min-height: 560px;
  grid-template-columns: 190px minmax(0, 1fr);
}

.demo-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.4rem 0.9rem;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 45%, var(--surface));
}

.workspace-label {
  margin: 0 0 0.25rem;
  font-size: 0.57rem;
}

.workspace-title {
  margin-bottom: 1.6rem;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.2rem;
  padding: 0.65rem 0.7rem;
  border-left: 2px solid transparent;
  border-radius: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  text-decoration: none;
}

.demo-nav-item::before {
  display: none;
  width: 0.55rem;
  height: 0.55rem;
  content: "";
  border: 1px solid currentColor;
}

.demo-nav-item.active {
  border-left-color: var(--accent-text);
  background: var(--surface-2);
  color: var(--text);
}

.demo-sidebar-bottom {
  margin-top: auto;
  padding: 0.85rem 0.7rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.56rem;
}

.demo-main {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.4rem);
}

.demo-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.breadcrumb {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-badge,
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 999px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-badge::before {
  width: 0.32rem;
  height: 0.32rem;
  content: "";
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.demo-heading {
  margin-bottom: 1.4rem;
}

.demo-heading h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.demo-heading p {
  color: var(--muted);
  font-size: 0.77rem;
}

.demo-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.demo-tabs::-webkit-scrollbar {
  display: none;
}

.demo-tabs button {
  flex: 0 0 auto;
  padding: 0.7rem 1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
}

.demo-tabs button:hover {
  color: var(--text);
}

.demo-tabs button[aria-selected="true"] {
  border-bottom-color: var(--accent-text);
  color: var(--text);
}

.demo-scene {
  animation: scene-in 300ms ease both;
}

.scenario-prompt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.prompt-icon,
.step-icon,
.result-icon,
.feature-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent-text);
}

.prompt-icon {
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.prompt-icon svg,
.step-icon svg,
.result-icon svg,
.feature-icon svg {
  width: 1em;
  height: 1em;
}

.scenario-prompt p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  line-height: 1.6;
}

.run-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  margin-bottom: 1.25rem;
}

.flow-step {
  display: flex;
  min-width: 0;
  min-height: 70px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg);
}

.step-icon {
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.step-content {
  min-width: 0;
}

.step-content small,
.step-content strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-content small {
  margin-bottom: 0.18rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.step-content strong {
  font-size: 0.68rem;
}

.flow-connector {
  width: clamp(0.8rem, 2vw, 1.75rem);
  height: 1px;
  background: var(--accent);
}

.result-card {
  border: 1px solid var(--line);
  background: var(--bg);
}

.result-heading {
  display: flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 750;
}

.result-icon {
  font-size: 1rem;
}

.result-heading .result-badge {
  margin-left: auto;
}

.result-body {
  display: grid;
  grid-template-columns: minmax(110px, .65fr) minmax(0, 1fr) minmax(90px, .7fr);
  align-items: end;
  gap: 1rem;
  padding: 1.1rem;
}

.result-stat strong,
.result-stat small {
  display: block;
}

.result-stat strong {
  margin-bottom: 0.25rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.result-stat small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
}

.bar-chart {
  display: flex;
  height: 78px;
  align-items: end;
  gap: clamp(0.25rem, 1vw, 0.65rem);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0 25px, var(--line) 26px);
}

.bar-chart i {
  display: block;
  height: var(--bar, 50%);
  flex: 1 1 0;
  min-width: 3px;
  background: var(--accent);
  opacity: 0.9;
  transform-origin: bottom;
  animation: bar-rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.demo-bottom {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.demo-caption {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  line-height: 1.5;
}

/* Section system */
.capability-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.capability-strip > * {
  min-width: 0;
  padding: 1.35rem clamp(0.8rem, 2vw, 1.5rem);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.capability-strip > *:last-child {
  border-right: 0;
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.5fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -0.6rem;
}

.section-heading h2,
.section-split h2,
.statement h2,
.page-hero h1,
.closing h2 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 6.3vw, 5.75rem);
  font-weight: 820;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-wrap: balance;
}

.section-description,
.section-split .copy,
.showcase-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(160px, .3fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2.5rem, 9vw, 8rem);
}

.section-split .copy > * + * {
  margin-top: 1.2rem;
}

.statement {
  padding-block: clamp(4rem, 10vw, 8rem);
}

.statement h2 {
  max-width: 1100px;
  font-size: clamp(2.1rem, 4.2vw, 3.75rem);
}

.statement h2 span,
.statement h2 .muted {
  color: var(--muted);
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-card {
  position: relative;
  min-height: 360px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  transition: background 200ms ease, transform 200ms ease;
}

.feature-card:hover {
  z-index: 1;
  background: var(--surface-2);
  transform: translateY(-4px);
}

.feature-icon {
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 3.5rem;
  border: 1px solid var(--line);
  font-size: 1.25rem;
}

.feature-number {
  position: absolute;
  top: 1.2rem;
  right: 1.25rem;
  margin: 0;
}

.feature-card h3 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.feature-card > p {
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.91rem;
}

.feature-detail {
  position: absolute;
  right: clamp(1.5rem, 3vw, 2.5rem);
  bottom: 1.5rem;
  left: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.feature-wide {
  display: block;
  grid-column: span 2;
  grid-template-columns: minmax(200px, 0.75fr) minmax(280px, 1.25fr);
  gap: clamp(1rem, 3vw, 3rem);
}

.feature-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.feature-accent:hover {
  background: #ff8668;
}

.feature-accent .feature-number,
.feature-accent > p,
.feature-accent .feature-detail {
  color: color-mix(in srgb, var(--accent-ink) 68%, transparent);
}

.feature-accent .feature-icon,
.feature-accent .feature-detail {
  border-color: color-mix(in srgb, var(--accent-ink) 28%, transparent);
}

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

.mini-workflow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 2rem 0;
}

.mini-node {
  display: grid;
  width: clamp(4rem, 8vw, 6rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  background: color-mix(in srgb, var(--bg) 8%, transparent);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-align: center;
}

.mini-workflow .connector {
  position: relative;
  width: clamp(1rem, 3vw, 3rem);
  height: 1px;
  background: currentColor;
}

.mini-workflow .connector::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  content: "";
  transform: rotate(45deg);
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

/* Process */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: process;
}

.step {
  position: relative;
  min-height: 280px;
  padding: 1.8rem clamp(1.25rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  counter-increment: process;
}

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

.step::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--accent);
}

.step-index {
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.step h3 {
  margin-bottom: 0.8rem;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.step p {
  max-width: 30ch;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Screenshot showcase */
.showcase {
  display: grid;
  grid-template-columns: minmax(280px, 45fr) minmax(0, 55fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.showcase-copy h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.showcase-copy .eyebrow {
  margin-bottom: 1.4rem;
}

.showcase-copy > p {
  max-width: 48ch;
}

.showcase-visual,
.showcase-visual figure {
  min-width: 0;
  margin: 0;
}

.screenshot-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.screenshot-frame img {
  width: 100%;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.window-dots {
  display: flex;
  height: 2.4rem;
  align-items: center;
  gap: 0.32rem;
  padding-inline: 0.85rem;
}

.window-dots::before,
.window-dots::after,
.window-dots span {
  width: 0.48rem;
  height: 0.48rem;
  content: "";
  border-radius: 50%;
  background: var(--line);
}

.window-dots::before {
  background: var(--accent);
}

.screenshot-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

/* Control and use cases */
.control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.control-item {
  min-height: 250px;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border-right: 1px solid var(--line);
}

.control-item:last-child {
  border-right: 0;
}

.control-item svg {
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 4.5rem;
  color: var(--accent-text);
}

.control-item h3 {
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

.control-item p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.usecase-card {
  position: relative;
  min-height: 300px;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: background 180ms ease;
}

.usecase-card:hover {
  background: var(--surface-2);
}

.usecase-label {
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.usecase-card h3 {
  max-width: 16ch;
  margin-bottom: 0.8rem;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.usecase-card p {
  max-width: 48ch;
  padding-right: 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.usecase-arrow {
  position: absolute;
  right: 1.7rem;
  bottom: 1.7rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-text);
  transition: transform 180ms ease, background 180ms ease;
}

.usecase-card:hover .usecase-arrow {
  transform: translate(3px, -3px);
  background: var(--accent);
  color: var(--accent-ink);
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.35fr) minmax(0, 0.65fr);
  align-items: start;
  gap: clamp(3rem, 10vw, 9rem);
}

.faq-layout aside {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.faq-layout aside h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.faq-layout aside p {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 1.5rem 3.5rem 1.5rem 0;
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  list-style: none;
}

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

.faq-item summary::before,
.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  width: 0.85rem;
  height: 1px;
  content: "";
  background: var(--accent);
  transition: transform 180ms ease;
}

.faq-item summary::after {
  transform: rotate(90deg);
}

.faq-item[open] summary::after {
  transform: rotate(0deg);
}

.faq-item p {
  max-width: 65ch;
  margin: -0.35rem 0 1.6rem;
  padding-right: 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Closing and footer */
.closing {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.closing-inner {
  position: relative;
  padding: clamp(2rem, 7vw, 6rem);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.closing-inner::after {
  position: absolute;
  right: -9rem;
  bottom: -13rem;
  width: 28rem;
  height: 28rem;
  content: "";
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem color-mix(in srgb, var(--accent) 5%, transparent), 0 0 0 7rem color-mix(in srgb, var(--accent) 3%, transparent);
  pointer-events: none;
}

.closing h2 {
  position: relative;
  z-index: 1;
  max-width: 22ch;
  margin-bottom: 1.4rem;
}

.closing-inner > p {
  position: relative;
  z-index: 1;
  max-width: 52ch;
  margin-bottom: 2rem;
  color: var(--muted);
}

.closing-inner .button {
  position: relative;
  z-index: 1;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-top,
.footer-bottom {
  width: min(100% - (2 * var(--page-gutter)), 1200px);
  margin-inline: auto;
}

.footer-top {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem clamp(1rem, 3vw, 2rem);
}

.footer-bottom {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

/* Subpages */
.page-hero {
  padding-block: clamp(5rem, 11vw, 9rem);
  border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow {
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  max-width: 15ch;
  margin-bottom: 1.6rem;
}

.page-lead {
  max-width: 760px;
  margin: 0;
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1.18fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(4rem, 9vw, 8rem);
}

.access-card,
.waitlist-card,
.doc-card,
.not-found {
  border: 1px solid var(--line);
  background: var(--surface);
}

.access-card,
.waitlist-card {
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.access-card {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.access-card h2,
.waitlist-card h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.access-card > p,
.waitlist-card > p {
  color: var(--muted);
}

.access-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.access-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.access-list li::before {
  position: absolute;
  top: 1.15rem;
  left: 0.1rem;
  width: 0.45rem;
  height: 0.45rem;
  content: "";
  transform: rotate(45deg);
  background: var(--accent);
}

.waitlist-form {
  margin-top: 2rem;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: var(--bg);
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 65%, transparent);
}

.field input:hover,
.field textarea:hover {
  border-color: color-mix(in srgb, var(--text) 35%, var(--line));
}

.form-hint,
.form-result {
  margin-top: 0.75rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.55;
}

.form-result:empty {
  display: none;
}

.form-result[data-state="success"] {
  padding: 0.65rem 0.8rem;
  border-left: 2px solid #70c48f;
  background: color-mix(in srgb, #70c48f 10%, transparent);
  color: #70c48f;
}

.form-result[data-state="error"] {
  padding: 0.65rem 0.8rem;
  border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent-text);
}

.waitlist-form > .button,
.waitlist-form > button {
  width: 100%;
}

.document-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: clamp(2.5rem, 7vw, 6rem);
  padding-block: clamp(3rem, 8vw, 7rem);
}

.document-nav {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  padding-top: 0.3rem;
}

.document-nav::before {
  display: block;
  margin-bottom: 1rem;
  color: var(--muted);
  content: "PRODUKT-GUIDE";
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.document-nav a {
  display: block;
  padding: 0.45rem 0 0.45rem 0.8rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
}

.document-nav a:hover,
.document-nav a.active,
.document-nav a[aria-current="page"] {
  border-left-color: var(--accent-text);
  color: var(--text);
}

.document-content {
  min-width: 0;
  max-width: 800px;
}

.doc-section {
  padding-bottom: 3rem;
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.doc-section + .doc-section {
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.document-content h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.document-content h3 {
  margin-top: 2.2rem;
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.document-content p,
.document-content li {
  color: var(--muted);
}

.document-content p {
  margin-bottom: 1.15rem;
}

.document-content ul {
  padding-left: 1.2rem;
}

.document-content li {
  margin-block: 0.45rem;
  padding-left: 0.3rem;
}

.document-content li::marker {
  color: var(--accent-text);
}

.document-content code {
  padding: 0.15em 0.35em;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.84em;
}

.document-content pre {
  max-width: 100%;
  padding: 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

.document-content pre code {
  padding: 0;
  background: transparent;
}

.doc-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.doc-card {
  position: relative;
  min-height: 190px;
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.doc-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-text);
}

.doc-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.doc-card p {
  color: var(--muted);
  font-size: 0.82rem;
}

.doc-card::after {
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  content: "↗";
  color: var(--accent-text);
}

.not-found {
  display: grid;
  min-height: min(680px, calc(100svh - var(--header-height)));
  place-items: center;
  margin-block: clamp(2rem, 6vw, 5rem);
  padding: 2rem;
  text-align: center;
}

.not-found > div {
  max-width: 700px;
}

.not-found .eyebrow {
  justify-content: center;
}

.not-found h1 {
  margin-bottom: 1rem;
  font-size: clamp(5rem, 18vw, 13rem);
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.not-found p {
  margin-bottom: 2rem;
  color: var(--muted);
}

/* Focus and motion */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent-text);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 35%, transparent); }
  65%, 100% { box-shadow: 0 0 0 8px transparent; }
}

@keyframes orbit-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes scene-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bar-rise {
  from { transform: scaleY(0); opacity: 0.2; }
  to { transform: scaleY(1); opacity: 0.9; }
}

/* Tablet */
@media (max-width: 1024px) {
  .desktop-nav {
    gap: 1rem;
  }

  .desktop-nav a {
    font-size: 0.74rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

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

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

  .control-item:nth-child(2) {
    border-right: 0;
  }

  .control-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

/* Navigation breakpoint */
@media (max-width: 860px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: clamp(4.5rem, 12vw, 7rem);
  }

  .hero-aside {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .section-description {
    max-width: 650px;
  }

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

  .showcase-copy {
    max-width: 650px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-layout aside {
    position: static;
  }
}

/* Small tablet and mobile */
@media (max-width: 720px) {
  :root {
    --header-height: 66px;
    --page-gutter: 1.15rem;
  }

  body::before {
    background-size: 50vw 100%, 100% 10rem;
  }

  .language-switch {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 9.5vw, 4.5rem);
  }

  .product-demo {
    width: calc(100% - 1rem);
  }

  .demo-layout {
    min-height: 560px;
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-sidebar {
    display: none;
  }

  .demo-main {
    padding: 1rem;
  }

  .run-flow {
    grid-template-columns: 1fr;
  }

  .flow-step {
    min-height: 58px;
  }

  .flow-connector {
    width: 1px;
    height: 0.75rem;
    margin-left: 1.6rem;
  }

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

  .capability-strip > *:nth-child(2) {
    border-right: 0;
  }

  .capability-strip > *:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-split,
  .pricing-layout {
    grid-template-columns: 1fr;
  }

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

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

  .feature-card {
    min-height: 330px;
  }

  .mini-workflow {
    padding: 0;
  }

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

  .step {
    min-height: 220px;
    border-right: 0;
  }

  .step-index {
    margin-bottom: 3rem;
  }

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

  .usecase-card {
    min-height: 270px;
  }

  .footer-top {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding-block: 2.5rem;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1rem;
  }

  .access-card {
    position: static;
  }

  .document-layout {
    grid-template-columns: 1fr;
  }

  .document-nav {
    position: static;
    display: flex;
    max-width: 100%;
    padding-bottom: 0.8rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
  }

  .document-nav::before {
    display: none;
  }

  .document-nav a {
    flex: 0 0 auto;
    padding: 0.45rem 0.8rem;
    border-bottom: 1px solid transparent;
    border-left: 0;
  }

  .document-nav a:hover,
  .document-nav a.active,
  .document-nav a[aria-current="true"] {
    border-bottom-color: var(--accent-text);
    border-left-color: transparent;
  }
}

@media (max-width: 520px) {
  .brand {
    gap: 0.5rem;
  }

  .brand svg,
  .brand img {
    width: 25px;
    height: 25px;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .theme-toggle,
  .menu-toggle {
    width: 2.2rem;
    height: 2.2rem;
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .demo-label {
    display: none;
  }

  .demo-topline {
    margin-bottom: 1.2rem;
  }

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

  .bar-chart {
    height: 64px;
  }

  .section-heading h2,
  .section-split h2,
  .statement h2,
  .page-hero h1,
  .closing h2 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  .feature-card {
    min-height: 350px;
  }

  .mini-node {
    width: 4.2rem;
  }

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

  .control-item,
  .control-item:nth-child(2) {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .control-item:last-child {
    border-bottom: 0;
  }

  .control-item svg {
    margin-bottom: 3rem;
  }

  .doc-cards {
    grid-template-columns: 1fr;
  }

  .closing-inner::after {
    right: -15rem;
    bottom: -17rem;
  }
}

@media (max-width: 360px) {
  :root {
    --page-gutter: 0.9rem;
  }

  .brand {
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .product-demo {
    width: calc(100% - 0.5rem);
  }

  .demo-main {
    padding: 0.75rem;
  }

  .demo-tabs button {
    padding-inline: 0.75rem;
  }

  .scenario-prompt {
    padding: 0.75rem;
  }

  .result-heading,
  .result-body {
    padding-inline: 0.75rem;
  }

  .capability-strip > * {
    padding-inline: 0.45rem;
    font-size: 0.54rem;
  }

  .mini-node {
    width: 3.75rem;
    font-size: 0.51rem;
  }

  .usecase-card p {
    padding-right: 0;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root,
  :root[data-theme="light"] {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f2f1ed;
    --text: #000000;
    --muted: #444444;
    --line: #c8c8c8;
  }

  body {
    min-width: 0;
    background: white;
    color: black;
    font-size: 10pt;
  }

  body::before,
  .site-header,
  .mobile-nav,
  .hero-aside,
  .product-demo,
  .closing,
  .site-footer,
  .document-nav,
  .button {
    display: none !important;
  }

  .container,
  .footer-top,
  .footer-bottom {
    width: 100%;
  }

  .hero,
  .section,
  .page-hero,
  .document-layout {
    display: block;
    min-height: 0;
    padding: 1.5rem 0;
    border-color: #bbb;
  }

  .hero h1,
  .page-hero h1,
  .section-heading h2,
  .statement h2 {
    font-size: 32pt;
    color: black;
  }

  .features-grid,
  .steps-grid,
  .control-grid,
  .usecase-grid,
  .doc-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    break-inside: avoid;
  }

  .feature-card,
  .step,
  .control-item,
  .usecase-card,
  .doc-card,
  .doc-section,
  .faq-item {
    min-height: 0;
    break-inside: avoid;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    color: #555;
    font-family: var(--font-mono);
    font-size: 8pt;
  }

  .brand::after,
  .doc-card::after {
    content: none;
  }
}

/* The product story: precise layouts for the static templates. */
.hero-aside > span { margin-top: 1.5rem; color: var(--muted); font: .55rem var(--font-mono); letter-spacing: .13em; }
.hero h1 { max-width: none; }
.demo-brand > svg { width: 18px; height: 18px; color: var(--accent-text); }
.demo-brand > span { color: var(--muted); font-weight: 400; }
.demo-nav-item > svg { width: 16px; height: 16px; flex-shrink: 0; }
.demo-sidebar-bottom { display: flex; align-items: center; gap: .6rem; }
.demo-sidebar-bottom .status-dot { width: 5px; height: 5px; box-shadow: none; }
.step-icon, .feature-icon, .prompt-icon { display: grid; place-items: center; flex-shrink: 0; }
.step-icon > svg { width: 14px; height: 14px; }
.flow-connector, .mini-workflow .connector { font-size: 0; }
.result-body > p { margin: 0; color: var(--muted); font-size: .75rem; }
.demo-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.demo-bottom > span:first-child { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .65rem; }
.demo-bottom svg { width: 14px; height: 14px; }
.capability-strip > span { display: flex; align-items: center; justify-content: center; gap: .55rem; }
.capability-strip svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--accent-text); }
.statement .section-description { margin-top: 2rem; max-width: 58ch; }
.feature-wide .feature-icon { margin-bottom: 2rem; }
.feature-wide .mini-workflow { justify-content: flex-start; padding: 1.4rem 0 0; }
.mini-node { gap: .5rem; padding: .8rem; }
.feature-accent > p, .feature-accent .feature-number { color: #35231d; }
.control-section { background: var(--surface); border-block: 1px solid var(--line); }
.control-section .section { border: 0; }
.text-link { display: inline-flex; align-items: center; gap: .7rem; margin-top: 2rem; font-size: .85rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.usecase-card { display: flex; flex-direction: column; }
.usecase-card p { padding-right: 0; }
.usecase-arrow { position: static; display: flex; align-items: center; gap: .8rem; width: auto; height: auto; border: 0; border-radius: 0; margin-top: auto; padding-top: 1.5rem; font-size: .72rem; }
.usecase-card:hover .usecase-arrow { transform: none; color: var(--text); background: none; }
.usecase-arrow > svg { width: 17px; height: 17px; }
.faq-layout > .section-heading { display: block; margin: 0; }
.faq-layout .eyebrow { margin-bottom: 1.2rem; }
.faq-layout h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
.closing h2 { font-size: clamp(2.3rem, 5.5vw, 4.8rem); line-height: 1.04; }
.closing-note { display: block; margin-top: 1rem; color: var(--muted); font: .65rem var(--font-mono); }
.footer-top, .footer-bottom { width: 100%; }
.footer-tagline { margin-top: 1.3rem; color: var(--muted); font-size: .78rem; }
.page-hero h1 { max-width: 22ch; line-height: 1.04; }
.access-list li { display: flex; gap: .8rem; padding-left: 0; }
.access-list li::before { display: none; }
.access-list svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--accent-text); margin-top: .25rem; }
.pricing-note { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; }
.pricing-note p { margin-top: .75rem; color: var(--muted); }
.form-hint, .form-result { font-family: var(--font-sans); font-size: .8rem; line-height: 1.6; }
.field label { font-family: var(--font-sans); font-size: .8rem; text-transform: none; letter-spacing: 0; }
.field label > span { font-weight: 400; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
:root[data-theme="light"] .form-result[data-state="success"] { color: #226b3e; }
[aria-invalid="true"] { border-color: var(--accent-text) !important; }
:lang(en) .document-nav::before { content: "PRODUCT GUIDE"; }
.mobile-nav .button { display: flex; justify-content: center; gap: .6rem; margin-top: .8rem; padding: .9rem; color: var(--accent-ink); }
.theme-toggle, .menu-toggle { min-width: 40px; min-height: 40px; }
@media (min-width: 861px) and (max-width: 1100px) {
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }
}
@media (min-width: 721px) and (max-width: 1024px) {
  .control-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .control-item:nth-child(2) { border-right: 1px solid var(--line); }
  .control-item:nth-child(-n + 2) { border-bottom: 0; }
  .usecase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .usecase-card { padding: 1.3rem; }
  .demo-layout { grid-template-columns: 150px minmax(0, 1fr); }
  .demo-main { padding: 1.1rem; }
}
@media (max-width: 860px) {
  .hero { padding-block: 4.5rem; }
  .hero h1 { max-width: 16ch; }
  .hero-description { max-width: 56ch; }
}
@media (max-width: 720px) {
  .section, .statement { padding-block: 4rem; }
  .section-heading h2, .statement h2 { font-size: clamp(2.2rem, 8vw, 3.5rem); line-height: 1.05; }
  .section-heading { margin-bottom: 2.5rem; }
  .hero h1 { max-width: none; }
  .demo-toolbar { flex-wrap: wrap; gap: .5rem; }
  .demo-label { font-size: .5rem; }
  .demo-tabs button { flex: 1; font-size: .72rem; }
  .demo-heading h2 { font-size: 1.4rem; }
  .scenario-prompt p { font-size: .75rem; }
  .step-content strong { font-size: .78rem; white-space: normal; }
  .result-heading { flex-wrap: wrap; }
  .result-heading .result-badge { margin-left: 0; }
  .result-body { grid-template-columns: 1fr 1fr; }
  .result-body > p { grid-column: 1 / -1; grid-row: 2; }
  .result-body .bar-chart { grid-column: 2; grid-row: 1; }
  .demo-bottom > span:first-child { font-size: .6rem; }
  .capability-strip { display: flex; justify-content: center; flex-wrap: wrap; }
  .capability-strip > span { padding: 1rem .8rem; border: 0 !important; }
  .control-grid { grid-template-columns: 1fr; }
  .control-item { border-right: 0; border-bottom: 1px solid var(--line); min-height: auto; }
  .control-item svg { margin-bottom: 1.5rem; }
  .feature-card { min-height: auto; }
  .feature-icon { margin-bottom: 2rem; }
  .feature-wide .mini-workflow { padding-top: 1.4rem; }
  .usecase-label { margin-bottom: 2rem; }
  .closing-inner { padding: 2rem 1.5rem; }
  .pricing-layout { padding-block: 2.5rem; }
}
@media (max-width: 360px) {
  .header-inner { gap: .4rem; }
  .header-actions { gap: .25rem; }
  .language-switch a { min-width: 1.7rem; padding-inline: .3rem; }
  .brand { gap: .35rem; }
  .brand svg { width: 23px; }
  .hero h1 { font-size: 2.6rem; }
}
@media (max-width: 720px) {
  .document-nav { flex-wrap: wrap; overflow: visible; gap: .4rem; }
  .document-nav a { padding: .55rem .65rem; border: 1px solid var(--line); white-space: normal; }
}
/* Long German headings and URLs must not widen narrow viewports. */
h1, h2, h3, p, .document-nav a { overflow-wrap: anywhere; }
.doc-card > svg:first-child { margin-bottom: 1.5rem; color: var(--accent-text); }
.doc-card::after { display: none; }
.doc-card h2 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -.035em; }
@media (max-width: 720px) {
  .doc-cards { grid-template-columns: 1fr; }
}
