:root {
  --navy: #0A1428;
  --navy-2: #101D36;
  --bg: #FFFFFF;
  --bg-2: #F4F6F9;
  --text: #0A1428;
  --muted: #5B6578;
  --line: #E2E6ED;
  --line-dark: rgba(255, 255, 255, .12);
  --blue: #2F6BFF;
  --blue-2: #1F55E0;
  --bg-mark: #FFFFFF;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 17px; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; }
.blue { color: var(--blue); }
.arr { display: inline-block; transition: transform .3s var(--ease); }

/* progress */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 100; }
.progress span { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; border-bottom: 1px solid var(--line-dark); transition: background .35s, color .35s, border-color .35s; }
.nav-inner { display: flex; align-items: center; gap: 40px; height: 72px; }
.nav.scrolled { background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); color: var(--text); border-color: var(--line); }
.nav.scrolled { --bg-mark: #fff; }
.nav:not(.scrolled) { --bg-mark: var(--navy); }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; font-size: 1.22rem; letter-spacing: -.02em; }
.nav .brand svg rect:first-child { fill: currentColor; }
.links { display: flex; gap: 34px; margin-left: auto; font-size: .9rem; font-weight: 500; }
.links a { position: relative; opacity: .75; transition: opacity .2s; padding: 26px 0; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .35s var(--ease); }
.links a:hover, .links a.active { opacity: 1; }
.links a.active::after { transform: scaleX(1); }
.burger { display: none; background: none; border: 0; width: 32px; height: 32px; cursor: pointer; color: inherit; position: relative; }
.burger span { position: absolute; left: 5px; right: 5px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.burger span:first-child { top: 11px; } .burger span:last-child { top: 19px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; background: var(--blue); color: #fff; font-weight: 500; font-size: .95rem; border-radius: 4px; transition: background .25s, box-shadow .25s; }
.btn:hover { background: var(--blue-2); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: .86rem; }
.btn-line { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.btn-line:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #E8EEFF; }

/* type */
.label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; background: var(--blue); }
.display { font-family: var(--display); font-weight: 600; font-size: clamp(2.7rem, 5.4vw, 5.1rem); line-height: 1.02; letter-spacing: -.04em; margin-top: 28px; }
.display-sm { font-family: var(--display); font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.04; letter-spacing: -.04em; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 3.9vw, 3.3rem); line-height: 1.06; letter-spacing: -.035em; }
.h2.narrow { max-width: 860px; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.2rem); max-width: 540px; color: rgba(255,255,255,.7); margin-top: 32px; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; background: var(--navy); color: #fff; overflow: hidden; padding: 140px 0 110px; }
.hero .label { color: rgba(255,255,255,.65); }
.hero-lines { position: absolute; inset: 0; display: flex; justify-content: space-between; max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); pointer-events: none; }
.hero-lines i { width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.07) 30%, rgba(255,255,255,.07) 70%, transparent); }
.hero::after { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; background: radial-gradient(circle, rgba(47,107,255,.28), transparent 62%); transform: translateY(var(--pg, 0)); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { white-space: nowrap; display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.line:nth-child(2) > span { animation-delay: .1s; }
.line:nth-child(3) > span { animation-delay: .2s; }
@keyframes rise { to { transform: none; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

/* console */
.console { background: #fff; color: var(--text); border-radius: 8px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; transform: translateY(var(--pc, 0)); }
.console-bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.console-bar span { width: 9px; height: 9px; border-radius: 50%; background: #D3D8E1; }
.console-bar em { margin-left: 12px; font-family: var(--mono); font-style: normal; font-size: .72rem; color: var(--muted); }
.console-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; padding: 22px; }
.c-doc { position: relative; border: 1px solid var(--line); border-radius: 4px; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.c-doc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.c-doc-head b { font-family: var(--display); font-size: .8rem; letter-spacing: .08em; }
.c-doc-head small { font-family: var(--mono); font-size: .62rem; color: var(--muted); }
.c-doc > span { height: 5px; background: var(--bg-2); border-radius: 2px; }
.c-doc > span.w60 { width: 60%; }
.c-doc-table { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.c-doc-table span { height: 14px; background: var(--bg-2); border-radius: 2px; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 40px; background: linear-gradient(to bottom, transparent, rgba(47,107,255,.18), transparent); border-bottom: 1px solid rgba(47,107,255,.6); animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateY(-40px); } 100% { transform: translateY(220px); } }
.c-fields { display: flex; flex-direction: column; gap: 12px; }
.c-field { display: grid; grid-template-columns: 1fr auto; row-gap: 5px; font-size: .8rem; }
.c-field small { color: var(--muted); font-size: .7rem; }
.c-field b { font-weight: 600; text-align: right; grid-row: span 1; }
.c-field i { grid-column: 1 / -1; height: 3px; background: var(--bg-2); position: relative; overflow: hidden; }
.c-field i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--blue); transform: scaleX(0); transform-origin: left; animation: bar 1.4s var(--ease) forwards; animation-delay: 1s; }
.c-field:nth-child(2) i::after { animation-delay: 1.15s; }
.c-field:nth-child(3) i::after { animation-delay: 1.3s; }
.c-field:nth-child(4) i::after { animation-delay: 1.45s; background: #F0A63A; }
@keyframes bar { to { transform: scaleX(1); } }
.c-status { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 9px 12px; background: #EEF8F1; color: #146C34; font-size: .76rem; font-weight: 500; border-radius: 3px; }
.c-status .ok { width: 7px; height: 7px; border-radius: 50%; background: #1E9E4A; }

/* facts */
.facts { border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 40px 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.fact:last-child { border-right: 1px solid var(--line); }
.fact small { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact b { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 3.6vw, 3rem); letter-spacing: -.04em; line-height: 1.1; }
.fact span { color: var(--muted); font-size: .9rem; }

/* sections */
.section { padding: clamp(96px, 12vw, 160px) 0; position: relative; }
.section.dark { background: var(--navy); color: #fff; }
.section.dark .label { color: rgba(255,255,255,.6); }
.section.soft { background: var(--bg-2); }
.sec-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.dark .sec-head { border-color: var(--line-dark); }
.sec-n { font-family: var(--mono); font-size: .76rem; font-weight: 500; color: var(--blue); }
.dark .sec-n { color: #7FA3FF; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.body-col p { color: var(--muted); font-size: 1.08rem; margin-bottom: 20px; }
.dark .body-col p { color: rgba(255,255,255,.65); }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border-top: 1px solid var(--line-dark); }
.pillar { padding: 36px 32px 8px 0; margin-right: 32px; position: relative; }
.pillar::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--blue); }
.pillar-n { font-family: var(--mono); font-size: .76rem; color: #7FA3FF; display: block; margin-bottom: 18px; }
.pillar h3 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: -.02em; margin-bottom: 12px; }
.pillar p { color: rgba(255,255,255,.62); font-size: .97rem; }

/* products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border: 1px solid var(--line); }
.product { padding: 36px 32px 40px; border-right: 1px solid var(--line); position: relative; transition: background .35s; }
.product:last-child { border-right: 0; }
.product::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.product:hover { background: var(--bg-2); }
.product:hover::before { transform: scaleX(1); }
.product-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 56px; color: var(--muted); }
.tag { font-size: .72rem; font-weight: 500; padding: 4px 10px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); background: #fff; }
.product h3 { font-family: var(--display); font-weight: 600; font-size: 1.9rem; letter-spacing: -.03em; }
.product-sub { color: var(--blue); font-weight: 500; font-size: .92rem; margin: 4px 0 18px; }
.product > p:not(.product-sub) { color: var(--muted); font-size: .96rem; }
.ticks { list-style: none; margin-top: 26px; font-size: .9rem; }
.ticks li { padding: 11px 0 11px 22px; border-top: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; background: var(--blue); }

/* principles */
.sticky-cols { align-items: start; }
.sticky { position: sticky; top: 120px; }
.step-meter { width: 100%; max-width: 320px; height: 2px; background: var(--line); margin-top: 40px; }
.step-meter span { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.steps { list-style: none; }
.step { display: grid; grid-template-columns: 64px 1fr; padding: 40px 0; border-top: 1px solid #D6DCE5; }
.step:last-child { border-bottom: 1px solid #D6DCE5; }
.step-n { font-family: var(--mono); font-size: .8rem; color: var(--blue); padding-top: 8px; }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; letter-spacing: -.025em; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 1.02rem; max-width: 520px; }

/* technology */
.flow { display: flex; align-items: stretch; margin: 72px 0 0; }
.flow-step { flex: 1; padding: 26px 24px; border: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 4px; background: var(--navy-2); }
.flow-step small { font-family: var(--mono); font-size: .7rem; color: rgba(255,255,255,.45); }
.flow-step span { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.02em; }
.flow-step em { font-style: normal; font-size: .82rem; color: rgba(255,255,255,.55); }
.flow-step.core { background: var(--blue); border-color: var(--blue); }
.flow-step.core small, .flow-step.core em { color: rgba(255,255,255,.8); }
.flow-line { flex: 0 0 48px; align-self: center; height: 1px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; }
.flow-line::after { content: ""; position: absolute; top: 0; left: -50%; width: 50%; height: 100%; background: #7FA3FF; animation: flow 1.8s linear infinite; }
@keyframes flow { to { left: 100%; } }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--line-dark); }
.tech { padding: 30px 28px 0 0; }
.tech h4 { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; margin-bottom: 8px; }
.tech p { color: rgba(255,255,255,.6); font-size: .93rem; }

/* registry */
.registry { margin-top: 48px; border: 1px solid var(--line); }
.registry dl { display: grid; grid-template-columns: repeat(4, 1fr); }
.registry dl > div { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.registry dl > div:nth-child(4) { border-right: 0; }
.registry dl > div.wide { grid-column: span 2; }
.registry dl > div.wide:last-child { border-right: 0; }
.registry dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.registry dd { font-size: 1.02rem; font-weight: 500; line-height: 1.55; }
.registry-link { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; font-weight: 500; transition: background .25s, color .25s; }
.registry-link:hover { background: var(--navy); color: #fff; }
.registry-link:hover .arr { transform: translate(3px, -3px); }

/* cta */
.cta { background: var(--blue); color: #fff; padding: clamp(80px, 10vw, 130px) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to left, #000, transparent 70%); -webkit-mask-image: linear-gradient(to left, #000, transparent 70%); }
.cta-inner { position: relative; display: grid; grid-template-columns: 1.4fr .6fr; gap: 48px; align-items: end; }
.cta-side p { color: rgba(255,255,255,.8); margin-bottom: 22px; }

/* footer */
.footer { background: var(--navy); color: #fff; padding: 72px 0 40px; --bg-mark: var(--navy); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer-cols { display: flex; gap: clamp(40px, 7vw, 96px); flex-wrap: wrap; }
.footer-cols h5 { font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer-cols a { display: block; font-size: .92rem; color: rgba(255,255,255,.8); margin-bottom: 10px; transition: color .2s; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { padding-top: 28px; display: flex; flex-direction: column; gap: 6px; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.45); max-width: 900px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { animation: fadeUp .9s var(--ease) var(--d, 0s) forwards; transition: none; }
.hero .console.reveal { transform: translateY(40px); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* responsive */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .console { max-width: 560px; }
  .registry dl { grid-template-columns: 1fr 1fr; }
  .registry dl > div:nth-child(2n) { border-right: 0; }
  .registry dl > div:nth-child(4) { border-right: 0; }
  .registry dl > div:nth-child(3) { border-right: 1px solid var(--line); }
  .registry dl > div.wide { grid-column: span 2; border-right: 0; }
}
@media (max-width: 960px) {
  .split, .cta-inner { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .products, .pillars { grid-template-columns: 1fr; }
  .product { border-right: 0; border-bottom: 1px solid var(--line); }
  .product:last-child { border-bottom: 0; }
  .pillar { margin-right: 0; padding-right: 0; padding-bottom: 28px; }
  .facts-grid, .tech-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 1px solid var(--line); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .flow { flex-direction: column; }
  .flow-line { flex: 0 0 24px; width: 1px; height: 24px; }
  .flow-line::after { display: none; }
}
@media (max-width: 760px) {
  .links { position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center; gap: 8px; background: var(--navy); color: #fff; font-family: var(--display); font-size: 1.8rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
  .links a { padding: 10px 0; }
  .links.open { opacity: 1; pointer-events: auto; }
  .nav-inner > .btn-sm { display: none; }
  .burger { display: block; margin-left: auto; z-index: 2; }
  .nav.menu-open { color: #fff; background: transparent; border-color: transparent; --bg-mark: var(--navy); }
  .console-body { grid-template-columns: 1fr; }
  .c-doc { display: none; }
  .tech-grid { grid-template-columns: 1fr; }
  .registry dl { grid-template-columns: 1fr; }
  .registry dl > div, .registry dl > div.wide { grid-column: auto; border-right: 0 !important; padding: 22px 20px; }
  .registry-link { padding: 20px; }
  .fact { padding: 28px 18px; }
  .step { grid-template-columns: 48px 1fr; }
}

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