:root {
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 8px;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 60px rgba(3, 12, 24, 0.28);
  --shadow-card: 0 16px 34px rgba(3, 12, 24, 0.2);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
}

html[data-theme="dark"] {
  --bg: #05080d;
  --surface: #0a111b;
  --surface-2: #101a28;
  --surface-3: #132235;
  --text: #f5fbff;
  --muted: #9fb4c9;
  --subtle: #6f879f;
  --line: rgba(164, 213, 255, 0.16);
  --primary: #5ad7ff;
  --primary-strong: #7ce9ff;
  --primary-text: #041019;
  --accent: #a8f0ff;
  --warm: #f8dd8b;
  --hero-scrim: rgba(5, 8, 13, 0.24);
}

html[data-theme="light"] {
  --bg: #f6fbff;
  --surface: #ffffff;
  --surface-2: #eaf5fb;
  --surface-3: #dff1fa;
  --text: #071521;
  --muted: #496172;
  --subtle: #6b8292;
  --line: rgba(32, 88, 122, 0.18);
  --primary: #087fa3;
  --primary-strong: #015d82;
  --primary-text: #ffffff;
  --accent: #0097c7;
  --warm: #8b6500;
  --hero-scrim: rgba(246, 251, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 32rem),
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 90%, var(--surface-2)));
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 62%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 62%, transparent) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 70%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--primary-text);
  background: var(--primary);
  transform: translateY(-140%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 0;
  gap: 12px;
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.header-actions,
.control-button,
.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-height: 48px;
  font-weight: 700;
  font-size: 18px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 28px color-mix(in srgb, var(--primary) 42%, transparent);
}

.nav {
  gap: 8px;
  min-height: 48px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.nav a {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.nav a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-3) 72%, transparent);
}

.header-actions {
  gap: 10px;
  flex-shrink: 0;
}

.control-button {
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.control-button:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
  transform: translateY(-1px);
}

.theme-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: inset -6px -4px 0 color-mix(in srgb, var(--surface) 84%, transparent);
}

html[data-theme="light"] .theme-icon {
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 18%, transparent);
}

main {
  overflow: hidden;
}

.section-band {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100dvh - 80px);
  padding: 36px 0 78px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.88;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.18;
}

.hero-lead,
.section-heading p,
.split-section > div:first-child p,
.final-cta p {
  max-width: 700px;
  color: var(--muted);
  font-size: 19px;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.primary-cta,
.secondary-cta {
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

.primary-cta {
  padding: 14px 22px;
  color: var(--primary-text);
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 18px 38px color-mix(in srgb, var(--primary) 24%, transparent);
}

.secondary-cta {
  padding: 13px 20px;
  border: 1px solid var(--line);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.primary-cta:hover,
.secondary-cta:hover {
  transform: translateY(-2px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin: 0;
}

.hero-metrics div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.hero-metrics dt {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 48%, var(--hero-scrim) 100%);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.02);
}

.hero-panel {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: #f6fcff;
  background: rgba(4, 13, 22, 0.72);
  backdrop-filter: blur(16px);
}

.panel-row img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.feature-strip,
.model-grid,
.workflow-layout {
  display: grid;
  gap: 16px;
}

.feature-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(var(--max), calc(100% - 32px));
  margin: -34px auto 0;
  padding-bottom: 86px;
}

.feature-strip article,
.model-card,
.workflow-card,
.team-item,
.final-cta {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: var(--shadow-card);
}

.feature-strip article {
  min-height: 222px;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.feature-strip img,
.model-card img,
.workflow-card img,
.final-cta img {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  object-fit: contain;
}

.feature-strip p,
.model-card p,
.workflow-card p,
.team-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.models-section,
.workflow-section,
.split-section {
  padding: 86px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 720px;
}

.model-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.model-card {
  min-height: 246px;
  padding: 28px;
  border-radius: var(--radius-lg);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.model-card:hover {
  border-color: color-mix(in srgb, var(--primary) 48%, var(--line));
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  transform: translateY(-4px);
}

.workflow-layout {
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
}

.workflow-card {
  min-height: 270px;
  padding: 30px;
  border-radius: var(--radius-lg);
}

.workflow-card.large {
  grid-row: span 2;
  min-height: 558px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 10%, transparent), transparent),
    color-mix(in srgb, var(--surface) 86%, transparent);
}

.workflow-card.large h3 {
  font-size: clamp(28px, 4vw, 46px);
}

.workflow-card.wide {
  grid-column: span 2;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.76fr);
  gap: 44px;
  align-items: center;
}

.team-stack {
  display: grid;
  gap: 14px;
}

.team-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  min-height: 104px;
  padding: 20px;
  border-radius: var(--radius-lg);
}

.team-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--primary-text);
  background: var(--primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.final-cta {
  width: min(860px, calc(100% - 32px));
  margin: 42px auto 96px;
  padding: 54px 28px;
  border-radius: 28px;
  text-align: center;
}

.final-cta img {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
}

.final-cta p {
  margin-right: auto;
  margin-left: auto;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  min-height: 86px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--subtle);
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text);
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero,
  .section-heading,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-visual,
  .hero-image {
    min-height: 520px;
  }

  .feature-strip,
  .model-grid,
  .workflow-layout {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-card.large,
  .workflow-card.wide {
    grid-column: span 2;
    grid-row: auto;
    min-height: 300px;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: min(100% - 36px, var(--max));
  }

  .brand span {
    display: none;
  }

  .control-button {
    min-width: 44px;
    min-height: 44px;
  }

  .section-band,
  .feature-strip,
  .site-footer,
  .final-cta {
    width: calc(100% - 56px);
  }

  h1 {
    font-size: clamp(48px, 16vw, 64px);
  }

  .hero-actions,
  .primary-cta,
  .secondary-cta {
    width: 100%;
  }

  .hero-metrics,
  .feature-strip,
  .model-grid,
  .workflow-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-image {
    min-height: 420px;
  }

  .hero-panel {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .feature-strip {
    margin-top: -20px;
    padding-bottom: 48px;
  }

  .models-section,
  .workflow-section,
  .split-section {
    padding: 58px 0;
  }

  .workflow-card.large,
  .workflow-card.wide {
    grid-column: auto;
    min-height: 260px;
  }

  .site-footer {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 18px 0;
  }
}

@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;
  }
}
