/* ==========================================================================
   Cadenza — Marketing Site
   Light theme · Corporate-Engineering aesthetic · 1px clinical borders
   Reference: stitch_cadenza_automotive_engineering_platform
   --------------------------------------------------------------------------
   Inter (UI) + JetBrains Mono (data readouts, label-caps)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --primary: #000a1e;            /* near-black navy — body headings */
  --primary-container: #002147;  /* deep navy — buttons, CTA bg */
  --on-primary: #ffffff;
  --on-primary-container: #708ab5;
  --secondary: #0e7490;          /* Cadenza teal — accent words, eyebrows, links, hover (AA on white) */
  --secondary-container: #0891b2; /* brighter teal — hover / active state */
  --on-secondary: #ffffff;
  --accent-vivid: #0891b2;       /* vivid teal — large headline accent words only */
  --data-cyan: #00E5FF;          /* live / active data states (on dark backgrounds) */

  /* Surfaces */
  --surface: #f5fafc;            /* page background — very subtle cyan-grey */
  --surface-primary: #ffffff;    /* card / panel background */
  --surface-secondary: #F8FAFC;  /* alternating-section background, footer */
  --surface-container-low: #eff4f7;
  --surface-container: #e9eff1;
  --surface-container-high: #e3e9eb;

  /* Text */
  --on-surface: #171d1e;         /* near-black body text */
  --on-surface-variant: #44474e; /* muted body */
  --outline: #74777f;            /* muted outline text */
  --outline-variant: #c4c6cf;
  --border-subtle: #E9E9E9;      /* 1px clinical border — used EVERYWHERE */
  --border-default: #d4d4d4;
  --border-strong: #a3a3a3;

  /* Status */
  --status-pass: #047857;
  --status-pass-tint: #d1fae5;
  --status-warn: #b45309;
  --status-warn-tint: #fef3c7;
  --status-fail: #b91c1c;
  --status-fail-tint: #fee2e2;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  /* Radii — tiny (Stitch reference) */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
  --r-full: 12px;

  /* Spacing — 4px base */
  --gutter: 16px;
  --space-sm: 12px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 96px;

  /* Layout */
  --container: 1280px;
  --container-narrow: 880px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 240ms;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* keep in-page anchor targets clear of the 64px sticky header */
section[id] { scroll-margin-top: 80px; }
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-surface);
  background: var(--surface-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--secondary-container); }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--primary-container); color: #fff; }
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ---------- Type system ---------- */
.t-headline-lg {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.t-headline-md {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--primary);
}
.t-headline-sm {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary);
}
.t-body-lg { font-size: 16px; line-height: 1.6; color: var(--on-surface-variant); }
.t-body-md { font-size: 14px; line-height: 1.5; color: var(--on-surface-variant); }
.t-body-sm { font-size: 12px; line-height: 1.55; color: var(--on-surface-variant); }
.t-data-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.t-label-caps {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--space-xl) 0; }
.section--white { background: var(--surface-primary); }
.section--soft { background: var(--surface-secondary); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.section--dark { background: var(--primary-container); color: var(--on-primary); }

/* Clinical border — used on every panel/card/container */
.clinical-border {
  border: 1px solid var(--border-subtle);
  background: var(--surface-primary);
}

/* Subtle 40px grid overlay — Stitch-signature */
.grid-overlay {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Section heading block */
.heading-block .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--space-sm);
}
.heading-block h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}
.heading-block p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  max-width: 640px;
}
.heading-block.center { text-align: center; }
.heading-block.center p { margin-left: auto; margin-right: auto; }
.heading-block.max-block { margin-bottom: var(--space-lg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--primary-container);
  color: var(--on-primary);
  border-color: var(--primary-container);
}
.btn-primary:hover {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}
.btn-secondary {
  background: var(--surface-primary);
  color: var(--primary);
  border-color: var(--border-default);
}
.btn-secondary:hover {
  background: var(--surface-secondary);
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--surface-secondary);
  color: var(--primary);
}
.btn-on-dark {
  background: var(--surface-primary);
  color: var(--primary);
  border-color: var(--surface-primary);
}
.btn-on-dark:hover {
  background: var(--surface-secondary);
  color: var(--primary);
}
.btn-lg { padding: 14px 30px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-arrow svg { width: 14px; height: 14px; transition: transform var(--dur-fast); }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-primary);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--dur-base) var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 22px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav-brand:hover { color: var(--primary); }
.nav-brand svg { width: 30px; height: 30px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  margin-right: 16px;
  height: 100%;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 64px;
  padding: 0 14px;
  color: var(--on-surface-variant);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--dur-fast);
}
.nav-link:hover { color: var(--primary); }
.nav-link.active {
  color: var(--secondary);
  font-weight: 700;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  background: var(--secondary);
}
.nav-cta { flex-shrink: 0; }

