:root {
  --navy-950: #060a22;
  --navy-900: #0b1230;
  --navy-800: #121b42;
  --navy-700: #1b2657;
  --blue-600: #1560e6;
  --blue-500: #1f6fff;
  --blue-400: #4d8dff;
  --blue-200: #b7d0ff;
  --sky-50: #eef4fe;
  --sky-100: #e1ebfc;
  --ink: #0b1230;
  --text: #2a3350;
  --muted: #5d6784;
  --line: #dbe3f0;
  --paper: #fbfcfe;
  --white: #ffffff;
  --on-dark: #e7ecfa;
  --on-dark-muted: #9aa6c7;
  --line-dark: rgba(255, 255, 255, 0.1);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0 0 1em; }
a { color: inherit; }
button, input, select { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--blue-500); color: var(--white);
  border-radius: var(--radius); text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.8em 1.35em; border-radius: 8px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1em 1.6em; font-size: 1rem; }
.btn--primary { background: var(--blue-500); color: var(--white); }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.08); }
.btn--ghost-dark { color: var(--ink); border-color: var(--line); background: var(--white); }
.btn--ghost-dark:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn--white { background: var(--white); color: var(--navy-900); }
.btn--white:hover { background: var(--sky-50); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.3s, box-shadow 0.3s, height 0.3s;
}
.nav.is-scrolled { background: rgba(11, 18, 48, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-dark); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.brand__mark { width: 40px; height: 34px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.01em; }

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) {
  color: var(--on-dark); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  position: relative; padding: 6px 0; transition: color 0.2s;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue-400); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__links a:not(.btn):hover, .nav__links a.is-current { color: var(--white); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__cta { margin-left: 6px; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 8px;
  background: transparent; cursor: pointer; position: relative;
}
.nav__toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.15); }
.eyebrow--light { color: var(--blue-200); }

.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 600; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--muted); line-height: 1.7; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section--tight { padding: 0 0 clamp(72px, 10vw, 130px); }
.section--sky { background: var(--sky-50); }
.section--dark, .section--deep { background: var(--navy-900); color: var(--on-dark); }
.section--deep { background: var(--navy-950); }
.section--dark h2, .section--dark h3, .section--deep h2, .section--deep h3 { color: var(--white); }
.section--dark .lead, .section--deep .lead { color: var(--on-dark-muted); }
.section--blue { background: var(--blue-600); color: var(--white); }
.section--blue h2 { color: var(--white); }
.section--blue .lead { color: rgba(255, 255, 255, 0.85); }
.section--blue .eyebrow::before { background: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2); }
.section--blue .eyebrow--light { color: var(--white); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.split .lead { margin: 0; }
.split .lead + .lead { margin-top: 1em; }
.narrow { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.narrow .h2 { margin-bottom: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  background: var(--navy-900); color: var(--on-dark); overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 100px;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 160px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--navy-900));
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; z-index: 2; }
.hero__title {
  color: var(--white); font-size: clamp(2.4rem, 6.2vw, 5.2rem); font-weight: 600; letter-spacing: -0.035em;
  max-width: 15ch; margin-bottom: 28px;
}
.hero__title span { color: var(--blue-400); }
.hero__lead { max-width: 620px; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--on-dark-muted); line-height: 1.7; margin-bottom: 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.hero__chips li {
  font-size: 0.8rem; font-weight: 500; color: var(--blue-200); padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(127, 170, 255, 0.25); background: rgba(31, 111, 255, 0.08);
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; z-index: 2; width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--white); animation: scrollHint 1.8s var(--ease) infinite;
}
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--blue-200); box-shadow: 0 18px 40px -24px rgba(21, 96, 230, 0.45); }
.card h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card p + p { margin-top: 12px; }
.card__icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px;
  border-radius: 12px; background: var(--sky-50); color: var(--blue-500);
}
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--blue-400); margin-bottom: 26px; }
.card__tag { font-size: 0.74rem !important; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-500) !important; margin-bottom: 28px !important; }
.card__note { font-size: 0.86rem !important; padding-top: 14px; border-top: 1px dashed var(--line); }
.card--audience { padding: 36px 32px; }
.card--audience h3 { font-size: 1.35rem; margin-bottom: 16px; }

