:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --muted-foreground: #6f6f6f;
  --surface: #fafafa;
  --surface-strong: #f4f4f5;
  --card: #ffffff;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --accent: #0f766e;
  --accent-bright: #14b8a6;
  --accent-soft: #e7f8f5;
  --accent-foreground: #0b5f59;
  --contrast: #0a0a0a;
  --contrast-foreground: #fafafa;
  --header-bg: rgba(255, 255, 255, 0.82);
  --grid-line: rgba(10, 10, 10, 0.045);
  --shadow-float: 0 24px 70px rgba(10, 10, 10, 0.08), 0 2px 8px rgba(10, 10, 10, 0.04);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --max-width: 1160px;
  --font-sans: "Geist", "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
  font-family: var(--font-sans);
}

html[data-theme="dark"] {
  --background: #09090b;
  --foreground: #fafafa;
  --muted-foreground: #a1a1aa;
  --surface: #0f0f11;
  --surface-strong: #18181b;
  --card: #0c0c0e;
  --border: #27272a;
  --border-strong: #3f3f46;
  --accent: #2dd4bf;
  --accent-bright: #5eead4;
  --accent-soft: #102b29;
  --accent-foreground: #99f6e4;
  --contrast: #fafafa;
  --contrast-foreground: #0a0a0a;
  --header-bg: rgba(9, 9, 11, 0.82);
  --grid-line: rgba(255, 255, 255, 0.045);
  --shadow-float: 0 24px 70px rgba(0, 0, 0, 0.34), 0 2px 8px rgba(0, 0, 0, 0.2);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--foreground);
  background: var(--background);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  color: var(--foreground);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.28;
  letter-spacing: -0.018em;
}

p {
  color: var(--muted-foreground);
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  color: var(--contrast-foreground);
  background: var(--contrast);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 150ms ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

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

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

.brand,
.footer-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  text-decoration: none;
}

.brand-mark,
.footer-brand span {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border-radius: 7px;
  color: var(--contrast-foreground);
  background: var(--contrast);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 500;
}

.site-nav a {
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--foreground);
  background: var(--surface-strong);
}

.site-nav .nav-cta {
  margin-left: 6px;
  padding-inline: 12px;
  color: var(--contrast-foreground);
  background: var(--contrast);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: var(--contrast-foreground);
  background: color-mix(in srgb, var(--contrast) 88%, var(--background));
}

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

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  background: transparent;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: var(--foreground);
  background: var(--surface-strong);
}

.theme-symbol {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  transition: transform 200ms ease;
}

.theme-symbol::after {
  position: absolute;
  top: 1.5px;
  right: 1.5px;
  width: 6px;
  height: 11px;
  border-radius: 0 999px 999px 0;
  background: currentColor;
  content: "";
}

html[data-theme="dark"] .theme-symbol {
  transform: rotate(180deg);
}

.nav-toggle {
  display: none;
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 17px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle-line::before {
  transform: translateY(-5px);
}

.nav-toggle-line::after {
  transform: translateY(3.5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line::before {
  transform: translateY(0) rotate(45deg);
  background: currentColor;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line::after {
  transform: translateY(-1.5px) rotate(-45deg);
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 46% at 50% -8%, color-mix(in srgb, var(--accent-bright) 16%, transparent), transparent 72%),
    var(--background);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), transparent 62%);
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 104px 0;
}

.hero-copy {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.announcement {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--foreground);
  background: color-mix(in srgb, var(--background) 86%, transparent);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
  font-size: 0.78rem;
  font-weight: 500;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-bright) 17%, transparent);
}

.hero h1 {
  max-width: 860px;
  margin-inline: auto;
}

.hero-text {
  max-width: 720px;
  margin: 0 auto 30px;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.6;
  text-wrap: balance;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 9px 15px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.05);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
}

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

.button-primary {
  color: var(--contrast-foreground);
  background: var(--contrast);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: color-mix(in srgb, var(--contrast) 88%, var(--background));
}

.button-secondary {
  border-color: var(--border);
  color: var(--foreground);
  background: var(--background);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.system-preview {
  position: relative;
  max-width: 1060px;
  height: 590px;
  margin: 78px auto 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--card);
  box-shadow: var(--shadow-float);
}

.preview-bar {
  display: grid;
  min-height: 46px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-inline: 16px;
  color: var(--muted-foreground);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

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

.window-dots span {
  width: 8px;
  height: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface-strong);
}

.preview-state {
  justify-self: end;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 7px;
  background: var(--background);
}

.preview-layout {
  display: grid;
  height: calc(100% - 46px);
  grid-template-columns: 210px 1fr;
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  background: var(--surface);
}

.preview-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 7px 18px;
  color: var(--foreground);
  font-size: 0.78rem;
  font-weight: 600;
}

