:root {
  color-scheme: light;
  --teal: #197997;
  --glacier: #50bec5;
  --frost: #7abebe;
  --ice: #f7fafc;
  --snow-shadow: #e7eef2;
  --ink: #17252b;
  --basalt: #2c3640;
  --muted: #62767e;
  --line: #b9c9cf;
  --surface: rgba(247, 250, 252, .88);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background:
  radial-gradient(circle at 82% 12%, rgba(80, 190, 197, .14), transparent 25rem),
  linear-gradient(180deg, #eef3f1 0, #f7fafc 36rem, #eef4f5 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
.skip-link { position: fixed; top: 0; left: 1rem; z-index: 10; transform: translateY(-110%); padding: .6rem .9rem; background: var(--ink); color: white; }
.skip-link:focus { transform: none; }

.site-header, main, footer { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(129, 156, 165, .45); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 43px; height: 43px; }
.brand span { display: flex; flex-direction: column; }
.brand small { color: var(--teal); font-size: .68rem; font-weight: 800; letter-spacing: .22em; }
.brand strong { margin-top: .08rem; font-size: 1.08rem; letter-spacing: -.02em; }
nav { display: flex; gap: 1.8rem; }
nav a { color: var(--basalt); font-size: .88rem; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.hero { min-height: 510px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); align-items: center; gap: 5rem; padding: 5rem 0 4rem; }
.kicker { margin: 0 0 .9rem; color: var(--teal); font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
h1 { max-width: 720px; margin: 0; font-size: clamp(3.2rem, 6vw, 5.8rem); font-weight: 650; letter-spacing: -.065em; line-height: .94; }
.lead { max-width: 670px; margin: 1.7rem 0 0; color: #435960; font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.button { padding: .78rem 1.15rem; border: 1px solid var(--teal); font-size: .84rem; font-weight: 750; text-decoration: none; }
.button.primary { color: white; background: var(--teal); }
.button.primary:hover { background: #11657f; }
.button.secondary { color: var(--teal); background: rgba(247, 250, 252, .65); }
.button.secondary:hover { background: white; }

.system-map { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: end; width: 100%; }
.system-map::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, rgba(80,190,197,.2), rgba(80,190,197,.02) 67%, transparent 68%); }
.system-map > img { position: absolute; inset: 50% auto auto 50%; width: 116px; transform: translate(-50%, -50%); filter: drop-shadow(0 18px 28px rgba(25,121,151,.18)); }
.orbit { position: absolute; inset: 9%; border: 1px solid rgba(25,121,151,.28); border-radius: 50%; }
.orbit-two { inset: 26%; border-style: dashed; }
.node { position: absolute; min-width: 76px; padding: .42rem .55rem; border: 1px solid var(--line); background: rgba(247,250,252,.92); box-shadow: 0 8px 24px rgba(28,62,73,.08); color: var(--muted); font: 700 .58rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; text-align: center; }
.node::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--glacier); box-shadow: 0 0 0 3px rgba(80,190,197,.15); }
.node.acquisition { top: 7%; left: 38%; }.node.processing { top: 43%; right: -1%; }.node.review { bottom: 7%; left: 38%; }.node.evidence { top: 43%; left: -2%; }

.role-section { padding: 4.5rem 0; border-top: 1px solid var(--line); }
.role-heading { align-items: end; }
.role-heading > p { max-width: 360px; line-height: 1.5; text-align: right; }
.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.role-card { position: relative; min-height: 330px; display: flex; flex-direction: column; padding: 1.35rem; background: var(--surface); }
.role-card.is-current { background: linear-gradient(150deg, #fff, rgba(214,240,241,.86)); }
.role-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--teal); font: 750 .66rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.role-card-top > span { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(25,121,151,.38); border-radius: 50%; }
.role-card-top code { color: #71868d; font-size: .62rem; }
.role-card h3 { margin: 2.2rem 0 .65rem; font-size: 1.55rem; font-weight: 650; letter-spacing: -.035em; }
.role-card p { margin: 0; color: #50656d; font-size: .88rem; line-height: 1.6; }
.role-card .role-label { position: absolute; top: 3.4rem; color: var(--teal); font: 800 .58rem ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.role-card a { margin-top: auto; padding-top: 2rem; color: var(--teal); font-size: .8rem; font-weight: 800; text-decoration: none; }
.role-card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.role-help { margin: 1rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.role-help code { color: var(--basalt); }

.applications { padding: 4.5rem 0 3.5rem; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.8rem; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 620; letter-spacing: -.05em; }
.section-heading > p { display: flex; align-items: center; gap: .55rem; margin: 0 0 .35rem; color: var(--muted); font-size: .78rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #97a5aa; box-shadow: 0 0 0 4px rgba(151,165,170,.13); }
.status-dot.healthy { background: #3f8b6c; box-shadow: 0 0 0 4px rgba(63,139,108,.13); }
.status-dot.degraded { background: #ba7b35; box-shadow: 0 0 0 4px rgba(186,123,53,.13); }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.app-card { min-height: 280px; display: flex; flex-direction: column; padding: 1.55rem; background: var(--surface); }
.app-card.featured { background: linear-gradient(145deg, white, rgba(214,240,241,.8)); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.app-kind { color: var(--teal); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.service-state { display: inline-flex; align-items: center; gap: .38rem; color: var(--muted); font: 650 .63rem ui-monospace, monospace; }
.service-state i { width: 6px; height: 6px; border-radius: 50%; background: #97a5aa; }
.service-state.online i { background: #3f8b6c; box-shadow: 0 0 0 3px rgba(63,139,108,.12); }
.service-state.offline i { background: #ba7b35; box-shadow: 0 0 0 3px rgba(186,123,53,.12); }
.app-card h3 { margin: 2.1rem 0 .65rem; font-size: 2rem; font-weight: 640; letter-spacing: -.045em; }
.app-card p { max-width: 540px; margin: 0; color: #50656d; line-height: 1.6; }
.card-footer { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 2rem; }
.card-footer a { color: var(--teal); font-size: .84rem; font-weight: 800; text-decoration: none; }
.card-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }.card-footer a span { margin-left: .3rem; }
.card-footer code { color: #74878e; font-size: .7rem; }
.explore-section { padding: 4.5rem 0; border-top: 1px solid var(--line); }
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.explore-grid article { padding: 1.4rem 0 0; border-top: 2px solid var(--glacier); }
.explore-grid article > span { color: var(--teal); font: 800 .63rem ui-monospace, monospace; letter-spacing: .1em; }
.explore-grid h3 { margin: 1rem 0 .45rem; font-size: 1.18rem; }
.explore-grid p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.demo-note { display: grid; grid-template-columns: 155px 1fr; gap: 1.4rem; margin: 0 0 4rem; padding: 1.5rem; border-left: 3px solid var(--glacier); background: rgba(231,238,242,.7); }
.demo-note > span { padding-top: .25rem; color: var(--teal); font: 800 .66rem ui-monospace, monospace; letter-spacing: .1em; }
.demo-note h2 { margin: 0 0 .7rem; font-size: 1.25rem; }
.demo-note ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.final-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3rem; margin: 0 0 4.5rem; padding: 3rem; background: linear-gradient(135deg, rgba(25,121,151,.1), rgba(80,190,197,.16)); border: 1px solid rgba(25,121,151,.22); }
.final-cta h2 { max-width: 680px; margin: 0; font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 620; letter-spacing: -.045em; }
.final-cta > div > p:last-child { max-width: 680px; margin: 1rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.final-cta .hero-actions { justify-content: end; margin: 0; }
footer { min-height: 90px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }

@media (max-width: 820px) {
  .site-header { min-height: 76px; }.site-header nav { gap: 1rem; }.site-header nav a:last-child { display: none; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 4rem; }.system-map { max-width: 360px; justify-self: center; }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.app-grid { grid-template-columns: 1fr; }.section-heading { align-items: start; flex-direction: column; }.role-heading > p { text-align: left; }.demo-note { grid-template-columns: 1fr; }.final-cta { grid-template-columns: 1fr; }.final-cta .hero-actions { justify-content: start; }
}
@media (max-width: 520px) {
  .site-header, main, footer { width: min(100% - 1.5rem, 1180px); }.brand strong { font-size: .95rem; }.site-header nav a { font-size: .75rem; }
  h1 { font-size: 3.2rem; }.hero { min-height: 0; padding: 3.5rem 0; }.system-map { width: 88%; }.node { min-width: 67px; font-size: .52rem; }
  .role-grid, .explore-grid { grid-template-columns: 1fr; }.role-card { min-height: 280px; }.app-card { min-height: 300px; }.card-footer { align-items: start; flex-direction: column; }.demo-note { margin-bottom: 2rem; }.final-cta { padding: 1.5rem; }footer { align-items: start; flex-direction: column; justify-content: center; gap: .25rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
