:root {
  --ink: #172026;
  --muted: #60707c;
  --paper: #f5f7f9;
  --white: #ffffff;
  --steel: #213340;
  --deep: #0d1b24;
  --line: #dbe4ea;
  --cyan: #1e88a8;
  --teal: #0f766e;
  --amber: #d9922e;
  --green: #5d8e60;
  --shadow: 0 18px 50px rgba(24, 38, 50, 0.15);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  background: rgba(13, 27, 36, 0.78);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1200px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 820;
  letter-spacing: 0;
  white-space: nowrap;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.18)),
    linear-gradient(135deg, var(--cyan), var(--amber));
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 10px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.92);
  transform: rotate(-35deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

.site-header.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

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

.nav-links a {
  padding: 9px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px;
  padding: 0 15px;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  font-weight: 740;
  cursor: pointer;
}

.button {
  min-height: 50px;
  padding: 0 18px;
  border-color: transparent;
  background: var(--steel);
}

.button.primary {
  background: var(--amber);
  color: #1b1711;
}

.button.ghost {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.hero {
  min-height: 94vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--deep);
}

.hero.small {
  min-height: 54vh;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.03);
  animation: slowZoom 18s ease-out both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 22, 30, 0.94) 0%, rgba(9, 22, 30, 0.74) 36%, rgba(9, 22, 30, 0.28) 70%, rgba(9, 22, 30, 0.12) 100%),
    linear-gradient(0deg, rgba(9, 22, 30, 0.92) 0%, rgba(9, 22, 30, 0.10) 45%);
}

.hero-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 138px 0 54px;
}

.eyebrow,
.kicker {
  margin: 0 0 14px;
  color: #b6edf5;
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(38px, 6.4vw, 80px);
  line-height: 1;
  font-weight: 840;
}

.hero-copy {
  max-width: 710px;
  margin: 24px 0 0;
  color: rgba(255,255,255,0.82);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 950px;
  margin-top: 54px;
  border: 1px solid rgba(255,255,255,0.17);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.16);
}

.metric {
  min-height: 112px;
  padding: 18px;
  background: rgba(13, 31, 42, 0.66);
  backdrop-filter: blur(12px);
}

.metric strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: var(--white);
}

.section.dark {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(15, 42, 54, 0.96), rgba(25, 62, 70, 0.94)),
    var(--steel);
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.56fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.08;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.dark .section-head p,
.dark .body-copy,
.dark .muted {
  color: rgba(255,255,255,0.74);
}

.kicker {
  color: var(--cyan);
}

.dark .kicker {
  color: #9be8f2;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 220px;
  box-shadow: 0 10px 32px rgba(25, 42, 54, 0.07);
  overflow-wrap: anywhere;
}

.card.dark-card {
  color: var(--white);
  background: var(--steel);
  border-color: rgba(255,255,255,0.08);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card.dark-card p {
  color: rgba(255,255,255,0.72);
}

.icon-box {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #e7f4f6;
  color: var(--cyan);
  font-weight: 900;
}

.dark-card .icon-box {
  color: #f3b767;
  background: rgba(255,255,255,0.12);
}

.split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 22px;
}

.stack-panel {
  padding: 28px;
  min-height: 480px;
  display: grid;
  align-content: center;
  background:
    linear-gradient(145deg, rgba(30,136,168,0.10), rgba(213,146,46,0.10)),
    var(--white);
}

.stack-list {
  display: grid;
  gap: 12px;
}

.stack-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(23, 32, 38, 0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
}

.stack-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--steel);
  border-radius: 8px;
  font-weight: 840;
}

.stack-row h3 {
  margin: 0 0 3px;
  font-size: 16px;
}

.stack-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.library-shell {
  display: grid;
  gap: 18px;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 250px 180px;
  gap: 12px;
  position: sticky;
  top: 78px;
  z-index: 12;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 32px rgba(25, 42, 54, 0.08);
}

.toolbar input,
.toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
}

.count-line {
  color: var(--muted);
  font-size: 14px;
}

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

.record-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(25, 42, 54, 0.06);
  overflow-wrap: anywhere;
}

.record-card h3 {
  margin: 0;
  font-size: 18px;
}

.record-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 9px;
  background: #edf4f5;
  color: #236879;
  font-size: 12px;
  font-weight: 760;
}