.cards--dark .card { background: rgba(255, 255, 255, 0.03); border-color: var(--line-dark); }
.cards--dark .card:hover { border-color: rgba(77, 141, 255, 0.5); background: rgba(31, 111, 255, 0.06); box-shadow: 0 18px 50px -28px rgba(31, 111, 255, 0.7); }
.cards--dark .card p { color: var(--on-dark-muted); }
.cards--dark .card--accent { background: var(--blue-600); border-color: var(--blue-500); }
.cards--dark .card--accent p { color: rgba(255, 255, 255, 0.85); }
.cards--dark .card--accent .card__icon { background: rgba(255, 255, 255, 0.15); color: var(--white); }

/* ---------- Video ---------- */
.video {
  position: relative; aspect-ratio: 16 / 7; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-900); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 32px; text-align: center; color: var(--on-dark);
}
.video__grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.video__play {
  position: relative; width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--blue-500); color: var(--white); display: grid; place-items: center;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.video__play::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(77, 141, 255, 0.5);
  animation: ring 2.4s var(--ease) infinite;
}
@keyframes ring { from { transform: scale(0.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.video__play:hover { transform: scale(1.06); background: var(--blue-600); }
.video__play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.video__caption { position: relative; max-width: 520px; margin: 0; font-size: 1.05rem; color: var(--on-dark); }
.video__soon { position: relative; margin: 0; font-size: 0.85rem; color: var(--blue-200); }

/* ---------- Problem / Solution ---------- */
.ps__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 5vw, 60px); }
.ps__head .h2 { max-width: 18ch; transition: opacity 0.25s; }
.ps__head .h2.is-fading { opacity: 0; }

.switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; flex-shrink: 0;
  padding: 5px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
}
.switch button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  padding: 11px 24px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--muted);
  transition: color 0.3s;
}
.switch button[aria-selected="true"] { color: var(--white); }
.switch__thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px;
  background: var(--navy-900); transition: transform 0.45s var(--ease), background 0.45s;
}
.switch.is-solution .switch__thumb { transform: translateX(100%); background: var(--blue-500); }

