:root {
  color-scheme: dark;
  --bg: #04053d;
  --bg-deep: #020228;
  --surface: #07095f;
  --surface-strong: #0a0d72;
  --surface-soft: rgb(63 243 248 / 0.075);
  --surface-field: rgb(7 9 95 / 0.42);
  --header: rgb(63 243 248 / 0.18);
  --text: #d7effb;
  --text-strong: #f4fcff;
  --muted: #b3e5fc;
  --faint: #81d4fa;
  --accent: #26c6da;
  --accent-bright: #3ff3f8;
  --accent-deep: #006064;
  --orange: #ffb74d;
  --danger: #ff7474;
  --line: rgb(63 243 248 / 0.2);
  --line-strong: rgb(63 243 248 / 0.45);
  --shadow: 0 24px 70px rgb(0 0 0 / 0.34);
  --shadow-soft: 0 12px 38px rgb(0 0 0 / 0.22);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --page: 1180px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #d7effb;
  --bg-deep: #b3e5fc;
  --surface: #ffffff;
  --surface-strong: #eff9ff;
  --surface-soft: rgb(0 151 167 / 0.09);
  --surface-field: rgb(255 255 255 / 0.8);
  --header: rgb(129 212 250 / 0.48);
  --text: #102d4f;
  --text-strong: #04053d;
  --muted: #245574;
  --faint: #006064;
  --accent: #0097a7;
  --accent-bright: #007f8d;
  --accent-deep: #004d52;
  --orange: #b84f00;
  --danger: #a00020;
  --line: rgb(0 96 100 / 0.2);
  --line-strong: rgb(0 96 100 / 0.42);
  --shadow: 0 24px 64px rgb(4 5 61 / 0.14);
  --shadow-soft: 0 12px 32px rgb(4 5 61 / 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 82% 2%, rgb(38 198 218 / 0.16), transparent 28rem),
    radial-gradient(circle at 10% 18%, rgb(255 183 77 / 0.08), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-family:
    "Aptos", "Segoe UI", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgb(63 243 248 / 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgb(63 243 248 / 0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

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

button {
  font: inherit;
}

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

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

h1,
h2,
h3 {
  color: var(--text-strong);
  hyphens: none;
  line-height: 1.1;
  overflow-wrap: normal;
  text-wrap: pretty;
  word-break: normal;
}

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-family:
    "Archivo", "Aptos Display", "Segoe UI", ui-sans-serif, sans-serif;
  font-size: clamp(2.75rem, 5.8vw, 5.5rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.025em;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-family:
    "Archivo", "Aptos Display", "Segoe UI", ui-sans-serif, sans-serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 850;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

p {
  color: var(--muted);
  hyphens: none;
  overflow-wrap: normal;
  text-wrap: pretty;
  word-break: normal;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

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

site-header,
site-footer {
  display: block;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: #1b1200;
  font-weight: 800;
  transform: translateY(-150%);
}

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

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

.nav-shell {
  display: flex;
  width: min(var(--page), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-strong);
  font-weight: 850;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgb(63 243 248 / 0.28), transparent 55%),
    var(--surface);
  box-shadow: inset 0 0 20px rgb(63 243 248 / 0.12);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: var(--accent-bright);
}

.brand-mark::before {
  top: 8px;
  left: 8px;
  width: 15px;
  height: 4px;
  transform: rotate(-22deg);
}

.brand-mark::after {
  right: 7px;
  bottom: 8px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--orange);
  background: transparent;
}

.brand small {
  display: block;
  color: var(--faint);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--text-strong);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.nav-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  place-items: center;
  background: var(--surface-soft);
  color: var(--text-strong);
  cursor: pointer;
}

.nav-toggle {
  display: none;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

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

.section,
.page-section {
  padding: clamp(84px, 10vw, 138px) 0;
  scroll-margin-top: 92px;
}

.section + .section,
.page-section + .page-section {
  border-top: 1px solid var(--line);
}

.page-section {
  padding: clamp(58px, 7vw, 88px) 0;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  align-items: center;
  gap: 8px;
  color: var(--accent-bright);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  content: "";
  border-radius: 99px;
  background: var(--orange);
}

.lead {
  max-width: 800px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.page-hero {
  position: relative;
  padding: clamp(66px, 9vw, 112px) 0 clamp(50px, 7vw, 82px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 20%, rgb(63 243 248 / 0.14), transparent 24rem),
    linear-gradient(135deg, rgb(63 243 248 / 0.04), transparent 55%);
}

.page-hero h1 {
  max-width: 940px;
  font-size: clamp(2.6rem, 5.2vw, 4.8rem);
}

.breadcrumb {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 750;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span {
  color: var(--line-strong);
}

.development-chip {
  display: inline-flex;
  margin-bottom: 26px;
  padding: 8px 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--orange) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--orange) 10%, transparent);
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.development-chip::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px var(--orange);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 128px) 0 clamp(80px, 10vw, 132px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(42px, 7vw, 88px);
  align-items: center;
}

.hero .lead {
  max-width: 700px;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 12px 30px rgb(38 198 218 / 0.2);
}

.button.secondary {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--text-strong);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 34px;
}

.tag {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
}

.product-frame {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgb(63 243 248 / 0.1), transparent 32%),
    rgb(4 5 61 / 0.92);
  box-shadow:
    var(--shadow),
    inset 0 0 80px rgb(63 243 248 / 0.05);
}

.product-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 492px;
  border: 1px solid rgb(63 243 248 / 0.16);
  border-radius: 18px;
  background: #05063a;
}

