:root {
  --bg: #06101d;
  --bg-soft: #0a1727;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: #101f32;
  --text: #f4f8fc;
  --muted: #aebed0;
  --line: rgba(255, 255, 255, 0.12);
  --brand: #1687ff;
  --brand-strong: #36a1ff;
  --brand-soft: rgba(22, 135, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --max: 1180px;
}

html[data-theme="light"] {
  --bg: #f6f9fc;
  --bg-soft: #eef4fa;
  --surface: rgba(7, 24, 42, 0.055);
  --surface-strong: #ffffff;
  --text: #071526;
  --muted: #52657a;
  --line: rgba(7, 24, 42, 0.13);
  --brand-soft: rgba(22, 135, 255, 0.1);
  --shadow: 0 24px 70px rgba(31, 52, 73, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 5%, rgba(22, 135, 255, 0.13), transparent 28rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
ul { padding-left: 1.1rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: 0; }
h1 { font-size: clamp(2.8rem, 7vw, 6.2rem); max-width: 12ch; }
h2 { font-size: clamp(2.1rem, 4vw, 4rem); max-width: 17ch; }
h3 { font-size: 1.35rem; }
p { color: var(--muted); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 1000;
  background: var(--brand); color: white; padding: .8rem 1rem; border-radius: 10px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  min-height: 78px; display: flex; align-items: center; gap: 1rem;
  padding: 0 4vw; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; min-width: max-content; }
.brand-logo {
  width: 54px; height: 54px; border-radius: 14px; object-fit: cover;
  border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.35rem; font-size: .93rem; }
.nav a:not(.nav-cta):hover { color: var(--brand-strong); }
.nav-cta { background: var(--brand); color: #fff; padding: .72rem 1rem; border-radius: 999px; font-weight: 800; }
.theme-toggle, .menu-toggle {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer;
}
.theme-toggle .icon {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.menu-toggle { display: none; }
.menu-toggle span {
  width: 18px; height: 2px; background: currentColor; display: block;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero {
  width: min(var(--max), 92vw); margin: 0 auto; min-height: calc(100vh - 78px);
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 6vw;
  padding: 7rem 0;
}
.hero > *, .split > *, .ecosystem > *, .contact > * { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--brand-strong); font-size: .78rem; font-weight: 900; letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--brand); }
.brand-signature-hero {
  display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem;
  color: var(--brand-strong); font-size: clamp(.9rem, 1.2vw, 1.08rem);
  font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
}
.brand-signature-hero::before {
  content: ""; width: 44px; height: 2px; flex: 0 0 auto;
  background: linear-gradient(90deg, var(--brand), transparent);
}
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); max-width: 60ch; }
.hero-note { font-size: .88rem; margin-top: 1.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .85rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--line); font-weight: 850; cursor: pointer;
}
.button.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 12px 30px rgba(22,135,255,.22); }
.button.primary:hover { transform: translateY(-2px); background: var(--brand-strong); }
.button.secondary { background: var(--surface); }
.button.secondary:hover { border-color: var(--brand); }