.preview-logo > span,
.preview-user > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  color: var(--contrast-foreground);
  background: var(--contrast);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.preview-nav {
  display: grid;
  gap: 4px;
}

.preview-nav > span {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 7px;
  padding: 7px 9px;
  color: var(--muted-foreground);
  font-size: 0.72rem;
}

.preview-nav > span.is-active {
  color: var(--foreground);
  background: var(--surface-strong);
  font-weight: 600;
}

.preview-nav i {
  width: 11px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 3px;
  opacity: 0.7;
}

.preview-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 16px 7px 0;
  font-size: 0.66rem;
}

.preview-user div,
.preview-user b,
.preview-user small {
  display: block;
}

.preview-user b {
  color: var(--foreground);
  font-weight: 600;
}

.preview-user small {
  color: var(--muted-foreground);
}

.preview-main {
  padding: 34px;
  background: var(--background);
}

.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.preview-heading small,
.preview-heading strong {
  display: block;
}

.preview-heading small {
  margin-bottom: 4px;
  color: var(--muted-foreground);
  font-size: 0.68rem;
}

.preview-heading strong {
  color: var(--foreground);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mini-button {
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--contrast-foreground);
  background: var(--contrast);
  font-size: 0.68rem;
  font-weight: 600;
}

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

.metric-card,
.workflow-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.metric-card {
  min-height: 116px;
  padding: 17px;
}

.metric-card span,
.metric-card strong,
.metric-card small {
  display: block;
}

.metric-card span {
  margin-bottom: 14px;
  color: var(--muted-foreground);
  font-size: 0.66rem;
}

.metric-card strong {
  margin-bottom: 3px;
  color: var(--foreground);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.metric-card small {
  color: var(--muted-foreground);
  font-size: 0.64rem;
}

.workflow-card {
  overflow: hidden;
}

.workflow-header,
.workflow-row {
  display: grid;
  align-items: center;
}

.workflow-header {
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--border);
  padding: 15px 17px;
}

.workflow-header strong,
.workflow-header small {
  display: block;
}

.workflow-header strong {
  color: var(--foreground);
  font-size: 0.75rem;
  font-weight: 600;
}

.workflow-header small {
  margin-top: 2px;
  color: var(--muted-foreground);
  font-size: 0.62rem;
}

.workflow-header > span {
  color: var(--muted-foreground);
  letter-spacing: 0.1em;
}

.workflow-row {
  grid-template-columns: 30px 1fr auto;
  gap: 11px;
  border-bottom: 1px solid var(--border);
  padding: 13px 17px;
}

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

.workflow-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted-foreground);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.workflow-row b,
.workflow-row small {
  display: block;
}

.workflow-row b {
  color: var(--foreground);
  font-size: 0.72rem;
  font-weight: 600;
}

.workflow-row small {
  color: var(--muted-foreground);
  font-size: 0.62rem;
}

.state-pill,
.badge,
.card-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--foreground);
  background: var(--surface);
  font-size: 0.65rem;
  font-weight: 500;
  white-space: nowrap;
}

.state-pill {
  padding: 3px 7px;
  color: var(--accent-foreground);
  background: var(--accent-soft);
}

.state-progress {
  color: var(--foreground);
  background: var(--surface-strong);
}

.state-muted {
  color: var(--muted-foreground);
  background: transparent;
}

.capability-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-inline: 1px solid var(--border);
}

.capability-row span {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  color: var(--muted-foreground);
  background: var(--background);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
}

.capability-row span:last-child {
  border-right: 0;
}

.section {
  padding-block: 112px;
}

.section-muted {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading > div {
  max-width: 720px;
}

.section-heading h2,
.section-heading > p {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 480px;
  justify-self: end;
}

.section-heading-centered {
  display: block;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.section-heading-centered > p {
  max-width: 620px;
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent-foreground);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.service-card,
.product-card,
.portal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.product-card:hover,
.portal-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 34px rgba(10, 10, 10, 0.06);
}

.service-card {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.service-card-featured {
  grid-column: span 2;
}

.card-topline,
.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-index {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.card-chip,
.badge {
  padding: 4px 8px;
}

.service-card h3 {
  font-size: 1.22rem;
}

.service-card p {
  max-width: 540px;
  margin-bottom: 0;
  font-size: 0.94rem;
}

.card-visual {
  margin-top: 26px;
}

.card-visual-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.card-visual-flow span {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--muted-foreground);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.card-visual-flow i {
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--accent-bright), var(--border));
}

.card-visual-nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: center;
}

.card-visual-nodes::before {
  position: absolute;
  right: 8%;
  left: 8%;
  height: 1px;
  background: var(--border-strong);
  content: "";
}

.card-visual-nodes span {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  justify-self: center;
  border: 4px solid var(--card);
  border-radius: 50%;
  background: var(--border-strong);
  box-shadow: 0 0 0 1px var(--border);
}