.window-bar {
  display: flex;
  height: 48px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(63 243 248 / 0.18);
  background: rgb(63 243 248 / 0.1);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ff3f8;
}

.window-dots span:nth-child(2) {
  background: #ffb74d;
}

.window-dots span:nth-child(3) {
  background: #81d4fa;
}

.window-title {
  color: #d7effb;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.window-status {
  color: #3ff3f8;
  font-size: 0.65rem;
  font-weight: 700;
}

.window-body {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 442px;
}

.window-sidebar {
  padding: 20px 12px;
  border-right: 1px solid rgb(63 243 248 / 0.13);
  background: rgb(4 5 61 / 0.72);
}

.mini-brand {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
  gap: 8px;
  color: #f4fcff;
  font-size: 0.68rem;
  font-weight: 800;
}

.mini-brand span {
  width: 20px;
  height: 20px;
  border: 1px solid rgb(63 243 248 / 0.5);
  border-radius: 6px;
  background: rgb(63 243 248 / 0.14);
}

.side-item {
  display: flex;
  min-height: 32px;
  margin-bottom: 5px;
  padding: 0 9px;
  align-items: center;
  gap: 8px;
  border-radius: 7px;
  color: rgb(215 239 251 / 0.6);
  font-size: 0.64rem;
  font-weight: 650;
}

.side-item::before {
  width: 6px;
  height: 6px;
  content: "";
  border: 1px solid currentColor;
  border-radius: 2px;
}

.side-item.active {
  background: rgb(63 243 248 / 0.1);
  color: #3ff3f8;
}

.window-main {
  padding: 20px;
}

.window-heading {
  display: flex;
  margin-bottom: 18px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.window-heading strong {
  color: #f4fcff;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.window-heading small {
  color: #81d4fa;
  font-size: 0.62rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
  gap: 8px;
}

.mini-metric {
  padding: 12px;
  border: 1px solid rgb(63 243 248 / 0.14);
  border-radius: 9px;
  background: rgb(7 9 95 / 0.42);
}

.mini-metric small {
  display: block;
  margin-bottom: 5px;
  color: #81d4fa;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mini-metric strong {
  color: #d7effb;
  font-size: 1rem;
}

.record-list {
  display: grid;
  gap: 7px;
}

.record {
  display: grid;
  grid-template-columns: 1fr auto auto;
  padding: 11px 12px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgb(63 243 248 / 0.1);
  border-radius: 8px;
  background: rgb(7 9 95 / 0.25);
}

.record strong {
  color: #d7effb;
  font-size: 0.68rem;
}

.record small {
  color: rgb(179 229 252 / 0.68);
  font-size: 0.58rem;
}

.record .status {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgb(63 243 248 / 0.12);
  color: #3ff3f8;
  font-size: 0.52rem;
  font-weight: 800;
}

.record .status.orange {
  background: rgb(255 183 77 / 0.12);
  color: #ffb74d;
}

.record .status.light {
  background: rgb(129 212 250 / 0.12);
  color: #81d4fa;
}

.visual-note {
  position: relative;
  z-index: 1;
  margin: 13px 8px 0;
  color: rgb(179 229 252 / 0.58);
  font-size: 0.66rem;
}

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

.module-item {
  min-height: 130px;
  padding: 20px;
  border: 0;
  background: var(--bg);
}

.module-item span {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.module-item strong {
  color: var(--text-strong);
  font-size: 0.9rem;
}

.section-heading {
  display: flex;
  margin-bottom: 44px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading p {
  max-width: 470px;
  margin-bottom: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 22px;
  gap: 7px;
}

.tab-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.tab-button[aria-selected="true"] {
  border-color: transparent;
  background: var(--accent);
  color: var(--bg-deep);
}

.tab-panel[hidden] {
  display: none;
}

.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.flow-copy {
  padding: clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--line);
}

.flow-copy h2,
.flow-copy h3 {
  max-width: 100%;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.flow-copy p {
  margin-bottom: 24px;
}

.detail-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 23px;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.flow-visual {
  display: grid;
  min-height: 390px;
  padding: clamp(24px, 4vw, 44px);
  align-content: center;
  gap: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgb(38 198 218 / 0.14), transparent 18rem),
    var(--surface-soft);
}

.flow-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 62px;
  padding: 10px 14px 10px 10px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-field);
}