/* Real logo mark (replaces the inline SVG everywhere) */
.nav-brand .brand-logo { height: 30px; width: auto; }
.footer-brand .row .brand-logo { height: 26px; width: auto; }

/* Language switcher (EN / DE) */
.lang-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
}
.lang-btn {
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--on-surface-variant);
  background: var(--surface-primary);
  border: 0;
  border-left: 1px solid var(--border-subtle);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.lang-btn:first-child { border-left: 0; }
.lang-btn:hover { color: var(--primary); }
.lang-btn[aria-pressed="true"] { background: var(--primary-container); color: #fff; }
.lang-btn[aria-pressed="true"]:hover { color: #fff; }
.mobile-nav .lang-switch { margin-top: var(--space-sm); width: max-content; }

.nav-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.nav-hamburger span,
.nav-hamburger span::before,
.nav-hamburger span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-fast);
}
.nav-hamburger span { position: relative; }
.nav-hamburger span::before,
.nav-hamburger span::after { content: ''; position: absolute; left: 0; }
.nav-hamburger span::before { top: -6px; }
.nav-hamburger span::after { top: 6px; }
.nav-hamburger[aria-expanded="true"] span { background: transparent; }
.nav-hamburger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  padding: var(--space-sm) var(--space-lg) var(--space-md);
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-primary);
}
.mobile-nav.open { display: block; }
.mobile-nav-link {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--on-surface);
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav-link:last-of-type { border-bottom: 0; }
.mobile-nav .btn { margin-top: var(--space-sm); width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 96px;
  background: var(--surface);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--surface-container-low);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  margin-bottom: var(--space-md);
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--data-cyan);
  animation: pulse-cyan 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-cyan {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-badge .label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin-bottom: var(--space-md);
}
.hero h1 .accent { color: var(--accent-vivid); }
.hero-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-lg);
  max-width: 560px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero abstract grid detail (right side) */
.hero-grid-detail {
  position: absolute;
  right: 0;
  top: 0;
  width: 35%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}
.hero-grid-detail .grid-frame {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(12, 1fr);
  border-left: 1px solid var(--border-subtle);
}
.hero-grid-detail .cell {
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.hero-grid-detail .cell.fill-1 { background: rgba(0, 33, 71, 0.03); }
.hero-grid-detail .cell.fill-2 { background: rgba(8, 145, 178, 0.05); }
.hero-grid-detail .cell.fill-3 { background: rgba(0, 229, 255, 0.04); }

/* ---------- Video demo section ---------- */
.video-section { padding: 0 0 var(--space-xl); background: var(--surface-primary); }
.video-section .container { padding-top: var(--space-xl); }
.video-frame {
  position: relative;
  background: var(--primary);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-frame .poster-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(0, 229, 255, 0.16), transparent 60%),
    radial-gradient(ellipse at 75% 70%, rgba(8, 145, 178, 0.14), transparent 60%),
    var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-frame .poster-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.video-frame .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  transition: opacity var(--dur-base);
}
.video-frame.playing .play-overlay { opacity: 0; }
.play-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: transform var(--dur-base) var(--ease);
  pointer-events: auto;
  cursor: pointer;
}
.video-frame:hover .play-btn { transform: scale(1.06); }
.play-btn svg { width: 28px; height: 28px; color: var(--primary); margin-left: 4px; }
.video-tags {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.video-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
}
.video-tag--primary {
  background: var(--primary-container);
  color: var(--on-primary);
}
.video-tag--ghost {
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  border: 1px solid var(--border-subtle);
}
.video-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--data-cyan);
  animation: pulse-cyan 1.8s infinite;
}

