:root {
  --ink: #eaf3ff;
  --muted: #94a8c2;
  --soft: #6f86a3;
  --bg: #040914;
  --bg-raised: #081321;
  --panel: rgba(10, 24, 40, 0.88);
  --panel-strong: #0b1b2d;
  --line: rgba(147, 190, 232, 0.16);
  --line-strong: rgba(89, 189, 255, 0.38);
  --blue: #5bbdff;
  --cyan: #5ce1d3;
  --magenta: #e85aad;
  --amber: #f7bd63;
  --violet: #ad9cff;
  --green: #7ee2a8;
  --danger: #ff8c96;
  --max: 1180px;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 4%, rgba(41, 123, 189, 0.15), transparent 30rem),
    radial-gradient(circle at 8% 32%, rgba(66, 206, 190, 0.07), transparent 26rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(91, 189, 255, 0.75);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 50;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #04101d;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(147, 190, 232, 0.11);
  background: rgba(4, 9, 20, 0.84);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(calc(100% - 36px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--blue);
  background: rgba(91, 189, 255, 0.08);
  font-size: 16px;
  letter-spacing: 0;
}

.horizon-brand-logo {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(91, 189, 255, 0.34);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(31, 172, 222, 0.14);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand-copy small {
  color: var(--soft);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: #03101d;
  border-color: transparent;
  background: linear-gradient(135deg, #82d1ff, #51b1f1);
  box-shadow: 0 10px 32px rgba(50, 160, 232, 0.18);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
}

.button-secondary:hover { border-color: var(--line-strong); }

.container {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

.hero {
  padding: 100px 0 68px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.052em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.lead {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.55;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-note {
  margin-top: 24px;
  color: var(--soft);
  font-size: 13px;
}

.system-map {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(15, 38, 61, 0.9), rgba(5, 14, 27, 0.96));
  box-shadow: var(--shadow);
}

.system-map::before {
  content: "HORIZON TRUST PATH";
  display: block;
  margin-bottom: 18px;
  color: var(--soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}

.hero-brand-lockup img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid rgba(91, 189, 255, 0.3);
  border-radius: 16px;
}

.hero-brand-lockup strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.hero-brand-lockup span {
  color: var(--soft);
  font-size: 12px;
}

.signal-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.signal-row:first-of-type { border-top: 0; }

.signal-index {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.signal-copy strong { display: block; font-size: 14px; }
.signal-copy span { color: var(--soft); font-size: 12px; }

.signal-product {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.section { padding: 86px 0; }
.section-compact { padding: 48px 0; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.55fr);
  justify-content: space-between;
  align-items: end;
  gap: 48px;
  margin-bottom: 38px;
}

.section-heading p,
.muted { color: var(--muted); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.product-card {
  --accent: var(--blue);
  grid-column: span 6;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-top-color: color-mix(in srgb, var(--accent) 52%, transparent);
  border-radius: var(--radius);
  background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 8%, var(--panel)), var(--panel));
}

.product-card.large { grid-column: span 7; }
.product-card.small { grid-column: span 5; }
.product-card.cora { --accent: var(--blue); }
.product-card.mira { --accent: var(--violet); }
.product-card.kira { --accent: var(--amber); }
.product-card.vera { --accent: var(--green); }
.product-card.aura { --accent: var(--magenta); }

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 42px;
}

.product-name {
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.product-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-lockup {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.product-lockup small,
.product-brand-copy small {
  color: var(--soft);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.07em;
}

.product-logo {
  width: auto;
  max-width: 154px;
  height: 34px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.product-logo.on-white {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.product-logo.logo-crop {
  width: 174px;
  max-width: 174px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
  object-position: center;
}

.product-wordmark {
  color: var(--accent, var(--product-accent));
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.product-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.product-brand-logo {
  width: auto;
  max-width: 156px;
  height: 36px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.product-brand-logo.on-white {
  height: 38px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
}

.product-brand-logo.logo-crop {
  width: 168px;
  max-width: 168px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
  object-position: center;
}

.product-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.product-brand-copy strong {
  color: var(--product-accent);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 68%, transparent);
}

.product-card p { color: var(--muted); }
.product-card .card-actions { margin-top: auto; padding-top: 22px; }

.text-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.text-link:hover { color: var(--accent); }

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 19, 33, 0.62);
}

.principle-grid,
.feature-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.principle,
.feature,
.detail-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
}

.principle-index {
  display: block;
  margin-bottom: 32px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.principle p,
.feature p,
.detail-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.evidence-layout,
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: 64px;
}

.evidence-stack {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.evidence-level {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
}

.evidence-level:first-child { border-top: 0; }
.evidence-level strong { color: var(--cyan); }
.evidence-level p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.research-card,
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 68px);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(20, 53, 81, 0.72), rgba(7, 17, 31, 0.95));
  box-shadow: var(--shadow);
}

.research-card p,
.cta-panel p { max-width: 780px; color: var(--muted); }

.stage-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.stage {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(1, 8, 16, 0.28);
}

.stage strong { display: block; margin-bottom: 5px; font-size: 13px; }
.stage span { color: var(--soft); font-size: 12px; }

.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}

.footer-row p { color: var(--soft); font-size: 13px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--ink); }

/* Product detail pages */
.product-page { --product-accent: var(--blue); }
.product-page.mira-page { --product-accent: var(--violet); }
.product-page.kira-page { --product-accent: var(--amber); }
.product-page.vera-page { --product-accent: var(--green); }
.product-page.aura-page { --product-accent: var(--magenta); }

.product-page .eyebrow,
.product-page .principle-index { color: var(--product-accent); }

.product-page .button-primary {
  background: linear-gradient(135deg, color-mix(in srgb, var(--product-accent) 72%, white), var(--product-accent));
}

.product-hero {
  padding: 96px 0 66px;
}

.product-hero h1 { max-width: 940px; }
.product-hero .lead { max-width: 820px; }

.product-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  font-weight: 700;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.flow-step {
  min-height: 146px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.flow-step span {
  display: block;
  margin-bottom: 28px;
  color: var(--product-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.flow-step strong { display: block; font-size: 14px; }
.flow-step small { display: block; margin-top: 5px; color: var(--soft); }

.callout {
  padding: 28px;
  border-left: 2px solid var(--product-accent);
  background: color-mix(in srgb, var(--product-accent) 6%, transparent);
}

.callout strong { display: block; margin-bottom: 8px; }
.callout p { margin-bottom: 0; color: var(--muted); }

.boundary-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.boundary-list li {
  position: relative;
  padding: 13px 0 13px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.boundary-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--product-accent);
}

@media (max-width: 920px) {
  .hero-grid,
  .evidence-layout,
  .split,
  .section-heading { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .product-card,
  .product-card.large,
  .product-card.small { grid-column: span 12; }
  .principle-grid,
  .feature-grid,
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .stage-list { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 690px) {
  .nav { min-height: 64px; }
  .nav-links a:not(.button) { display: none; }
  .hero,
  .product-hero { padding-top: 70px; }
  .section { padding: 66px 0; }
  .principle-grid,
  .feature-grid,
  .detail-grid,
  .stage-list,
  .flow { grid-template-columns: 1fr; }
  .system-map { padding: 18px; }
  .signal-row { grid-template-columns: 44px 1fr; }
  .signal-product { grid-column: 2; justify-self: start; }
  .footer-row { flex-direction: column; }
  .product-logo { max-width: 120px; height: 30px; }
  .product-logo.logo-crop { width: 134px; max-width: 134px; height: 32px; }
  .product-brand-logo.logo-crop { width: 138px; max-width: 138px; height: 34px; }
  .status { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