.ps { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.ps__visual {
  position: sticky; top: calc(var(--nav-h) + 24px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px;
  transition: background 0.6s, border-color 0.6s;
}
.ps[data-state="solution"] .ps__visual { background: var(--navy-900); border-color: var(--navy-800); }
.ps__visual svg { width: 100%; height: auto; overflow: visible; }
.ps__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 4px 0; font-size: 0.78rem; color: var(--muted); }
.ps[data-state="solution"] .ps__legend { color: var(--on-dark-muted); }
.lg { display: inline-block; width: 10px; height: 10px; margin-right: -8px; }
.lg--a { background: var(--blue-500); border-radius: 2px; }
.lg--b { background: #8b5cf6; border-radius: 50%; }
.lg--c { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid #14b8a6; }

.psn { transition: transform 1.1s var(--ease); }
.psn__shape { transition: fill 0.8s, opacity 0.8s; }
.psn__ring { fill: none; stroke: var(--blue-400); stroke-width: 1.2; opacity: 0; transition: opacity 0.6s; }
.ps[data-state="solution"] .psn__ring { opacity: 0.45; }
.ps-link { stroke: var(--blue-400); stroke-width: 1.2; stroke-linecap: round; opacity: 0; transition: opacity 0.6s, stroke-dashoffset 1.2s var(--ease); }
.ps[data-state="solution"] .ps-link { opacity: 0.55; stroke-dashoffset: 0 !important; transition-delay: 0.5s; }
.ps-silo { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 4 5; transition: opacity 0.5s; }
.ps-silo-label { font: 600 11px var(--font); fill: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; transition: opacity 0.5s; }
.ps[data-state="solution"] .ps-silo, .ps[data-state="solution"] .ps-silo-label { opacity: 0; }
.ps-core { opacity: 0; transform-origin: 260px 220px; transform: scale(0.4); transition: opacity 0.6s 0.4s, transform 0.9s 0.4s var(--ease); }
.ps[data-state="solution"] .ps-core { opacity: 1; transform: scale(1); }
.ps-core text { font: 700 13px var(--font-display); fill: var(--white); letter-spacing: 0.06em; }
.ps-x { stroke: #e0566b; stroke-width: 1.6; stroke-linecap: round; transition: opacity 0.4s; }
.ps[data-state="solution"] .ps-x { opacity: 0; }

.ps__panel { animation: panelIn 0.6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ps__panel .lead { color: var(--text); }
.ps__panel > p:not(.lead) { color: var(--muted); }

.points { list-style: none; counter-reset: pt; margin: 30px 0 32px; padding: 0; display: grid; gap: 4px; }
.points li { counter-increment: pt; position: relative; padding: 18px 0 18px 52px; border-top: 1px solid var(--line); }
.points li::before {
  content: counter(pt, decimal-leading-zero); position: absolute; left: 0; top: 19px;
  font: 600 0.82rem var(--font-display); color: #e0566b;
}
.points h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.points p { color: var(--muted); font-size: 0.93rem; margin: 0; }

.checks { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 10px; }
.checks li {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); font-weight: 600; color: var(--ink);
  opacity: 0; transform: translateX(16px); animation: checkIn 0.6s var(--ease) forwards;
}
.checks li::before {
  content: ""; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-500)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks li:nth-child(2) { animation-delay: 0.08s; }
.checks li:nth-child(3) { animation-delay: 0.16s; }
.checks li:nth-child(4) { animation-delay: 0.24s; }
.checks li:nth-child(5) { animation-delay: 0.32s; }
@keyframes checkIn { to { opacity: 1; transform: none; } }

/* ---------- AI ask bar ---------- */
.ask { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.ask__bar {
  display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(77, 141, 255, 0.35);
  box-shadow: 0 0 0 6px rgba(31, 111, 255, 0.06), 0 30px 80px -40px rgba(31, 111, 255, 0.8);
  text-align: left;
}
.ask__bar svg { width: 24px; height: 24px; flex-shrink: 0; fill: var(--blue-400); }
.ask__text { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.75rem); font-weight: 600; color: var(--white); letter-spacing: -0.01em; }
.ask__caret { width: 2px; height: 1.6em; background: var(--blue-400); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ask__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.ask__chips button {
  border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark-muted);
  padding: 8px 16px; border-radius: 999px; font-size: 0.86rem; cursor: pointer; transition: all 0.25s;
}
.ask__chips button:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.ask__chips button.is-active { color: var(--white); background: rgba(31, 111, 255, 0.2); border-color: var(--blue-500); }

/* ---------- Process: full-section 3D scene ---------- */
.proc {
  position: relative; overflow: hidden; color: var(--on-dark);
  height: clamp(760px, 100svh, 1000px); background: var(--navy-950);
  display: flex; flex-direction: column; justify-content: space-between;
}
.proc::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--navy-950) 0%, rgba(6, 10, 34, 0.75) 14%, transparent 32%),
    linear-gradient(to top, var(--navy-950) 0%, rgba(6, 10, 34, 0.6) 12%, transparent 26%);
}
.proc__scene { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.proc__scene.is-pointer { cursor: pointer; }
.proc__scene.is-dragging { cursor: grabbing; }

.proc__head {
  position: relative; z-index: 2; pointer-events: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
  padding-top: clamp(72px, 9vh, 104px);
}
.proc__title { font-size: clamp(1.5rem, 2.3vw, 2.15rem); font-weight: 600; color: var(--white); max-width: 18ch; }
.proc__phase { justify-self: end; max-width: 420px; text-align: right; text-shadow: 0 2px 18px rgba(6, 10, 34, 0.9); }
.proc__n { margin: 4px 0 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-400); }
.proc__t { font-size: clamp(1.15rem, 1.7vw, 1.45rem); color: var(--white); margin-bottom: 10px; }
.proc__d { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--on-dark-muted); }
.proc__phase.is-swap > * { animation: panelIn 0.6s var(--ease); }

