/* ==========================================================================
   Noventix — design system
   ========================================================================== */
:root {
  --bg: #000;
  --bg-elev: #0b0b0e;
  --bg-elev-2: #121216;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f1ff;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.46);
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --ok: #34d399;
  --radius-lg: 22px;
  --radius-md: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; color: #fff; }
p { margin: 0; }
::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.container-wide { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Reveal states (JS removes the .js class if motion is unavailable) */
.js [data-reveal], .js [data-reveal-group] > *, .js [data-reveal-hero] { opacity: 0; transform: translateY(26px); }
.js .hero-mock .win { opacity: 0; }

/* ---------- primitives ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  font-size: 13px; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.82);
}
.spark { width: 10px; height: 10px; flex: none; background: currentColor; opacity: .85;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.pill .spark { color: #c4b5fd; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.muted { color: var(--text-3); }
.text-link { color: var(--text-2); font-size: 14px; transition: color .3s; }
.text-link:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; line-height: 1;
  cursor: pointer; transition: transform .35s var(--ease), background .3s, border-color .3s, box-shadow .35s, color .3s;
  white-space: nowrap;
}
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 18px 30px; font-size: clamp(16px, 2vw, 20px); font-family: var(--font-display); letter-spacing: -0.02em; gap: 12px; }
.btn-lg span { transition: transform .35s var(--ease); }
.btn-lg:hover span { transform: translateX(4px); }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(255,255,255,.4); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--line-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, .tab:focus-visible, .faq-q:focus-visible, .arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font-size: 11px; line-height: 1.3; color: rgba(255,255,255,.85); white-space: nowrap; }
.chip.ghost { background: transparent; color: var(--text-3); }
.chip.glass { background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(10px); border-color: rgba(255,255,255,.18); color: #fff; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-3); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 2.4s ease-in-out infinite; }
.right { margin-left: auto; }
.spin { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); border-top-color: var(--accent-2); animation: spin 1s linear infinite; display: inline-block; margin-right: 6px; }
.bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w, 50%); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; animation: grow 1.6s var(--ease) both; }
.line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); margin: 10px 0; }
.w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lineIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translate3d(-4%, -3%, 0) rotate(0deg); } to { transform: translate3d(4%, 3%, 0) rotate(8deg); } }
@keyframes ringspin { to { transform: translate(-50%, -50%) rotateX(74deg) rotate(360deg); } }
@keyframes flow { to { background-position: 16px 0; } }
@keyframes tabProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Cursor-follow glow on cards */
.glow-card { position: relative; }
.glow-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.16), transparent 60%);
  opacity: 0; transition: opacity .5s;
}
.glow-card:hover::before { opacity: 1; }
.glow-card > * { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: #fff; }
.brand i { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--text-2); }
.nav-links a { transition: color .3s; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-plain { font-size: 14px; color: var(--text-2); transition: color .3s; }
.nav-plain:hover { color: #fff; }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; position: relative; }
.nav-burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform .35s var(--ease); }
.nav-burger span:first-child { top: 16px; } .nav-burger span:last-child { bottom: 16px; }
.menu-open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--nav-h) 0 0 0; background: rgba(0, 0, 0, 0.94); backdrop-filter: blur(20px); display: none; flex-direction: column; gap: 6px; padding: 28px 24px; }
.mobile-menu a:not(.btn) { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.03em; padding: 10px 0; color: #fff; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }
.menu-open .mobile-menu { display: flex; }
.menu-open .nav { background: rgba(0, 0, 0, 0.94); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 176px 0 140px; overflow: hidden; background: #000; isolation: isolate; }
.hero-content { position: relative; z-index: 3; text-align: center; max-width: 820px; }
.hero h1 { font-size: clamp(42px, 6.3vw, 68px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 500; color: var(--text); margin: 26px auto 22px; text-wrap: balance; }
.hero-sub { max-width: 540px; margin: 0 auto 34px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.scene { position: absolute; left: 0; right: 0; bottom: 0; height: min(880px, 96vh); z-index: 1; pointer-events: none; overflow: hidden; }
.scene-sky { position: absolute; inset: 0;
  background:
    radial-gradient(62% 38% at 50% 44%, rgba(240, 171, 252, 0.5), rgba(139, 92, 246, 0.26) 45%, transparent 76%),
    linear-gradient(to bottom, #000 0%, #07041a 14%, #170c3d 30%, #3b1b7a 42%, #180b36 50%, #000 66%);
}
.scene-core { position: absolute; left: 50%; top: 44%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #f5d0fe 22%, rgba(232, 121, 249, 0.75) 48%, rgba(139, 92, 246, 0.2) 68%, transparent 74%);
  box-shadow: 0 0 90px 36px rgba(232, 121, 249, 0.38), 0 0 220px 90px rgba(124, 58, 237, 0.32); filter: blur(1px); }
.scene-rings { position: absolute; left: 50%; top: 44%; width: 0; height: 0; perspective: 900px; }
.scene-rings i { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.22);
  transform: translate(-50%, -50%) rotateX(74deg); animation: ringspin 70s linear infinite; }
.scene-rings i:nth-child(2) { animation-duration: 110s; animation-direction: reverse; border-color: rgba(167, 139, 250, 0.28); }
.scene-rings i:nth-child(3) { animation-duration: 160s; border-color: rgba(34, 211, 238, 0.18); }
.scene-particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-layer { position: absolute; inset: 0; will-change: transform; }
.scene-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.scene-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(to bottom, transparent, #000 88%); }

.hero-mock { position: relative; z-index: 4; margin-top: 88px; perspective: 1600px; }
.win { background: rgba(10, 10, 14, 0.74); border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 18px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0,0,0,.4), inset 0 1px 0 rgba(255, 255, 255, 0.07); overflow: hidden; font-size: 12px; color: var(--text-2); }
.console { display: grid; grid-template-columns: 208px 1fr; min-height: 560px; transform-origin: 50% 0; }
.console-side { border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.console-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #fff; padding: 4px 8px 18px; }
.console-side .item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text-3); font-size: 12.5px; }
.console-side .item i { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 4px; opacity: .7; }
.console-side .item.is-active { background: rgba(255, 255, 255, 0.06); color: #fff; }
.console-foot { margin-top: auto; padding: 10px 8px 0; }
.console-main { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.console-top { display: flex; gap: 8px; align-items: center; }
.gradient-panel { position: relative; border-radius: 14px; overflow: hidden; padding: 22px; min-height: 270px; display: flex; align-items: flex-end; isolation: isolate;
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 38%, #0e7490 100%); }
.gradient-panel::before { content: ""; position: absolute; inset: -40%; z-index: -1; filter: blur(34px);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.38), transparent 40%),
              radial-gradient(circle at 75% 70%, rgba(34, 211, 238, 0.5), transparent 45%),
              radial-gradient(circle at 60% 20%, rgba(244, 114, 182, 0.4), transparent 40%);
  animation: drift 14s ease-in-out infinite alternate; }
.run { width: 100%; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.95; color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.42); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 14px 16px; backdrop-filter: blur(6px); }
.run-line { opacity: 0; animation: lineIn .5s ease forwards; animation-delay: calc(var(--d, 0) * 1s); display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.run-line .prompt { color: var(--accent-2); margin-right: 8px; }
.run-line.ok { color: #a7f3d0; } .run-line.dim { color: var(--text-3); } .run-line b { font-weight: 600; color: #fff; margin: 0 4px; }
.console-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: rgba(255, 255, 255, 0.03); }
.stat-card small { color: var(--text-3); font-size: 11px; }
.stat-card strong { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; color: #fff; margin: 6px 0 10px; font-weight: 500; }
.stat-card strong span { font-size: 12px; color: var(--text-3); margin-left: 2px; }

/* ---------- intro ---------- */
.intro { padding: 160px 0 100px; }
.intro .pill { margin-bottom: 36px; }
.intro-text { max-width: 780px; }
.intro p { font-family: var(--font-display); font-size: clamp(22px, 2.7vw, 31px); line-height: 1.32; letter-spacing: -0.022em; font-weight: 500; color: #fff; opacity: .18; margin-bottom: 1.1em; text-wrap: pretty; }

/* ---------- sections ---------- */
.section { padding: 130px 0; }
.section-head { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head.is-center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head h2 { font-size: clamp(32px, 4.3vw, 46px); line-height: 1.14; letter-spacing: -0.034em; margin-top: 22px; text-wrap: balance; }
.section-head h2 .muted { display: block; }
.section-head.is-center h2 { max-width: 760px; }
.section-head > p { max-width: 400px; color: var(--text-2); font-size: 15px; line-height: 1.6; justify-self: end; text-wrap: pretty; }
.section-head > .text-link { justify-self: end; margin-bottom: 8px; }

/* ---------- tabs showcase ---------- */
.tab-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 900px; margin: 0 auto 26px; }
.tab { position: relative; background: none; border: 0; color: var(--text-3); padding: 12px 16px; border-radius: 999px; font-size: 14px; cursor: pointer; overflow: hidden; transition: color .3s, background .3s; }
.tab:hover { color: #fff; }
.tab.is-active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.tab-progress { position: absolute; left: 16%; right: 16%; bottom: 0; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.45); transform: scaleX(0); transform-origin: left; }
.tab.is-active .tab-progress { animation: tabProgress var(--interval, 6000ms) linear forwards; }
.tabs:hover .tab-progress { animation-play-state: paused; }
.tab-stage { position: relative; aspect-ratio: 16 / 9; max-height: 660px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #0a0a0d; }
.tab-panel { position: absolute; inset: 0; opacity: 0; transform: scale(1.025); transition: opacity .7s ease, transform 1.1s var(--ease); pointer-events: none; }
.tab-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.tab-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; color: var(--text-2); font-size: 14px; }
.tab-caption p { position: relative; flex: 1; height: 1.6em; text-align: center; }
.tab-caption span { position: absolute; inset: 0; opacity: 0; transition: opacity .45s; }
.tab-caption span.is-active { opacity: 1; }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: #fff; cursor: pointer; transition: background .3s, border-color .3s; flex: none; }
.arrow:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--line-strong); }

/* mock app frames inside the showcase */
.mock { position: absolute; inset: 0; padding: 40px 48px 0; --m1: rgba(139, 92, 246, 0.38); --m2: rgba(34, 211, 238, 0.25); }
.mock::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 18% 8%, var(--m1), transparent 60%), radial-gradient(50% 42% at 86% 92%, var(--m2), transparent 60%); }
.mock-agents { --m1: rgba(139, 92, 246, 0.42); --m2: rgba(244, 114, 182, 0.28); }
.mock-llm { --m1: rgba(34, 211, 238, 0.32); --m2: rgba(139, 92, 246, 0.32); }
.mock-data { --m1: rgba(52, 211, 153, 0.26); --m2: rgba(34, 211, 238, 0.3); }
.mock-strategy { --m1: rgba(244, 114, 182, 0.32); --m2: rgba(251, 191, 36, 0.18); }
.app { position: relative; height: 100%; background: rgba(10, 10, 14, 0.92); border: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 0; border-radius: 16px 16px 0 0;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.5); font-size: 12px; color: var(--text-2); }
.app-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-3); flex: none; }
.dots { display: flex; gap: 6px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.app-title { color: var(--text-2); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-body { padding: 20px; display: grid; gap: 16px; align-content: start; flex: 1; min-height: 0; }
.app-body.two { grid-template-columns: 1.1fr .9fr; }
.board, .roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lane, .panel { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; align-content: start; }
.lane header { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 2px 4px 6px; }
.lane.is-active { border-color: rgba(139, 92, 246, 0.55); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.2); }
.task { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 5px; }
.task b { font-weight: 500; color: #fff; font-size: 12.5px; }
.task small { color: var(--text-3); font-size: 11px; display: flex; align-items: center; }
.task em { font-style: normal; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.task.is-done b { color: var(--text-2); } .task.is-done small { color: var(--ok); }
.task.is-running { border-color: rgba(34, 211, 238, 0.5); }
.log { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.75; color: var(--text-2); background: rgba(0, 0, 0, 0.42); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.log span { color: var(--text-3); margin-right: 10px; }
.panel h5 { font-size: 12px; font-weight: 500; color: #fff; display: flex; justify-content: space-between; margin-bottom: 4px; letter-spacing: 0; }
.panel h5 small { color: var(--text-3); font-weight: 400; }
.row { display: grid; grid-template-columns: 1.2fr 1fr 40px; gap: 12px; align-items: center; font-size: 12px; color: var(--text-2); padding: 8px 0; border-top: 1px solid var(--line); }
.row b { text-align: right; color: #fff; font-weight: 500; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tiles > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: rgba(255, 255, 255, 0.03); }
.tiles small { display: block; color: var(--text-3); font-size: 11px; }
.tiles b { display: block; color: #fff; font-size: 16px; font-weight: 500; font-family: var(--font-display); letter-spacing: -0.02em; margin-top: 4px; }
.panel.code pre { margin: 0; font-size: 11.5px; line-height: 1.75; font-family: var(--font-mono); color: var(--text-2); white-space: pre-wrap; background: rgba(0, 0, 0, 0.42); border-radius: 10px; padding: 12px 14px; }
.add { color: var(--ok); } .del { color: #f87171; opacity: .8; }
.note { font-size: 11.5px; color: var(--ok); }
.pipeline { display: flex; align-items: center; gap: 10px; padding: 26px 6px 14px; }
.node { flex: none; width: 124px; text-align: center; display: grid; gap: 3px; justify-items: center; padding: 14px 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.node i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.7), rgba(34, 211, 238, 0.7)); margin-bottom: 5px; }
.node b { font-size: 12.5px; color: #fff; font-weight: 500; } .node small { font-size: 10.5px; color: var(--text-3); }
.node.is-hot { border-color: rgba(34, 211, 238, 0.6); box-shadow: 0 0 30px rgba(34, 211, 238, 0.15); }
.pipe { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0 8px, transparent 8px 16px); background-size: 16px 2px; animation: flow 1.1s linear infinite; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bento-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-height: 440px; display: flex; flex-direction: column; transition: border-color .4s; }
.bento-card:hover { border-color: var(--line-strong); }
.bento-card.is-wide { grid-column: 1 / -1; flex-direction: row; min-height: 380px; }
.bento-text { padding: 46px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.bento-text .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); }
.bento-text h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; letter-spacing: -0.025em; max-width: 440px; text-wrap: balance; }
.bento-text p { color: var(--text-2); font-size: 14.5px; line-height: 1.62; max-width: 440px; }
.bento-note { margin-top: auto; padding-top: 24px; font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.bento-note .spark { width: 9px; height: 9px; color: var(--text-3); }
.bento-visual { position: relative; flex: 1; min-height: 300px; padding: 40px 0 0 40px; overflow: hidden;
  background: radial-gradient(70% 60% at 20% 0%, rgba(139, 92, 246, 0.18), transparent 60%); }
.is-wide .bento-visual { padding: 40px 0 0 0; min-width: 44%; background: radial-gradient(70% 60% at 100% 0%, rgba(34, 211, 238, 0.14), transparent 60%); }
.bento-visual > * { position: absolute; left: 40px; top: 40px; right: -40px; bottom: -40px; background: rgba(12, 12, 16, 0.9); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 26px 28px; font-size: 12px; color: var(--text-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); transition: transform .6s var(--ease); }
.is-wide .bento-visual > * { left: 0; }
.bento-card:hover .bento-visual > * { transform: translate(-6px, -6px); }
.doc-head { display: flex; gap: 8px; margin-bottom: 14px; }
.doc h4, .course h4 { font-size: 16px; letter-spacing: -0.015em; margin-bottom: 10px; }
.doc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.doc-kpis > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: rgba(255,255,255,.03); }
.doc-kpis small { display: block; color: var(--text-3); font-size: 11px; } .doc-kpis b { color: #fff; font-weight: 500; font-size: 13px; }
.doc-sign { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 12px; color: var(--ok); }
.doc-sign i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.course-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.course-head small { color: var(--text-3); font-size: 11px; }
.ring { width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--accent-2) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #0c0c10; }
.ring b { position: relative; font-size: 13px; color: #fff; font-weight: 500; }
.course ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.course li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text-3); font-size: 12.5px; background: rgba(255,255,255,.02); }
.course li i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); flex: none; }
.course li.done { color: var(--text-2); } .course li.done i { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 10px rgba(52,211,153,.6); }
.course li.now { color: #fff; border-color: rgba(139, 92, 246, 0.6); } .course li.now i { border-color: var(--accent); animation: pulse 2s infinite; }
.cal-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 16px; }
.cal-week > div { text-align: center; padding: 10px 6px; border: 1px solid var(--line); border-radius: 10px; color: var(--text-3); }
.cal-week small { display: block; font-size: 10.5px; } .cal-week b { font-family: var(--font-display); font-size: 18px; color: #fff; font-weight: 500; }
.cal-week .is-on { border-color: rgba(139, 92, 246, 0.6); background: rgba(139, 92, 246, 0.12); }
.cal-items { display: grid; gap: 8px; }
.cal-item { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); }
.cal-item em { font-style: normal; color: var(--text-3); font-size: 11.5px; } .cal-item b { color: #fff; font-weight: 500; font-size: 12.5px; }

/* ---------- process (stacking cards) ---------- */
.process .section-head { margin-bottom: 64px; }
.stack { display: grid; max-width: 980px; margin: 0 auto; }
.stack-card { position: sticky; top: calc(var(--nav-h) + 40px + var(--i) * 16px); margin-bottom: 26vh; background: #0b0b0e; border: 1px solid var(--line-strong); border-radius: 26px; padding: 48px 52px;
  display: grid; grid-template-columns: 1fr 220px; gap: 32px; min-height: 380px; transform-origin: 50% 0; box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.7); will-change: transform; }
.stack-card:last-child { margin-bottom: 0; }
.stack-num { font-size: 12px; letter-spacing: .14em; color: var(--text-3); }
.stack-card h3 { font-size: clamp(28px, 3vw, 36px); margin: 16px 0 12px; }
.stack-card p { color: var(--text-2); font-size: 15.5px; line-height: 1.62; max-width: 560px; }
.stack-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.stack-chips .chip { font-size: 12px; padding: 6px 11px; }
.stack-visual { display: grid; place-items: center; }
.orb-num { font-family: var(--font-display); font-size: 128px; font-weight: 500; letter-spacing: -0.07em; line-height: 1;
  background: linear-gradient(135deg, #c4b5fd 0%, #22d3ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- about ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 72px; }
.stat { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); }
.stat-value { font-family: var(--font-display); font-size: clamp(38px, 4.2vw, 54px); letter-spacing: -0.045em; color: #fff; line-height: 1; font-weight: 500; }
.stat-label { color: var(--text-3); font-size: 13.5px; margin-top: 10px; }
.about-grid { display: grid; grid-template-columns: 1fr; }
.bio-card { display: grid; grid-template-columns: 76px 1fr; gap: 32px; align-items: start; padding: 44px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(139, 92, 246, 0.09), rgba(0, 0, 0, 0) 60%), var(--bg-elev); }
.avatar { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(from 200deg, #8b5cf6, #22d3ee, #f472b6, #8b5cf6); box-shadow: 0 0 40px rgba(139, 92, 246, 0.35); }
.avatar img { width: 44px; height: 44px; border-radius: 12px; }
.bio-body { max-width: 720px; }
.bio-card h3 { font-size: 24px; margin-bottom: 14px; }
.bio-card p { color: var(--text-2); font-size: 15px; line-height: 1.65; margin-bottom: 14px; }
.bio-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 13.5px; color: var(--text-3); }
.bio-links a:hover { color: #fff; }

/* ---------- projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--bg-elev); transition: transform .5s var(--ease), border-color .4s; }
.project:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.art { position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: radial-gradient(120% 90% at 18% 18%, var(--a), transparent 55%), radial-gradient(100% 80% at 85% 85%, var(--b), transparent 55%), #0a0a0d; }
.art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(80% 80% at 50% 50%, #000 30%, transparent 100%); }
.art .chip { position: absolute; top: 16px; left: 16px; z-index: 2; }
.art-orb { position: absolute; left: 50%; top: 52%; width: 36%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); z-index: 1;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), var(--a) 35%, var(--b) 70%, transparent 72%); filter: blur(.3px); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px color-mix(in srgb, var(--a) 60%, transparent); transition: transform .8s var(--ease); }
.project:hover .art-orb { transform: translate(-50%, -56%) scale(1.06); }
.project-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.3; }
.project p { color: var(--text-2); font-size: 14px; line-height: 1.58; }
.meta { display: flex; gap: 14px; font-size: 12px; color: var(--text-3); margin-top: auto; padding-top: 10px; }
.meta span + span::before { content: "·"; margin-right: 14px; }

/* ---------- engagements ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); transition: border-color .4s; }
.plan:hover { border-color: var(--line-strong); }
.plan.is-featured { background: var(--bg-elev-2); border-color: var(--line-strong); transform: translateY(-18px); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55); }
.plan-name { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.plan-big { font-family: var(--font-display); font-size: 40px; letter-spacing: -0.04em; color: #fff; margin-top: 24px; padding-top: 28px; border-top: 1px solid var(--line); line-height: 1; }
.plan-big small { font-family: var(--font); font-size: 13px; color: var(--text-3); letter-spacing: 0; margin-left: 8px; }
.plan-desc { color: var(--text-2); font-size: 14px; margin: 16px 0 22px; min-height: 44px; }
.plan ul { list-style: none; padding: 0; margin: 30px 0 0; }
.plan li { display: flex; gap: 10px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.plan li svg { flex: none; color: #fff; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.faq-cats { display: grid; gap: 6px; }
.faq-cat { text-align: center; padding: 12px; border-radius: 999px; background: none; border: 0; color: var(--text-3); cursor: pointer; font-size: 14px; transition: background .3s, color .3s; }
.faq-cat:hover { color: #fff; }
.faq-cat.is-active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.faq-aside { margin-top: 40px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-elev); }
.faq-aside h4 { font-size: 18px; margin-bottom: 8px; }
.faq-aside p { color: var(--text-2); font-size: 14px; margin-bottom: 18px; }
.faq-group { display: none; gap: 12px; }
.faq-group.is-active { display: grid; }
.faq-item { border: 1px solid var(--line); border-radius: 18px; background: var(--bg-elev); overflow: hidden; transition: border-color .3s; }
.faq-item.is-open { border-color: var(--line-strong); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 26px; background: none; border: 0; color: #fff; font-size: 15.5px; text-align: left; cursor: pointer; }
.chev { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform .45s var(--ease), background .3s; position: relative; }
.chev::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: translateY(-2px) rotate(45deg); }
.faq-item.is-open .chev { transform: rotate(180deg); background: rgba(255,255,255,.08); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 26px 24px; color: var(--text-2); font-size: 14.5px; line-height: 1.62; max-width: 640px; }

/* ---------- closing cta ---------- */
.cta { position: relative; padding: 200px 0 180px; overflow: hidden; isolation: isolate; background: #000; }
.scene-cta { height: 100%; }
.scene-cta .scene-sky { background:
    radial-gradient(42% 30% at 50% 50%, rgba(165, 243, 252, 0.4), rgba(139, 92, 246, 0.26) 45%, transparent 75%),
    linear-gradient(to bottom, #000 0%, #04030e 24%, #0f0a2e 40%, #2a1569 50%, #150a30 58%, #000 72%); }
.scene-cta .scene-core, .scene-cta .scene-rings { top: 50%; }
.scene-cta .scene-layer { filter: hue-rotate(-18deg); }
.cta-inner { position: relative; z-index: 2; text-align: center; }
.cta h2 { font-size: clamp(36px, 5vw, 58px); letter-spacing: -0.04em; line-height: 1.08; }
.cta-body { max-width: 540px; margin: 20px auto 0; color: var(--text-2); font-size: 15.5px; text-wrap: pretty; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 44px; }
.cta-note { font-size: 13.5px; color: var(--text-3); }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); background: #000; padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--text-3); font-size: 14px; margin: 18px 0 10px; max-width: 280px; }
.footer-mail { color: var(--text-2); font-size: 14px; }
.footer-mail:hover { color: #fff; }
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col h5 { font-family: var(--font); font-size: 13px; font-weight: 500; color: #fff; letter-spacing: 0; margin-bottom: 6px; }
.footer-col a { color: var(--text-3); font-size: 14px; transition: color .3s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .console { grid-template-columns: 180px 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-plain, .nav-actions .btn { display: none; }
  .nav-burger { display: block; }
  .hero { padding: 136px 0 60px; }
  .hero h1 { font-size: clamp(38px, 10.5vw, 52px); }
  .hero-mock { margin-top: 56px; }
  .console { grid-template-columns: 1fr; min-height: 0; }
  .console-side { display: none; }
  .console-grid { grid-template-columns: 1fr 1fr; }
  .console-grid .stat-card:last-child { display: none; }
  .scene { height: min(640px, 86vh); }
  .scene-cta { height: 100%; }
  .scene-core { width: 110px; height: 110px; margin: -55px 0 0 -55px; }
  .intro { padding: 70px 0 50px; }
  .section { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .section-head > p, .section-head > .text-link { justify-self: start; }
  .tab-list { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin-bottom: 18px; padding-bottom: 2px; }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab { flex: none; padding: 10px 14px; font-size: 13px; }
  .tab-stage { aspect-ratio: 4 / 3; }
  .tab-caption p { font-size: 13px; }
  .mock { padding: 22px 18px 0; }
  .app-bar .chip { display: none; }
  .app-body { padding: 14px; gap: 12px; }
  .app-body.two, .board, .roadmap { grid-template-columns: 1fr; }
  .tiles, .tiles.four { grid-template-columns: repeat(2, 1fr); }
  .pipeline { flex-wrap: wrap; justify-content: center; }
  .pipe { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento-card { min-height: 0; }
  .bento-card.is-wide { flex-direction: column; }
  .bento-text { padding: 32px 28px; }
  .bento-visual { min-height: 280px; padding: 28px 0 0 28px; }
  .bento-visual > * { left: 28px; top: 28px; right: -16px; }
  .is-wide .bento-visual > * { left: 28px; right: -16px; }
  .stack-card { grid-template-columns: 1fr; padding: 32px 28px; min-height: 0; margin-bottom: 18vh; top: calc(var(--nav-h) + 20px + var(--i) * 10px); }
  .stack-visual { display: none; }
  .bio-card { grid-template-columns: 1fr; gap: 20px; padding: 30px 26px; }
  .projects-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan.is-featured { transform: none; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .faq-cats { display: flex; overflow-x: auto; scrollbar-width: none; }
  .faq-cat { flex: none; padding: 10px 16px; }
  .faq-aside { display: none; }
  .cta { padding: 110px 0 100px; }
  .btn-lg { width: 100%; max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .container, .container-wide { width: calc(100% - 32px); }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 22px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .run-line { opacity: 1; }
}
