:root {
  --ink: #16152a;
  --navy: #020b78;
  --purple: #30265f;
  --teal: #0f9f8f;
  --mint: #eaf8f5;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --line: #dfe4ef;
  --muted: #5f6475;
  --header-bg: rgba(255, 255, 255, 0.92);
  --hero-fade: rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.95);
  --card-shadow: rgba(22, 21, 42, 0.1);
  --shadow: 0 18px 55px rgba(22, 21, 42, 0.1);
  --radius: 8px;
  --max: 1180px;
}

html.theme-dark {
  --ink: #f4f6ff;
  --navy: #5664ff;
  --purple: #b8b2e5;
  --teal: #4ed6c8;
  --mint: #102f34;
  --paper: #111528;
  --soft: #0b1020;
  --line: #28304a;
  --muted: #b8bfd3;
  --header-bg: rgba(17, 21, 40, 0.9);
  --hero-fade: rgba(11, 16, 32, 0.82), rgba(11, 16, 32, 0.96);
  --card-shadow: rgba(0, 0, 0, 0.38);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background: var(--paper);
  transition: background 180ms ease, color 180ms ease;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  min-height: 76px;
  margin: 14px auto 0;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--header-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 34px var(--card-shadow);
  backdrop-filter: blur(16px);
  transition: min-height 180ms ease, box-shadow 180ms ease;
}

.site-header.is-compact {
  min-height: 66px;
  box-shadow: 0 8px 26px var(--card-shadow);
}

.brand {
  display: flex;
  align-items: center;
  width: clamp(180px, 22vw, 270px);
}

.brand img {
  width: auto;
  max-height: 58px;
}

.site-header.is-compact .brand img {
  max-height: 50px;
}

html.theme-dark .brand img,
html.theme-dark .coming-brand img {
  filter: brightness(0) invert(1);
}

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

.theme-toggle {
  display: inline-flex;
  cursor: pointer;
}

.theme-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-toggle-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 66px;
  height: 36px;
  padding: 4px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}

.theme-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 6px 14px var(--card-shadow);
  transition: transform 180ms ease;
}

.theme-toggle-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.theme-toggle input:checked + .theme-toggle-track .theme-toggle-thumb {
  transform: translateX(30px);
}

.theme-toggle input:focus-visible + .theme-toggle-track {
  outline: 3px solid rgba(15, 159, 143, 0.22);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 650;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--navy);
  background: var(--soft);
  outline: none;
}

.main-nav .nav-cta {
  margin-left: 6px;
  color: var(--paper);
  background: var(--navy);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  color: var(--paper);
  background: var(--purple);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.section-panel {
  position: relative;
  padding: 92px max(24px, calc((100vw - var(--max)) / 2));
}

.hero {
  min-height: 88svh;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 760px);
  padding-top: 150px;
  padding-bottom: 30px;
  overflow: hidden;
  background:
    linear-gradient(var(--hero-fade)),
    var(--paper);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: var(--soft);
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 96px max(24px, calc((100vw - var(--max)) / 2)) auto auto;
  width: min(58vw, 720px);
  opacity: 0.11;
  z-index: 0;
  pointer-events: none;
}

.hero-content,
.hero-metrics {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 5.7vw, 4.95rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button-primary {
  color: var(--paper);
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(2, 11, 120, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--purple);
}

.button-secondary {
  color: var(--purple);
  background: var(--paper);
  border-color: var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--navy);
  border-color: #c4cbe0;
  box-shadow: 0 10px 24px var(--card-shadow);
}

html.theme-dark .button-primary {
  color: #ffffff;
  background: #2e3cff;
}

html.theme-dark .button-secondary {
  color: var(--ink);
  background: #171d34;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, var(--max));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-metrics div {
  min-height: 118px;
  padding: 24px;
  background: var(--paper);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  margin-bottom: 6px;
  color: var(--purple);
  font-size: 1.05rem;
}

.hero-metrics span {
  color: var(--muted);
}

.about {
  background: var(--soft);
}

.split-layout,
.section-heading,
.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

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

.section-heading p,
.copy-stack,
.expertise p,
.contact p {
  color: var(--muted);
  font-size: 1.04rem;
}

.copy-stack p:last-child,
.expertise p:last-child,
.contact p:last-child {
  margin-bottom: 0;
}

.services,
.expertise {
  background: var(--paper);
}

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

