:root {
  --bg: #05060f;
  --bg-2: #0a0c1d;
  --fg: #e8eaf6;
  --muted: #8b90b0;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.035);
  --grad: linear-gradient(100deg, #22d3ee 0%, #a78bfa 45%, #f472b6 100%);
  --radius: 22px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

.grad-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* ---------- ambient layers ---------- */
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12), transparent 60%);
  transform: translate3d(var(--x, -999px), var(--y, -999px), 0);
  transition: opacity .3s;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1200px, 100% - 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(10, 12, 29, 0.6);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: .12em; }
.brand-mark { width: 30px; height: 30px; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--grad); transition: right .35s var(--ease); }
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { right: 0; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--fg); color: var(--bg); box-shadow: 0 0 0 0 rgba(167,139,250,.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgba(167,139,250,.7); }
.btn-ghost { border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.25); transform: translateY(-2px); }
.btn-small { padding: 9px 18px; font-size: 13px; }
.btn-glow { background: rgba(167,139,250,.12); border: 1px solid rgba(167,139,250,.35); }
.btn-glow:hover { background: rgba(167,139,250,.22); box-shadow: 0 0 24px rgba(167,139,250,.4); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
#webgl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: 1; pointer-events: none;
  background: linear-gradient(transparent, var(--bg));
}
.hero-fallback {
  display: none; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(40% 50% at 70% 50%, rgba(124,58,237,.45), transparent 70%),
    radial-gradient(30% 40% at 78% 40%, rgba(34,211,238,.3), transparent 70%),
    radial-gradient(30% 40% at 62% 62%, rgba(244,114,182,.25), transparent 70%);
  animation: float 12s ease-in-out infinite alternate;
}
.no-webgl .hero-fallback { display: block; }
@keyframes float { to { transform: translate(-3%, 2%) scale(1.06); } }

.hero-content { position: relative; z-index: 2; padding-top: 80px; pointer-events: none; }
.hero-content a { pointer-events: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; color: var(--muted); border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(8px);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

.hero-title {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(44px, 7.4vw, 104px); margin: 24px 0; max-width: 11ch;
}
.hero-title .line { display: block; }
.hero-sub { max-width: 540px; font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); margin: 0 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 48px; margin: 56px 0 0; padding: 0; }
.hero-stats div { border-left: 1px solid var(--line); padding-left: 16px; }
.hero-stats dt { font-family: var(--display); font-size: 36px; font-weight: 600; line-height: 1; }
.hero-stats dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

.hero-hint {
  position: absolute; bottom: 32px; right: 40px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); letter-spacing: .08em;
}
.mouse { width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,.3); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.mouse span { width: 3px; height: 7px; border-radius: 2px; background: var(--fg); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

.planet-labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.planet-label {
  position: absolute; top: 0; left: 0; pointer-events: auto; cursor: pointer;
  display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .02em; white-space: nowrap;
  background: rgba(10,12,29,.55); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px);
  transition: opacity .3s, border-color .3s, box-shadow .3s, scale .3s var(--ease);
  will-change: transform;
}
.planet-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.planet-label.active, .planet-label:hover { border-color: var(--c); box-shadow: 0 0 24px -4px var(--c); scale: 1.08; }
.planet-label.hidden { opacity: 0; pointer-events: none; }

/* ---------- marquee ---------- */
.marquee {
  display: flex; overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; position: relative; z-index: 2;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 56px; padding-right: 56px; flex-shrink: 0; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: var(--display); font-size: 20px; color: rgba(232,234,246,.45); white-space: nowrap; }