.hero-visual {
  position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%;
  background: radial-gradient(circle, var(--brand-soft), transparent 62%);
  box-shadow: inset 0 0 80px rgba(22,135,255,.08), var(--shadow);
}
.orbit { position: absolute; inset: 16%; border: 1px dashed rgba(54,161,255,.45); border-radius: 50%; }
.orbit-two { inset: 31%; transform: rotate(28deg); }
.core {
  position: absolute; inset: 37%; display: grid; place-items: center; text-align: center;
  border-radius: 50%; background: var(--surface-strong); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.core strong { font-size: 1.6rem; letter-spacing: .08em; }
.core span { font-size: .65rem; color: var(--muted); }
.node {
  position: absolute; padding: .55rem .8rem; border-radius: 999px;
  background: var(--surface-strong); border: 1px solid var(--line); font-size: .78rem; font-weight: 800;
}
.node-a { top: 8%; left: 39%; }.node-b { top: 29%; right: -2%; }.node-c { bottom: 23%; right: 3%; }
.node-d { bottom: 5%; left: 40%; }.node-e { bottom: 25%; left: -2%; }.node-f { top: 28%; left: -3%; }

.capability-strip {
  border-block: 1px solid var(--line); display: flex; gap: 2rem; overflow: hidden;
  padding: 1.1rem 4vw; color: var(--muted); font-weight: 800; white-space: nowrap;
  background: var(--surface);
}
.capability-strip span::after { content: "•"; color: var(--brand); margin-left: 2rem; }

.section { width: min(var(--max), 92vw); margin: 0 auto; padding: 7rem 0; }
.section-heading { max-width: 760px; margin-bottom: 3.2rem; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.centered h2 { margin-inline: auto; }
.legal-page { max-width: 820px; }
.legal-page h1 { max-width: 100%; margin-top: 1.5rem; }
.legal-page h2 { max-width: 100%; margin-top: 2.4rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.legal-page a:not(.eyebrow) { color: var(--brand-strong); text-decoration: underline; text-underline-offset: .2em; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; align-items: start; }
.prose { font-size: 1.08rem; }
blockquote {
  margin: 2rem 0 0; padding: 1.25rem 1.4rem; border-left: 4px solid var(--brand);
  background: var(--brand-soft); border-radius: 0 14px 14px 0; font-weight: 850;
}

.brand-concept { border-top: 1px solid var(--line); }
.concept-grid {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: 1rem;
}
.concept-grid::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 3.2rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.concept-card {
  position: relative; z-index: 1; min-height: 320px; padding: 1.7rem;
  background: linear-gradient(180deg, var(--surface), rgba(22, 135, 255, .045));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
}
.concept-step {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1.4rem;
  color: #fff; background: var(--brand); border-radius: 999px; font-size: .8rem; font-weight: 900;
  box-shadow: 0 0 0 8px var(--bg), 0 12px 28px rgba(22,135,255,.24);
}
.concept-card h3 { margin-bottom: .8rem; }
.concept-card sup, .concept-equation sup { font-size: .55em; line-height: 0; }
.concept-card strong { display: block; margin-bottom: 1rem; color: var(--text); font-size: 1.02rem; }
.concept-card p { margin-bottom: 0; }
.concept-equation {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch; gap: .75rem; margin-top: 2rem;
}
.concept-equation div {
  min-height: 112px; padding: 1rem; display: grid; align-content: center; gap: .35rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
}
.concept-equation span { color: var(--text); font-weight: 900; }
.concept-equation small { color: var(--muted); line-height: 1.45; }
.concept-equation b {
  display: grid; place-items: center; color: var(--brand-strong); font-size: 1.35rem;
}
.concept-equation .equation-result {
  background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 48%, var(--line));
}
.brand-manifest {
  margin-top: 1rem; padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-soft), var(--surface));
}
.brand-manifest p:first-child { color: var(--text); font-size: 1.08rem; font-weight: 850; }
.brand-manifest p:last-child { margin-bottom: 0; }

.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card, .mini-card, .product-card, .ecosystem-column, .difference-grid article {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: 0 12px 40px rgba(0,0,0,.06);
}
.card { min-height: 350px; }
.card-index { color: var(--brand-strong); font-weight: 900; }
.card li { color: var(--muted); margin: .55rem 0; }

.portfolio-band {
  width: 100%; padding-inline: max(4vw, calc((100vw - var(--max)) / 2));
  background: linear-gradient(135deg, var(--bg-soft), color-mix(in srgb, var(--bg-soft) 85%, var(--brand)));
  border-block: 1px solid var(--line);
}
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: .65rem; margin: 2.5rem 0; }
.flow div { min-height: 110px; padding: 1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.flow span { display: block; color: var(--brand); font-weight: 900; }
.flow i { color: var(--brand); font-style: normal; font-size: 1.4rem; }
.feature-grid, .difference-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.steps article { background: var(--bg); padding: 1.7rem; min-height: 190px; }
.steps span { color: var(--brand); font-weight: 900; }

.ecosystem { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5vw; align-items: start; }
.ecosystem-grid { display: grid; gap: 1rem; }
.ecosystem-column > span, .status {
  display: inline-flex; padding: .35rem .65rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-strong); font-size: .72rem; font-weight: 900;
}
.ecosystem-column li { color: var(--muted); margin: .35rem 0; }

