@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  --ink: #18202A;
  --navy: #11263D;
  --navy-2: #0B1A2B;
  --green: #2E6B4F;
  --teal: #267887;
  --saffron: #C77A16;
  --gold: #E2A33A;
  --cream: #F7F2E9;
  --paper: #FFFDF8;
  --line: #E3DED3;
  --muted: #667085;
  --white: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, rgba(38,120,135,0.08), transparent 38%),
    radial-gradient(circle at 82% 12%, rgba(199,122,22,0.13), transparent 28%),
    var(--paper);
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--navy);
}

.skip-link:focus { left: 0; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 72px;
  padding: 0 4vw;
  background: rgba(255,253,248,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  color: #526071;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--green); }

.nav-cta {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white) !important;
}

main { min-height: 70vh; }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 4rem;
  align-items: center;
  padding: 5rem 4vw 4rem;
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  right: -12rem;
  top: 5rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5rem rgba(38,120,135,0.08);
  pointer-events: none;
  z-index: 0;
}

.hero-copy, .hero-panel, .page-hero-inner { position: relative; z-index: 1; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 4vw;
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  color: var(--white);
}

.page-hero-inner {
  max-width: 960px;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.08;
}

h1 {
  max-width: 880px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 700;
}

.hero h1,
.page-hero h1 { color: var(--white); }

.page-hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.7rem);
}

.hero-copy p,
.page-hero p {
  max-width: 760px;
  margin-top: 1.35rem;
  color: rgba(255,255,255,0.73);
  font-size: 1.12rem;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.82rem 1.2rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.22);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

button.button { font: inherit; }

.button.primary {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--white);
}

.button.dark {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.button.light { color: rgba(255,255,255,0.86); }

.hero-panel {
  display: grid;
  gap: 1rem;
}

.visual-card,
.operating-system-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
}

.visual-card img {
  display: block;
  width: 100%;
  max-height: min(46vh, 420px);
  height: auto;
  object-fit: contain;
  background: rgba(255,255,255,0.035);
}

.visual-labels {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.86rem;
}

.visual-labels span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.visual-labels span::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--gold);
}

.visual-labels span:nth-child(2)::before { background: var(--teal); }
.visual-labels span:nth-child(3)::before { background: var(--saffron); }
.visual-labels span:nth-child(4)::before { background: #7D67A8; }

.operating-system-card {
  padding: 1.1rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035)),
    radial-gradient(circle at 88% 12%, rgba(226,163,58,0.2), transparent 28%);
  box-shadow: 0 24px 70px rgba(0,0,0,0.22);
}

.system-card-header {
  display: grid;
  gap: 0.45rem;
  padding: 0.2rem 0.15rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.system-card-header span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.system-card-header strong {
  max-width: 24rem;
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.system-flow {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 0 0.95rem;
}

.system-node {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.8rem;
  row-gap: 0.2rem;
  padding: 0.82rem;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 8px;
  background: rgba(11,26,43,0.42);
}

.system-node.primary {
  border-color: rgba(226,163,58,0.42);
  background: rgba(199,122,22,0.14);
}

.system-node span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
}

.system-node strong {
  color: var(--white);
  font-size: 0.96rem;
  line-height: 1.2;
}

.system-node em {
  color: rgba(255,255,255,0.67);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.45;
}

.system-connector {
  width: 1px;
  height: 1rem;
  margin-left: 1.9rem;
  background: linear-gradient(rgba(226,163,58,0.8), rgba(38,120,135,0.2));
}

.system-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.system-metrics span {
  min-width: 0;
  padding: 0.7rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.68);
  font-size: 0.74rem;
  line-height: 1.35;
}

.system-metrics strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-card {
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
}

.signal-card strong,
.label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-card span { color: rgba(255,255,255,0.72); }

section { padding: 5.2rem 4vw; }

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.narrow { max-width: 820px; }

.section-head {
  max-width: 820px;
  margin-bottom: 2.8rem;
}

.section-head h2 {
  color: var(--navy);
  font-size: clamp(2.1rem, 4vw, 3.45rem);
}

