:root {
  color-scheme: light;
  --bg: #f7fafb;
  --surface: #ffffff;
  --surface-soft: #eef7fa;
  --surface-strong: #071b33;
  --text: #071b33;
  --muted: #4d6372;
  --subtle: #708390;
  --border: #cbdde6;
  --border-strong: #9bb8c8;
  --accent: #0f9fb3;
  --accent-strong: #0f4c81;
  --accent-soft: #dff8ff;
  --success: #178a5b;
  --warning: #a86b12;
  --danger: #b03b45;
  --shadow: 0 18px 50px rgb(7 27 51 / 0.12);
  --shadow-soft: 0 8px 28px rgb(7 27 51 / 0.08);
  --radius: 8px;
  --header-height: 76px;
  --container: 1180px;
  --font: Inter, "Segoe UI", Arial, sans-serif;
}

@media (min-width: 1500px) {
  :root {
    --container: 1280px;
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06121f;
  --surface: #0b1d30;
  --surface-soft: #102942;
  --surface-strong: #e8f7fb;
  --text: #eff8fb;
  --muted: #bfd1db;
  --subtle: #8fa7b5;
  --border: #21445c;
  --border-strong: #3a6d88;
  --accent: #29d1e3;
  --accent-strong: #7de8f2;
  --accent-soft: #12364a;
  --success: #61d39d;
  --warning: #e2b45f;
  --danger: #ee8088;
  --shadow: 0 18px 50px rgb(0 0 0 / 0.35);
  --shadow-soft: 0 8px 28px rgb(0 0 0 / 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    linear-gradient(180deg, var(--bg), var(--surface-soft) 48%, var(--bg));
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

main,
section,
article,
div {
  min-width: 0;
}

a {
  color: inherit;
}

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

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

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

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

.site-header[data-elevated="true"] {
  border-bottom-color: var(--border);
}

.nav {
  max-width: var(--container);
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 170px;
}

.brand img {
  width: 208px;
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-menu a,
.theme-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

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

.theme-toggle__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--accent) 0 50%, var(--surface-strong) 50% 100%);
  border: 1px solid var(--border-strong);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle__line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
}

.hero {
  max-width: var(--container);
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 86px) 24px clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero__content {
  max-width: 600px;
}

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

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 820;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.hero__lead,
.section__heading p,
.contact-card p,
.about__body p {
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 750;
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
}

.button--primary {
  background: var(--surface-strong);
  color: var(--bg);
  border-color: var(--surface-strong);
}

.button--primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

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

.button--secondary:hover {
  border-color: var(--accent);
}

.hero-product {
  width: 100%;
  min-width: 0;
}

.app-shell {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.app-shell__topbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  overflow-x: auto;
}

.app-shell__topbar span {
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: var(--radius);
}

.app-shell__topbar span:not(.app-shell__brand) {
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}

.app-shell__brand {
  color: var(--text);
}

.app-shell__body {
  min-height: 500px;
  display: grid;
  grid-template-columns: 190px 1fr;
}

.app-panel {
  border-right: 1px solid var(--border);
  padding: 18px;
  background: color-mix(in srgb, var(--surface-soft) 42%, var(--surface));
}

.panel-label {
  margin-bottom: 10px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-link {
  width: 100%;
  min-height: 36px;
  margin-bottom: 8px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

.panel-link.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.dashboard-preview {
  padding: 22px;
}

.dashboard-preview__header {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
}

.dashboard-preview__header h2 {
  max-width: 520px;
  margin-bottom: 0;
  font-size: 24px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.mini-cards {
  margin: 22px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-cards article {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.mini-cards span {
  display: block;
  margin-bottom: 8px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 750;
}

.mini-cards strong {
  display: block;
  font-size: 14px;
}

.network-canvas {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(var(--surface-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-soft) 1px, transparent 1px),
    var(--surface);
  background-size: 34px 34px;
  overflow: hidden;
}

.network-canvas svg {
  display: block;
  width: 100%;
  height: auto;
}

.pipe {
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 8;
  stroke-linecap: round;
}

.pipe--secondary {
  stroke: var(--accent);
  stroke-width: 5;
  opacity: 0.8;
}

.node-card rect {
  fill: #0f4c81;
  stroke: #dff8ff;
  stroke-width: 2;
}

.node-card--green rect {
  fill: #178a5b;
}

.node-card--amber rect {
  fill: #a86b12;
}

.node-card text {
  fill: #ffffff;
  text-anchor: middle;
  font-size: 13px;
  font-weight: 750;
}

.junction {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 4;
}

.section {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(54px, 7vw, 80px) 24px;
}

.section__heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.overview-grid,
.enterprise-grid,
.practice-grid,
.capability-grid,
.workflow-grid,
.screen-grid {
  display: grid;
  gap: 16px;
}

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

.overview-card,
.enterprise-card,
.practice-card,
.capability-card,
.workflow-grid article,
.screen-card,
.suite-item,
.contact-card,
.about {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.overview-card {
  padding: 22px;
}

.enterprise {
  max-width: none;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 96%, var(--accent)), color-mix(in srgb, var(--surface-strong) 88%, var(--accent-strong)));
  color: var(--bg);
}

.enterprise .section__heading,
.enterprise-grid {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.enterprise .eyebrow,
.enterprise .section__heading p {
  color: color-mix(in srgb, var(--bg) 74%, transparent);
}

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

.enterprise-card {
  min-height: 250px;
  padding: 22px;
  background: color-mix(in srgb, var(--surface) 9%, transparent);
  border-color: color-mix(in srgb, var(--bg) 18%, transparent);
  box-shadow: none;
}

.enterprise-card p {
  color: color-mix(in srgb, var(--bg) 72%, transparent);
}

.enterprise-card__label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, #9ff3ff 70%, transparent);
  border-radius: var(--radius);
  color: #ffffff;
  background: color-mix(in srgb, #0f9fb3 72%, #071b33);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

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

.practice-card {
  min-height: 190px;
  padding: 22px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 78%, var(--surface-soft)), var(--surface));
}

.practice-card h3 {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.practice-card p {
  color: var(--muted);
}

.card-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-weight: 850;
}

.overview-card p,
.capability-card p,
.workflow-grid p,
.screen-card p,
.suite-item p {
  color: var(--muted);
}

.suite-track {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 14px;
}

.suite-item {
  min-height: 220px;
  padding: 20px;
}

.suite-item__status {
  display: block;
  margin-bottom: 22px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

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

.capability-card {
  padding: 22px;
}

.capability-card__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 850;
}

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

.workflow-grid article {
  padding: 22px;
}

.screen-grid {
  grid-template-columns: 1.15fr 1fr 1fr;
}

.screen-card {
  min-height: 250px;
  padding: 22px;
}

.module-strip {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.module-pill,
.screen-list span,
.entity-grid span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.module-pill.active {
  background: var(--surface-strong);
  color: var(--bg);
}

.module-pill.muted {
  opacity: 0.72;
}

.screen-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.entity-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.about {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
}

.about__body {
  display: grid;
  gap: 18px;
}

.about__body img {
  max-width: 260px;
  height: auto;
}

.contact {
  padding-bottom: 88px;
}

.contact-card {
  max-width: 780px;
  padding: 38px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 52%, var(--surface)), var(--surface));
}

.site-footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 34px 24px 50px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer img {
  max-width: 210px;
  height: auto;
  margin-bottom: 8px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

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

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .nav {
    gap: 16px;
  }

  .brand {
    min-width: 150px;
  }

  .brand img {
    width: 188px;
  }

  .nav-menu a,
  .theme-toggle {
    padding: 0 9px;
    font-size: 13px;
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__content {
    max-width: 780px;
  }

  .hero-product {
    max-width: 920px;
  }

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

  .overview-grid,
  .enterprise-grid,
  .practice-grid,
  .capability-grid,
  .screen-grid {
    grid-template-columns: 1fr 1fr;
  }

  .screen-card--module {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .nav {
    padding: 0 16px;
  }

  .brand img {
    width: 176px;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .nav-menu {
    position: fixed;
    inset: calc(var(--header-height) + 8px) 14px auto 14px;
    display: none;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    max-height: calc(100svh - var(--header-height) - 24px);
    overflow-y: auto;
  }

  .nav-menu.is-open {
    display: grid;
  }

  .nav-menu a,
  .theme-toggle {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {

  .hero {
    padding: 50px 16px 36px;
    gap: 34px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 42px);
  }

  h2 {
    font-size: clamp(27px, 8vw, 29px);
  }

  .hero__lead,
  .section__heading p,
  .contact-card p,
  .about__body p {
    font-size: 16px;
  }

  .app-shell__body {
    grid-template-columns: 1fr;
  }

  .app-panel {
    display: none;
  }

  .dashboard-preview__header,
  .about,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .dashboard-preview__header {
    display: grid;
  }

  .mini-cards,
  .overview-grid,
  .enterprise-grid,
  .practice-grid,
  .capability-grid,
  .workflow-grid,
  .screen-grid,
  .suite-track {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 16px;
  }

  .enterprise {
    padding-left: 16px;
    padding-right: 16px;
  }

  .enterprise .section__heading,
  .enterprise-grid {
    max-width: 100%;
  }

  .contact-card {
    padding: 26px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .brand img {
    width: 148px;
  }

  h1 {
    font-size: 33px;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

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

  .dashboard-preview {
    padding: 16px;
  }

  .app-shell__topbar {
    min-height: 44px;
    font-size: 11px;
  }

  .app-shell__topbar span {
    padding: 7px 8px;
  }

  .mini-cards article,
  .overview-card,
  .enterprise-card,
  .practice-card,
  .capability-card,
  .workflow-grid article,
  .screen-card {
    padding: 18px;
  }

  .about {
    padding: 24px;
  }
}

@media (max-width: 360px) {
  .nav {
    padding: 0 12px;
  }

  .brand img {
    width: 132px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .hero,
  .section {
    padding-left: 12px;
    padding-right: 12px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 25px;
  }

  .button {
    padding: 0 14px;
  }

  .contact-card {
    padding: 20px;
  }
}

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