.roadmap { border-top: 1px solid var(--line); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.product-card { min-height: 235px; }
.status { margin-bottom: 1.2rem; }
.difference-grid article { min-height: 180px; }

.final-cta {
  width: min(var(--max), 92vw); margin: 0 auto 4rem; padding: 4rem;
  display: flex; align-items: end; justify-content: space-between; gap: 2rem;
  background: linear-gradient(135deg, var(--brand-soft), var(--surface));
  border: 1px solid var(--line); border-radius: 32px;
}
.final-cta h2 { max-width: 20ch; }

.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 6vw; }
.contact-links { display: grid; gap: .75rem; margin-top: 2rem; }
.contact-links a { border: 1px solid var(--line); padding: 1rem; border-radius: 14px; }
.contact-links span { display: block; color: var(--brand); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.contact-form {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem;
}
.contact-form label { display: grid; gap: .4rem; font-weight: 750; font-size: .85rem; }
.contact-form label:nth-last-of-type(1), .contact-form label:nth-last-of-type(2), .contact-form .button, .form-note { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: .85rem;
  background: var(--bg); color: var(--text);
}
textarea { resize: vertical; }
.form-note { font-size: .75rem; margin: 0; }

.footer {
  border-top: 1px solid var(--line); padding: 3rem 4vw;
  display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 2rem;
}
.footer p { margin-bottom: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .86rem; }
.footer-brand-copy { display: grid; gap: .25rem; margin-top: 1rem; max-width: 360px; }
.footer-brand-copy strong { font-size: 1rem; letter-spacing: .08em; }
.footer-brand-copy span { color: var(--text); font-weight: 850; }
.footer-brand-copy p { font-size: .88rem; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; margin-left: auto; }
  .nav {
    position: fixed; inset: 78px 0 auto 0; display: none; flex-direction: column; align-items: stretch;
    max-height: calc(100vh - 78px); overflow-y: auto;
    padding: 1rem 4vw 1.5rem; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: .75rem 0; }
  .nav-cta { text-align: center; }
  .theme-toggle { order: 3; }
  .hero, .split, .ecosystem, .contact { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .hero-visual { max-width: 620px; width: 100%; margin-inline: auto; }
  .concept-grid { grid-template-columns: 1fr; }
  .concept-grid::before { left: 22px; right: auto; top: 2rem; bottom: 2rem; width: 1px; height: auto; }
  .concept-card { min-height: auto; }
  .concept-equation { grid-template-columns: 1fr; }
  .concept-equation b { min-height: 1rem; }
  .flow { grid-template-columns: 1fr; }
  .flow i { transform: rotate(90deg); justify-self: center; }
  .feature-grid, .difference-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 680px) {
  h1 { font-size: clamp(2.55rem, 13vw, 4.2rem); }
  .site-header { padding-inline: 1rem; }
  .eyebrow { max-width: 100%; flex-wrap: wrap; }
  .brand-signature-hero { letter-spacing: .08em; }
  .brand-signature-hero::before { width: 28px; }
  .hero, .section, .final-cta { width: min(calc(100% - 2rem), var(--max)); }
  .hero { min-height: auto; padding-block: 4rem; }
  .hero-visual { aspect-ratio: 1; min-height: 320px; overflow: hidden; }
  .node { font-size: .62rem; padding: .4rem .55rem; }
  .node-b, .node-c { right: 1%; }
  .node-e, .node-f { left: 1%; }
  .pillar-grid, .feature-grid, .steps, .product-grid, .difference-grid { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .final-cta { padding: 2rem; align-items: stretch; flex-direction: column; }
  .contact-form { grid-template-columns: 1fr; padding: 1rem; }
  .contact-form label { grid-column: 1 / -1; }
  .brand-manifest { padding: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal, .reveal { opacity: 1; transform: none; }
}
