:root {
  color-scheme: light dark;
  --font-body: "Work Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Outfit", "Work Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --shell: 1180px;
  --transition: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  --bg: #f5f6f9;
  --bg-strong: #ffffff;
  --bg-muted: #eceff5;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #0d0b20;
  --text-muted: #676377;
  --text-soft: #8a8798;
  --border: #dde1eb;
  --border-strong: #c8cedc;
  --accent: #ff4d6b;
  --accent-strong: #df3152;
  --accent-soft: #ffe5ea;
  --accent-soft-2: #fff1f3;
  --cyan: #5152ff;
  --violet: #7b61ff;
  --amber: #f59e0b;
  --danger: #df3152;
  --shadow: 0 18px 44px rgba(13, 11, 32, 0.1);
  --shadow-soft: 8px 8px 24px rgba(13, 11, 32, 0.1);
  --hero-overlay: linear-gradient(90deg, rgba(245, 246, 249, 0.98) 0%, rgba(245, 246, 249, 0.92) 48%, rgba(245, 246, 249, 0.24) 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0b20;
    --bg-strong: #151329;
    --bg-muted: #1e1a35;
    --surface: rgba(24, 21, 43, 0.9);
    --surface-strong: #19162e;
    --text: #ffffff;
    --text-muted: #c9c5d8;
    --text-soft: #9b96ad;
    --border: #302b4a;
    --border-strong: #4a4268;
    --accent: #ff4d6b;
    --accent-strong: #ff8084;
    --accent-soft: rgba(255, 77, 107, 0.16);
    --accent-soft-2: rgba(255, 128, 132, 0.12);
    --cyan: #8b7bff;
    --violet: #a08bff;
    --amber: #f8bf4b;
    --danger: #ff8084;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
    --shadow-soft: 8px 8px 24px rgba(0, 0, 0, 0.24);
    --hero-overlay: linear-gradient(90deg, rgba(13, 11, 32, 0.98) 0%, rgba(13, 11, 32, 0.9) 48%, rgba(13, 11, 32, 0.34) 100%);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6f9;
  --bg-strong: #ffffff;
  --bg-muted: #eceff5;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #0d0b20;
  --text-muted: #676377;
  --text-soft: #8a8798;
  --border: #dde1eb;
  --border-strong: #c8cedc;
  --accent: #ff4d6b;
  --accent-strong: #df3152;
  --accent-soft: #ffe5ea;
  --accent-soft-2: #fff1f3;
  --cyan: #5152ff;
  --violet: #7b61ff;
  --amber: #f59e0b;
  --danger: #df3152;
  --shadow: 0 18px 44px rgba(13, 11, 32, 0.1);
  --shadow-soft: 8px 8px 24px rgba(13, 11, 32, 0.1);
  --hero-overlay: linear-gradient(90deg, rgba(245, 246, 249, 0.98) 0%, rgba(245, 246, 249, 0.92) 48%, rgba(245, 246, 249, 0.24) 100%);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0b20;
  --bg-strong: #151329;
  --bg-muted: #1e1a35;
  --surface: rgba(24, 21, 43, 0.9);
  --surface-strong: #19162e;
  --text: #ffffff;
  --text-muted: #c9c5d8;
  --text-soft: #9b96ad;
  --border: #302b4a;
  --border-strong: #4a4268;
  --accent: #ff4d6b;
  --accent-strong: #ff8084;
  --accent-soft: rgba(255, 77, 107, 0.16);
  --accent-soft-2: rgba(255, 128, 132, 0.12);
  --cyan: #8b7bff;
  --violet: #a08bff;
  --amber: #f8bf4b;
  --danger: #ff8084;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --shadow-soft: 8px 8px 24px rgba(0, 0, 0, 0.24);
  --hero-overlay: linear-gradient(90deg, rgba(13, 11, 32, 0.98) 0%, rgba(13, 11, 32, 0.9) 48%, rgba(13, 11, 32, 0.34) 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-strong) 48%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.055;
  z-index: -1;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
summary {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  transform: translateY(-140%);
  transition: transform var(--transition);
}

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

.shell {
  width: min(100% - 40px, var(--shell));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(12, 16, 20, 0);
  backdrop-filter: blur(0);
  transition:
    background var(--transition),
    border-color var(--transition),
    backdrop-filter var(--transition);
}

.site-header.is-scrolled {
  border-color: var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-weight: 800;
}

.brand-copy small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-muted);
  box-shadow: 0 8px 20px rgba(13, 11, 32, 0.06);
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.theme-glyph {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.theme-glyph::before,
.theme-glyph::after {
  content: "";
  position: absolute;
  display: block;
}

.theme-glyph::before {
  inset: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: -6px 0 0 0 var(--surface);
  transform: translateX(4px);
}

.theme-glyph::after {
  display: none;
}

:root[data-theme="dark"] .theme-glyph::before {
  inset: 3px;
  border: 2px solid currentColor;
  background: transparent;
  box-shadow: none;
  transform: none;
}

:root[data-theme="dark"] .theme-glyph::after {
  display: block;
  inset: 0;
  background:
    linear-gradient(currentColor, currentColor) 50% 0 / 2px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 50% 100% / 2px 4px no-repeat,
    linear-gradient(90deg, currentColor, currentColor) 0 50% / 4px 2px no-repeat,
    linear-gradient(90deg, currentColor, currentColor) 100% 50% / 4px 2px no-repeat;
}

.theme-toggle svg,
.button svg,
.role-icon svg,
.pain-card svg,
.guardrails svg,
.contact-points svg,
.price-card li svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 800;
  line-height: 1.1;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 28%, transparent);
}

