/* =========================================================
   SUPHI.ORG — v6
   Palette: void black + acid lime, violet/cyan as signals
   ========================================================= */
:root {
  --bg: #060608;
  --bg-2: #0b0b0f;
  --panel: #0d0d12;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #ececf1;
  --muted: #8b8b96;
  --dim: #3a3a44;
  --acc: #c6ff3d;
  --acc-rgb: 198, 255, 61;
  --vio: #8b5cff;
  --cy: #2de2e6;
  --red: #ff4d5e;
  --yel: #ffc53d;

  --f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.is-loading { overflow: hidden; }
::selection { background: var(--acc); color: #000; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
canvas, svg { display: block; }
kbd {
  font: 500 10px/1 var(--f-mono);
  padding: 4px 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: var(--muted);
  letter-spacing: .04em;
  white-space: nowrap;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.c-acc { color: var(--acc); } .c-vio { color: var(--vio); } .c-cy { color: var(--cy); } .c-red { color: var(--red); } .c-yel { color: var(--yel); } .c-mut { color: var(--muted); } .c-dim { color: var(--dim); } .c-txt { color: var(--text); }

body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor input { cursor: none; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -100%;
  width: 300%; height: 300%;
  pointer-events: none; z-index: 120;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
}

/* ---------- boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 400;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--pad);
  background: #050506;
  font-family: var(--f-mono);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease);
  cursor: pointer;
}
.boot.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.boot__top { display: flex; justify-content: space-between; gap: 24px; }
.boot__log { font-size: 12px; line-height: 1.9; color: var(--muted); }
.boot__log div { animation: tIn .3s var(--ease); white-space: nowrap; }
.boot__log .ok { color: var(--acc); }
.boot__skip { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .15em; }
.boot__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.boot__brand { font: 800 clamp(28px, 5vw, 64px)/1 var(--f-display); letter-spacing: -.04em; }
.boot__brand span { color: var(--acc); }
.boot__brand small { display: block; margin-top: 12px; font: 500 11px var(--f-mono); letter-spacing: .4em; color: var(--muted); text-transform: uppercase; }
.boot__pct { font: 200 clamp(80px, 18vw, 260px)/.78 var(--f-display); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.boot__pct small { font-size: .25em; color: var(--acc); margin-left: .1em; }
.boot__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.boot__bar i { display: block; height: 100%; width: 0; background: var(--acc); box-shadow: 0 0 24px var(--acc); }

/* ---------- cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 500; pointer-events: none; mix-blend-mode: difference; display: none; }
body.has-cursor .cursor { display: block; }
.cursor.is-hidden { opacity: 0; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(255, 255, 255, .55);
  display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, border-color .3s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #fff; border-color: #fff; }
.cursor.is-text .cursor__ring { width: 4px; height: 28px; margin: -14px 0 0 -2px; border-radius: 2px; background: #fff; }
.cursor.has-label { mix-blend-mode: normal; }
.cursor.has-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--acc); border-color: var(--acc); }
.cursor.has-label .cursor__dot { opacity: 0; }
.cursor__label { font: 700 10px var(--f-mono); color: #000; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.cursor.has-label .cursor__label { opacity: 1; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 450;
  transform: translate(-50%, calc(100% + 60px));
  visibility: hidden;
  padding: 14px 22px; border-radius: 99px;
  background: var(--acc); color: #000;
  font: 700 11px var(--f-mono); text-transform: uppercase; letter-spacing: .14em;
  box-shadow: 0 20px 60px -10px rgba(var(--acc-rgb), .5);
  transition: transform .6s var(--ease), visibility 0s .6s;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease), visibility 0s; }

.matrix { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 350; opacity: 0; pointer-events: none; transition: opacity .6s; background: #000; }
.matrix.is-on { opacity: 1; pointer-events: auto; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  border-bottom: 1px solid transparent;
  transition: transform .6s var(--ease), background .4s, border-color .4s, padding .4s var(--ease);
}
.nav.is-scrolled { background: rgba(6, 6, 8, .62); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); padding-top: 12px; padding-bottom: 12px; }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { font: 800 15px var(--f-display); letter-spacing: -.03em; }
.nav__logo span { color: var(--acc); }
.nav__links { display: flex; gap: clamp(20px, 3vw, 44px); font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.nav__links a { transition: color .3s; white-space: nowrap; }
.nav__links a::before { content: attr(data-n) ' '; color: var(--acc); opacity: .7; font-size: 9px; vertical-align: top; }
.nav__links a:hover { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 14px; font: 500 11px var(--f-mono); }
.nav__clock { color: var(--muted); letter-spacing: .1em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav__term { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--acc); transition: background .3s, border-color .3s; }
.nav__term:hover { background: rgba(var(--acc-rgb), .1); border-color: rgba(var(--acc-rgb), .4); }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 54px; padding: 0 26px;
  border-radius: 99px; overflow: hidden;
  font: 600 12px var(--f-mono); text-transform: uppercase; letter-spacing: .1em;
  white-space: nowrap;
  transition: transform .5s var(--ease), border-color .3s, color .3s;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn--primary { background: var(--acc); color: #000; }
.btn--primary::before { background: #fff; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: #000; }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translate(3px, -3px); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--bg); }
#swarm { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero { user-select: none; -webkit-user-select: none; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, transparent 45%, rgba(6, 6, 8, .85) 100%);
}
.hero__hud { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 2px; font: 500 10.5px/1.8 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .16em; pointer-events: none; }
.hero__hud b { color: var(--acc); font-weight: 500; font-variant-numeric: tabular-nums; }
.hero__hud--tl { top: 104px; left: var(--pad); }
.hero__hud--tr { top: 104px; right: var(--pad); text-align: right; }
.hero__bottom {
  position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(70px, 10vh, 110px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  pointer-events: none;
}
.hero__bottom > * { pointer-events: auto; }
.hero__lead { max-width: 620px; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.22; font-weight: 600; letter-spacing: -.025em; }
.hero__lead em { font-style: normal; color: var(--acc); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta {
  position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 24px;
  display: flex; justify-content: space-between; gap: 16px;
  font: 500 10px var(--f-mono); color: var(--dim); text-transform: uppercase; letter-spacing: .16em; pointer-events: none;
}
.hero__coords b { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

.w { display: inline-block; }
.js .hero__lead .w { opacity: 0; transform: translateY(.5em) rotate(2deg); filter: blur(8px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i) * 45ms + .35s); }
.is-ready .hero__lead .w { opacity: 1; transform: none; filter: none; }
.js [data-intro] { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .6s, transform 1s var(--ease) .6s; }
.is-ready [data-intro] { opacity: 1; transform: none; }

/* ---------- marquee ---------- */
.marquees { position: relative; height: clamp(170px, 18vw, 240px); margin: -40px 0 0; z-index: 3; overflow: hidden; }
.marquee { position: absolute; left: -5%; right: -5%; top: 50%; padding: 18px 0; background: var(--acc); color: #000; transform: translateY(-50%) rotate(-2.5deg); overflow: hidden; box-shadow: 0 20px 60px -20px rgba(var(--acc-rgb), .35); }
.marquee--alt { background: var(--bg-2); color: var(--muted); transform: translateY(-50%) rotate(2.5deg); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); box-shadow: none; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee--alt .marquee__track { animation-direction: reverse; animation-duration: 50s; }
.marquee__track span { display: flex; align-items: center; gap: 32px; padding-right: 32px; font: 800 clamp(20px, 2.8vw, 38px)/1 var(--f-display); text-transform: uppercase; letter-spacing: -.03em; white-space: nowrap; }
.marquee--alt .marquee__track span { font: 500 clamp(13px, 1.4vw, 17px)/1 var(--f-mono); letter-spacing: .14em; }
.marquee__track i { font-style: normal; opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(90px, 11vw, 160px) var(--pad); }
.section__head { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(36px, 5vw, 60px); font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.section__head .idx { color: var(--acc); }
.section__head .idx::after { content: ' //'; color: var(--dim); }
.section__head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); order: 2; }
.section__head .badge { order: 3; }
.outline { color: var(--bg); -webkit-text-stroke: clamp(2px, .22vw, 3px) var(--text); paint-order: stroke fill; }

.js [data-reveal] { opacity: 0; transform: translateY(48px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid; font: 600 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ping 2s infinite; }
.badge--live { color: var(--acc); border-color: rgba(var(--acc-rgb), .35); background: rgba(var(--acc-rgb), .06); }
.badge--dev { color: var(--yel); border-color: rgba(255, 197, 61, .35); background: rgba(255, 197, 61, .06); }
.badge--dev i { animation-name: pingY; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(var(--acc-rgb), .6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(var(--acc-rgb), 0); } }
@keyframes pingY { 0% { box-shadow: 0 0 0 0 rgba(255, 197, 61, .6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(255, 197, 61, 0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes tIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- project ---------- */
.project__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.project__name { font: 800 clamp(64px, 14vw, 230px)/.82 var(--f-display); letter-spacing: -.055em; }
.project__name span { color: var(--acc); }
.project--ai .project__name span { margin-left: .08em; color: transparent; -webkit-text-stroke: clamp(2px, .25vw, 4px) var(--acc); }
.project__kicker { font: 500 clamp(12px, 1vw, 14px)/1.7 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .18em; text-align: right; padding-bottom: 1.2em; }

.project__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(40px, 6vw, 80px); align-items: start; }
.project__grid--rev { grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); }
.project__desc { font-size: clamp(18px, 1.55vw, 23px); line-height: 1.45; font-weight: 500; letter-spacing: -.015em; color: #c9c9d3; }
.project__desc em { font-style: normal; color: var(--acc); }
.feats { list-style: none; margin: 34px 0 34px; border-top: 1px solid var(--line); }
.feats li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.feats li:hover { padding-left: 10px; }
.feats b { font: 500 11px var(--f-mono); color: var(--acc); padding-top: 4px; }
.feats h4 { font: 700 16px/1.3 var(--f-display); letter-spacing: -.03em; }
.feats p { margin-top: 4px; color: var(--muted); font-size: 14.5px; }

[data-spotlight] { position: relative; }
[data-spotlight]::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx, -999px) var(--my, -999px), rgba(var(--acc-rgb), .07), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
[data-spotlight]:hover::before { opacity: 1; }

/* ---------- S-APIs demo ---------- */
.demo {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 24px;
  background: linear-gradient(170deg, #111117, #09090c 60%);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 120px -50px rgba(var(--acc-rgb), .25);
  font-family: var(--f-mono);
}
.demo > * { position: relative; z-index: 1; }
.demo__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); flex-wrap: wrap; }
.demo__brand { display: flex; align-items: center; gap: 9px; font: 700 13px var(--f-display); letter-spacing: -.02em; color: var(--text); }
.demo__brand svg { color: var(--acc); }
.demo__brand span { font: 400 11px var(--f-mono); color: var(--muted); letter-spacing: 0; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 99px; background: rgba(0, 0, 0, .3); }
.seg button { padding: 6px 14px; border-radius: 99px; font: 600 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: background .3s, color .3s; }
.seg button.is-on { background: var(--acc); color: #000; }
.demo__run { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(var(--acc-rgb), .3); color: var(--acc); font: 600 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.demo__run i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ping 1.6s infinite; }
.demo__run.is-paused { color: var(--red); border-color: rgba(255, 77, 94, .35); }
.demo__run.is-paused i { animation: none; }

.demo__stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.demo__stats > div { padding: 16px 18px; border-left: 1px solid var(--line); min-width: 0; }
.demo__stats > div:first-child { border-left: 0; }
.demo__stats span { display: block; font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; }
.demo__stats b { display: block; margin-top: 6px; font: 500 clamp(18px, 1.7vw, 26px)/1 var(--f-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__stats > div:first-child b { color: var(--acc); }
.demo__stats b.bump { animation: bump .4s var(--ease); }
@keyframes bump { 30% { color: #fff; text-shadow: 0 0 18px rgba(var(--acc-rgb), .9); } }

.demo__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); height: 400px; }
.demo__pane { display: flex; flex-direction: column; min-height: 0; padding: 14px 18px; }
.demo__pane--log { border-right: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.demo__label { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; }
.demo__label b { color: var(--acc); font-weight: 500; }
.log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; font-size: 11px; line-height: 1.85; mask-image: linear-gradient(180deg, transparent, #000 30%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); }
.log div { flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dim); animation: tIn .3s var(--ease); }
.log div .t { color: #55555f; }
.log div.hit { color: var(--acc); }
.log div.ph { color: var(--cy); }
.log div.sk { color: #6b6b75; }

.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.cchips { display: flex; flex-wrap: wrap; gap: 5px; }
.cchips button { padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 8px; font: 600 10px var(--f-mono); letter-spacing: .08em; color: var(--muted); transition: all .25s; }
.cchips button:hover { color: var(--text); border-color: var(--dim); }
.cchips button.is-on { background: var(--text); color: #000; border-color: var(--text); }
.range { display: flex; flex-direction: column; gap: 8px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.range b { color: var(--acc); font-weight: 500; }
.range input { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--acc) var(--fill, 0%), var(--line-2) var(--fill, 0%)); outline: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--acc); border: 3px solid #0b0b0f; box-shadow: 0 0 0 1px var(--acc), 0 0 16px rgba(var(--acc-rgb), .6); }
.range input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--acc); border: 3px solid #0b0b0f; box-shadow: 0 0 0 1px var(--acc); }

.leads { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 5px; }
.lead { display: grid; grid-template-columns: minmax(0, 1.1fr) 30px 54px minmax(0, 1.4fr); gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .015); font-size: 11px; animation: leadIn .5s var(--ease); }
.lead.is-new { border-color: rgba(var(--acc-rgb), .4); background: rgba(var(--acc-rgb), .05); }
@keyframes leadIn { from { opacity: 0; transform: translateX(14px); } }
.lead__u { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc { justify-self: start; padding: 2px 5px; border-radius: 5px; background: rgba(255, 255, 255, .07); font-size: 9.5px; font-weight: 700; color: var(--text); }
.lead__f { color: var(--yel); text-align: right; font-variant-numeric: tabular-nums; }
.lead__c { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead__c .ph { color: var(--cy); margin-left: 6px; }
.leads__empty { margin: auto; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.demo__note { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 10px; color: var(--dim); letter-spacing: .06em; }

/* ---------- Social AI viz ---------- */
.aiviz {
  position: relative; overflow: hidden;
  height: 640px;
  border: 1px solid var(--line-2); border-radius: 24px;
  background: radial-gradient(ellipse at 50% 40%, rgba(139, 92, 255, .12), transparent 60%), linear-gradient(170deg, #111117, #09090c 60%);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9);
}
.aiviz::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.aiviz__wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.aiviz__wires .w0 { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1.2; }
.aiviz__wires .w1 { fill: none; stroke: var(--acc); stroke-width: 1.6; stroke-dasharray: 3 7; opacity: 0; transition: opacity .4s; animation: dash .6s linear infinite; filter: drop-shadow(0 0 4px rgba(var(--acc-rgb), .8)); }
.aiviz__wires .w1.is-on { opacity: 1; }
.aiviz__wires .pulse { fill: #fff; filter: drop-shadow(0 0 6px var(--acc)); }
@keyframes dash { to { stroke-dashoffset: -10; } }

.aiviz__col { position: absolute; top: 28px; height: calc(50% - 28px); z-index: 2; display: flex; flex-direction: column; justify-content: space-around; }
.aiviz__col--l { left: 24px; }
.aiviz__col--r { right: 24px; align-items: flex-end; }
.persona { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(10, 10, 14, .85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .4s, transform .5s var(--ease), box-shadow .4s; }
.persona i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #000; font: 800 15px var(--f-display); font-style: normal; flex: none; }
.persona b { display: block; font: 700 14px var(--f-display); letter-spacing: -.02em; }
.persona span { display: block; font: 500 10px var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.persona.is-on { border-color: rgba(var(--acc-rgb), .6); transform: translateX(6px); box-shadow: 0 0 40px -10px rgba(var(--acc-rgb), .45); }
.platform { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(10, 10, 14, .85); font: 600 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: all .4s var(--ease); }
.platform svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: rgba(255, 255, 255, .05); color: var(--text); flex: none; }
.platform.is-on { color: var(--text); border-color: rgba(var(--acc-rgb), .6); transform: translateX(-6px); box-shadow: 0 0 40px -10px rgba(var(--acc-rgb), .45); }
.platform.is-on svg { background: var(--acc); color: #000; }

.aiviz__core { position: absolute; left: 50%; top: 27%; z-index: 2; width: 92px; height: 92px; margin: -46px 0 0 -46px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #1a1a22, #0a0a0e 70%); border: 1px solid rgba(139, 92, 255, .5); box-shadow: 0 0 60px -6px rgba(139, 92, 255, .55), inset 0 0 30px rgba(139, 92, 255, .25); }
.aiviz__core b { font: 800 22px var(--f-display); letter-spacing: -.04em; background: linear-gradient(135deg, var(--acc), var(--cy)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.core__ring { position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(139, 92, 255, .45); animation: spin 14s linear infinite; }
.core__ring--2 { inset: -30px; border-style: solid; border-color: transparent; border-top-color: rgba(var(--acc-rgb), .55); border-right-color: rgba(var(--acc-rgb), .15); animation-duration: 3.2s; }
.aiviz__core.is-busy { box-shadow: 0 0 90px 0 rgba(var(--acc-rgb), .4), inset 0 0 30px rgba(var(--acc-rgb), .25); border-color: rgba(var(--acc-rgb), .7); }
@keyframes spin { to { transform: rotate(360deg); } }

.aichat { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 3; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(8, 8, 11, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.aichat__head { display: flex; align-items: center; gap: 10px; font: 500 11px var(--f-mono); color: var(--muted); }
.aichat__av { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(135deg, var(--g1, var(--acc)), var(--g2, var(--cy))); color: #000; font: 800 11px var(--f-display); font-style: normal; flex: none; }
.aichat__who { font: 700 13px var(--f-display); color: var(--text); letter-spacing: -.02em; }
.aichat__ch { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aichat__st { margin-left: auto; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; transition: background .3s, color .3s, border-color .3s; }
.aichat__st.is-done { color: #000; background: var(--acc); border-color: var(--acc); }
.msg { width: fit-content; max-width: 86%; margin-top: 12px; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.msg--q { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: #d6d6de; }
.msg--q.is-in { animation: msgIn .45s var(--ease); }
.msg--a { margin-left: auto; min-height: 5.7em; background: rgba(var(--acc-rgb), .08); border: 1px solid rgba(var(--acc-rgb), .3); border-bottom-right-radius: 4px; color: var(--text); }
.msg--a small { display: block; margin-bottom: 3px; font: 600 9.5px var(--f-mono); color: var(--acc); text-transform: uppercase; letter-spacing: .14em; }
.msg--a.is-hidden { opacity: 0; transform: translateY(8px); }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.caret { display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: text-bottom; background: var(--acc); animation: blink 1s steps(2) infinite; }

/* ---------- contact ---------- */
.contact { display: flex; flex-direction: column; justify-content: center; text-align: center; overflow: hidden; padding-bottom: clamp(110px, 12vw, 180px); }
.contact .section__head { text-align: left; }
.contact__glow {
  position: absolute; left: 50%; bottom: -30vw; width: 80vw; height: 60vw; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(var(--acc-rgb), .16), rgba(139, 92, 255, .08) 55%, transparent);
  filter: blur(20px); pointer-events: none;
  animation: glow 8s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translateX(-50%) scale(1.15); opacity: .7; } }
.contact__big { position: relative; font: 800 clamp(34px, 8.6vw, 168px)/.9 var(--f-display); letter-spacing: -.035em; text-transform: uppercase; }
.contact__big .line { display: block; }
.contact__big .outline { transition: color .5s, -webkit-text-stroke-color .5s; }
.contact__big .outline:hover { color: var(--acc); -webkit-text-stroke-color: var(--acc); }
.contact__big em { font-style: normal; color: var(--acc); }
.contact__email {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 18px;
  margin: clamp(48px, 6vw, 72px) auto 0; padding: clamp(18px, 2vw, 26px) clamp(26px, 3.4vw, 46px);
  border: 1px solid var(--line-2); border-radius: 99px;
  font: 500 clamp(17px, 2.2vw, 32px) var(--f-display); letter-spacing: -.03em;
  transition: transform .5s var(--ease), color .4s, border-color .4s;
}
.contact__email::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--acc); transform: scale(0, 1); transform-origin: left; transition: transform .6s var(--ease); }
.contact__email:hover { color: #000; border-color: var(--acc); }
.contact__email:hover::before { transform: scale(1, 1); }
.contact__links { position: relative; display: flex; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  padding: 26px var(--pad); border-top: 1px solid var(--line);
  font: 500 10.5px var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .14em;
}
.footer a:hover { color: var(--acc); }
.footer__egg { color: var(--dim); }

/* ---------- secret terminal (overlay) ---------- */
.term-backdrop { position: fixed; inset: 0; z-index: 140; background: rgba(0, 0, 0, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .45s; }
.term-backdrop.is-on { opacity: 1; pointer-events: auto; }
.term {
  position: fixed; inset: 7vh max(5vw, calc(50vw - 560px)); z-index: 150;
  display: none; flex-direction: column;
  border: 1px solid var(--line-2); border-radius: 20px;
  background: rgba(8, 8, 11, .97);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9), 0 0 100px -30px rgba(var(--acc-rgb), .25);
  font: 400 13.5px/1.7 var(--f-mono);
  overflow: hidden;
}
.term.is-max { display: flex; animation: termIn .55s var(--ease); }
@keyframes termIn { from { opacity: 0; transform: scale(.94) translateY(20px); } }
.term::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px); }
.term__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.term__lights { display: flex; gap: 8px; }
.l { width: 12px; height: 12px; border-radius: 50%; display: block; }
.l--r { background: #ff5f57; } .l--y { background: #febc2e; } .l--g { background: #28c840; }
button.l { transition: transform .2s; } button.l:hover { transform: scale(1.2); }
.term__title { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term__title span { color: var(--acc); }
.term__hint { font-size: 10px; color: var(--dim); white-space: nowrap; }
.term__body { flex: 1; overflow-y: auto; padding: 22px clamp(16px, 2.5vw, 30px); scrollbar-width: thin; scrollbar-color: var(--dim) transparent; overscroll-behavior: contain; }
.term__form { display: flex; align-items: center; gap: 10px; padding: 15px clamp(16px, 2.5vw, 30px); border-top: 1px solid var(--line); background: rgba(0, 0, 0, .35); }
.term__prompt { color: var(--muted); white-space: nowrap; }
.term__prompt b { color: var(--acc); font-weight: 700; }
.term__prompt span { color: var(--cy); }
#termInput { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; caret-color: var(--acc); }
#termInput::placeholder { color: var(--dim); }
.t-entry { margin-bottom: 16px; animation: tIn .35s var(--ease); }
.t-cmd { color: var(--muted); word-break: break-all; }
.t-cmd b { color: var(--acc); }
.t-cmd .t-path { color: var(--cy); }
.t-cmd .t-in { color: var(--text); }
.t-out { margin-top: 6px; color: #b9b9c4; word-break: break-word; }
.t-grid { display: grid; grid-template-columns: max-content 1fr; gap: 3px 28px; }
.t-ls { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.t-dir { color: var(--cy); font-weight: 700; }
.t-exec { color: var(--acc); }
.t-code { margin-top: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); white-space: pre; overflow-x: auto; color: #c9c9d3; font-size: 12.5px; line-height: 1.65; }
.t-code .k { color: var(--vio); } .t-code .f { color: var(--acc); } .t-code .s { color: var(--cy); } .t-code .n { color: var(--yel); } .t-code .c { color: var(--dim); }
.t-neo { display: flex; flex-wrap: wrap; gap: 8px 36px; align-items: flex-start; }
.t-neo pre { color: var(--acc); font: inherit; line-height: 1.2; text-shadow: 0 0 18px rgba(var(--acc-rgb), .4); }
.t-swatch { display: flex; margin-top: 10px; }
.t-swatch i { width: 26px; height: 14px; }
.t-link { color: var(--cy); text-decoration: underline; text-underline-offset: 3px; }
.t-link:hover { color: var(--acc); }
.t-btn { margin-top: 6px; padding: 6px 12px; border: 1px solid rgba(var(--acc-rgb), .4); border-radius: 8px; color: var(--acc); font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; transition: background .3s; }
.t-btn:hover { background: rgba(var(--acc-rgb), .12); }
.t-bar { display: inline-block; color: var(--acc); }

.stolen { min-height: 100vh; display: grid; place-items: center; padding: 40px; text-align: center; background: #2a0508; font-family: var(--f-mono); color: #fff; }
.stolen h1 { font: 900 clamp(32px, 6vw, 72px)/1 var(--f-display); margin-bottom: 20px; }
.stolen p { color: #ffb3ba; border: 2px solid var(--red); padding: 16px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .project__grid, .project__grid--rev { grid-template-columns: minmax(0, 1fr); }
  .project__grid--rev .aiviz { order: 2; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .project__kicker { text-align: left; padding-bottom: 0; }
}
@media (max-width: 640px) {
  .nav__clock { display: none; }
  .hero__hud--tr { display: none; }
  .hero__hud--tl { top: 84px; }
  .hero__bottom { bottom: 64px; }
  .hero__ctas .btn { height: 48px; padding: 0 20px; }
  .hero__hint { display: none; }
  .section__head { flex-wrap: wrap; }
  .section__head::after { display: none; }
  .demo__bar { padding: 12px 14px; }
  .demo__brand span { display: none; }
  .demo__stats { grid-template-columns: repeat(2, 1fr); }
  .demo__stats > div:nth-child(3) { border-left: 0; }
  .demo__stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .demo__main { grid-template-columns: minmax(0, 1fr); height: auto; }
  .demo__pane--log { height: 170px; border-right: 0; border-bottom: 1px solid var(--line); }
  .demo__pane:not(.demo__pane--log) { height: 380px; }
  .lead { grid-template-columns: minmax(0, 1fr) 28px 50px; }
  .lead__c { grid-column: 1 / -1; }
  .aiviz { height: 660px; }
  .aiviz__col { height: calc(42% - 18px); top: 18px; }
  .aiviz__col--l { left: 14px; } .aiviz__col--r { right: 14px; }
  .aiviz__core { top: 22.5%; width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .aiviz__core b { font-size: 16px; }
  .core__ring { inset: -10px; } .core__ring--2 { inset: -20px; }
  .persona { padding: 8px; gap: 0; }
  .persona > div { display: none; }
  .platform { padding: 8px; }
  .platform span { display: none; }
  .aichat { left: 12px; right: 12px; bottom: 12px; padding: 14px; }
  .msg { max-width: 94%; font-size: 13.5px; }
  .msg--a { min-height: 7.3em; }
  .term { inset: 0; border-radius: 0; font-size: 12px; }
  .term__hint { display: none; }
  .footer { justify-content: center; text-align: center; }
  .footer__egg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