.marquee-track span:nth-child(3n) { color: rgba(232,234,246,.8); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: 140px 0; z-index: 2; }
.section-head { max-width: 760px; margin-bottom: 64px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.section-head h2, .cta h2 {
  font-family: var(--display); font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -.03em; margin: 16px 0 20px;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1200px; }
.card {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; padding: 28px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), border-color .4s;
  display: flex; flex-direction: column;
}
.card:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); transition: transform .1s linear, border-color .4s; }
.card-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 22%, transparent), transparent 45%);
}
.card:hover .card-glow { opacity: 1; }
.card::before {
  content: ""; position: absolute; top: -1px; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: .6;
}
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  box-shadow: 0 0 30px -8px var(--c);
}
.card-icon svg { width: 24px; height: 24px; }
.badge { font-size: 11px; font-family: var(--mono); color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.card h3 { font-family: var(--display); font-size: 26px; margin: 0; letter-spacing: -.02em; }
.card-cat { color: var(--c); font-size: 14px; margin: 4px 0 14px; font-weight: 500; }
.card-desc { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.card-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 14px; }
.card-list li { display: flex; gap: 10px; align-items: baseline; }
.card-list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 2px; background: var(--c); transform: translateY(-2px) rotate(45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chips span { font-size: 11px; font-family: var(--mono); padding: 4px 9px; border-radius: 6px; background: rgba(255,255,255,.05); color: rgba(232,234,246,.75); }
.card-link { margin-top: 22px; align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--c); display: inline-flex; gap: 6px; }
.card-link span { transition: transform .3s var(--ease); }
.card-link:hover span { transform: translateX(5px); }
.card-next { border-style: dashed; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.015); justify-content: center; }
.card-next h3 { background: linear-gradient(90deg, #22d3ee, #a78bfa, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-next .card-cat { color: var(--muted); }
.card-next .card-link { color: var(--fg); }
.card-next:hover .card-link span { transform: translateX(5px); }
.card-next-orb {
  position: relative; width: 64px; height: 64px; margin-bottom: 26px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-size: 30px; font-weight: 600;
  border: 1px dashed rgba(255,255,255,.35);
}
.card-next-orb::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: #22d3ee; border-right-color: #f472b6;
  animation: spin 3.5s linear infinite;
}
.card-next-orb span { background: linear-gradient(135deg, #22d3ee, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- showcase ---------- */
.showcase { background: radial-gradient(60% 50% at 50% 0%, rgba(124,58,237,.12), transparent 70%); }
.showcase-wrap {
  display: grid; grid-template-columns: 260px 1fr; gap: 20px;
  border: 1px solid var(--line); border-radius: 28px; padding: 14px;
  background: rgba(10,12,29,.5); backdrop-filter: blur(20px);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.8);
}
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tab {
  position: relative; text-align: left; padding: 14px 16px 14px 40px; border-radius: 16px;
  font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--muted);
  transition: background .3s, color .3s;
}
.tab small { display: block; font-family: var(--font); font-size: 12px; font-weight: 400; opacity: .7; }
.tab i { position: absolute; left: 16px; top: 22px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c); transition: background .3s, box-shadow .3s; }
.tab:hover { color: var(--fg); background: rgba(255,255,255,.03); }
.tab.is-active { color: var(--fg); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, transparent), transparent); }
.tab.is-active i { background: var(--c); box-shadow: 0 0 12px var(--c); }

.stage { position: relative; min-height: 560px; border-radius: 20px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(80% 70% at 50% 60%, #000, transparent);
}
.panel {
  position: absolute; inset: 0; padding: 36px; display: grid; grid-template-rows: auto 1fr; gap: 24px;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.985);
  transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .5s;
}
.panel::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -160px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 28%, transparent), transparent 65%); pointer-events: none;
}
.panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.panel-copy { max-width: 620px; position: relative; z-index: 1; }
.panel-copy h3 { font-family: var(--display); font-size: 28px; margin: 0 0 8px; letter-spacing: -.02em; }
.panel-copy p { margin: 0; color: var(--muted); font-size: 15px; }
.mock { position: relative; z-index: 1; display: flex; gap: 24px; align-items: center; justify-content: center; }

