:root {
  --bg: #05060a;
  --bg-2: #0a0c14;
  --panel: rgba(14, 18, 30, 0.62);
  --line: rgba(120, 160, 255, 0.14);
  --text: #e8ecf6;
  --muted: #8a93ab;
  --cyan: #00f0ff;
  --violet: #8a5cff;
  --pink: #ff3dbb;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--pink));
  --display: "Orbitron", "Space Grotesk", system-ui, sans-serif;
  --sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--cyan); color: #000; }

.noise {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .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 baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; width: 520px; height: 520px; left: 0; top: 0; z-index: 0; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 240, 255, .09), rgba(138, 92, 255, .05) 40%, transparent 70%);
  transition: opacity .4s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ─── buttons ─── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, background .3s;
}
.btn i { font-style: normal; transition: transform .3s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn-primary { background: var(--grad); color: #04050a; box-shadow: 0 0 30px rgba(0, 240, 255, .25); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(0, 240, 255, .45); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 24px rgba(0, 240, 255, .2) inset; }
.linklike { background: none; border: 0; padding: 0; color: var(--cyan); }

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(0, 240, 255, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); } }

/* ─── nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem; padding: 1.1rem clamp(1rem, 4vw, 3rem);
  transition: background .4s, padding .4s, border-color .4s; border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5, 6, 10, .72); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 500; letter-spacing: .18em; font-size: .95rem; }
.brand b { font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark { width: 30px; height: 30px; color: var(--cyan); animation: spin 18s linear infinite; }
.nav-links { display: flex; gap: 2rem; margin-left: auto; }
.nav-links a { font-size: .9rem; color: var(--muted); position: relative; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { padding: .6rem 1.1rem; font-size: .85rem; }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); transition: transform .3s; }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ─── hero ─── */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 7rem 1rem 9rem; }
#neural { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid {
  position: absolute; inset: -50% -50% 0; pointer-events: none;
  background-image: linear-gradient(rgba(0, 240, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 240, 255, .08) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(62deg) translateY(30%);
  mask-image: linear-gradient(to top, #000 10%, transparent 60%);
  animation: gridmove 6s linear infinite;
}
@keyframes gridmove { to { background-position: 0 60px; } }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hud { position: absolute; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; color: var(--muted); line-height: 1.8; z-index: 2; }
.hud .ok { color: var(--cyan); }
.hud-tl { top: 6rem; left: clamp(1rem, 4vw, 3rem); }
.hud-tr { top: 6rem; right: clamp(1rem, 4vw, 3rem); text-align: right; }
.hud-bl { bottom: 2.2rem; left: clamp(1rem, 4vw, 3rem); }
.hero-inner { position: relative; z-index: 3; text-align: center; max-width: 1100px; }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .35em; color: var(--cyan); display: inline-flex; align-items: center; gap: 1rem; margin: 0 0 1.6rem; }
.eyebrow .line { width: 40px; height: 1px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.hero-title { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 9.5vw, 8.2rem); line-height: .95; letter-spacing: .02em; margin: 0; }
.hero-title .scramble { display: block; }
.hero-title .accent { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; filter: drop-shadow(0 0 30px rgba(0, 240, 255, .35)); }
@keyframes shimmer { to { background-position: 200% 0; } }
.hero-sub { max-width: 640px; margin: 2rem auto 2.4rem; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.hero-sub strong { color: var(--text); }
.hero-sub em { color: var(--pink); font-style: normal; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.eeg-strip {
  position: absolute; left: 1rem; right: 1rem; bottom: 2rem; margin-inline: auto; z-index: 3;
  max-width: 560px; display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem;
  padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 10, 18, .6); backdrop-filter: blur(10px);
}
.eeg-labels { display: grid; font-family: var(--mono); font-size: .6rem; color: var(--muted); align-content: space-around; }
#eeg { width: 100%; height: 70px; }
.eeg-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; color: var(--cyan); }
.scroll-hint { display: none; }

