:root {
  --ink: #04101a;
  --navy: #0a2740;
  --navy-mid: #163a58;
  --fog: #e8eef5;
  --paper: #f7f9fc;
  --muted: #4a5d70;
  --line: rgba(10, 39, 64, 0.14);
  --gold: #d4a017;
  --gold-deep: #a67c0a;
  --gold-soft: rgba(212, 160, 23, 0.16);
  --teal: #0e7c86;
  --teal-soft: rgba(14, 124, 134, 0.12);
  --success: #1f7a4d;
  --warn: #b86e00;
  --white: #ffffff;
  --shadow-soft: 0 22px 55px rgba(4, 16, 26, 0.2);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  padding: 0.6rem 0.9rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  transition: background 280ms ease, backdrop-filter 280ms ease, border-color 280ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  background: rgba(247, 249, 252, 0.94);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  transition: color 220ms ease;
}

.site-header.is-solid .wordmark {
  color: var(--navy);
}

.wordmark-mark {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.wordmark-text {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.header-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  transition: color 180ms ease;
}

.site-header.is-solid .header-nav a {
  color: var(--navy-mid);
}

.header-nav a:hover {
  color: var(--gold);
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-header.is-solid .nav-cta {
  border-color: var(--navy);
  color: var(--navy);
}

.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink) !important;
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.35rem;
  background: var(--white);
  transition: background 180ms ease;
}

.site-header.is-solid .nav-toggle span {
  background: var(--navy);
}

.mobile-nav {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a {
  text-decoration: none;
  font-weight: 560;
  color: var(--navy);
}

@media (min-width: 860px) {
  .header-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 16, 26, 0.62) 0%, rgba(4, 16, 26, 0.32) 40%, rgba(4, 16, 26, 0.88) 100%),
    linear-gradient(90deg, rgba(10, 39, 64, 0.7) 0%, rgba(4, 16, 26, 0.2) 55%, rgba(14, 124, 134, 0.28) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 4.5rem) 0 4.5rem;
  max-width: 42rem;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(14, 124, 134, 0.28);
  color: #e8f7f8;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.live-badge-on-dark {
  background: rgba(14, 124, 134, 0.22);
  border-color: rgba(232, 247, 248, 0.28);
  margin-bottom: 1.35rem;
}

.live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.55);
  animation: pulse-dot 1.8s ease-out infinite;
}

.brand-lockup {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 0.95;
  color: var(--white);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.12;
  max-width: 18ch;
  color: rgba(255, 255, 255, 0.96);
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-size: 1.05rem;
  color: rgba(244, 246, 248, 0.9);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover {
  background: #e0b12a;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.btn-on-dark {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  max-width: 18ch;
  color: var(--navy);
}

.section-lede {
  margin: 0 0 2.75rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.capabilities {
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, var(--gold-soft), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, var(--teal-soft), transparent 50%),
    var(--paper);
}

.capability-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.capability-list li {
  display: grid;
  gap: 0.45rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
}

.capability-list li:nth-child(odd) h3 {
  color: var(--navy);
}

.capability-list li:nth-child(even) h3 {
  color: var(--teal);
}

@media (min-width: 800px) {
  .capability-list li {
    grid-template-columns: 15rem 1fr;
    gap: 2rem;
    align-items: baseline;
  }
}

.capability-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.capability-list p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

/* Product UI mockups */
.product-ui {
  background:
    linear-gradient(180deg, var(--fog) 0%, var(--paper) 100%);
}

.mock-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .mock-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

.mock-frame {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.mock-frame figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(212, 160, 23, 0.1), transparent);
}

.mock-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.mock-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

.mock-chrome {
  display: flex;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  background: #dfe7ef;
}

.mock-chrome span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #b8c4d0;
}

.mock-chrome span:nth-child(1) { background: #e57373; }
.mock-chrome span:nth-child(2) { background: #ffd54f; }
.mock-chrome span:nth-child(3) { background: #81c784; }

.mock-screen {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  min-height: 14.5rem;
  font-size: 0.72rem;
}

.mock-side {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 0.85rem 0.65rem;
}

.mock-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.mock-nav-item {
  padding: 0.35rem 0.4rem;
  margin-bottom: 0.2rem;
}

.mock-nav-item.is-active {
  background: rgba(212, 160, 23, 0.22);
  color: var(--white);
  border-left: 2px solid var(--gold);
}

.mock-main {
  background: #f3f6fa;
  padding: 0.75rem;
}

.mock-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.mock-bar em {
  font-style: normal;
  color: var(--muted);
}

.mock-table {
  display: grid;
  gap: 0.35rem;
}

.mock-row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.55fr 0.9fr;
  gap: 0.35rem;
  align-items: center;
  padding: 0.4rem 0.45rem;
  background: var(--white);
  border: 1px solid rgba(10, 39, 64, 0.08);
  color: var(--navy-mid);
}

.mock-head {
  background: transparent;
  border: 0;
  font-weight: 700;
  color: var(--muted);
  padding-block: 0.15rem;
}

.pill {
  justify-self: end;
  padding: 0.15rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
}

.pill-warn {
  background: rgba(184, 110, 0, 0.14);
  color: var(--warn);
}

.pill-ok {
  background: rgba(31, 122, 77, 0.14);
  color: var(--success);
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.mock-stats div {
  background: var(--white);
  border: 1px solid rgba(10, 39, 64, 0.08);
  padding: 0.55rem 0.45rem;
}

.mock-stats small {
  display: block;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.mock-stats strong {
  color: var(--navy);
  font-size: 0.85rem;
}

.mock-stats .accent {
  color: var(--teal);
}

.mock-bars {
  display: grid;
  gap: 0.4rem;
}

.mock-bars i {
  display: block;
  height: 0.45rem;
  width: var(--w);
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.mock-note {
  margin: 1.35rem 0 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.architecture {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, var(--teal-soft), transparent 55%),
    var(--fog);
}

.architecture-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .architecture-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 3rem;
  }
}

.layer-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.layer-rail li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.88);
  border-left: 4px solid var(--gold);
  color: var(--muted);
}

.layer-rail li:nth-child(2) {
  border-left-color: var(--teal);
}

.layer-rail li:nth-child(3) {
  border-left-color: var(--navy-mid);
}

.layer-rail li:nth-child(4) {
  border-left-color: var(--gold-deep);
}

.layer-rail span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
}

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

.stack-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.stack-strip span {
  padding: 0.65rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--gold);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-mid);
}

.stack-strip span:nth-child(even) {
  border-bottom-color: var(--teal);
}

.close {
  padding-bottom: 6rem;
}

.close-panel {
  background:
    linear-gradient(145deg, var(--navy) 0%, #062033 48%, #0a3a42 100%);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 4rem);
  box-shadow: var(--shadow-soft);
}

.close-panel h2 {
  color: var(--white);
  max-width: 16ch;
}

.close-panel p {
  margin: 0 0 1.75rem;
  max-width: 42rem;
  color: rgba(244, 246, 248, 0.86);
}

.close-panel code {
  font-size: 0.88em;
  color: #f0d48a;
}

.site-footer {
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: grid;
  gap: 0.35rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.92rem;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.85rem !important;
}

.footer-meta a {
  color: var(--navy-mid);
}

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(0, -1.5%, 0);
  }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.55);
  }
  70% {
    box-shadow: 0 0 0 0.55rem rgba(61, 214, 140, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 214, 140, 0);
  }
}

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

  .hero-media img,
  .hero-copy,
  [data-reveal],
  .live-dot {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