/* khata */
.phone {
  position: relative; width: 250px; height: 340px; border-radius: 32px; padding: 30px 16px 16px;
  background: #0d1024; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), inset 0 0 0 6px #080a17;
  overflow: hidden;
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 70px; height: 8px; border-radius: 8px; background: #000; }
.kh-head small { color: var(--muted); font-size: 11px; }
.kh-bal { font-size: 12px; color: var(--muted); }
.kh-bal strong { display: block; font-family: var(--display); font-size: 26px; color: var(--c); }
.kh-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.kh-list li {
  display: flex; justify-content: space-between; font-size: 12px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04);
  animation: slideIn .5s var(--ease) both;
}
.kh-list li small { color: var(--muted); display: block; font-size: 10px; }
.kh-list .g { color: #f87171; } .kh-list .r { color: var(--c); }
.kh-list .rev { opacity: .55; text-decoration: line-through; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } }
.kh-actions { position: absolute; bottom: 14px; left: 16px; right: 16px; display: flex; gap: 8px; }
.kh-actions span { flex: 1; text-align: center; font-size: 12px; font-weight: 600; padding: 9px; border-radius: 10px; }
.kh-actions .gave { background: rgba(248,113,113,.15); color: #f87171; }
.kh-actions .got { background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.toast {
  position: absolute; left: 16px; right: 16px; bottom: 60px; padding: 8px; font-size: 11px; text-align: center; border-radius: 10px;
  background: var(--c); color: #0b0d1a; font-weight: 600; opacity: 0; transform: translateY(10px); transition: .4s var(--ease);
}
.toast.show { opacity: 1; transform: none; }
.invoice {
  width: 270px; padding: 20px; border-radius: 18px; font-size: 13px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid var(--line);
  transform: rotate(3deg); box-shadow: 0 30px 60px -25px rgba(0,0,0,.8);
  animation: hover 6s ease-in-out infinite;
}
@keyframes hover { 50% { transform: rotate(1deg) translateY(-8px); } }
.inv-head { display: flex; justify-content: space-between; margin-bottom: 14px; font-weight: 600; letter-spacing: .08em; font-size: 11px; }
.inv-head code { font-family: var(--mono); color: var(--c); }
.inv-row, .inv-total { display: flex; justify-content: space-between; padding: 6px 0; }
.inv-row.muted { color: var(--muted); }
.inv-total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 16px; }
.inv-foot { margin-top: 12px; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ok-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }

/* construction */
.dash { width: 400px; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.dash-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 14px; }
.dash-head span { color: var(--muted); font-size: 12px; }
.bars { display: flex; gap: 14px; height: 150px; align-items: flex-end; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; gap: 3px; position: relative; padding-bottom: 18px; }
.bar-col span { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); }
.bar-col i { display: block; height: var(--h); border-radius: 4px; transform-origin: bottom; transform: scaleY(0); }
.bar-col i:nth-of-type(1) { background: var(--c); }
.bar-col i:nth-of-type(2) { background: #94a3b8; }
.bar-col i:nth-of-type(3) { background: #fde68a; }
.panel.is-active .bar-col i { transform: scaleY(1); transition: transform .8s var(--ease) calc(var(--d) + .2s); }
.legend { display: flex; gap: 16px; font-size: 11px; color: var(--muted); margin: 12px 0; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.l1 { background: var(--c); } .l2 { background: #94a3b8; } .l3 { background: #fde68a; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis div { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.kpis small { display: block; font-size: 10px; color: var(--muted); }
.kpis strong { font-family: var(--display); font-size: 17px; }
.kpis .warn { color: var(--c); }
.mail {
  display: flex; gap: 12px; align-items: center; width: 250px; padding: 16px; border-radius: 16px; font-size: 13px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, transparent), rgba(255,255,255,.02));
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  animation: hover 5s ease-in-out infinite;
}
.mail small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.mail-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--c); color: #1a1200; }
.mail-icon svg { width: 20px; }

/* eduplay */
.tablet { padding: 16px; border-radius: 26px; background: #0d1024; border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 0 0 6px #080a17; }
.ep-tiles { display: grid; grid-template-columns: repeat(3, 96px); gap: 10px; }
.ep-tile {
  aspect-ratio: 1; border-radius: 18px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(150deg, color-mix(in srgb, var(--t) 40%, transparent), color-mix(in srgb, var(--t) 10%, transparent));
  border: 1px solid color-mix(in srgb, var(--t) 50%, transparent);
  transition: transform .4s var(--ease);
  animation: bob 4s ease-in-out infinite;
}
.ep-tile:nth-child(2n) { animation-delay: -1s; } .ep-tile:nth-child(3n) { animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.ep-tile:hover { transform: scale(1.06) rotate(-2deg); }
.ep-tile b { font-family: var(--display); font-size: 22px; }
.ep-tile span { font-size: 11px; font-weight: 600; }
.ep-tile em { font-style: normal; font-size: 10px; color: #fde047; }
.ep-game { width: 240px; padding: 20px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--line); text-align: center; }
.ep-game small { color: var(--muted); font-size: 12px; }
.ep-q { font-family: var(--display); font-size: 40px; font-weight: 700; margin: 6px 0 12px; transition: opacity .3s; }
.ep-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ep-choices span {
  min-height: 48px; display: grid; place-items: center; border-radius: 14px; font-weight: 700; font-size: 18px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: .3s var(--ease);
}
.ep-choices span.no { opacity: .3; font-size: 11px; font-weight: 500; }
.ep-choices span.yes { background: var(--c); color: #2a0618; transform: scale(1.06); box-shadow: 0 0 24px -4px var(--c); }
.ep-meter { display: flex; gap: 5px; margin: 16px 0 8px; }
.ep-meter i { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); transition: background .4s, box-shadow .4s; }
.ep-meter i.on { background: var(--c); box-shadow: 0 0 10px var(--c); }
.ep-acc { font-size: 12px; color: var(--muted); }
.ep-acc strong { color: var(--fg); }

/* erp */
.layers { position: relative; width: 340px; height: 300px; perspective: 900px; }
.layer {
  position: absolute; left: 20px; right: 20px; top: calc(40px + var(--i) * 70px); height: 120px; border-radius: 18px; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(140deg, rgba(96,165,250,.14), rgba(96,165,250,.03)); border: 1px solid rgba(96,165,250,.25);
  transform: rotateX(58deg) rotateZ(-30deg); transform-origin: center; backdrop-filter: blur(4px);
  animation: layerFloat 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s);
  font-size: 13px; font-weight: 600;
}
.layer code { font-family: var(--mono); font-size: 10px; color: var(--muted); font-weight: 400; }
.layer.active { border-color: var(--c); background: linear-gradient(140deg, rgba(96,165,250,.35), rgba(96,165,250,.06)); box-shadow: 0 0 60px -10px var(--c); }
@keyframes layerFloat { 50% { transform: rotateX(58deg) rotateZ(-30deg) translateZ(14px); } }
.shield {
  position: absolute; right: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--c); background: rgba(96,165,250,.12); border: 1px solid rgba(96,165,250,.4);
}
.shield svg { width: 16px; }
.audit { width: 300px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); overflow: hidden; font-size: 12px; }
.audit-head, .audit-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.audit-head { border-bottom: 1px solid var(--line); font-weight: 600; }
.live { font-family: var(--mono); font-size: 10px; color: #f87171; display: flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f87171; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.audit-window { height: 180px; overflow: hidden; mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.audit-list { list-style: none; margin: 0; padding: 0 16px; animation: scrollUp 14s linear infinite; }
.audit-list li { padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.05); color: var(--muted); white-space: nowrap; }
.audit-list code { font-family: var(--mono); font-size: 10px; margin-right: 6px; }
.audit-list b { color: var(--c); font-weight: 500; font-family: var(--mono); font-size: 11px; }
@keyframes scrollUp { to { transform: translateY(-50%); } }
.audit-foot { border-top: 1px solid var(--line); color: var(--muted); }
.audit-foot strong { color: #34d399; font-family: var(--mono); }

/* fraigent */
.term { width: min(640px, 100%); border-radius: 16px; overflow: hidden; background: #070814; border: 1px solid rgba(167,139,250,.25); box-shadow: 0 0 80px -30px var(--c); font-family: var(--mono); font-size: 12px; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.term-bar i:nth-child(2) { background: #fbbf24; } .term-bar i:nth-child(3) { background: #34d399; }
.term-bar span { margin-left: 10px; color: var(--muted); font-size: 11px; }
.agents { padding: 14px; display: grid; gap: 10px; }
.agent { display: grid; grid-template-columns: 90px 1fr 70px 110px; gap: 12px; align-items: center; }
.agent .name { color: var(--fg); }
.agent .track { height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.agent .fill { height: 100%; width: 0; background: linear-gradient(90deg, #6d28d9, var(--c)); border-radius: 4px; transition: width .4s var(--ease); }
.agent .score { color: var(--muted); text-align: right; }
.agent .state { font-size: 10px; padding: 3px 8px; border-radius: 999px; text-align: center; background: rgba(255,255,255,.05); color: var(--muted); }
.agent.dq .fill { background: #f87171; } .agent.dq .state { background: rgba(248,113,113,.15); color: #f87171; }
.agent.win .state { background: rgba(52,211,153,.15); color: #34d399; box-shadow: 0 0 16px -4px #34d399; }
.agent.win .fill { background: linear-gradient(90deg, #059669, #34d399); }
.term-log { margin: 0; padding: 12px 14px; height: 150px; overflow: hidden; border-top: 1px solid var(--line); color: var(--muted); white-space: pre-wrap; display: flex; flex-direction: column; justify-content: flex-end; }
.term-log .ok { color: #34d399; } .term-log .bad { color: #f87171; } .term-log .hl { color: var(--c); }

/* splitit */
.si-card { width: 320px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.si-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 14px; }
.si-head span { font-family: var(--display); font-weight: 700; color: var(--c); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px; border-radius: 12px; background: rgba(0,0,0,.3); margin-bottom: 14px; }
.seg button { padding: 7px 0; font-size: 12px; border-radius: 9px; color: var(--muted); transition: .3s; }
.seg button.on { background: var(--c); color: #03201c; font-weight: 600; }
.si-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.si-rows li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.si-rows .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--av); color: #0b0d1a; }
.si-rows .meta small { display: block; color: var(--muted); font-size: 10px; }
.si-rows .bar { height: 4px; margin-top: 4px; border-radius: 2px; background: rgba(255,255,255,.06); overflow: hidden; }
.si-rows .bar i { display: block; height: 100%; background: var(--c); transition: width .6s var(--ease); }
.si-rows .amt { font-family: var(--mono); font-weight: 600; }
.si-graph { width: 260px; text-align: center; }
.si-graph svg { width: 100%; overflow: visible; }
.edges path { stroke: var(--c); stroke-width: 1.6; marker-end: url(#arw); stroke-dasharray: 4 4; animation: dash 1s linear infinite; transition: opacity .6s; }
@keyframes dash { to { stroke-dashoffset: -8; } }
.edges.after { opacity: 0; } .edges.after path { stroke-width: 2.4; stroke-dasharray: none; }
.si-graph.simplified .edges.before { opacity: 0; }
.si-graph.simplified .edges.after { opacity: 1; }
.nodes circle { fill: #0d1024; stroke: var(--c); stroke-width: 1.5; }
.nodes text { fill: var(--fg); font-family: var(--display); font-size: 14px; font-weight: 700; text-anchor: middle; stroke: none; }
.si-label { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; margin-top: 8px; }
.si-label span:first-child { font-family: var(--mono); color: var(--c); min-width: 84px; }
.si-label small { color: var(--muted); }
.switch { width: 34px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.12); position: relative; transition: background .3s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.simplified .switch { background: var(--c); }
.simplified .switch::after { transform: translateX(14px); }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.principle { position: relative; padding: 36px 32px; background: var(--bg); transition: background .4s; overflow: hidden; }
.principle::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(120% 80% at 0% 0%, rgba(167,139,250,.12), transparent 60%);
}
.principle:hover::before { opacity: 1; }
.p-num { font-family: var(--mono); font-size: 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.principle h4 { font-family: var(--display); font-size: 22px; margin: 18px 0 10px; letter-spacing: -.01em; position: relative; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; position: relative; }

/* ---------- CTA ---------- */
.cta-section { overflow: hidden; text-align: center; padding: 180px 0; }
.cta { position: relative; z-index: 1; }
.cta h2 { max-width: 900px; margin-inline: auto; font-size: clamp(38px, 5.6vw, 76px); }
.cta p { color: var(--muted); font-size: 18px; margin: 0 0 36px; }
.cta .hero-cta { justify-content: center; }
.cta-orb {
  position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; translate: -50% -50%; border-radius: 50%; filter: blur(60px); opacity: .55;
  background: conic-gradient(from 0deg, #22d3ee, #a78bfa, #f472b6, #fb923c, #a3e635, #2dd4bf, #22d3ee);
  animation: spin 22s linear infinite;
  mask-image: radial-gradient(circle, #000 0%, transparent 65%);
}

/* ---------- footer ---------- */
.footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; position: relative; z-index: 2; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--fg); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-content::before {
    content: ""; position: absolute; inset: -40px -24px; z-index: -1; pointer-events: none;
    background: radial-gradient(90% 70% at 30% 40%, rgba(5,6,15,.78), transparent 75%);
  }
  .planet-label { font-size: 11px; opacity: .85; }
  .cards, .principles { grid-template-columns: repeat(2, 1fr); }
  .showcase-wrap { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .tab { flex: none; }
  .stage { min-height: 0; }
  .panel { position: relative; inset: auto; display: none; }
  .panel.is-active { display: grid; }
  .mock { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .cards, .principles { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .hero-stats dt { font-size: 28px; }
  .hero-hint { display: none; }
  .section { padding: 96px 0; }
  .panel { padding: 22px; }
  .dash, .invoice, .term { width: 100%; }
  .agent { grid-template-columns: 70px 1fr 50px; }
  .agent .state { grid-column: 1 / -1; justify-self: start; }
  .ep-tiles { grid-template-columns: repeat(3, 72px); }
  .layers { transform: scale(.85); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