/* ─── marquee ─── */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 1.2rem 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 40s linear infinite; font-family: var(--display); font-size: clamp(.9rem, 1.6vw, 1.2rem); letter-spacing: .2em; color: var(--muted); }
.marquee-track i { color: var(--cyan); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── sections ─── */
.section { position: relative; padding: clamp(5rem, 10vw, 9rem) clamp(1rem, 5vw, 4rem); max-width: 1320px; margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.kicker { font-family: var(--mono); color: var(--cyan); font-size: .8rem; letter-spacing: .25em; margin: 0 0 1rem; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.05; margin: 0 0 1.2rem; letter-spacing: .01em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 0; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ─── loop ─── */
.loop-stage { position: relative; width: min(640px, 100%); aspect-ratio: 1; margin: 0 auto; }
.loop-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.spin-slow { transform-origin: 300px 300px; animation: spin 40s linear infinite; }
.spin-rev { transform-origin: 300px 300px; animation: spin 30s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-dot { filter: drop-shadow(0 0 8px currentColor); }
.loop-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 26%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle, rgba(0, 240, 255, .25), rgba(138, 92, 255, .12) 60%, transparent 70%);
  border: 1px solid rgba(0, 240, 255, .4); box-shadow: 0 0 60px rgba(0, 240, 255, .25), inset 0 0 40px rgba(138, 92, 255, .3);
  animation: breathe 4s ease-in-out infinite;
}
.loop-core span { font-family: var(--display); font-weight: 900; letter-spacing: .15em; font-size: clamp(.8rem, 2vw, 1.15rem); }
.loop-core small { font-family: var(--mono); color: var(--cyan); letter-spacing: .3em; font-size: .7rem; }
@keyframes breathe { 50% { box-shadow: 0 0 100px rgba(0, 240, 255, .45), inset 0 0 60px rgba(138, 92, 255, .5); } }
.loop-node {
  position: absolute; width: clamp(150px, 34%, 210px); padding: 1.1rem 1.2rem; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(14px);
  transition: border-color .3s, box-shadow .3s; transform-style: preserve-3d;
}
.loop-node:hover { border-color: rgba(0, 240, 255, .5); box-shadow: 0 0 40px rgba(0, 240, 255, .15); }
.loop-node h3 { font-family: var(--display); letter-spacing: .2em; font-size: 1rem; margin: .5rem 0 .3rem; }
.loop-node p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.loop-node .tag { display: inline-block; margin-top: .6rem; font-family: var(--mono); font-size: .65rem; color: var(--cyan); letter-spacing: .15em; }
.ln-icon { width: 40px; height: 40px; color: var(--cyan); }
.ln-icon svg { width: 100%; height: 100%; }
.n1 { left: 50%; top: 0; transform: translateX(-50%); }
.n2 { right: 0; bottom: 6%; }
.n3 { left: 0; bottom: 6%; }
.n2 .ln-icon { color: var(--violet); } .n3 .ln-icon { color: var(--pink); }

/* ─── products ─── */
.product-list { display: grid; gap: clamp(4rem, 8vw, 7rem); }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.product:nth-child(even) .p-visual { order: 2; }
.p-visual {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 50% 40%, rgba(var(--accent-rgb), .18), transparent 65%), linear-gradient(160deg, #0c1020, #06070d);
  border: 1px solid var(--line); transform-style: preserve-3d; transition: border-color .4s;
}
.p-visual:hover { border-color: rgba(var(--accent-rgb), .6); }
.p-visual img { width: 100%; height: 100%; object-fit: cover; }
.p-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 2; 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;
}
.p-visual .scan { position: absolute; left: 0; right: 0; height: 30%; z-index: 3; pointer-events: none; background: linear-gradient(transparent, rgba(var(--accent-rgb), .16), transparent); animation: scan 4.5s linear infinite; }
@keyframes scan { from { top: -30%; } to { top: 100%; } }
.p-visual .corner { position: absolute; width: 22px; height: 22px; border: 2px solid rgb(var(--accent-rgb)); z-index: 3; }
.corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; } .corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; } .corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.p-visual .wire { position: absolute; inset: 12% 15%; z-index: 1; color: rgb(var(--accent-rgb)); filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), .6)); }
.wire path, .wire circle, .wire line, .wire rect, .wire ellipse { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3.5s var(--ease) forwards, flicker 5s 3.5s infinite; }
.p-visual:not(.in-view) .wire * { animation-play-state: paused; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 92% { opacity: 1; } 93% { opacity: .4; } 95% { opacity: 1; } 96% { opacity: .6; } }
.p-visual .ph-label { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); z-index: 4; font-family: var(--mono); font-size: .68rem; letter-spacing: .3em; color: rgb(var(--accent-rgb)); white-space: nowrap; padding: .35rem .8rem; border: 1px solid rgba(var(--accent-rgb), .4); border-radius: 999px; background: rgba(5, 6, 10, .6); }
.p-visual .ph-label::before { content: "● "; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.p-visual .code { position: absolute; top: 18px; left: 50px; z-index: 4; font-family: var(--mono); font-size: .7rem; color: var(--muted); letter-spacing: .2em; }

.p-info .p-cat { font-family: var(--mono); font-size: .78rem; letter-spacing: .25em; color: rgb(var(--accent-rgb)); }
.p-info h3 { font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 2.9rem); margin: .5rem 0 .3rem; line-height: 1.05; }
.p-info .p-tag { font-size: 1.2rem; color: var(--text); margin: 0 0 1rem; }
.p-info .p-desc { color: var(--muted); margin: 0 0 1.4rem; }
.p-high { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .5rem; }
.p-high li { display: flex; gap: .7rem; align-items: baseline; }
.p-high li::before { content: "▹"; color: rgb(var(--accent-rgb)); }
.p-specs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 1.6rem; }
.p-specs div { padding: .7rem 1rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.p-specs div:nth-child(2n) { border-right: 0; }
.p-specs div:nth-last-child(-n + 2) { border-bottom: 0; }
.p-specs dt { font-family: var(--mono); font-size: .62rem; color: var(--muted); letter-spacing: .15em; text-transform: uppercase; }
.p-specs dd { margin: .1rem 0 0; font-weight: 500; }
.p-specs dd.tba { color: rgba(var(--accent-rgb), .9); font-family: var(--mono); font-size: .78rem; }
.p-buy { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.p-price { font-family: var(--display); font-size: 1.3rem; }
.p-price small { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .2em; color: var(--muted); }

/* ─── stats ─── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); background: var(--bg-2); }
.stat { padding: 3rem 1.5rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.6rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ─── applications ─── */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.app-card {
  position: relative; padding: 2rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease);
}
.app-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 240, 255, .12), transparent 40%); opacity: 0; transition: opacity .3s; }
.app-card:hover { border-color: rgba(0, 240, 255, .35); }
.app-card:hover::before { opacity: 1; }
.app-card .num { font-family: var(--mono); color: var(--cyan); font-size: .8rem; letter-spacing: .2em; }
.app-card h3 { font-size: 1.3rem; margin: 1.5rem 0 .5rem; }
.app-card p { color: var(--muted); margin: 0; }