.proc__bottom { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 28px; padding-bottom: 46px; }
.proc__steps { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.proc-step {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 10px; text-align: left;
  border: 0; background: none; cursor: pointer; padding: 0; color: var(--on-dark-muted); transition: color 0.3s;
}
.proc-step__bar { grid-column: 1 / -1; display: block; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin-bottom: 12px; }
.proc-step__bar i { display: block; height: 100%; width: 0; background: var(--blue-400); border-radius: inherit; box-shadow: 0 0 12px var(--blue-400); }
.proc-step.is-done .proc-step__bar i { width: 100%; background: rgba(77, 141, 255, 0.5); box-shadow: none; }
.proc-step__n { font: 600 0.78rem var(--font-display); color: var(--blue-400); }
.proc-step__t { font: 600 0.98rem var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proc-step:hover, .proc-step[aria-selected="true"] { color: var(--white); }

.proc__ctrl { display: flex; gap: 8px; flex-shrink: 0; }
.proc-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(6, 10, 34, 0.5); color: var(--white);
  transition: border-color 0.2s, background 0.2s;
}
.proc-btn:hover { border-color: rgba(255, 255, 255, 0.4); }
.proc-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.proc-btn--play { background: var(--blue-500); border-color: var(--blue-500); }
.proc-btn--play:hover { background: var(--blue-600); }
.proc-btn--play .i-play { fill: currentColor; stroke: none; margin-left: 2px; }
.proc-btn--play .i-play, .proc-btn--play[aria-pressed="true"] .i-pause { display: block; }
.proc-btn--play .i-pause, .proc-btn--play[aria-pressed="true"] .i-play { display: none; }

.proc__note { position: absolute; z-index: 2; margin: 0; pointer-events: none; font-size: 0.74rem; color: var(--on-dark-muted); }
.proc__hint { margin: 14px 0 0; opacity: 0.8; pointer-events: none; font-size: 0.74rem; color: var(--on-dark-muted); }
.proc__note { left: 0; right: 0; bottom: 14px; text-align: center; opacity: 0.7; }

@media (max-width: 960px) {
  .proc { height: auto; min-height: 860px; }
  .proc__head { grid-template-columns: 1fr; gap: 14px; }
  .proc__phase { justify-self: start; text-align: left; max-width: 520px; }
  .proc__bottom { flex-direction: column-reverse; align-items: stretch; gap: 16px; margin-top: auto; }
  .proc__ctrl { justify-content: flex-end; }
  .proc__steps { position: relative; overflow-x: auto; grid-template-columns: repeat(6, minmax(108px, 1fr)); scrollbar-width: none; }
  .proc__steps::-webkit-scrollbar { display: none; }
}
@media (max-width: 640px) {
  .proc { min-height: 0; }
  .proc__bottom { margin-top: 470px; padding-bottom: 72px; }
  .proc__d { font-size: 0.86rem; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--nav-h) + 24px); }
.faq__intro .h2 { margin-bottom: 28px; }
.search {
  display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s;
}
.search:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.12); }
.search svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 14px 0; color: var(--ink); }
.faq__empty { margin-top: 14px; color: var(--muted); font-size: 0.92rem; }
.faq__empty a { color: var(--blue-600); }