.tag.green {
  color: #315d35;
  background: #eaf3e8;
}

.tag.amber {
  color: #7a4c0f;
  background: #f8ead5;
}

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

.bar-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.bar-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  font-weight: 780;
}

.bar {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8eef2;
}

.bar span {
  display: block;
  height: 100%;
  width: var(--w, 20%);
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

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

.roadmap-step {
  min-height: 260px;
  padding: 24px;
  background: var(--white);
}

.roadmap-step b {
  color: var(--cyan);
  font-size: 13px;
  text-transform: uppercase;
}

.roadmap-step h3 {
  margin: 12px 0 10px;
}

.roadmap-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cta-band {
  padding: 70px 0;
  color: var(--white);
  background: var(--steel);
}

.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.cta-box h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.06;
}

.cta-box p {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(255,255,255,0.72);
}

.footer {
  padding: 28px 0;
  background: #11191f;
  color: rgba(255,255,255,0.68);
  font-size: 14px;
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowZoom {
  from { transform: scale(1.03); }
  to { transform: scale(1.09); }
}

@media (max-width: 980px) {
  .nav {
    min-height: 62px;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    order: 3;
    padding: 8px 0 14px;
    gap: 6px;
    color: var(--white);
  }

  .site-header.nav-open .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .nav-links a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
  }

  .nav-links .nav-cta {
    grid-column: 1 / -1;
    min-height: 44px;
    justify-content: center;
  }

  .metric-grid,
  .solution-grid,
  .feature-grid,
  .section-head,
  .split,
  .record-grid,
  .summary-grid,
  .roadmap,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .toolbar {
    grid-template-columns: 1fr;
    position: static;
  }

  .hero {
    min-height: auto;
  }

  .hero.small {
    min-height: auto;
  }

  .hero-inner {
    padding: 116px 0 44px;
  }

  .hero.small .hero-inner {
    padding-bottom: 38px;
  }

  .section-head {
    gap: 14px;
    margin-bottom: 24px;
  }

  .metric-grid {
    margin-top: 36px;
  }

  .metric {
    min-height: 92px;
  }

  .roadmap-step {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .nav {
    width: min(100% - 24px, 1200px);
  }

  .brand {
    max-width: calc(100% - 58px);
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(9, 22, 30, 0.94) 0%, rgba(9, 22, 30, 0.78) 58%, rgba(9, 22, 30, 0.42) 100%),
      linear-gradient(0deg, rgba(9, 22, 30, 0.94) 0%, rgba(9, 22, 30, 0.16) 62%);
  }

  .hero-media img {
    object-position: 62% center;
  }

  .hero-inner,
  .container,
  .footer-inner {
    width: min(100% - 24px, 1200px);
  }

  .hero-inner {
    padding-top: 96px;
    padding-bottom: 36px;
  }

  .hero.small .hero-inner {
    padding-top: 96px;
  }

  h1 {
    font-size: clamp(31px, 9vw, 40px);
    line-height: 1.08;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 16px;
  }

  .section {
    padding: 50px 0;
  }

  .section-head h2,
  .cta-box h2 {
    font-size: 30px;
    line-height: 1.12;
  }

  .hero-actions {
    display: grid;
    margin-top: 24px;
  }

  .button {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    text-align: center;
  }

  .record-card {
    min-height: 0;
    padding: 16px;
    gap: 11px;
  }

  .record-card h3,
  .card h3 {
    font-size: 18px;
  }

  .card {
    min-height: 0;
    padding: 18px;
  }

  .solution-grid,
  .feature-grid,
  .record-grid,
  .summary-grid {
    gap: 12px;
  }

  .toolbar {
    padding: 10px;
  }

  .toolbar input,
  .toolbar select {
    min-height: 46px;
    font-size: 15px;
  }

  .stack-panel {
    min-height: 0;
    padding: 18px;
  }

  .stack-row {
    grid-template-columns: 42px 1fr;
    padding: 12px;
  }

  .stack-number {
    width: 36px;
    height: 36px;
  }

  .metric {
    min-height: 84px;
    padding: 16px;
  }

  .metric strong {
    font-size: 25px;
  }

  .cta-band {
    padding: 48px 0;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

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