.flow-step-number {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  place-items: center;
  background: var(--surface);
  color: var(--accent-bright);
  font-size: 0.7rem;
  font-weight: 850;
}

.flow-step strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.86rem;
}

.flow-step small {
  color: var(--muted);
  font-size: 0.7rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.card-grid.spaced {
  margin-top: 16px;
}

.feature-card,
.page-card {
  position: relative;
  min-height: 220px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.feature-card::after,
.page-card::after {
  position: absolute;
  right: -36px;
  bottom: -44px;
  width: 130px;
  height: 130px;
  content: "";
  border: 1px solid var(--line);
  border-radius: 50%;
}

.feature-card p,
.page-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.page-card {
  display: flex;
  flex-direction: column;
}

.page-card .card-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: auto;
  padding-top: 26px;
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 800;
}

.feature-index {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(4 5 61 / 0.92);
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .panel {
  background: var(--surface);
}

.approval-header,
.approval-row {
  display: grid;
  align-items: center;
  gap: 10px;
}

.approval-header {
  grid-template-columns: 1fr 0.8fr 0.9fr;
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  background: rgb(63 243 248 / 0.18);
  color: var(--text-strong);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.approval-row {
  grid-template-columns: 1fr 0.8fr 0.9fr;
  min-height: 56px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: rgb(7 9 95 / 0.34);
  color: var(--muted);
  font-size: 0.73rem;
}

.approval-row:last-child {
  border-bottom: 0;
  border-radius: 0 0 8px 8px;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgb(63 243 248 / 0.12);
  color: var(--accent-bright);
  font-size: 0.58rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status-pill.warm {
  background: rgb(255 183 77 / 0.12);
  color: var(--orange);
}

.timeline {
  display: grid;
  margin-top: 22px;
  gap: 15px;
}

.timeline-item {
  position: relative;
  padding-left: 28px;
}

.timeline-item::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 11px;
  height: 11px;
  content: "";
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
}

.timeline-item::after {
  position: absolute;
  top: 19px;
  bottom: -15px;
  left: 6px;
  width: 1px;
  content: "";
  background: var(--line);
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-item strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.82rem;
}

.timeline-item span {
  color: var(--muted);
  font-size: 0.7rem;
}

.assignment-board {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.assignment-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 15px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.assignment-line:last-of-type {
  border-bottom: 0;
}

.assignment-line strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.82rem;
}

.assignment-line small {
  color: var(--muted);
  font-size: 0.68rem;
}

.split-amount {
  color: var(--accent-bright);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 750;
}

.department-stack {
  display: flex;
  margin-top: 12px;
  gap: 7px;
}

.department-stack span {
  flex: 1;
  min-height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.department-stack span:nth-child(2) {
  background: var(--orange);
}

.department-stack span:nth-child(3) {
  background: var(--faint);
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stock-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.stock-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--faint);
  font-size: 0.65rem;
  font-weight: 750;
  text-transform: uppercase;
}

.stock-card strong {
  display: block;
  color: var(--text-strong);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 1.45rem;
}

.stock-card small {
  color: var(--muted);
  font-size: 0.65rem;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pipeline {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pipeline h2,
.pipeline h3 {
  margin-top: 28px;
  max-width: 100%;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.pipeline-steps {
  display: grid;
  margin-top: 26px;
  gap: 8px;
}

.pipeline-step {
  display: flex;
  min-height: 44px;
  padding: 8px 11px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-field);
  color: var(--muted);
  font-size: 0.75rem;
}

.pipeline-step span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 7px;
  place-items: center;
  background: rgb(63 243 248 / 0.12);
  color: var(--accent-bright);
  font-size: 0.58rem;
  font-weight: 850;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ai-card {
  min-height: 315px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgb(63 243 248 / 0.08), transparent 45%),
    var(--surface);
}

.ai-card .status-pill {
  margin-bottom: 54px;
}

.ai-card h3 {
  font-size: 1.35rem;
}

.human-loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
}

.human-loop div {
  min-height: 112px;
  padding: 18px;
  background: var(--bg);
}

.human-loop span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 850;
}

.human-loop strong {
  color: var(--text-strong);
  font-size: 0.84rem;
}

.erp-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.erp-copy {
  padding: clamp(28px, 5vw, 54px);
}

.erp-copy p {
  margin-bottom: 0;
}

.erp-map {
  display: grid;
  padding: clamp(24px, 4vw, 38px);
  align-content: center;
  gap: 10px;
  background:
    radial-gradient(circle at 80% 18%, rgb(255 183 77 / 0.12), transparent 14rem),
    var(--surface-soft);
}

.erp-layer {
  display: flex;
  min-height: 58px;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-field);
}

.erp-layer strong {
  color: var(--text-strong);
  font-size: 0.8rem;
}

.erp-layer span {
  color: var(--muted);
  font-size: 0.66rem;
  text-align: right;
}

.faq {
  display: grid;
  margin-top: 32px;
  gap: 9px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.faq summary {
  padding: 17px 19px;
  color: var(--text-strong);
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
}

.faq details p {
  margin: 0;
  padding: 0 19px 18px;
  font-size: 0.84rem;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(30px, 6vw, 66px);
  align-items: center;
  gap: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgb(63 243 248 / 0.14), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow);
}

.cta-panel p {
  max-width: 680px;
  margin-bottom: 0;
}

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

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-copy {
  max-width: 620px;
  margin-top: 18px;
  font-size: 0.72rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--muted);
  font-size: 0.75rem;
}

