@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0f1210;
  --bg-elev: #171b18;
  --bg-soft: #1f2621;
  --bg-panel: #252c27;
  --ink: #ffffff;
  --paper: #0f1210;
  --muted: #c8c8c8;
  --dim: #8f8f8f;
  --acid: #ffc700;
  --clay: #ffc700;
  --emerald: #3dd68c;
  --wood: #a06b3a;
  --sage: #8f8f8f;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --font-display: Outfit, sans-serif;
  --font-body: Outfit, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body > header, body > main, body > footer { position: relative; z-index: 1; }

.ambient-bg {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 15% -10%, rgba(255, 199, 0, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 15%, rgba(61, 214, 140, 0.08), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, #141814 0%, #0f1210 55%, #0c0e0c 100%);
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
}
.ambient-bg i {
  position: absolute; display: block; width: 42vw; height: 42vw; border-radius: 50%;
  filter: blur(110px); opacity: .18; animation: ambientFloat 18s ease-in-out infinite alternate;
}
.ambient-bg i:nth-child(1) { background: #ffc700; left: -12vw; top: -10vw; }
.ambient-bg i:nth-child(2) { background: #3dd68c; right: -16vw; top: 30vh; animation-duration: 24s; animation-delay: -8s; opacity: .1; }
.ambient-bg i:nth-child(3) { background: #a06b3a; left: 40vw; bottom: -24vw; animation-duration: 28s; animation-delay: -12s; opacity: .12; }

@keyframes ambientFloat {
  0% { transform: translate3d(0, 0, 0) scale(.85); }
  100% { transform: translate3d(7vw, 9vh, 0) scale(1.15); }
}

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 99; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%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");
}

.shortcut-toast {
  position: fixed; z-index: 1100; left: 50%; bottom: 25px;
  transform: translate(-50%, 25px); background: var(--bg-elev); color: var(--ink);
  border: 1px solid var(--line); padding: 12px 18px; border-radius: 10px;
  font: 10px var(--font-mono); letter-spacing: .06em; opacity: 0; visibility: hidden;
  transition: .25s; pointer-events: none;
}
.shortcut-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Nav */
.nav {
  height: 82px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent; position: fixed !important; top: 0; left: 0; right: 0;
  background: rgba(17, 17, 17, 0.55); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transition: height .3s ease, background .3s ease, box-shadow .3s ease, border-color .3s ease;
  z-index: 100; width: 100%;
}
.nav.is-scrolled {
  height: 66px; background: rgba(17, 17, 17, 0.9);
  border-bottom-color: var(--line); box-shadow: 0 12px 40px var(--shadow);
}
.brand {
  display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none;
  font: 700 17px var(--font-display); letter-spacing: .02em;
}
.brand-icon {
  width: 28px; height: 28px; border-radius: 7px; display: block; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 199, 0, .25);
}
.brand-mark { width: 23px; height: 23px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.brand-mark i { display: block; background: var(--acid); border-radius: 2px; }
.nav nav { display: flex; gap: 28px; margin-left: auto; }
.nav nav a, .nav-cta {
  font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .06em;
  color: inherit; text-decoration: none;
}
.nav nav a { opacity: .65; transition: opacity .2s; }
.nav nav a:hover, .nav nav a.active { opacity: 1; }
.nav-cta {
  border: 1px solid var(--acid); background: var(--acid); color: #111;
  padding: 10px 16px; border-radius: 10px; margin-left: 8px; transition: .2s;
}
.nav-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.nav-cta span { margin-left: 9px; }
.menu {
  display: none; background: none; border: 0; color: var(--ink);
  font: 500 12px var(--font-mono); text-transform: uppercase;
}

.lang-switcher { position: relative; margin-left: 18px; margin-right: 18px; }
.lang-button {
  border: 1px solid var(--line); background: transparent; min-width: 65px; height: 34px;
  padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: 500 10px var(--font-mono); letter-spacing: .08em; color: var(--ink); border-radius: 8px;
}
.lang-button i { font-style: normal; font-size: 13px; transition: transform .2s; }
.lang-switcher.open .lang-button i { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: 42px; width: 180px; background: var(--bg-elev);
  border: 1px solid var(--line); padding: 7px; border-radius: 12px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s;
  box-shadow: 0 18px 50px var(--shadow);
}
.lang-switcher.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  width: 100%; border: 0; background: transparent; color: var(--muted); padding: 11px 10px;
  display: flex; justify-content: space-between; font: 10px var(--font-mono); text-align: left;
  border-radius: 8px;
}
.lang-menu button:hover, .lang-menu button.active { background: var(--acid); color: #111; }
.lang-menu b { font-weight: 500; opacity: .5; }

/* Hero */
.hero {
  min-height: 100vh; padding: 145px 7vw 80px; position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  font: 500 11px var(--font-mono); letter-spacing: .12em;
  display: flex; align-items: center; gap: 10px; margin-bottom: 27px; color: var(--muted);
}
.eyebrow span { width: 7px; height: 7px; background: var(--acid); display: inline-block; border-radius: 2px; }
.hero h1, .download h2 {
  font: 800 clamp(58px, 7vw, 108px) / .88 var(--font-display);
  margin: 0; letter-spacing: -.06em;
}
.hero h1 em, .download h2 em { font-style: normal; color: var(--acid); }
.hero-copy > p {
  max-width: 500px; font-size: 17px; line-height: 1.65; margin: 32px 0;
  color: var(--muted); font-weight: 400;
}
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-width: 195px; padding: 17px 20px; background: var(--acid); color: #111;
  text-decoration: none; font: 600 12px var(--font-mono); letter-spacing: .04em;
  text-transform: uppercase; border-radius: 12px; transition: .25s;
}
.button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.button.primary { background: var(--acid); color: #111; }
.button.light { background: var(--ink); color: #111; }
.text-link {
  color: var(--ink); font: 500 12px var(--font-mono); text-decoration: none;
  text-transform: uppercase; border-bottom: 1px solid rgba(255, 255, 255, .35); padding: 10px 0;
}
.text-link span { margin-left: 12px; }

.compatibility-notice {
  margin-top: 28px; display: grid; grid-template-columns: auto auto; gap: 0;
  width: max-content; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  font: 500 10px var(--font-mono);
}
.compatibility-notice b { background: var(--acid); color: #111; padding: 9px 12px; }
.compatibility-notice > span { background: var(--bg-elev); color: var(--ink); padding: 9px 12px; }
.compatibility-notice p {
  grid-column: 1 / -1; margin: 0; padding: 9px 12px; font: 9px / 1.5 var(--font-mono);
  color: var(--dim); background: rgba(255, 255, 255, 0.03);
}

.hero-art {
  position: relative; align-self: center; height: min(560px, 68vh);
}
.orbit {
  position: absolute; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.orbit-1 { width: 90%; aspect-ratio: 1; }
.orbit-2 { width: 67%; aspect-ratio: 1; border-color: rgba(255, 199, 0, .2); }
.orbit-3 { width: 42%; aspect-ratio: 1; border-style: dashed; border-color: rgba(255, 255, 255, .18); }
.craft-stage {
  position: absolute; left: 50%; top: 50%; width: 180px; height: 180px;
  transform: translate(-50%, -50%); display: grid; place-items: center;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 12px 12px 0 rgba(160, 107, 58, .35);
}
.craft-hero-icon {
  width: 110px; height: 110px; position: relative; z-index: 2;
  animation: craftFloat 4.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 18px rgba(255, 199, 0, .25));
}
@keyframes craftFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.voxel {
  position: absolute; left: 50%; top: 50%; width: 130px; height: 130px;
  transform: translate(-50%, -50%) rotate(30deg) skewY(-10deg);
  background: var(--acid); border-radius: 8px;
  box-shadow: 16px 16px 0 #b89000;
}
.voxel:before {
  content: ""; position: absolute; inset: 24px; background: #111;
  clip-path: polygon(0 25%, 30% 25%, 30% 0, 70% 0, 70% 25%, 100% 25%, 100% 75%, 70% 75%, 70% 100%, 30% 100%, 30% 75%, 0 75%);
}
.pulse {
  position: absolute; border-radius: 50%; border: 2px solid rgba(255, 199, 0, .55);
  left: 50%; top: 50%; transform: translate(-50%, -50%); animation: pulse 3s infinite;
}
.p1 { width: 190px; height: 190px; }
.p2 { width: 250px; height: 250px; animation-delay: 1s; }
.p3 { width: 310px; height: 310px; animation-delay: 2s; }
@keyframes pulse {
  0% { opacity: .7; transform: translate(-50%, -50%) scale(.8); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15); }
}
.tag {
  position: absolute; background: var(--bg-elev); color: var(--ink); padding: 8px 12px;
  font: 10px var(--font-mono); border: 1px solid var(--line); border-radius: 8px;
  display: inline-flex; align-items: center; gap: 7px;
}
.tag img { width: 14px; height: 14px; }
.tag b { color: var(--acid); }
.t1 { left: 10%; top: 38%; }
.t2 { right: 6%; top: 28%; }
.t3 { right: 16%; bottom: 24%; }
.signal {
  position: absolute; left: 10%; bottom: 14%; height: 55px;
  display: flex; align-items: center; gap: 4px;
}
.signal span {
  width: 3px; background: var(--acid); height: 20%; border-radius: 2px;
  animation: bars 1.2s ease-in-out infinite;
}
.signal span:nth-child(2), .signal span:nth-child(6) { height: 50%; animation-delay: .2s; }
.signal span:nth-child(3), .signal span:nth-child(5) { height: 80%; animation-delay: .4s; }
.signal span:nth-child(4) { height: 100%; animation-delay: .6s; }
@keyframes bars { 50% { transform: scaleY(.4); } }
.art-caption {
  position: absolute; right: 2%; bottom: 8%; font: 10px / 1.6 var(--font-mono);
  text-align: right; color: var(--muted);
}
.scroll-note {
  position: absolute; bottom: 28px; left: 7vw; font: 10px var(--font-mono);
  letter-spacing: .1em; color: var(--dim);
}
.scroll-note span { margin-left: 15px; color: var(--acid); }

/* Manifesto */
.manifesto {
  background: var(--bg-elev); color: var(--ink); min-height: 520px;
  padding: 110px 7vw; display: grid; grid-template-columns: 1fr 3fr 1.3fr; gap: 30px;
  align-items: start; border-bottom: 1px solid var(--line);
}
.mini-label { font: 10px var(--font-mono); letter-spacing: .12em; color: var(--acid); }
.manifesto > p {
  font: 600 clamp(42px, 5.2vw, 78px) / 1.05 var(--font-display);
  letter-spacing: -.045em; margin: 60px 0 0; grid-column: 2;
}
.manifesto > p span { color: var(--acid); }
.manifesto-side {
  font-size: 14px; line-height: 1.7; color: var(--dim); align-self: end;
  border-left: 1px solid var(--line); padding-left: 25px;
}

/* Features */
.features { padding: 120px 7vw; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; margin-bottom: 60px; gap: 40px;
}
.section-head span { font: 10px var(--font-mono); color: var(--acid); letter-spacing: .12em; }
.section-head h2, .steps h2 {
  font: 700 clamp(44px, 5.2vw, 72px) / .98 var(--font-display);
  letter-spacing: -.045em; margin: 18px 0 0;
}
.section-head h2 i { font-style: normal; color: var(--acid); }
.section-head > p { max-width: 360px; color: var(--muted); line-height: 1.65; font-size: 15px; }
.feature-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
.feature {
  min-height: 520px; padding: 30px; display: flex; flex-direction: column;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
}
.feature.dark { background: #0a0a0a; }
.feature.clay { background: var(--acid); color: #111; border-color: transparent; }
.feature-visual { height: 240px; display: flex; align-items: center; justify-content: center; }
.feature-icon {
  width: 96px; height: 96px; color: var(--ink);
  transition: transform .35s ease, filter .35s ease;
}
.feature[role=button]:hover .feature-icon { transform: scale(1.08) translateY(-4px); }
.feature.is-active .feature-icon { filter: drop-shadow(0 0 18px rgba(255, 199, 0, .45)); animation: iconPulse .9s ease-in-out infinite alternate; }
.feature.clay .feature-icon, .invert-on-gold { color: #111; filter: brightness(0) saturate(100%); }
.feature.clay.is-active .feature-icon { filter: brightness(0) saturate(100%) drop-shadow(0 0 12px rgba(17, 17, 17, .35)); }
@keyframes iconPulse { to { transform: scale(1.06); } }
.step-icon-svg {
  width: 28px; height: 28px; justify-self: end; filter: brightness(0) saturate(100%) invert(83%) sepia(61%) saturate(749%) hue-rotate(359deg) brightness(103%) contrast(104%);
}
.waves { gap: 10px; }
.waves span { height: 80px; width: 7px; background: var(--ink); border-radius: 4px; }
.waves span:nth-child(2), .waves span:nth-child(8) { height: 130px; }
.waves span:nth-child(3), .waves span:nth-child(7) { height: 190px; }
.waves span:nth-child(4), .waves span:nth-child(6) { height: 110px; }
.waves span:nth-child(5) { height: 230px; background: var(--acid); }
.feature.clay .waves span { background: #111; }
.feature.clay .waves span:nth-child(5) { background: #fff; }
.num { font: 10px var(--font-mono); opacity: .55; margin-top: auto; }
.feature h3 {
  font: 700 26px var(--font-display); margin: 18px 0 12px; letter-spacing: -.02em;
}
.feature p { font-size: 14px; line-height: 1.65; margin: 0; max-width: 340px; opacity: .72; }
.radar { height: 240px; position: relative; display: grid; place-items: center; }
.radar i {
  position: absolute; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%;
  width: 210px; height: 210px;
}
.radar i:nth-child(2) { width: 140px; height: 140px; }
.radar i:nth-child(3) { width: 70px; height: 70px; }
.radar:before, .radar:after { content: ""; position: absolute; background: rgba(255, 255, 255, .18); }
.radar:before { width: 240px; height: 1px; }
.radar:after { height: 240px; width: 1px; }
.radar b { width: 13px; height: 13px; background: var(--acid); border-radius: 50%; z-index: 2; }
.radar span {
  position: absolute; font: 9px var(--font-mono); background: var(--ink); color: #111;
  padding: 5px 7px; border-radius: 6px;
}
.radar span:nth-of-type(1) { top: 38px; right: 50px; }
.radar span:nth-of-type(2) { bottom: 38px; left: 45px; }
.radar span:nth-of-type(3) { bottom: 67px; right: 57px; }
.toggle-demo {
  height: 240px; display: grid; grid-template-columns: 1fr 55px; gap: 25px;
  align-content: center; font: 10px var(--font-mono);
}
.toggle-demo b {
  width: 55px; height: 28px; background: rgba(17, 17, 17, .25); display: block;
  padding: 4px; border-radius: 8px;
}
.toggle-demo b i { display: block; width: 20px; height: 20px; background: #111; border-radius: 5px; }
.toggle-demo b.on i { margin-left: 27px; background: #fff; }

.feature[role=button] {
  cursor: pointer; position: relative;
  transition: transform .35s ease, box-shadow .35s ease, opacity .7s ease !important; outline: none;
}
.feature[role=button]:hover, .feature[role=button]:focus-visible {
  transform: translateY(-8px) !important; box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.feature[role=button]:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.feature-state {
  position: absolute; right: 22px; top: 22px; font: 9px var(--font-mono);
  letter-spacing: .08em; opacity: .45;
}
.feature.is-active .feature-state { color: var(--acid); opacity: 1; }
.feature.clay.is-active .feature-state { color: #111; }
.feature[data-feature=voice].is-active .waves span {
  animation: interactiveWave .55s ease-in-out infinite alternate;
}
.feature[data-feature=voice].is-active .waves span:nth-child(2n) { animation-delay: -.25s; }
.feature[data-feature=voice].is-active .waves span:nth-child(3n) { animation-delay: -.4s; }
.feature[data-feature=radar].is-active .radar:before {
  transform-origin: center; animation: radarSweep 1.6s linear infinite;
  background: linear-gradient(90deg, transparent, var(--acid));
}
.feature[data-feature=radar].is-active .radar b {
  box-shadow: 0 0 0 15px rgba(255, 199, 0, .12), 0 0 25px rgba(255, 199, 0, .35);
  animation: radarPing .7s infinite alternate;
}
.feature[data-feature=radar].is-active .radar span { animation: blip 1s ease-in-out infinite alternate; }
.feature[data-feature=toggle].is-active .toggle-demo b:first-of-type i { margin-left: 27px; background: #fff; }
.feature[data-feature=toggle].is-active .toggle-demo b.on i { margin-left: 0; background: #111; }
@keyframes interactiveWave { to { transform: scaleY(.35); } }
@keyframes radarSweep { to { transform: rotate(360deg); } }
@keyframes radarPing { to { transform: scale(1.3); } }
@keyframes blip { to { transform: scale(1.2); background: var(--acid); color: #111; } }

/* Steps */
.steps {
  padding: 120px 7vw; background: var(--bg-elev); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps > h2 { margin: 25px 0 70px; }
.steps h2 span { color: var(--dim); }
.step-list { border-top: 1px solid var(--line); }
.step-list > div {
  display: grid; grid-template-columns: 90px 1.2fr 1fr 50px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.step-list b { font: 10px var(--font-mono); color: var(--acid); }
.step-list h3 { font: 600 24px var(--font-display); margin: 0; }
.step-list p { font-size: 14px; color: var(--muted); }
.step-list i { font-style: normal; font-size: 20px; text-align: right; color: var(--acid); }

/* Download */
.download {
  min-height: 720px; background: #0a0a0a; padding: 130px 7vw;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; overflow: hidden;
}
.download .eyebrow { z-index: 2; }
.download .eyebrow span { background: var(--acid); }
.download h2 { z-index: 2; }
.download .button { margin-top: 48px; z-index: 2; }
.download > p { font: 10px var(--font-mono); margin-top: 18px; z-index: 2; color: var(--dim); }
.download-orbit {
  position: absolute; width: 800px; height: 800px; border: 1px solid rgba(255, 199, 0, .15);
  border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.download-orbit:before, .download-orbit:after {
  content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%; inset: 100px;
}
.download-orbit:after { inset: 220px; }
.download-compat {
  z-index: 2; display: flex; align-items: center; gap: 13px;
  background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink);
  padding: 13px 18px; margin-top: 34px; text-align: left; border-radius: 12px;
}
.download-compat > i {
  font: 700 18px var(--font-display); font-style: normal; color: var(--acid);
}
.download-compat b, .download-compat span { display: block; }
.download-compat b { font: 600 10px var(--font-mono); color: var(--acid); letter-spacing: .08em; }
.download-compat span { font: 9px var(--font-mono); color: var(--dim); margin-top: 4px; }
.download .download-compat + .button { margin-top: 18px; }

footer {
  min-height: 170px; padding: 45px 4vw;
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center;
  border-top: 1px solid var(--line); background: var(--bg);
}
footer p { font-size: 13px; color: var(--dim); }
footer > div { display: flex; gap: 25px; }
footer > div a {
  color: inherit; font: 10px var(--font-mono); text-transform: uppercase;
  text-decoration: none; opacity: .7;
}
footer > div a:hover { opacity: 1; color: var(--acid); }
footer small { font: 9px var(--font-mono); color: var(--dim); }

/* Download jar animation */
.jar-download { position: relative; overflow: hidden; }
.jar-download:before {
  content: ""; position: absolute; inset: 0; background: #fff;
  transform: translateX(-105%); z-index: 0;
}
.jar-download > * { position: relative; z-index: 1; }
.jar-download.is-downloading:before { animation: jarButtonScan 1.8s ease forwards; }
.jar-download.is-downloading span { animation: jarArrow .45s ease-in-out infinite alternate; }
.jar-download.is-ready { background: #fff; color: #111; }
.jar-download.is-missing { background: #ff6b4a; color: #111; }
.download-status {
  position: fixed; z-index: 1090; right: 25px; bottom: 25px;
  width: min(390px, calc(100vw - 40px)); background: var(--bg-elev); color: var(--ink);
  border: 1px solid var(--line); padding: 20px; border-radius: 14px;
  transform: translateY(130%); opacity: 0; transition: .35s;
  box-shadow: 0 20px 60px var(--shadow);
}
.download-status.show { transform: none; opacity: 1; }
.download-status > div {
  display: flex; justify-content: space-between; align-items: center;
  font: 10px var(--font-mono); letter-spacing: .06em;
}
.download-status > div i { font-style: normal; color: var(--acid); }
.download-status > span {
  display: block; height: 3px; background: #333; margin-top: 16px;
  overflow: hidden; border-radius: 2px;
}
.download-status > span:after {
  content: ""; display: block; width: 0; height: 100%; background: var(--acid);
}
.download-status.loading > span:after { animation: jarProgress 1.8s cubic-bezier(.2, .8, .2, 1) forwards; }
.download-status.error > span:after { width: 100%; background: #ff6b4a; }
@keyframes jarProgress { to { width: 100%; } }
@keyframes jarButtonScan { 50%, 100% { transform: translateX(105%); } }
@keyframes jarArrow { to { transform: translateY(5px); } }

/* AI helper */
.ai-helper {
  position: fixed; right: 24px; bottom: 24px; z-index: 1050; font-family: var(--font-body);
}
.ai-launcher {
  width: 58px; height: 58px; border: 0; background: var(--acid); color: #111;
  display: grid; place-items: center; border-radius: 16px; margin-left: auto;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .4); transition: .25s; position: relative;
}
.ai-launcher:hover { transform: translateY(-4px) rotate(-3deg); }
.ai-launcher:before {
  content: ""; position: absolute; inset: -5px; border: 1px solid var(--acid);
  border-radius: 20px; opacity: .25; animation: aiHalo 2s ease-in-out infinite;
}
.ai-launcher svg { width: 28px; height: 28px; }
.ai-helper.open .ai-launcher { transform: rotate(45deg); border-radius: 50%; }
.ai-panel {
  position: absolute; right: 0; bottom: 72px; width: 370px; height: 520px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 28px 80px var(--shadow); display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(.96);
  transform-origin: bottom right; transition: .28s; overflow: hidden;
}
.ai-helper.open .ai-panel { opacity: 1; visibility: visible; transform: none; }
.ai-head {
  height: 72px; background: #0a0a0a; color: var(--ink);
  display: flex; align-items: center; padding: 0 18px; gap: 12px;
}
.ai-avatar {
  width: 38px; height: 38px; background: var(--acid); color: #111;
  display: grid; place-items: center; font: 700 12px var(--font-mono); border-radius: 12px;
}
.ai-head b { display: block; font: 600 13px var(--font-display); }
.ai-head span {
  display: flex; align-items: center; gap: 6px; font: 9px var(--font-mono);
  color: var(--dim); margin-top: 4px;
}
.ai-head span:before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acid);
}
.ai-close { margin-left: auto; border: 0; background: transparent; color: var(--ink); font-size: 18px; }
.ai-language {
  margin-left: auto; margin-right: 8px; width: 54px; height: 30px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink);
  font: 9px var(--font-mono); padding: 0 5px; outline: none; border-radius: 8px;
}
.ai-language:focus { border-color: var(--acid); }
.ai-head .ai-close { margin-left: 0; }
.ai-messages {
  flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column;
  gap: 10px; scrollbar-width: thin;
}
.ai-message {
  max-width: 84%; padding: 12px 14px; font-size: 13px; line-height: 1.55; border-radius: 12px;
}
.ai-message.bot { background: var(--bg-panel); align-self: flex-start; border-radius: 4px 12px 12px 12px; }
.ai-message.user { background: var(--acid); color: #111; align-self: flex-end; border-radius: 12px 4px 12px 12px; }
.ai-typing {
  display: flex; gap: 4px; align-self: flex-start; background: var(--bg-panel);
  padding: 13px; border-radius: 4px 12px 12px 12px;
}
.ai-typing i {
  width: 5px; height: 5px; background: var(--ink); border-radius: 50%;
  animation: aiType .6s infinite alternate;
}
.ai-typing i:nth-child(2) { animation-delay: .2s; }
.ai-typing i:nth-child(3) { animation-delay: .4s; }
.ai-quick { display: flex; gap: 6px; padding: 0 14px 12px; overflow-x: auto; }
.ai-quick button {
  white-space: nowrap; border: 1px solid var(--line); background: transparent;
  padding: 8px 10px; font: 9px var(--font-mono); color: var(--ink); border-radius: 8px;
}
.ai-quick button:hover { background: var(--acid); color: #111; border-color: var(--acid); }
.ai-form {
  display: flex; border-top: 1px solid var(--line); height: 60px; background: #0a0a0a;
}
.ai-form input {
  flex: 1; border: 0; background: transparent; padding: 0 15px; outline: none;
  font-size: 13px; color: var(--ink); -webkit-user-select: text; user-select: text;
}
.ai-form button {
  width: 58px; border: 0; background: var(--acid); font-size: 18px; color: #111;
}
@keyframes aiHalo { 50% { transform: scale(1.12); opacity: 0; } }
@keyframes aiType { to { transform: translateY(-4px); opacity: .4; } }

@media (max-width: 800px) {
  .nav { height: 68px; padding: 0 20px; }
  .nav nav, .nav-cta { display: none; }
  .menu { display: block; }
  .lang-switcher { margin-left: auto; margin-right: 14px; }
  .nav.is-scrolled { height: 60px; }
  .hero {
    height: auto; min-height: 0; padding: 115px 20px 55px; display: block; overflow: hidden;
  }
  .hero h1 { font-size: 14vw; }
  .hero-copy > p { font-size: 15px; margin: 24px 0; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero-art { height: 400px; margin: 30px -20px 0; }
  .scroll-note { display: none; }
  .manifesto { padding: 75px 20px; display: block; min-height: 480px; }
  .manifesto > p { margin-top: 50px; font-size: 12vw; }
  .manifesto-side { margin: 50px 0 0 20%; }
  .features, .steps { padding: 80px 20px; }
  .section-head { display: block; }
  .section-head > p { margin-top: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 460px; }
  .step-list > div { grid-template-columns: 45px 1fr 25px; padding: 25px 0; }
  .step-list p { grid-column: 2; margin: 7px 0; }
  .step-list i { grid-column: 3; grid-row: 1 / 3; }
  .download { min-height: 600px; padding: 100px 20px; }
  .download h2 { font-size: 13vw; }
  .compatibility-notice { width: 100%; }
  .download-compat { max-width: 350px; }
  footer { padding: 45px 20px; grid-template-columns: 1fr 1fr; gap: 30px; }
  footer > div { justify-content: flex-end; }
  footer p { display: none; }
  .ai-helper { right: 15px; bottom: 15px; }
  .ai-panel {
    position: fixed; left: 12px; right: 12px; bottom: 84px; width: auto;
    height: min(570px, calc(100vh - 110px));
  }
  .ai-launcher { width: 54px; height: 54px; }
  .download-status { right: 15px; bottom: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-bg, .ambient-bg i, .pulse, .signal span { animation: none; }
}
