:root {
  color-scheme: dark;
  --bg: #03050a;
  --bg-2: #060913;
  --ink: #f7f9ff;
  --muted: #a7b2c7;
  --dim: #667089;
  --line: rgba(255, 255, 255, 0.105);
  --line-strong: rgba(125, 158, 255, 0.32);
  --panel: rgba(12, 17, 29, 0.68);
  --panel-strong: rgba(14, 20, 34, 0.86);
  --blue: #5f86ff;
  --cyan: #5de7ff;
  --violet: #9b6dff;
  --green: #69f2ac;
  --radius: 8px;
  --max: 1180px;
  --shadow: 0 32px 110px rgba(0, 0, 0, 0.56);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 4%, rgba(86, 120, 255, 0.28), transparent 30rem),
    radial-gradient(circle at 18% 22%, rgba(155, 109, 255, 0.18), transparent 28rem),
    linear-gradient(180deg, #070b14 0%, var(--bg) 36%, #010308 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 76%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.028), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 34rem);
}

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

button {
  font: inherit;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 360px;
  height: 360px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(92, 128, 255, 0.16), rgba(155, 109, 255, 0.08) 34%, transparent 66%);
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 240ms ease;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 120;
  padding: 10px 14px;
  color: #04101b;
  background: var(--ink);
  border-radius: var(--radius);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(3, 5, 10, 0.76);
  border-color: var(--line);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
}

.nav,
.section-wrap,
.site-footer {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

.nav {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #f4f8ff;
  background:
    linear-gradient(135deg, rgba(93, 231, 255, 0.18), rgba(155, 109, 255, 0.15)),
    rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 36px rgba(76, 112, 255, 0.16);
  font-size: 12px;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 14px;
  font-weight: 720;
}

.brand-copy span {
  color: var(--dim);
  font-size: 12px;
}

.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-menu a {
  min-height: 40px;
  padding: 10px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.052);
  border-color: var(--line);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle span + span {
  margin-top: 6px;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 82% 38%, rgba(92, 128, 255, 0.26), transparent 26rem),
    linear-gradient(180deg, transparent, rgba(3, 5, 10, 0.74) 82%);
}

.hero-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100svh - 78px);
  padding: 72px 0 86px;
}

.micro-tag {
  margin: 0 0 18px;
  color: #97aaff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(62px, 9.2vw, 132px);
  font-weight: 760;
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(42px, 6.2vw, 82px);
  font-weight: 730;
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

h4 {
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.08;
}

.hero-subhead {
  max-width: 720px;
  margin-bottom: 20px;
  color: #dfe7f8;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.16;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 19px;
}

.button,
.product-card a,
.static-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 15px;
  color: #dce5f8;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 720;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible,
.product-card a:hover,
.product-card a:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-2px);
}

.button-primary {
  color: #04101b;
  background: linear-gradient(135deg, #f7fbff, #aebfff);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 48px rgba(90, 126, 255, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: #04101b;
  background: linear-gradient(135deg, #ffffff, #c7d5ff);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}

.authority-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 900px;
  margin: 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.authority-row div {
  min-height: 104px;
  padding: 18px;
  background: rgba(8, 12, 21, 0.74);
}

.authority-row dt {
  margin-bottom: 7px;
  color: #f3f7ff;
  font-size: 20px;
  font-weight: 800;
}

.authority-row dd {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
}

.os-dashboard {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.038)),
    rgba(9, 13, 23, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.os-dashboard::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(93, 231, 255, 0.13), transparent 30%),
    radial-gradient(circle at 70% 10%, rgba(155, 109, 255, 0.22), transparent 20rem);
}

.os-dashboard > * {
  position: relative;
  z-index: 1;
}

.dashboard-header,
.product-meta,
.site-footer,
.footer-links {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.dashboard-kicker,
.mode-card span,
.dashboard-grid span,
.expansion-stack > span,
.principle-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-header h2 {
  margin: 0;
  font-size: 28px;
}

.live-indicator {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-indicator::before {
  width: 8px;
  height: 8px;
  content: "";
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 22px currentColor;
}

.mode-card,
.principle-card,
.dashboard-grid > div,
.expansion-stack {
  margin-top: 14px;
  padding: 18px;
  background: rgba(2, 5, 12, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.082);
  border-radius: var(--radius);
}

.mode-card strong,
.principle-card strong {
  font-size: 22px;
  line-height: 1.1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dashboard-grid strong {
  font-size: 48px;
  line-height: 0.9;
}

.expansion-stack div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.expansion-stack b {
  padding: 8px 10px;
  color: #e8efff;
  background: rgba(255, 255, 255, 0.058);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}

.section {
  padding: 128px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 19px;
}

.ecosystem-group {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.ecosystem-group:last-child {
  border-bottom: 1px solid var(--line);
}

.group-label {
  position: sticky;
  top: 104px;
  height: fit-content;
}

.group-label span,
.identity-card span,
.surface-card span,
.timeline-year {
  color: #8ea4ff;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.group-label h3 {
  margin-top: 10px;
  font-size: 28px;
}

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

.product-grid.single {
  grid-template-columns: minmax(0, 0.5fr);
}

.product-card,
.identity-card,
.timeline-card,
.lab-panel,
.surface-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.073), rgba(255, 255, 255, 0.032)),
    rgba(8, 12, 22, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 76px rgba(0, 0, 0, 0.34);
}

.product-card::before,
.identity-card::before,
.timeline-card::before,
.lab-panel::before,
.surface-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(93, 231, 255, 0.12), transparent 34%, rgba(155, 109, 255, 0.12));
  opacity: 0;
  transition: opacity 220ms ease;
}

.product-card:hover::before,
.identity-card:hover::before,
.lab-panel:hover::before,
.surface-card:hover::before {
  opacity: 1;
}

.product-card {
  display: flex;
  min-height: 286px;
  padding: 22px;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  transform: translateY(-6px);
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.product-meta span {
  padding: 6px 8px;
  color: #bdcafd;
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card p,
.identity-card p,
.surface-card p {
  color: var(--muted);
}

.product-card a,
.static-link {
  width: fit-content;
  margin-top: 22px;
}

.product-card a::after,
.surface-card::after {
  content: " ->";
  color: var(--cyan);
}

.product-muted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.024)),
    rgba(6, 10, 18, 0.64);
}