.card-visual-nodes span:nth-child(3) {
  background: var(--accent-bright);
}

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

.product-card {
  display: flex;
  min-height: 400px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
}

.product-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--foreground);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
}

.product-name {
  margin-bottom: 10px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card h3 {
  max-width: 320px;
  font-size: 1.42rem;
  line-height: 1.2;
  letter-spacing: -0.032em;
}

.product-card p:last-child {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.product-card-dark {
  border-color: var(--contrast);
  color: var(--contrast-foreground);
  background: var(--contrast);
}

.product-card-dark h3,
.product-card-dark .card-link,
.product-card-dark .product-mark {
  color: var(--contrast-foreground);
}

.product-card-dark p,
.product-card-dark .product-name {
  color: color-mix(in srgb, var(--contrast-foreground) 68%, transparent);
}

.product-card-dark .product-mark,
.product-card-dark .badge {
  border-color: color-mix(in srgb, var(--contrast-foreground) 20%, transparent);
  background: color-mix(in srgb, var(--contrast-foreground) 8%, transparent);
}

.product-card-dark .badge {
  color: var(--contrast-foreground);
}

.card-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-top: 30px;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.card-link span {
  transition: transform 150ms ease;
}

.card-link:hover span,
.card-link:focus-visible span {
  transform: translate(2px, -1px);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step {
  position: relative;
  display: grid;
  min-height: 210px;
  grid-template-rows: auto 1fr;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 24px 28px;
}

.process-step:first-child {
  border-left: 1px solid var(--border);
  border-radius: var(--radius) 0 0 var(--radius);
}

.process-step:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

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

.step-number {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.process-step > div {
  align-self: end;
}

.process-step h3 {
  font-size: 1.24rem;
}

.process-step p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.about-section {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 96px;
  align-items: start;
}

.about-heading {
  position: sticky;
  top: 104px;
}

.about-content {
  max-width: 700px;
}

.about-lead {
  margin-bottom: 24px;
  color: var(--foreground);
  font-size: clamp(1.28rem, 2.4vw, 1.7rem);
  line-height: 1.42;
  letter-spacing: -0.028em;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.principle-grid > div {
  min-height: 126px;
  padding: 20px;
  background: var(--card);
}

.principle-grid strong,
.principle-grid span {
  display: block;
}

.principle-grid strong {
  margin-bottom: 8px;
  color: var(--foreground);
  font-size: 0.92rem;
}

.principle-grid span {
  color: var(--muted-foreground);
  font-size: 0.82rem;
}

.contact-section {
  padding-block: 24px 112px;
  background: var(--surface);
}

.contact-panel {
  position: relative;
  display: grid;
  min-height: 350px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 52px;
  color: var(--contrast-foreground);
  background: var(--contrast);
}

.contact-panel::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 16%, color-mix(in srgb, var(--accent-bright) 30%, transparent), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  content: "";
  pointer-events: none;
}

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

.contact-panel h2 {
  max-width: 700px;
  color: var(--contrast-foreground);
}

.contact-panel p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: color-mix(in srgb, var(--contrast-foreground) 68%, transparent);
}

.eyebrow-inverted {
  color: color-mix(in srgb, var(--contrast-foreground) 66%, var(--accent-bright));
}

.button-inverted {
  color: var(--contrast);
  background: var(--contrast-foreground);
  white-space: nowrap;
}

.button-inverted:hover,
.button-inverted:focus-visible {
  background: color-mix(in srgb, var(--contrast-foreground) 86%, transparent);
}

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

.footer-inner {
  display: grid;
  min-height: 86px;
  grid-template-columns: auto 1fr auto auto;
  gap: 26px;
  align-items: center;
}

.footer-inner p {
  margin-bottom: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer nav a {
  color: var(--muted-foreground);
  font-size: 0.78rem;
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--foreground);
}

.footer-copy {
  justify-self: end;
}

/* Secondary pages */
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 55% 80% at 22% -10%, color-mix(in srgb, var(--accent-bright) 13%, transparent), transparent 72%),
    var(--background);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.7), transparent 68%);
  content: "";
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 112px 88px;
}

.page-hero-inner > * {
  max-width: 820px;
}

.page-hero-inner h1 {
  font-size: clamp(2.75rem, 5vw, 4rem);
}

.page-hero-inner > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.page-hero.compact .page-hero-inner {
  padding-block: 88px 68px;
}

.page-hero.compact h1 {
  margin-bottom: 18px;
}

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

.portal-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
}

.portal-card .product-mark {
  margin-bottom: 48px;
}

.portal-card .product-name {
  margin-bottom: 9px;
}

.portal-card h3 {
  max-width: 460px;
  font-size: 1.5rem;
  letter-spacing: -0.032em;
}

.portal-card > p:not(.product-name) {
  max-width: 520px;
  margin-bottom: 0;
}