/* ---------- Trust / Integrations strip ---------- */
.trust-strip {
  padding: 48px 0;
  background: var(--surface-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.trust-strip .label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--outline);
  margin-bottom: var(--space-md);
}
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
  max-width: 1080px;
  margin: 0 auto;
  background: var(--surface-primary);
}
.trust-logo {
  flex: 1 1 200px;
  min-height: 72px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--on-surface);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: background var(--dur-fast);
}
.trust-logo:hover { background: var(--surface-secondary); }
.trust-logo .status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--data-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18);
}

/* ---------- Capabilities (Unified Engineering Interface — Stitch dashboard) ---------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: var(--gutter);
}
.cap-panel {
  position: relative;
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  padding: var(--space-md);
  overflow: hidden;
}
.cap-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}
.cap-panel-header .left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cap-panel-header .left svg {
  width: 18px; height: 18px;
  color: var(--primary);
}
.cap-panel-header .right {
  display: flex;
  gap: 6px;
}
.cap-panel-header .right span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-subtle);
}
.cap-panel-header .right span.live { background: var(--data-cyan); box-shadow: 0 0 0 3px rgba(0,229,255,0.18); }

.cap-panel-primary { min-height: 460px; }

/* Bar chart visualization */
.bar-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  height: 280px;
  align-items: end;
  margin: var(--space-md) 0 var(--space-lg);
}
.bar {
  position: relative;
  background: rgba(0, 33, 71, 0.05);
  border-top: 2px solid var(--primary-container);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6px;
  min-width: 0;
}
.bar.err {
  background: rgba(8, 145, 178, 0.06);
  border-top-color: var(--secondary);
}
.bar .val {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-container);
  letter-spacing: 0.02em;
}
.bar.err .val { color: var(--secondary); }
.bar .axis {
  position: absolute;
  bottom: -20px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--outline);
  letter-spacing: 0.05em;
}

/* Floating terminal readout */
.terminal {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 240px;
  background: var(--primary-container);
  padding: 14px 16px;
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(0, 10, 30, 0.25);
}
.terminal-line {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
}
.terminal-line.live {
  color: var(--data-cyan);
  animation: pulse-cyan 2s infinite;
}
.terminal-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.terminal-footer .meta {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* Right column panels */
.cap-panel-side {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
  min-height: 460px;
}
.log-panel { flex: 1; padding: var(--space-sm) var(--space-md) var(--space-md); }
.log-panel .label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--outline);
  margin-bottom: var(--space-sm);
  display: block;
  padding-top: 4px;
}
.log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.log-row:last-child { border-bottom: 0; }
.log-row .key {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-surface);
  font-weight: 500;
}
.log-row .val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.log-row .val.ok { color: var(--data-cyan); }
.log-row .val.warn { color: var(--secondary); }
.log-row .val.idle { color: var(--outline); }

.dark-panel {
  flex: 1;
  background: var(--primary-container);
  color: var(--on-primary);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--primary-container);
}
.dark-panel .icon {
  width: 24px; height: 24px;
  margin-bottom: 12px;
  color: var(--data-cyan);
}
.dark-panel h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--on-primary);
  letter-spacing: -0.01em;
}
.dark-panel p {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
}
.dark-panel .bg-icon {
  position: absolute;
  right: -10px; bottom: -10px;
  width: 110px; height: 110px;
  opacity: 0.06;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
}
.feature-card {
  position: relative;
  padding: var(--space-md);
  background: var(--surface-primary);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--dur-fast);
}
.feature-card:hover { background: var(--surface-secondary); }
.feature-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.feature-card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--outline);
}
.feature-card-icon {
  width: 22px; height: 22px;
  color: var(--secondary);
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--primary);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--on-surface-variant);
}
.feature-card-foot {
  margin-top: var(--space-md);
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  color: var(--on-surface-variant);
  background: var(--surface-secondary);
}