.static-link {
  color: var(--dim);
}

.timeline-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 46px;
  align-items: start;
}

.timeline-card {
  padding: 30px;
}

.timeline-card::before {
  opacity: 1;
  background:
    radial-gradient(circle at 86% 0%, rgba(95, 134, 255, 0.18), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
}

.timeline-year {
  margin-bottom: 24px;
  color: #dce5ff;
  font-size: 15px;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 18px 24px;
  border-top: 1px solid var(--line);
}

.timeline-list li::before {
  position: absolute;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(95, 134, 255, 0.75);
}

.timeline-list span {
  color: #edf3ff;
  font-weight: 720;
}

.timeline-list b {
  color: var(--dim);
  font-size: 12px;
  text-align: right;
  text-transform: uppercase;
}

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

.identity-card {
  min-height: 360px;
  padding: 26px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.identity-card:hover,
.surface-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-5px);
}

.identity-card > *,
.surface-card > *,
.lab-panel > * {
  position: relative;
  z-index: 1;
}

.identity-card h3 {
  margin-top: 72px;
  font-size: clamp(25px, 3vw, 34px);
}

.lab-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 44px;
  align-items: center;
  padding: clamp(30px, 5.2vw, 58px);
}

.lab-copy p:last-child {
  max-width: 520px;
  color: var(--muted);
  font-size: 20px;
}

.tag-field {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.tag-field span {
  padding: 10px 12px;
  color: #dce6ff;
  background: rgba(255, 255, 255, 0.052);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.surface-card {
  display: grid;
  min-height: 230px;
  padding: 24px;
  align-content: space-between;
  transition: transform 220ms ease, border-color 220ms ease;
}

.surface-card strong {
  font-size: 28px;
  line-height: 1.05;
}

.site-footer {
  padding: 38px 0 54px;
  color: var(--dim);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0 0 4px;
  color: var(--muted);
}

.site-footer span {
  font-size: 14px;
}

.footer-links {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

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

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

@media (max-width: 1020px) {
  .hero-wrap,
  .timeline-wrap,
  .lab-panel {
    grid-template-columns: 1fr;
  }

  .ecosystem-group {
    grid-template-columns: 1fr;
  }

  .group-label {
    position: static;
  }

  .product-grid.single {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    left: 18px;
    display: grid;
    gap: 4px;
    padding: 10px;
    background: rgba(4, 7, 13, 0.94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
    backdrop-filter: blur(22px);
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    width: 100%;
  }

  .hero-wrap {
    min-height: auto;
    padding: 64px 0 74px;
  }

  .section {
    padding: 86px 0;
  }

  h1 {
    font-size: clamp(52px, 15vw, 86px);
  }

  h2 {
    font-size: clamp(38px, 11vw, 62px);
  }

  .authority-row,
  .product-grid,
  .identity-grid,
  .surface-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .identity-card {
    min-height: 280px;
  }

  .identity-card h3 {
    margin-top: 48px;
  }

  .tag-field {
    justify-content: flex-start;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav,
  .section-wrap,
  .site-footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand-copy strong {
    max-width: 168px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-actions .button {
    width: 100%;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .timeline-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-list b {
    text-align: left;
  }
}

@media (hover: none) {
  .cursor-glow {
    display: none;
  }
}

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

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