.service-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 26px var(--card-shadow);
}

.service-card:hover {
  border-color: #bfc8dc;
  box-shadow: 0 18px 40px var(--card-shadow);
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 36px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 850;
  border: 1px solid #cdece8;
  border-radius: 50%;
  background: var(--mint);
}

.service-card p,
.value-list p,
.case-list p,
.product-feature p {
  margin-bottom: 0;
  color: var(--muted);
}

.products {
  background: var(--soft);
}

.product-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: 34px;
  align-items: end;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.product-feature h3 {
  margin-bottom: 12px;
  color: var(--purple);
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.product-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 6px 11px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  border: 1px solid #cdece8;
  border-radius: 999px;
  background: var(--mint);
}

.product-actions {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.product-url {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
  word-break: break-word;
}

.product-url:hover,
.product-url:focus-visible {
  color: var(--navy);
  outline: none;
}

.value {
  background: #30265f;
  color: #ffffff;
}

html.theme-dark .value {
  background: #171d34;
}

.value .section-kicker {
  color: #83ded2;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
}

.value-list article {
  min-height: 230px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
}

.value-list p {
  color: rgba(255, 255, 255, 0.78);
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
}

.tech-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  color: var(--purple);
  font-weight: 750;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}

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

.case-list {
  display: grid;
  gap: 14px;
}

.case-list article {
  display: grid;
  grid-template-columns: 140px minmax(220px, 0.8fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.case-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.case-list span {
  width: fit-content;
  padding: 5px 10px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 850;
  border: 1px solid #cdece8;
  border-radius: 999px;
  background: var(--paper);
}

.contact {
  background: var(--paper);
}

.contact-content {
  align-items: stretch;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: var(--shadow);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--purple);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd3e3;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--paper);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 159, 143, 0.14);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px max(24px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 255, 255, 0.78);
  background: #16152a;
}

.site-footer div {
  display: grid;
  gap: 12px;
}

.site-footer img {
  width: 210px;
  filter: brightness(0) invert(1);
}

.site-footer p {
  max-width: 520px;
  margin-bottom: 0;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
}

.coming-soon-page {
  min-height: 100svh;
  background:
    linear-gradient(var(--hero-fade)),
    var(--soft);
}

.coming-soon {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 44px;
  width: min(calc(100% - 40px), 980px);
  margin: 0 auto;
  padding: 54px 0;
}

.coming-brand {
  width: min(260px, 70vw);
}

.coming-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.coming-brand img {
  max-height: 70px;
  width: auto;
}

.coming-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 60px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.coming-card::after {
  content: "";
  position: absolute;
  inset: 18px 0 auto auto;
  width: min(520px, 78vw);
  aspect-ratio: 2.3;
  background: url("assets/logo-darkblue-transparent.png") center / contain no-repeat;
  opacity: 0.055;
  pointer-events: none;
}

.coming-card > * {
  position: relative;
  z-index: 1;
}

.coming-card h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.coming-card p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.08rem;
}

.coming-card .hero-actions {
  margin: 28px 0 20px;
}

.coming-url {
  margin-bottom: 0;
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 104px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 4px;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-open .nav-toggle span:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(3) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(4) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .main-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .split-layout,
  .section-heading,
  .contact-content {
    grid-template-columns: 1fr;
  }

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

  .case-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: calc(100% - 24px);
    min-height: 68px;
    margin-top: 10px;
    padding: 10px 12px;
  }

  .brand {
    width: min(62vw, 220px);
  }

  .brand img {
    max-height: 48px;
  }

  .section-panel {
    padding: 70px 20px;
  }

  .hero {
    min-height: 84svh;
    padding-top: 125px;
    padding-bottom: 20px;
  }

  .hero-bg {
    inset: 110px -170px auto auto;
    width: 520px;
    opacity: 0.045;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.5rem);
  }

  .hero-actions {
    margin-bottom: 44px;
  }

  .button {
    width: 100%;
  }

  .hero-metrics,
  .service-grid,
  .value-list {
    grid-template-columns: 1fr;
  }

  .hero-metrics div,
  .service-card,
  .value-list article {
    min-height: auto;
  }

  .contact-form {
    padding: 20px;
  }

  .site-footer {
    display: grid;
  }

  .coming-soon {
    width: min(calc(100% - 28px), 980px);
    align-content: start;
    padding-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