/* ─── manifesto ─── */
.manifesto { padding: clamp(5rem, 12vw, 10rem) 1rem; text-align: center; position: relative; overflow: hidden; }
.manifesto::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(138, 92, 255, .15), transparent 60%); }
.manifesto p { position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 4.4vw, 3.6rem); line-height: 1.15; margin: 0 auto; max-width: 1000px; }

/* ─── contact ─── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1.2rem; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.contact-list span { font-family: var(--mono); color: var(--muted); font-size: .7rem; letter-spacing: .2em; width: 60px; }
.contact-list a { color: var(--cyan); }
.contact-form { display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 24px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: .4rem; }
.contact-form label span { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35);
  color: var(--text); font: inherit; outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.contact-form select option { background: var(--bg-2); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 240, 255, .15); }
.contact-form .btn { justify-self: start; border: 0; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-family: var(--mono); font-size: .8rem; min-height: 1.2em; }
.form-status.ok { color: var(--cyan); } .form-status.err { color: var(--pink); }

/* ─── footer ─── */
.footer { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; padding: 2.5rem clamp(1rem, 5vw, 4rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-brand { font-family: var(--display); letter-spacing: .18em; color: var(--text); }
.footer-brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-brand small { display: block; font-family: var(--mono); font-size: .65rem; color: var(--muted); letter-spacing: .2em; margin-top: .3rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--cyan); }

/* ─── chat widget ─── */
.chat-orb { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 64px; height: 64px; border-radius: 50%; border: 0; background: transparent; padding: 0; }
.orb-core { position: absolute; inset: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--cyan) 25%, var(--violet) 65%, #2a0f5c); box-shadow: 0 0 30px rgba(0, 240, 255, .6), 0 0 60px rgba(138, 92, 255, .4); animation: orb 6s ease-in-out infinite; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(0, 240, 255, .6); animation: ring 2.4s ease-out infinite; }
@keyframes orb { 50% { transform: scale(1.06) rotate(180deg); filter: hue-rotate(40deg); } }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.orb-badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--pink); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 12px var(--pink); }
.chat-orb.open { transform: scale(0); pointer-events: none; }
.chat-orb { transition: transform .35s var(--ease); }