/* ---------- How it works (steps) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
}
.step {
  padding: var(--space-md);
  background: var(--surface-primary);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: var(--space-md);
}
.step h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.step p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--on-surface-variant);
}

/* ---------- ALM Integration panel (replaces messy node diagram) ---------- */
.augment-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-lg);
  align-items: start;
}
.augment-text h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: var(--space-md);
}
.augment-text h2 .accent { color: var(--accent-vivid); }
.augment-text p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-sm);
}
.augment-pull {
  margin-top: var(--space-md);
  padding: 16px 18px;
  background: var(--surface-secondary);
  border-left: 2px solid var(--secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1.6;
}

/* Clinical ALM connector panel */
.connector-panel {
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
}
.connector-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-secondary);
}
.connector-panel-head .title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.connector-panel-head .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--outline);
  letter-spacing: 0.06em;
}
.connector-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 0.6fr;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
}
.connector-row:last-child { border-bottom: 0; }
.connector-row .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.005em;
}
.connector-row .method {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--on-surface-variant);
  letter-spacing: 0.04em;
}
.connector-row .sync {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--outline);
}
.connector-row .status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  text-align: center;
}
.status.production { background: rgba(0, 229, 255, 0.1); color: #0e7490; border: 1px solid rgba(0, 229, 255, 0.3); }
.status.ready { background: var(--surface-secondary); color: var(--outline); border: 1px solid var(--border-subtle); }
.connector-panel-foot {
  padding: 12px 20px;
  background: var(--surface-secondary);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--outline);
  letter-spacing: 0.06em;
}

/* ---------- Deployment / Security cards ---------- */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
}
.cell-card {
  padding: var(--space-md);
  background: var(--surface-primary);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.cell-card-icon {
  width: 32px; height: 32px;
  color: var(--secondary);
  margin-bottom: var(--space-md);
}
.cell-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.cell-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

/* ---------- Security data list ---------- */
.security-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
}
.sec-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-primary);
}
.sec-item-key {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
}
.sec-item-key svg { width: 18px; height: 18px; }
.sec-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}
.sec-item p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--on-surface-variant);
}