.section-head p,
.lead {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.dark {
  background: var(--navy);
  color: var(--white);
}

.dark .section-head h2 { color: var(--white); }
.dark .section-head p,
.dark p,
.dark li { color: rgba(255,255,255,0.7); }

.band {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid-2,
.grid-3,
.grid-4,
.grid-5 {
  display: grid;
  gap: 1.25rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

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

.dark .card {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.055);
}

.card h2,
.card h3 {
  margin-bottom: 0.65rem;
  color: var(--navy);
  font-size: 1.55rem;
}

.dark .card h2,
.dark .card h3 { color: var(--white); }

.card p,
.card li {
  color: var(--muted);
  font-size: 0.95rem;
}

.card ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 1rem;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.step {
  min-height: 150px;
  padding: 1.1rem;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
}

.step:nth-child(2) { background: var(--teal); }
.step:nth-child(3) { background: var(--navy); }
.step:nth-child(4) { background: #7A4A20; }
.step:nth-child(5) { background: #4C3C70; }

.step span {
  display: block;
  margin-bottom: 0.6rem;
  opacity: 0.65;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
}

.step p {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.4rem;
  align-items: stretch;
}

.feature-panel {
  padding: 2rem;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
}

.feature-panel h2,
.feature-panel h3 {
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 2rem;
}

.feature-panel p { color: rgba(255,255,255,0.75); }

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.metric {
  padding: 1rem;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.metric strong {
  display: block;
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.quote {
  padding: 2rem;
  border-left: 4px solid var(--saffron);
  background: var(--white);
  color: var(--muted);
  font-size: 1.04rem;
}

.note h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.7rem;
  color: var(--navy);
  font-size: 2rem;
}

.note p,
.note li {
  color: var(--muted);
}

.note ul {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.note-disclaimer {
  margin-top: 2rem;
  padding: 1rem;
  border-left: 4px solid var(--saffron);
  background: var(--cream);
}

.form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.8rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.field textarea { min-height: 150px; resize: vertical; }

.work-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.work-card a {
  margin-top: auto;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.dark .work-card a { color: var(--gold); }

.journey-table {
  display: grid;
  gap: 0.75rem;
}

.journey-row {
  display: grid;
  grid-template-columns: 0.8fr 1.25fr 1.15fr 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.journey-head {
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-row span {
  color: var(--muted);
  font-size: 0.92rem;
}

.journey-row span:first-child {
  color: var(--navy);
  font-weight: 700;
}

.journey-head span,
.journey-head span:first-child {
  color: var(--white);
}

footer {
  padding: 3rem 4vw;
  background: var(--navy-2);
  color: rgba(255,255,255,0.66);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
}

footer strong {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--white);
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 4vw;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
  }

  .hero,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .journey-row,
  .split,
  .footer-grid { grid-template-columns: 1fr; }

  .flow,
  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  section { padding: 4rem 5vw; }
  .hero, .page-hero { padding: 4rem 5vw; }
  .hero {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .hero h1 {
    max-width: 22rem;
    font-size: clamp(2.55rem, 12vw, 3.25rem);
    overflow-wrap: break-word;
  }
  .hero-copy,
  .hero-panel,
  .hero-copy p { max-width: 100%; min-width: 0; }
  .hero-copy,
  .hero-copy p,
  .hero-actions { width: min(100%, 22rem); }
  .hero-panel { margin-top: 2rem; }
  .flow, .metric-row { grid-template-columns: 1fr; }
  .hero-actions, .cta-row { flex-direction: column; }
  .button { width: 100%; }
  .visual-card img { max-height: 42vh; }
  .operating-system-card { padding: 0.9rem; }
  .system-node { grid-template-columns: 1fr; }
  .system-node span { grid-row: auto; }
  .system-connector { margin-left: 1.1rem; }
  .system-metrics { grid-template-columns: 1fr; }
}

@media print {
  .nav,
  .cta-row,
  footer,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  body::before { display: none; }

  .page-hero,
  .note {
    padding: 0;
    background: #fff;
    color: #111;
  }

  .page-hero h1,
  .page-hero p,
  .note h2,
  .note p,
  .note li {
    color: #111;
  }
}