.faq__list { display: grid; gap: 10px; }
.faq__list details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq__list details[open] { border-color: var(--blue-200); box-shadow: 0 14px 34px -26px rgba(21, 96, 230, 0.6); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--sky-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.35s var(--ease), background-color 0.25s;
}
.faq__list details[open] summary::after { transform: rotate(45deg); background-color: var(--sky-100); }
.faq__list details > div { padding: 0 22px 20px; color: var(--muted); font-size: 0.95rem; overflow: hidden; }
.faq__list details > div p:last-child { margin: 0; }
.faq__list mark { background: rgba(31, 111, 255, 0.16); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__intro .h2 { margin-bottom: 22px; }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius-lg); background: rgba(6, 10, 34, 0.22); border: 1px solid rgba(255, 255, 255, 0.18);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.84rem; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.field input, .field select {
  width: 100%; padding: 13px 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08); color: var(--white); outline: none; transition: border-color 0.2s, background 0.2s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px;
}
.field select option { color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--white); background: rgba(255, 255, 255, 0.14); }
.field__error { display: none; font-size: 0.78rem; color: #ffd9de; }
.field.is-invalid input, .field.is-invalid select { border-color: #ffb4bf; }
.field.is-invalid .field__error { display: block; }
.form__submit { grid-column: 1 / -1; margin-top: 6px; }
.form__status { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: 0.9rem; color: var(--white); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 64px 0 28px; font-size: 0.88rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer__tag { margin: 18px 0 0; line-height: 1.7; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-start; }
.footer__links a { text-decoration: none; transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.8rem; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Shared additions ---------- */
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.note { margin: 28px 0 0; font-size: 0.9rem; color: var(--muted); }
.closing { max-width: 760px; margin: clamp(32px, 4vw, 48px) 0 0; color: var(--muted); font-size: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.tags li { font-size: 0.78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--blue-200); }

/* ---------- Ontology ---------- */
.onto { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.onto__stage, .onto__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.onto__stage { padding: 18px 18px 14px; min-width: 0; }
.onto__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.onto__steps button {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 0.86rem; font-weight: 600; text-align: left;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.onto__steps button span {
  flex-shrink: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sky-100); color: var(--blue-600); font: 700 0.78rem var(--font-display);
}
.onto__steps button:hover { color: var(--ink); border-color: var(--blue-200); }
.onto__steps button[aria-selected="true"] { color: var(--ink); border-color: var(--blue-500); background: var(--white); box-shadow: 0 0 0 3px rgba(31, 111, 255, 0.1); }
.onto__steps button[aria-selected="true"] span, .onto__steps button.is-done span { background: var(--blue-500); color: var(--white); }
.onto__svg { width: 100%; height: auto; overflow: visible; }
.onto__status { margin: 4px 2px 0; font-size: 0.84rem; font-weight: 600; color: var(--blue-600); }

.onto-rec, .onto-ent { transition: transform 1s var(--ease), opacity 0.7s; }
.onto-rec__box { fill: var(--white); stroke: var(--line); stroke-width: 1.2; transition: stroke 0.4s; }
.onto[data-step="1"] .onto-rec.is-match .onto-rec__box { stroke: var(--blue-500); stroke-width: 1.6; }
.onto-rec__title { font: 700 9.5px var(--font); letter-spacing: 0.04em; text-transform: uppercase; }
.onto-rec__value { font: 600 11.5px var(--font); fill: var(--ink); }
.onto-match { fill: none; stroke: var(--blue-500); stroke-width: 1.6; stroke-dasharray: 5 5; opacity: 0; transition: opacity 0.5s 0.5s; }
.onto-match.is-on { opacity: 0.8; }

.onto-ent { cursor: pointer; outline: none; }
.onto-ent__dot { fill: var(--blue-500); stroke: var(--white); stroke-width: 3; transition: fill 0.3s; }
.onto-ent__halo { fill: rgba(31, 111, 255, 0.12); stroke: var(--blue-500); stroke-width: 1.4; opacity: 0; transition: opacity 0.3s; }
.onto-ent__type { font: 600 10px var(--font); fill: var(--white); pointer-events: none; }
.onto-ent__name { font: 600 11px var(--font); fill: var(--ink); paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.onto-ent:hover .onto-ent__halo, .onto-ent:focus-visible .onto-ent__halo { opacity: 0.6; }
.onto-ent.is-selected .onto-ent__halo { opacity: 1; }
.onto-ent.is-selected .onto-ent__dot { fill: var(--blue-600); }
.onto-ent.is-dim { opacity: 0.45 !important; }

.onto-rel { opacity: 0; transition: opacity 0.5s; }
.onto-rel.is-on { opacity: 1; }
.onto-rel line { stroke: #9db6e6; stroke-width: 1.4; transition: stroke-dashoffset 0.9s var(--ease), stroke 0.3s; }
.onto-rel text { font: 600 10px var(--font); fill: var(--muted); paint-order: stroke; stroke: var(--white); stroke-width: 5px; stroke-linejoin: round; }
.onto-rel.is-focus line { stroke: var(--blue-500); stroke-width: 2; }
.onto-rel.is-focus text { fill: var(--blue-600); }
.onto-arrow { fill: #9db6e6; }
.is-static .onto-rec, .is-static .onto-ent, .is-static .onto-rel line { transition: none; }

.onto__card { padding: 24px; display: flex; flex-direction: column; animation: panelIn 0.5s var(--ease); }
.onto__kicker { margin: 0 0 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-500); }
.onto__card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.onto__card h4 { margin: 18px 0 8px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.onto__card > p { color: var(--muted); font-size: 0.93rem; }
.onto__inst { margin: 0; font-weight: 600; color: var(--text) !important; }
.onto__props { display: grid; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.onto__props div { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 10px; padding: 7px 10px; background: var(--white); font-size: 0.85rem; }
.onto__props dt { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.8rem; color: var(--blue-600); }
.onto__props dd { margin: 0; color: var(--text); }
.onto__rels, .onto__src, .onto__legend { list-style: none; margin: 0; padding: 0; }
.onto__rels { display: grid; gap: 4px; font-size: 0.88rem; color: var(--text); }
.onto__rels b { color: var(--blue-600); }
.onto__src, .onto__legend { display: flex; flex-wrap: wrap; gap: 6px; }
.onto__src li { font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--sky-50); color: var(--text); }
.onto__legend { margin: 6px 0 22px; }
.onto__legend li { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); margin-right: 8px; }
.onto__legend li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.onto__next { align-self: flex-start; margin-top: auto; }
.onto__hint { margin: 18px 0 0; font-size: 0.8rem !important; }

.model {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: clamp(20px, 4vw, 48px); align-items: start;
  padding: clamp(22px, 3vw, 34px); margin-bottom: 20px; border-radius: var(--radius-lg); background: var(--navy-900); color: var(--on-dark);
}
.model h3 { color: var(--white); font-size: 1.35rem; margin-bottom: 12px; }
.model__intro p { margin: 0; color: var(--on-dark-muted); font-size: 0.95rem; }
.model__parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.model__parts div { padding: 16px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); }
.model__parts dt { font: 600 1rem var(--font-display); color: var(--white); margin-bottom: 6px; }
.model__parts dd { margin: 0; font-size: 0.88rem; color: var(--on-dark-muted); }
.model__parts .model__ex { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-dark); font-size: 0.82rem; color: var(--blue-200); }
.model__ex b { color: var(--white); }

/* ---------- Process band ---------- */
.section--band { padding: clamp(40px, 6vw, 64px) 0; border-top: 1px solid var(--line-dark); }
.band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); }
.band h3 { font-size: 1.05rem; margin-bottom: 10px; }
.band p { margin: 0; font-size: 0.92rem; color: var(--on-dark-muted); }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.why__title { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin: 4px 0 18px; }
.why__text > p { color: var(--muted); }
.chain { list-style: none; margin: 6px 0 22px; padding: 0; display: grid; gap: 10px; }
.chain li { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); align-items: center; gap: 8px; }
.chain span { padding: 10px 14px; border-radius: var(--radius); background: var(--sky-50); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.chain span + i + span, .chain i + span { background: var(--white); color: var(--text); font-weight: 500; }
.chain i { position: relative; height: 2px; background: var(--blue-400); }
.chain i::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 7px solid var(--blue-400); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.why__card { padding: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .nav__links { gap: 18px; }
}

@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px; background: var(--navy-900); border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all 0.3s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--line-dark); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { margin: 18px 0 0; }
  .nav.menu-open { background: var(--navy-900); }

  .split, .ps, .faq, .contact, .onto, .model, .why { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .split { align-items: start; }
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .ps__visual, .faq__intro { position: static; }
  .ps__head { flex-direction: column; align-items: flex-start; }

}

@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  .cards--4, .cards--3, .cards--2, .model__parts { grid-template-columns: 1fr; }
  .onto__stage { padding: 12px 10px 10px; }
  .onto__steps { grid-template-columns: 1fr; }
  .chain li { grid-template-columns: 1fr; gap: 4px; }
  .chain i { display: none; }
  .form { grid-template-columns: 1fr; }
  .video { aspect-ratio: 4 / 5; }
  .switch { width: 100%; }
  .switch button { padding: 11px 12px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .brand__name { font-size: 1.15rem; }
}

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