.screenshot-figure {
  margin: 0;
}

.screenshot-figure.spaced {
  margin-bottom: 30px;
}

.screenshot-frame {
  position: relative;
  overflow: hidden;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgb(63 243 248 / 0.1), transparent 45%),
    var(--surface);
  box-shadow: var(--shadow);
}

.image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: zoom-in;
}

.image-button::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  padding: 7px 10px;
  align-items: center;
  border: 1px solid rgb(63 243 248 / 0.45);
  border-radius: 999px;
  background: rgb(4 5 61 / 0.9);
  color: #d7effb;
  content: "⌕ View larger";
  font-size: 0.7rem;
  font-weight: 750;
  opacity: 0.9;
  transform: translateY(0);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.image-button:hover::after,
.image-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.image-button img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.screenshot-caption {
  display: flex;
  margin-top: 12px;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.72rem;
}

.screenshot-caption span:last-child {
  color: var(--orange);
  font-weight: 750;
  white-space: nowrap;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.screenshot-grid.spaced,
.pipeline-grid.spaced {
  margin-bottom: 30px;
}

.screenshot-grid .screenshot-caption {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.image-lightbox {
  width: min(96vw, 1600px);
  max-height: 94vh;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-deep);
  color: var(--text);
  box-shadow: var(--shadow);
}

.image-lightbox::backdrop {
  background: rgb(0 0 0 / 0.82);
  backdrop-filter: blur(8px);
}

.image-lightbox img {
  width: 100%;
  max-height: calc(94vh - 76px);
  object-fit: contain;
  border-radius: 10px;
}

.image-lightbox-close {
  display: flex;
  min-height: 38px;
  margin: 0 0 10px auto;
  padding: 0 13px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-strong);
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .site-nav {
    position: absolute;
    top: 68px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--bg-deep);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 11px 12px;
  }

  .nav-toggle {
    display: grid;
  }

  .hero-grid,
  .split,
  .erp-panel {
    grid-template-columns: 1fr;
  }

  .product-frame {
    max-width: 680px;
    margin: 0 auto;
  }

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

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

@media (max-width: 780px) {
  .nav-shell,
  .container {
    width: min(var(--page), calc(100% - 28px));
  }

  .section,
  .page-section {
    padding: 74px 0;
  }

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

  .flow-grid,
  .pipeline-grid,
  .card-grid,
  .ai-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .flow-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-frame {
    min-height: auto;
  }

  .product-window {
    min-height: auto;
  }

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

  .window-sidebar {
    display: none;
  }

  .module-strip,
  .human-loop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .metric-grid,
  .stock-grid,
  .card-grid.four {
    grid-template-columns: 1fr;
  }

  .record {
    grid-template-columns: 1fr auto;
  }

  .record small {
    display: none;
  }

  .module-strip,
  .human-loop {
    grid-template-columns: 1fr;
  }

  .approval-header,
  .approval-row {
    grid-template-columns: 1fr 0.8fr;
  }

  .approval-header span:last-child,
  .approval-row span:last-child {
    display: none;
  }

  .erp-layer {
    align-items: flex-start;
    flex-direction: column;
  }

  .erp-layer span {
    text-align: left;
  }
}

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

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

@media print {
  body {
    background: #ffffff;
    color: #111827;
  }

  site-header,
  .hero-actions,
  .faq,
  .footer-links {
    display: none;
  }

  .section,
  .page-section,
  .hero,
  .page-hero {
    padding: 28px 0;
    break-inside: avoid;
  }
}