.button-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 18px 34px color-mix(in srgb, var(--accent) 34%, transparent);
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(13, 11, 32, 0.05);
}

.button-ghost {
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface) 56%, transparent);
  color: var(--text);
}

.button.compact {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: clip;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, var(--accent-soft-2), transparent 44%),
    var(--bg);
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  opacity: 0.3;
  filter: saturate(1.08);
}

:root[data-theme="light"] .hero-media img {
  opacity: 0.28;
}

.hero-scrim {
  background: var(--hero-overlay);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 56px;
  align-items: center;
  padding: 112px 0 72px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero h1 {
  font-size: 60px;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 34px 0 0;
}

.hero-metrics div {
  min-height: 98px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: 0 8px 22px rgba(13, 11, 32, 0.06);
}

.hero-metrics dt {
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.unit-console {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 95%, transparent), color-mix(in srgb, var(--bg-muted) 86%, transparent));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-topbar {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent-soft) 45%, transparent);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.console-topbar strong {
  margin-left: auto;
  color: var(--accent-strong);
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
  animation: status-pop 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.console-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.console-column {
  min-height: 120px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-muted);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.console-column:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  box-shadow: 0 10px 24px rgba(13, 11, 32, 0.08);
}

.console-column.wide {
  min-height: 170px;
}

.console-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.console-column p,
.console-column ul,
.console-column pre {
  margin: 0;
}

.console-column p,
.console-column li {
  color: var(--text-muted);
  font-size: 14px;
}

.console-column ul {
  display: grid;
  gap: 7px;
  padding-left: 18px;
}

.console-column pre {
  white-space: pre-wrap;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 810px;
  margin-bottom: 34px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.compact-heading {
  max-width: 620px;
  margin-bottom: 0;
}

.section-heading h2,
.contact-copy h2 {
  font-size: 42px;
}

.section-heading p:not(.eyebrow),
.contact-copy p {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 18px;
}

.pain-grid,
.role-grid,
.guardrails,
.case-list {
  display: grid;
  gap: 14px;
}

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

.pain-card,
.role-card,
.guardrails article,
.case-list article,
.price-card,
.contact-form,
.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(13, 11, 32, 0.045);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.pain-card:hover,
.role-card:hover,
.guardrails article:hover,
.case-list article:hover,
.faq-list details:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 26%, var(--border));
  box-shadow: var(--shadow-soft);
}

.pain-card {
  min-height: 300px;
  padding: 24px;
}

.pain-card svg {
  color: var(--accent-strong);
}

.pain-card h3,
.role-card h3,
.guardrails h3,
.case-list h3,
.workflow h3 {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.pain-card p,
.role-card p,
.guardrails p,
.case-list p,
.workflow p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.pain-card strong {
  display: block;
  margin-top: 18px;
  color: var(--text);
  font-weight: 800;
}

.value-strip {
  padding: 42px 0;
  border-block: 1px solid var(--border);
  background: var(--bg-muted);
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
  gap: 24px;
}

.value-grid div {
  min-height: 130px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 8px 22px rgba(13, 11, 32, 0.045);
}

.value-grid span {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.value-grid p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 18px;
}

.value-grid > svg {
  justify-self: center;
  color: var(--accent-strong);
}

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

.role-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 24px;
}