/* ---------- Pricing TABLE (Stitch-style) ---------- */
.pricing-table-wrap { overflow-x: auto; }
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
}
.pricing-table th,
.pricing-table td {
  padding: 20px 24px;
  text-align: left;
  font-size: 14px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.pricing-table tr:last-child td { border-bottom: 0; }
.pricing-table th:last-child,
.pricing-table td:last-child { border-right: 0; }
.pricing-table thead th {
  background: var(--surface-secondary);
  text-align: center;
  vertical-align: top;
  padding: 24px;
}
.pricing-table thead th:first-child {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--outline);
  vertical-align: middle;
}
.pricing-table .tier-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.pricing-table .tier-price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-top: 8px;
}
.pricing-table .tier-price .per {
  font-size: 12px;
  font-weight: 500;
  color: var(--on-surface-variant);
  margin-left: 4px;
}
.pricing-table .tier-tagline {
  margin-top: 6px;
  font-size: 12px;
  color: var(--on-surface-variant);
  font-weight: 400;
  line-height: 1.4;
}
.pricing-table thead th.featured {
  background: var(--primary-container);
  color: var(--on-primary);
  position: relative;
}
.pricing-table thead th.featured .tier-name { color: var(--on-primary); }
.pricing-table thead th.featured .tier-price { color: var(--data-cyan); }
.pricing-table thead th.featured .tier-price .per { color: rgba(255,255,255,0.65); }
.pricing-table thead th.featured .tier-tagline { color: rgba(255,255,255,0.7); }
.pricing-table thead th.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--secondary);
  color: var(--on-secondary);
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
}
.pricing-table thead th.featured { padding-top: 50px; }
.pricing-table td.featured-col {
  background: var(--surface-container-low);
  text-align: center;
}
.pricing-table td.text-center { text-align: center; }
.pricing-table td.feature-name {
  font-weight: 500;
  color: var(--primary);
  background: var(--surface-primary);
}
.pricing-table tr.group td {
  background: var(--surface-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--outline);
  padding: 10px 24px;
}
.pricing-table .check {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.pricing-table .check.ok {
  background: rgba(0, 229, 255, 0.12);
  color: #0e7490;
}
.pricing-table .check.no {
  color: var(--outline-variant);
}
.pricing-table .check svg { width: 14px; height: 14px; stroke-width: 3; }
.pricing-table tfoot td { background: var(--surface-secondary); border-bottom: 0; }
.pricing-table tfoot td.text-center { padding: 20px 12px; }
.pricing-table tfoot .btn { width: 100%; }

/* ---------- Pricing teaser (compact 3-col grid for landing) ---------- */
.pricing-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-subtle);
  background: var(--surface-primary);
}
.pricing-teaser-col {
  padding: var(--space-md);
  border-right: 1px solid var(--border-subtle);
  position: relative;
}
.pricing-teaser-col:last-child { border-right: 0; }
.pricing-teaser-col.featured {
  background: var(--primary-container);
  color: var(--on-primary);
}
.pricing-teaser-col.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 6px;
  background: var(--secondary);
  color: var(--on-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
}
.pricing-teaser-col.featured { padding-top: 42px; }
.pricing-teaser-col .eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--outline);
  margin-bottom: 8px;
}
.pricing-teaser-col.featured .eyebrow { color: var(--data-cyan); }
.pricing-teaser-col h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.pricing-teaser-col.featured h3 { color: var(--on-primary); }
.pricing-teaser-col .price {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin: 12px 0 4px;
}
.pricing-teaser-col.featured .price { color: var(--on-primary); }
.pricing-teaser-col .price .per {
  font-size: 12px;
  font-weight: 500;
  color: var(--on-surface-variant);
  margin-left: 2px;
}
.pricing-teaser-col.featured .price .per { color: rgba(255,255,255,0.65); }
.pricing-teaser-col .tagline {
  font-size: 13px;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-md);
  line-height: 1.5;
  min-height: 38px;
}
.pricing-teaser-col.featured .tagline { color: rgba(255,255,255,0.7); }
.pricing-teaser-col .btn { width: 100%; }

/* ---------- CTA (navy section) ---------- */
.cta-section {
  background: var(--primary-container);
  color: var(--on-primary);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--on-primary);
  margin-bottom: var(--space-md);
}
.cta-section p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-lg);
  max-width: 560px;
}
.cta-section.center { text-align: center; }
.cta-section.center p { margin-left: auto; margin-right: auto; }
.cta-pulse-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
}
.cta-pulse-lines span {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--on-primary);
}
.cta-pulse-lines span:nth-child(1) { left: 25%; animation: cta-pulse 3s infinite; }
.cta-pulse-lines span:nth-child(2) { left: 50%; }
.cta-pulse-lines span:nth-child(3) { left: 75%; animation: cta-pulse 3s 1s infinite; }
@keyframes cta-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.form-field .req { color: var(--secondary); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--on-surface);
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field .hint {
  font-size: 12px;
  color: var(--outline);
}
.form-submit {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: 8px;
}
.form-note {
  font-size: 12.5px;
  color: var(--outline);
  line-height: 1.5;
}
.form-success,
.form-error {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  margin-bottom: 12px;
  border: 1px solid;
}
.form-success {
  background: var(--status-pass-tint);
  color: var(--status-pass);
  border-color: var(--status-pass);
}
.form-error {
  background: var(--status-fail-tint);
  color: var(--status-fail);
  border-color: var(--status-fail);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-brand .row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-sm);
}
.footer-brand .row svg { width: 24px; height: 24px; }
.footer-brand .name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
}
.footer-brand p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--on-surface-variant);
  max-width: 280px;
}
.footer-brand .contact {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
}
.footer-brand .contact a { color: var(--on-surface-variant); }
.footer-brand .contact a:hover { color: var(--secondary); }
.footer-brand .stuttgart {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--outline);
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.footer-col a {
  font-size: 13px;
  color: var(--on-surface-variant);
}
.footer-col a:hover { color: var(--secondary); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-sm);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--outline);
}
.footer-bottom-links { display: flex; gap: var(--space-md); }
.footer-bottom-links a { color: var(--outline); }
.footer-bottom-links a:hover { color: var(--secondary); }