.chat {
  position: fixed; right: 22px; bottom: 22px; z-index: 70; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100svh - 44px));
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: rgba(8, 10, 18, .88); backdrop-filter: blur(22px) saturate(1.4); border: 1px solid rgba(0, 240, 255, .25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(0, 240, 255, .12);
  transform-origin: bottom right; animation: chatIn .45s var(--ease);
}
.chat[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: scale(.85) translateY(20px); } }
.chat::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; position: relative; background: radial-gradient(circle at 35% 30%, #fff, var(--cyan) 25%, var(--violet) 70%); box-shadow: 0 0 18px rgba(0, 240, 255, .5); }
.chat-title { display: grid; line-height: 1.2; }
.chat-title b { font-family: var(--display); letter-spacing: .15em; font-size: .9rem; }
.chat-title small { color: var(--muted); font-size: .72rem; display: flex; align-items: center; gap: .4rem; }
.chat-title .dot { width: 7px; height: 7px; border-radius: 50%; background: #2bff88; box-shadow: 0 0 8px #2bff88; display: inline-block; }
.chat-title small.human .dot { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.chat-close { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1rem; width: 34px; height: 34px; border-radius: 50%; }
.chat-close:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.chat-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; scrollbar-width: thin; scrollbar-color: rgba(0, 240, 255, .3) transparent; }
.msg { max-width: 85%; padding: .7rem .95rem; border-radius: 16px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; animation: msgIn .35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg.user { align-self: flex-end; background: var(--grad); color: #04050a; border-bottom-right-radius: 4px; font-weight: 500; }
.msg.ai, .msg.agent, .msg.system { align-self: flex-start; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.agent { border-color: rgba(255, 61, 187, .45); }
.msg .who { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; color: var(--cyan); margin-bottom: .2rem; }
.msg.agent .who { color: var(--pink); }
.msg.system { font-size: .8rem; color: var(--muted); align-self: center; text-align: center; background: none; border-style: dashed; }
.typing { display: inline-flex; gap: 4px; padding: .9rem 1rem; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }
.chat-quick { display: flex; gap: .5rem; padding: 0 1.1rem .7rem; flex-wrap: wrap; }
.chat-quick button { background: rgba(0, 240, 255, .06); border: 1px solid rgba(0, 240, 255, .3); color: var(--cyan); border-radius: 999px; padding: .35rem .8rem; font-size: .78rem; transition: background .2s; }
.chat-quick button:hover { background: rgba(0, 240, 255, .15); }
.chat-email { display: flex; gap: .5rem; padding: .7rem 1.1rem; border-top: 1px solid var(--line); background: rgba(138, 92, 255, .08); }
.chat-email[hidden] { display: none; }
.chat-email input { flex: 1; min-width: 0; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .4); color: var(--text); font: inherit; font-size: .88rem; outline: none; }
.chat-email input:focus { border-color: var(--violet); }
.chat-email button { border: 0; border-radius: 10px; padding: 0 1rem; background: var(--violet); color: #fff; font-weight: 600; font-size: .85rem; }
.chat-input { display: flex; gap: .5rem; align-items: flex-end; padding: .8rem 1rem 1rem; border-top: 1px solid var(--line); }
.chat-input textarea { flex: 1; resize: none; max-height: 120px; padding: .75rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--text); font: inherit; font-size: .92rem; outline: none; }
.chat-input textarea:focus { border-color: var(--cyan); }
.chat-input button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--grad); color: #04050a; display: grid; place-items: center; transition: transform .2s; }
.chat-input button:hover { transform: scale(1.07); }
.chat-input button:disabled { opacity: .5; }
.chat-input svg { width: 20px; height: 20px; }

/* ─── responsive ─── */
@media (max-width: 960px) {
  .product, .contact-wrap { grid-template-columns: 1fr; }
  .product:nth-child(even) .p-visual { order: 0; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav { gap: 1rem; }
  .nav-links { position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; margin: 0; background: rgba(5, 6, 10, .96); backdrop-filter: blur(16px); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-family: var(--display); font-size: 1.4rem; color: var(--text); }
  .nav-cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .hud-tr, .hud-bl { display: none; }
  .hud-tl { top: 5rem; }
  .eeg-strip { bottom: 6.5rem; }
  .hero { padding-bottom: 14rem; }
  .app-grid { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .p-specs { grid-template-columns: 1fr 1fr; }
  .loop-stage { aspect-ratio: auto; display: grid; gap: 1rem; }
  .loop-ring, .loop-core { display: none; }
  .loop-node { position: static; width: auto; transform: none; }
  .chat { right: 12px; bottom: 12px; }
}

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