.role-card.featured {
  grid-column: span 2;
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 42%),
    var(--surface);
}

.role-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-muted);
  color: var(--accent-strong);
}

.role-card ul,
.price-card ul {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.role-card li,
.price-card li {
  color: var(--text-muted);
}

.role-card li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 999px;
  background: var(--accent);
}

.workflow-section {
  background: var(--bg-muted);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.workflow article {
  min-height: 270px;
  padding: 24px;
  border-right: 1px solid var(--border);
}

.workflow article:last-child {
  border-right: 0;
}

.workflow span,
.case-list span {
  color: var(--violet);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
}

.knowledge-layout,
.pricing-layout,
.faq-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}

.knowledge-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, color-mix(in srgb, var(--border) 26%, transparent) 18px 19px),
    var(--surface);
}

.knowledge-node {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text-muted);
  font-weight: 800;
  text-align: center;
}

.knowledge-node.primary {
  grid-column: span 2;
  min-height: 110px;
  background: var(--accent);
  color: #061b13;
  font-size: 24px;
}

.guardrails {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.guardrails article {
  min-height: 210px;
  padding: 24px;
}

.guardrails svg {
  color: var(--accent-strong);
}

.use-cases {
  background: var(--bg-muted);
}

.case-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-list article {
  min-height: 260px;
  padding: 24px;
}

.price-card {
  padding: 28px;
  box-shadow: var(--shadow);
}

.price-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border));
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.price {
  margin-top: 22px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}

.price-card > p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.price-card li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-card li svg {
  flex: 0 0 auto;
  color: var(--accent-strong);
}

.price-card .button {
  width: 100%;
  margin-top: 24px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.faq-list summary::marker {
  color: var(--accent-strong);
}

.faq-list p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.contact-section {
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent-soft) 52%, transparent)),
    var(--bg);
}

.contact-copy {
  position: sticky;
  top: 108px;
}

.contact-points {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.contact-points span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 700;
}

.contact-points svg {
  color: var(--accent-strong);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-row.split > div {
  display: grid;
  gap: 8px;
}

label {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-strong);
  color: var(--text);
  padding: 12px 13px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-soft);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
}

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-strong);
}

.footer-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-muted);
  font-weight: 700;
}

.footer a {
  color: var(--accent-strong);
}

.reveal-ready [data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  transition-delay: calc(var(--reveal-index, 0) * 45ms);
}

.reveal-ready [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes status-pop {
  0% {
    transform: scale(0.72);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 34%, transparent);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 5px var(--accent-soft);
  }
}

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

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

  .unit-console {
    max-width: 720px;
  }

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

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

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

  .workflow article {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .workflow article:nth-child(3n) {
    border-right: 0;
  }

  .workflow article:nth-last-child(-n + 3) {
    border-bottom: 0;
  }
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 28px, var(--shell));
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-copy,
  .header-actions .button {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-media img {
    opacity: 0.18;
    object-position: 62% 50%;
  }

  .hero-grid {
    padding: 96px 0 52px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-metrics,
  .pain-grid,
  .role-grid,
  .workflow,
  .knowledge-layout,
  .pricing-layout,
  .faq-layout,
  .contact-layout,
  .guardrails,
  .case-list,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-grid > svg {
    transform: rotate(90deg);
  }

  .role-card.featured,
  .knowledge-node.primary {
    grid-column: auto;
  }

  .workflow article,
  .workflow article:nth-child(3n),
  .workflow article:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .workflow article:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 66px 0;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 31px;
  }

  .section-heading p:not(.eyebrow),
  .contact-copy p {
    font-size: 16px;
  }

  .contact-copy {
    position: static;
  }

  .form-row.split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-actions {
    display: grid;
  }

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

  .unit-console {
    display: none;
  }

  .pain-card,
  .role-card,
  .guardrails article,
  .case-list article,
  .price-card,
  .contact-form {
    padding: 20px;
  }

  .price {
    font-size: 42px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