/* ---------- Legal page ---------- */
.legal-hero {
  padding: var(--space-lg) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
}
.legal-hero .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}
.legal-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin-bottom: 8px;
}
.legal-hero p {
  font-size: 15px;
  color: var(--on-surface-variant);
  max-width: 640px;
}
.legal-content { padding: var(--space-lg) 0 var(--space-xl); }
.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: var(--space-lg) 0 var(--space-sm);
  letter-spacing: -0.01em;
  color: var(--primary);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 15px;
  font-weight: 700;
  margin: var(--space-md) 0 8px;
  color: var(--primary);
}
.legal-content p,
.legal-content li {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--on-surface);
  margin-bottom: 12px;
}
.legal-content ul,
.legal-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--primary); font-weight: 600; }
.legal-content a { color: var(--secondary); text-decoration: underline; }
.legal-meta {
  padding: 14px 18px;
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-md);
}
.legal-meta strong {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* Pending placeholder — clean, no brackets, dotted-underline italic */
.pending {
  font-style: italic;
  color: var(--outline);
  border-bottom: 1px dotted var(--outline-variant);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: start;
}
.contact-side h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.contact-side p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-md);
}
.contact-detail {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}
.contact-detail-icon {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; }
.contact-detail h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}
.contact-detail p {
  margin: 0;
  font-size: 14px;
}
.contact-detail a { color: var(--secondary); font-weight: 500; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 60ms; }
.reveal-d2 { transition-delay: 120ms; }
.reveal-d3 { transition-delay: 180ms; }
.reveal-d4 { transition-delay: 240ms; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 10, 30, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.modal-overlay.open { display: flex; }
.modal {
  position: relative;
  width: 100%;
  max-width: 1080px;
  background: var(--primary);
  border: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.modal video { width: 100%; height: 100%; display: block; }
.modal-close {
  position: absolute;
  top: -1px; right: -1px;
  width: 44px; height: 44px;
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}
.modal-close svg { width: 18px; height: 18px; }

/* German label for the CSS-generated "MOST POPULAR" ribbon (i18n.js can't reach ::before content) */
[lang="de"] .pricing-table thead th.featured::before,
[lang="de"] .pricing-teaser-col.featured::before { content: 'AM BELIEBTESTEN'; }

/* ---------- Capabilities 4-up grid ---------- */
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Product showcase (real screenshot — the one intentionally-dark element) ---------- */
.product-showcase { max-width: 1000px; margin: 0 auto; }
.browser-frame {
  border: 1px solid var(--border-subtle);
  background: #1a1d23;
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(0, 10, 30, 0.32);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #2a2d35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.browser-bar .dot.red { background: #ff5f57; }
.browser-bar .dot.amber { background: #febc2e; }
.browser-bar .dot.green { background: #28c840; }
.browser-bar .url-pill {
  margin: 0 auto;
  padding: 4px 18px;
  background: #1a1d23;
  border-radius: var(--r-full);
  color: #8b9099;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.browser-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1d23;
}
.browser-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
/* fade the lower screenshot into the section background — eye stays on the CL0 score */
.browser-viewport::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 32%;
  pointer-events: none;
  background: linear-gradient(
    color-mix(in srgb, var(--frame-fade, var(--surface-secondary)) 0%, transparent),
    var(--frame-fade, var(--surface-secondary))
  );
}

/* ---------- Architecture figure ---------- */
.architecture-figure {
  margin: 0;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: var(--surface-secondary);
  box-shadow: 0 20px 44px -28px rgba(0, 10, 30, 0.28);
}
.architecture-figure img { width: 100%; height: auto; display: block; }

/* ---------- About prose ---------- */
.about-prose { max-width: 760px; }
.about-prose p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--on-surface-variant);
  margin-bottom: 18px;
}
.about-prose p strong { color: var(--primary); font-weight: 600; }
.about-prose p:last-child { margin-bottom: 0; }

/* ====================================================================
   Iteration — hero benchmark stats · platform showcase · nav actions
   ==================================================================== */

/* Section-aware fade colour for browser-frame screenshots */
.section--white { --frame-fade: var(--surface-primary); }
.section--soft  { --frame-fade: var(--surface-secondary); }

/* Hero — two-column layout with an animated benchmark stat block */
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.92fr);
  gap: var(--space-lg);
  align-items: center;
}
.hero-layout .hero-inner { max-width: 600px; }
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
  background: var(--surface-primary);
  box-shadow: 0 24px 50px -34px rgba(0, 10, 30, 0.28);
}
.hero-stat {
  padding: 22px 24px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.hero-stat .stat-num {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-vivid);
  font-variant-numeric: tabular-nums;
}
.hero-stat .stat-num--text { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.01em; }
.hero-stat .stat-unit { font-size: 0.5em; font-weight: 700; }
.hero-stat .stat-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.45;
  color: var(--on-surface-variant);
}