.portal-card .button {
  margin-top: auto;
}

.sso-note {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 80px;
}

.sso-note h2,
.sso-note p:last-child {
  margin-bottom: 0;
}

.readable {
  max-width: 820px;
}

.legal-warning {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid #e8c991;
  border-radius: 999px;
  padding: 6px 10px;
  color: #7a4a0b;
  background: #fff8e8;
  font-family: var(--font-mono);
  font-size: 0.72rem !important;
  font-weight: 600;
}

html[data-theme="dark"] .legal-warning {
  border-color: #634922;
  color: #f8d38c;
  background: #281e0f;
}

.legal-page h2 {
  margin-top: 46px;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.legal-page h2:first-child {
  margin-top: 0;
}

.legal-page p,
.legal-page li {
  max-width: 760px;
}

.legal-list {
  display: grid;
  margin: 0 0 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.legal-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding: 15px 18px;
  background: var(--card);
}

.legal-list div:last-child {
  border-bottom: 0;
}

.legal-list dt {
  color: var(--muted-foreground);
  font-size: 0.82rem;
  font-weight: 500;
}

.legal-list dd {
  margin: 0;
  color: var(--foreground);
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, color-mix(in srgb, var(--accent-bright) 15%, transparent), transparent 72%),
    var(--background);
}

.not-found-card {
  max-width: 620px;
  text-align: center;
}

.not-found-card .button-row {
  margin-top: 28px;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 59px;
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 7px;
    background: var(--background);
    box-shadow: var(--shadow-float);
  }

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

  .site-nav a {
    padding: 10px 11px;
  }

  .site-nav .nav-cta {
    margin: 4px 0 0;
    text-align: center;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .preview-layout {
    grid-template-columns: 170px 1fr;
  }

  .preview-main {
    padding: 26px;
  }

  .section-heading,
  .about-layout,
  .sso-note {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading > p {
    justify-self: start;
  }

  .about-heading {
    position: static;
  }

  .about-content {
    max-width: none;
  }

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

  .footer-inner > p:not(.footer-copy) {
    display: none;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  h1 {
    font-size: clamp(2.45rem, 11vw, 3.25rem);
    letter-spacing: -0.05em;
  }

  h2 {
    font-size: clamp(1.9rem, 8.5vw, 2.5rem);
  }

  .brand-name {
    max-width: 168px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-nav {
    right: 16px;
    left: 16px;
  }

  .hero-inner {
    padding-top: 78px;
  }

  .announcement {
    margin-bottom: 20px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .button-row {
    align-items: stretch;
  }

  .hero-copy .button {
    flex: 1 1 190px;
  }

  .system-preview {
    height: 500px;
    margin-top: 56px;
  }

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

  .preview-path {
    display: none;
  }

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

  .preview-sidebar {
    display: none;
  }

  .preview-main {
    padding: 22px;
  }

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

  .metric-card:last-child {
    display: none;
  }

  .workflow-row {
    grid-template-columns: 30px 1fr;
  }

  .workflow-row > .state-pill {
    display: none;
  }

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

  .capability-row span {
    min-height: 52px;
    border-bottom: 1px solid var(--border);
    padding: 10px;
    text-align: center;
  }

  .capability-row span:nth-child(2) {
    border-right: 0;
  }

  .capability-row span:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .section {
    padding-block: 80px;
  }

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

  .service-grid,
  .product-grid,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .service-card-featured {
    grid-column: auto;
  }

  .service-card {
    min-height: 260px;
  }

  .product-card,
  .portal-card {
    min-height: 350px;
  }

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

  .process-step {
    min-height: 170px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
  }

  .process-step:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .process-step:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
  }

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

  .principle-grid > div {
    min-height: auto;
  }

  .contact-section {
    padding-block: 0 80px;
  }

  .contact-panel {
    min-height: 420px;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 34px 26px;
  }

  .contact-panel .button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    padding-block: 24px;
  }

  .site-footer nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .footer-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .page-hero-inner {
    padding-block: 82px 64px;
  }

  .page-hero.compact .page-hero-inner {
    padding-block: 70px 54px;
  }

  .legal-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (max-width: 430px) {
  .header-inner {
    gap: 8px;
  }

  .brand-name {
    max-width: 142px;
    font-size: 0.86rem;
  }

  .hero-copy .button {
    width: 100%;
    flex-basis: 100%;
  }

  .system-preview {
    height: 470px;
  }

  .preview-main {
    padding: 17px;
  }

  .preview-heading {
    margin-bottom: 16px;
  }

  .metric-card {
    min-height: 105px;
    padding: 14px;
  }

  .workflow-row small {
    display: none;
  }

  .card-visual-flow {
    gap: 6px;
  }

  .card-visual-flow span {
    padding-inline: 7px;
  }
}

@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;
  }
}