/* Nav actions — Preview Cadenza (play) + Book a Demo */
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-preview { gap: 7px; }
.btn-play-icon { width: 11px; height: 11px; flex: 0 0 auto; }

/* Platform — stacked framed product showcases */
.showcase-block { max-width: 1000px; margin: 0 auto; }
.showcase-block + .showcase-block { margin-top: var(--space-xl); }
.showcase-caption { text-align: center; max-width: 720px; margin: 0 auto var(--space-md); }
.showcase-caption h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--primary); margin-bottom: 8px; }
.showcase-caption p { font-size: 15px; line-height: 1.6; color: var(--on-surface-variant); }

/* Architecture figure — keep the diagram crisp, never upscaled */
.architecture-figure { max-width: 920px; margin-left: auto; margin-right: auto; }

/* Collapse the (now busier) primary nav to the hamburger earlier */
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav .lang-switch { display: none; }
  .nav-hamburger { display: inline-flex; }
}

/* Stack the hero stat block under the headline on narrow viewports */
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; gap: var(--space-lg); }
  .hero-layout .hero-inner { max-width: 640px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --space-xl: 72px; }
  .container { padding: 0 var(--space-md); }
  .capabilities-grid { grid-template-columns: 1fr; }
  .augment-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .three-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .pricing-teaser { grid-template-columns: 1fr; }
  .pricing-teaser-col { border-right: 0; border-bottom: 1px solid var(--border-subtle); }
}

@media (max-width: 768px) {
  :root { --space-xl: 64px; --space-lg: 32px; }
  .nav-links { display: none; }
  .nav-cta, .nav .lang-switch { display: none; }
  .nav-hamburger { display: inline-flex; }
  .hero { padding: 64px 0; }
  .hero-grid-detail { display: none; }
  .hero-cta-row .btn { width: 100%; }
  .feature-grid, .feature-grid.cols-2 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .security-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .footer-bottom { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .connector-row { grid-template-columns: 1.4fr 1fr; gap: 8px; }
  .connector-row .sync, .connector-row .method { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .nav-hamburger, .mobile-nav,
  .cta-section, .modal-overlay { display: none !important; }
  body { color: #000; background: #fff; }
}
