/* ============================================================
   Brabantium — "Aurora Glass" redesign
   Dark default + light toggle · pure-CSS art · no images
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #060d09;
  --bg-deep: #040a07;
  --surface: #0c1a13;
  --surface-2: #10231a;
  --surface-soft: #08140e;
  --glass: rgba(13, 28, 20, 0.66);
  --glass-2: rgba(24, 46, 34, 0.5);
  --nav-bg: rgba(5, 14, 9, 0.62);
  --ink: #ecfdf3;
  --muted: #94b5a4;
  --faint: #6c8b7b;
  --line: rgba(150, 235, 185, 0.10);
  --line-2: rgba(150, 235, 185, 0.20);
  --green: #3fe081;
  --green-2: #8affb4;
  --green-soft: rgba(63, 224, 129, 0.13);
  --cyan: #40d8ff;
  --cyan-2: #8fe7ff;
  --cyan-soft: rgba(64, 216, 255, 0.13);
  --violet: #a78bfa;
  --violet-2: #c9b8ff;
  --violet-soft: rgba(167, 139, 250, 0.14);
  --amber: #ffcf5c;
  --amber-soft: rgba(255, 207, 92, 0.14);
  --danger: #ff6a5e;
  --aurora-1: rgba(63, 224, 129, 0.26);
  --aurora-2: rgba(64, 216, 255, 0.20);
  --aurora-3: rgba(167, 139, 250, 0.16);
  --px-g: #3fbe5f;  --px-g2: #2d8f49;
  --px-b: #37aee8;  --px-b2: #267fae;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.55);
  --glow-green: 0 12px 34px rgba(63, 224, 129, 0.35);
  --glow-cyan: 0 12px 34px rgba(64, 216, 255, 0.32);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --nav-h: 76px;
}

html.light {
  color-scheme: light;
  --bg: #f0f9f3;
  --bg-deep: #e4f2e9;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-soft: #e8f5ed;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-2: rgba(255, 255, 255, 0.55);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --ink: #0d2a1c;
  --muted: #4e6d5c;
  --faint: #6e8a7b;
  --line: rgba(12, 70, 42, 0.12);
  --line-2: rgba(12, 70, 42, 0.22);
  --green: #17a34a;
  --green-2: #0d7a37;
  --green-soft: rgba(23, 163, 74, 0.10);
  --cyan: #0aa2d6;
  --cyan-2: #0a7fa8;
  --cyan-soft: rgba(10, 162, 214, 0.10);
  --violet: #7c5cf0;
  --violet-2: #5d3fd4;
  --violet-soft: rgba(124, 92, 240, 0.10);
  --amber: #d99413;
  --amber-soft: rgba(217, 148, 19, 0.12);
  --danger: #e5483a;
  --aurora-1: rgba(23, 163, 74, 0.12);
  --aurora-2: rgba(10, 162, 214, 0.10);
  --aurora-3: rgba(124, 92, 240, 0.08);
  --px-g: #33a04a;  --px-g2: #27813c;
  --px-b: #2596d6;  --px-b2: #1b77a8;
  --shadow-sm: 0 2px 10px rgba(16, 60, 40, 0.08);
  --shadow-md: 0 18px 40px rgba(16, 60, 40, 0.12);
  --shadow-lg: 0 30px 64px rgba(16, 60, 40, 0.16);
  --glow-green: 0 12px 30px rgba(23, 163, 74, 0.25);
  --glow-cyan: 0 12px 30px rgba(10, 162, 214, 0.22);
}

@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

/* global film grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.03;
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--green), var(--cyan));
  border: 3px solid var(--bg-deep);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--green); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
ol, ul { list-style: none; }
::selection { background: var(--green-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 8px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
#home, #how, #features, #voicechat { scroll-margin-top: 96px; }

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal; line-height: 1; display: inline-block;
  letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga';
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 16px; font-weight: 700;
  transition: top 0.25s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Scroll progress ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--violet));
  transform: scaleX(0); transform-origin: 0 50%;
  box-shadow: 0 0 14px rgba(63, 224, 129, 0.55);
  pointer-events: none;
}

/* ---------- Section scaffolding ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt {
  background:
    radial-gradient(640px 320px at 88% 0%, var(--green-soft), transparent 65%),
    var(--surface-soft);
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.kicker {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--green-2); background: var(--green-soft);
  border: 1px solid var(--line-2);
  border-radius: 999px; padding: 8px 16px; margin-bottom: 18px;
}
.kicker-cyan { color: var(--cyan-2); background: var(--cyan-soft); }
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -0.025em;
}
.section-sub { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* gradient text (animated) */
.grad {
  background: linear-gradient(100deg, var(--green) 0%, var(--cyan) 50%, var(--violet) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
  animation: gradShift 7s ease-in-out infinite alternate;
}
.grad-violet { background: linear-gradient(100deg, var(--cyan), var(--violet)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; }
@keyframes gradShift { to { background-position: 100% 0; } }

.grad-underline {
  position: absolute; left: 2%; right: 2%; bottom: -8px; height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--violet));
  box-shadow: 0 2px 14px rgba(63, 224, 129, 0.45);
  transform: scaleX(0); transform-origin: left;
  animation: underline 0.8s 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 13px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn .material-symbols-outlined { font-size: 19px; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 45%);
  transform: translateX(-130%) skewX(-18deg);
  transition: transform 0.55s ease;
}
.btn:hover::after { transform: translateX(130%) skewX(-18deg); }
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #06230f;
  box-shadow: var(--glow-green), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(63, 224, 129, 0.45), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(63, 224, 129, 0.5); box-shadow: var(--glow-green); }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 15px; }
.navbar .btn { padding: 10px 16px; font-size: 13.5px; }

/* icon buttons */
.icon-btn {
  width: 42px; height: 42px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.2s ease;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--green-2); transform: translateY(-1px); }
.icon-btn .material-symbols-outlined { font-size: 21px; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.icon-btn:active .material-symbols-outlined { transform: rotate(180deg); }
.icon-sun { display: inline-block; }
.icon-moon { display: none; }
html.light .icon-sun { display: none; }
html.light .icon-moon { display: inline-block; }
#nav-toggle .icon-close { display: none; }
#nav-toggle.open .icon-menu { display: none; }
#nav-toggle.open .icon-close { display: inline-block; }

/* ripple */
.ink {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: 0.22;
  transform: scale(0);
  animation: ink 0.6s ease-out forwards;
}
@keyframes ink { to { transform: scale(1); opacity: 0; } }

/* ---------- Scroll reveal ---------- */
html.js .reveal:not(.visible) { opacity: 0; }
.reveal.visible {
  animation: revealUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Grass block logo (pure CSS) ---------- */
.grass-block {
  width: 46px; height: 46px;
  border-radius: 12px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  overflow: hidden;
  background: repeating-conic-gradient(#7a4a21 0% 25%, #8a5a2b 0% 50%) 0 0 / 12px 12px;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.25),
    inset 0 -8px 14px rgba(0, 0, 0, 0.3),
    0 8px 18px rgba(63, 224, 129, 0.25);
}
.grass-block::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 58%;
  background: repeating-linear-gradient(90deg,
      #57d877 0 6px, #3fbf5f 6px 10px, #63e684 10px 17px, #3fbf5f 17px 21px);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 88% 80%, 76% 62%, 62% 82%, 50% 64%, 36% 84%, 24% 64%, 12% 82%, 0 62%);
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.22));
}
.grass-block::after {
  content: ""; position: absolute; left: 7%; top: 7%; width: 32%; height: 15%;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), transparent);
  opacity: 0.55;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: height 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.35s ease;
}
.navbar.scrolled {
  height: 64px;
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .grass-block { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.brand:hover .grass-block { transform: rotate(-10deg) scale(1.08); }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  letter-spacing: -0.02em; color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  color: var(--muted); padding: 9px 14px; border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--ink); background: var(--glass-2); }
.nav-link.active { color: var(--green-2); }
.nav-link.active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  width: 5px; height: 5px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--green);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 186px 0 190px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(165deg, var(--bg-deep), var(--surface-soft) 55%, var(--bg));
}
.hero-bg::before, .hero-bg::after, .hero::before {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(70px);
}
.hero-bg::before {
  width: 56vw; height: 56vw; top: -18%; right: -10%;
  background: radial-gradient(closest-side, var(--aurora-1), transparent 72%);
  animation: drift1 24s ease-in-out infinite alternate;
}
.hero-bg::after {
  width: 48vw; height: 48vw; bottom: -20%; left: -12%;
  background: radial-gradient(closest-side, var(--aurora-2), transparent 72%);
  animation: drift2 28s ease-in-out infinite alternate;
}
.hero::before {
  width: 34vw; height: 34vw; top: 22%; right: 26%; z-index: 0;
  background: radial-gradient(closest-side, var(--aurora-3), transparent 72%);
  animation: drift1 32s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 { to { transform: translate(-7%, 9%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(9%, -7%) scale(1.1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(0, 0, 0, 0.35));
}
html.light .hero::after { background: radial-gradient(120% 90% at 50% 40%, transparent 65%, rgba(20, 70, 45, 0.08)); }
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 0; opacity: 0.55;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  animation: gridDrift 46s linear infinite;
  -webkit-mask-image: radial-gradient(900px 540px at 70% 18%, #000, transparent);
          mask-image: radial-gradient(900px 540px at 70% 18%, #000, transparent);
}
@keyframes gridDrift { to { background-position: 46px 92px; } }
.spark {
  position: absolute; width: 6px; height: 6px; border-radius: 2px;
  background: var(--green); opacity: 0;
  animation: spark 9s ease-in-out infinite;
}
.spark.sp-1 { left: 8%;  top: 30%; animation-delay: 0s; }
.spark.sp-2 { left: 20%; top: 68%; animation-delay: 1.6s; background: var(--cyan); }
.spark.sp-3 { left: 46%; top: 16%; animation-delay: 3.2s; background: var(--violet); }
.spark.sp-4 { left: 64%; top: 74%; animation-delay: 4.4s; }
.spark.sp-5 { left: 82%; top: 34%; animation-delay: 5.8s; background: var(--amber); }
.spark.sp-6 { left: 92%; top: 58%; animation-delay: 7s; background: var(--cyan); }
@keyframes spark {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
  15%  { opacity: 0.8; }
  60%  { opacity: 0.15; }
  100% { opacity: 0; transform: translateY(-46px) rotate(90deg); }
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 56px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

/* status badge */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  color: var(--muted);
  background: var(--glass); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 10px 17px;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.badge .dot { position: relative; width: 9px; height: 9px; flex-shrink: 0; }
.badge .dot::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: currentColor; opacity: 0.9;
}
#status-dot { position: absolute; inset: 0; border-radius: 50%; }
.badge.online {
  color: var(--green-2);
  background: var(--green-soft);
  border-color: rgba(63, 224, 129, 0.4);
  box-shadow: 0 0 26px rgba(63, 224, 129, 0.2), inset 0 0 0 1px rgba(63, 224, 129, 0.12);
}
.badge.online .dot::before { animation: pulseDot 1.8s ease-out infinite; }
.badge.offline { color: var(--muted); }
.badge.offline .dot::before { display: none; }
@keyframes pulseDot {
  0%   { transform: scale(1); opacity: 0.55; }
  70%  { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(42px, 6.4vw, 76px); line-height: 1.04; letter-spacing: -0.03em;
}
.hero-sub { font-size: 18px; color: var(--muted); max-width: 34em; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  padding: 9px 15px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line-2);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.chip:hover { transform: translateY(-2px); color: var(--ink); }
.chip-dot { width: 9px; height: 9px; border-radius: 50%; }
.chip[data-hue="green"]  { color: var(--green-2);  border-color: rgba(63, 224, 129, 0.32); }
.chip[data-hue="green"]  .chip-dot { background: var(--green);  box-shadow: 0 0 0 3px var(--green-soft); }
.chip[data-hue="cyan"]   { color: var(--cyan-2);   border-color: rgba(64, 216, 255, 0.32); }
.chip[data-hue="cyan"]   .chip-dot { background: var(--cyan);   box-shadow: 0 0 0 3px var(--cyan-soft); }
.chip[data-hue="violet"] { color: var(--violet-2); border-color: rgba(167, 139, 250, 0.32); }
.chip[data-hue="violet"] .chip-icon { color: var(--violet); font-size: 17px; }
.chip-icon { font-size: 17px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero console panel */
.hero-panel { position: relative; display: flex; justify-content: center; padding: 44px 36px; }
.hero-panel::before {
  content: ""; position: absolute; inset: 10% 6%;
  background: radial-gradient(closest-side, var(--aurora-1), transparent 75%);
  filter: blur(46px); z-index: -1;
}
.console {
  --cink: #d9ffec;
  --cmut: #7fae97;
  width: min(420px, 100%);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 40%), #08150f;
  border: 1px solid rgba(150, 235, 185, 0.18);
  border-radius: 18px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  font-family: var(--font-mono);
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY { 50% { transform: translateY(-9px); } }
.console-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(150, 235, 185, 0.12);
}
.cdot { width: 10px; height: 10px; border-radius: 50%; }
.cdot.red { background: #ff5f57; }
.cdot.yellow { background: #febc2e; }
.cdot.green { background: #28c840; }
.console-title { margin-left: 8px; font-size: 12px; letter-spacing: 0.05em; color: var(--cmut); }
.console-body { padding: 24px 20px; display: flex; flex-direction: column; gap: 15px; }
.console-line { color: var(--cmut); font-size: 13px; }
.prompt { color: #4ad36b; font-weight: 700; margin-right: 6px; }
.console-status {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; color: #8affb4;
}
.console-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #4ad36b;
  box-shadow: 0 0 0 4px rgba(74, 211, 107, 0.18);
}
.console-meta {
  margin-left: auto;
  font-size: 11px; font-weight: 500; letter-spacing: 0.05em;
  color: var(--cmut);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(150, 235, 185, 0.14);
  padding: 4px 10px; border-radius: 999px;
}
.console-status.offline { color: #ff6b57; }
.console-ping { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cmut); }
.console-ping .material-symbols-outlined { font-size: 16px; color: #40d8ff; }
.console-ping b { color: var(--cink); }
.console-logs { display: flex; flex-direction: column; gap: 7px; border-top: 1px dashed rgba(150, 235, 185, 0.14); padding-top: 13px; }
.log {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--cmut);
  opacity: 0;
  animation: logIn 0.5s ease forwards;
}
.log:nth-child(1) { animation-delay: 0.9s; }
.log:nth-child(2) { animation-delay: 1.25s; }
.log:nth-child(3) { animation-delay: 1.6s; }
.log-check { color: #4ad36b; font-weight: 700; }
@keyframes logIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.console-cursor {
  width: 9px; height: 18px;
  background: #4ad36b;
  animation: blink 1.1s step-end infinite;
  align-self: flex-end;
  box-shadow: 0 0 10px rgba(74, 211, 107, 0.6);
}
@keyframes blink { 50% { opacity: 0; } }

/* pixel cubes */
.pcube {
  position: absolute;
  border-radius: 10px;
  animation: floaty 8s ease-in-out infinite;
}
.pcube::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.pcube-green { background: linear-gradient(150deg, var(--green-2), var(--green)); box-shadow: 0 18px 36px rgba(63, 224, 129, 0.3); }
.pcube-cyan  { background: linear-gradient(150deg, #8fe7ff, #40d8ff);             box-shadow: 0 18px 36px rgba(64, 216, 255, 0.3); }
.pcube-dirt  { background: linear-gradient(150deg, #b07a3e, #7a4d22);             box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35); }
.pcube-amber { background: linear-gradient(150deg, #ffdf8a, #f6a723);             box-shadow: 0 18px 36px rgba(246, 167, 35, 0.3); }
.pcube-1 { width: 46px; height: 46px; top: 4%;  left: 2%; }
.pcube-2 { width: 26px; height: 26px; bottom: 10%; right: 4%; animation-delay: 1.3s; }
.pcube-3 { width: 20px; height: 20px; top: 26%; right: 14%; animation-delay: 0.7s; }
.pcube-4 { width: 16px; height: 16px; bottom: 24%; left: 6%; animation-delay: 2.1s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(8deg); }
}

/* ---------- Server info bar (floating dock) ---------- */
.server-wrap {
  position: relative; z-index: 5;
  margin-top: -84px;
}
.server-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), var(--glass);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.server-bar:hover {
  border-color: rgba(63, 224, 129, 0.35);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.sbar-main {
  display: flex; align-items: center; gap: 16px;
  min-width: 0;
  padding: 22px 28px;
}
.sbar-pulse {
  position: relative; width: 12px; height: 12px; flex-shrink: 0;
}
.sbar-pulse i {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(63, 224, 129, 0.7);
}
.sbar-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green);
  animation: pulseDot 1.9s ease-out infinite;
}
.sbar-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sbar-label {
  font-family: var(--font-display); font-weight: 700; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--faint);
}
.sbar-ip {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--green-2); letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sbar-cells { display: flex; align-self: stretch; }
.sbar-cell {
  display: flex; align-items: center; gap: 11px;
  padding: 0 26px;
  border-left: 1px solid var(--line);
  transition: background 0.2s ease;
}
.sbar-cell:hover { background: var(--glass-2); }
.sbar-cell .material-symbols-outlined { font-size: 21px; color: var(--green); }
.sbar-cell:last-child .material-symbols-outlined { color: var(--cyan); }
.sbar-meta { display: flex; flex-direction: column; line-height: 1.3; }
.sbar-meta b {
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  color: var(--ink); white-space: nowrap;
}
.sbar-meta small {
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--faint);
}
.sbar-copy { margin: 14px; padding: 13px 22px; white-space: nowrap; }

/* ---------- Marquee ---------- */
.marquee {
  margin-top: 74px; padding: 26px 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.mq-item {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.18em; white-space: nowrap;
}
.mq-ip { font-family: var(--font-mono); text-transform: none; letter-spacing: 0.04em; }
.mq-g { color: var(--green-2); }
.mq-c { color: var(--cyan-2); }
.mq-v { color: var(--violet-2); }
.mq-a { color: var(--amber); }
.mq-sep { color: var(--faint); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
  position: relative;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-xl); padding: 30px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--violet));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(63, 224, 129, 0.35); }
.step:hover::before { transform: scaleX(1); }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  color: #06230f;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step-num[data-hue="green"]  { background: linear-gradient(135deg, var(--green), var(--cyan)); box-shadow: var(--glow-green); }
.step-num[data-hue="cyan"]   { background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: var(--glow-cyan); }
.step-num[data-hue="violet"] { background: linear-gradient(135deg, var(--violet), var(--amber)); box-shadow: 0 12px 30px rgba(167, 139, 250, 0.3); }
.step:hover .step-num { transform: rotate(-8deg) scale(1.12); }
.step-featured {
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, rgba(63, 224, 129, 0.55), rgba(64, 216, 255, 0.55)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 14px 34px rgba(63, 224, 129, 0.12), var(--shadow-sm);
}
.step-featured:hover { box-shadow: 0 18px 44px rgba(63, 224, 129, 0.18), var(--shadow-md); }
.step-icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-2);
  transition: transform 0.3s ease;
}
.step-icon[data-hue="cyan"]   { background: var(--cyan-soft);   color: var(--cyan-2); }
.step-icon[data-hue="violet"] { background: var(--violet-soft); color: var(--violet-2); }
.step:hover .step-icon { transform: scale(1.12) rotate(6deg); }
.step-icon .material-symbols-outlined { font-size: 24px; }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.step p { color: var(--muted); font-size: 15px; }
.step p strong { color: var(--green-2); }
.server-address {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 14px;
  font-family: var(--font-mono); font-weight: 700; font-size: 15.5px;
  text-align: center; color: var(--green-2);
  background: var(--green-soft);
  border: 1px solid rgba(63, 224, 129, 0.35); border-bottom-width: 3px;
  border-radius: 12px; padding: 14px 16px;
  cursor: pointer; position: relative;
  -webkit-user-select: all; user-select: all;
  transition: background 0.2s ease, transform 0.2s ease;
}
.server-address .material-symbols-outlined { font-size: 17px; opacity: 0.7; }
.server-address::after {
  content: "Tap to copy";
  position: absolute; top: -11px; right: 12px;
  font-family: var(--font-display); font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--cyan-2); background: var(--cyan-soft);
  border: 1px solid rgba(64, 216, 255, 0.3);
  border-radius: 999px; padding: 3px 9px;
}
.server-address:hover { background: rgba(63, 224, 129, 0.2); transform: scale(1.02); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.feature {
  position: relative;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-xl); padding: 38px;
  overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature:hover .feature-arrow { transform: translate(4px, -4px); }
.feature-green { border-top: 4px solid var(--green); }
.feature-blue  { border-top: 4px solid var(--cyan); }
.feature-green:hover { border-color: rgba(63, 224, 129, 0.4); }
.feature-blue:hover  { border-color: rgba(64, 216, 255, 0.4); }

/* rotating gradient ring on hover (progressive enhancement) */
@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .feature::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
    background: conic-gradient(from var(--a),
      transparent 0turn, transparent 0.55turn,
      var(--green) 0.72turn, var(--cyan) 0.82turn, transparent 0.95turn);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
  }
  .feature:hover::before { opacity: 1; animation: ringSpin 3.2s linear infinite; }
}
@keyframes ringSpin { to { --a: 1turn; } }

.feature-glow {
  position: absolute; top: -60px; right: -60px;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, var(--green-soft), transparent 70%);
  transition: transform 0.5s ease;
}
.feature-blue .feature-glow { background: radial-gradient(circle, var(--cyan-soft), transparent 70%); }
.feature:hover .feature-glow { transform: scale(1.7); }
.feature-tag {
  align-self: flex-start;
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.11em;
  border-radius: 999px; padding: 7px 13px; margin-bottom: 12px;
}
.feature-tag[data-hue="green"] { color: var(--green-2); background: var(--green-soft); }
.feature-tag[data-hue="cyan"]  { color: var(--cyan-2);  background: var(--cyan-soft); }
.feature-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
  color: #06230f; margin-bottom: 8px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-icon[data-hue="green"] { background: linear-gradient(135deg, var(--green), var(--cyan)); box-shadow: var(--glow-green); }
.feature-icon[data-hue="cyan"]  { background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: var(--glow-cyan); }
.feature:hover .feature-icon { transform: rotate(-8deg) scale(1.08); }
.feature-icon .material-symbols-outlined { font-size: 28px; }
.feature h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; }
.feature p { color: var(--muted); font-size: 15.5px; max-width: 92%; }
.feature-arrow {
  position: absolute; bottom: 26px; right: 26px;
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-2);
  transition: transform 0.3s ease;
}
.feature-blue .feature-arrow { background: var(--cyan-soft); color: var(--cyan-2); }
.feature-arrow .material-symbols-outlined { font-size: 20px; }
.features-note {
  margin: 34px auto 0; max-width: 660px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  text-align: center; font-size: 14.5px; color: var(--muted);
  background: var(--glass); border: 1px dashed var(--line-2);
  border-radius: 16px; padding: 18px 22px; flex-wrap: wrap;
}
.features-note .material-symbols-outlined { color: var(--green); flex-shrink: 0; }
.features-note strong { color: var(--ink); }

/* ---------- Voice panel ---------- */
.voice-panel {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 30px; padding: clamp(36px, 6vw, 64px);
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.voice-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(440px 280px at 0% 0%, var(--green-soft), transparent 60%),
    radial-gradient(440px 280px at 100% 100%, var(--cyan-soft), transparent 60%),
    radial-gradient(320px 220px at 90% 0%, var(--violet-soft), transparent 65%);
}
.voice-copy { position: relative; }
.voice-lead { color: var(--muted); font-size: 16.5px; margin-top: 16px; }
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--green-soft); border: 1px solid rgba(63, 224, 129, 0.3);
  border-left: 5px solid var(--green);
  border-radius: 14px; padding: 16px 18px; margin: 24px 0;
}
.notice .material-symbols-outlined { color: var(--green); margin-top: 2px; }
.notice p { font-size: 14.5px; color: var(--green-2); }
.notice strong { display: block; margin-bottom: 2px; }
.instructions { display: flex; flex-direction: column; gap: 18px; }
.instructions li { display: flex; gap: 14px; align-items: center; font-size: 15.5px; }
.instructions .check {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--cyan)); color: #06230f;
  box-shadow: var(--glow-green);
  transition: transform 0.2s ease;
}
.instructions li:hover .check { transform: scale(1.12); }
.instructions .check .material-symbols-outlined { font-size: 17px; }
.instructions a {
  color: var(--cyan-2); font-weight: 700;
  border-bottom: 2px solid rgba(64, 216, 255, 0.3);
  transition: border-color 0.2s ease;
}
.instructions a:hover { border-color: var(--cyan); }
kbd {
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  background: var(--surface-soft); border: 1px solid var(--line-2); border-bottom-width: 3px;
  border-radius: 7px; padding: 2px 9px; color: var(--ink);
}

/* voice chat mock */
.voice-ui {
  position: relative;
  width: 100%; max-width: 420px; margin: 0 auto;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  border-radius: 24px; padding: 26px;
  box-shadow: var(--shadow-md);
  text-align: center;
  overflow: visible;
}
.ui-head { display: flex; align-items: center; gap: 10px; }
.ui-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
  animation: pulseDot 1.7s ease-out infinite;
}
.ui-title {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink);
}
.ui-pill {
  margin-left: auto;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.07em;
  background: var(--green-soft); color: var(--green-2);
  border: 1px solid rgba(63, 224, 129, 0.3);
  border-radius: 999px; padding: 5px 12px;
}
.ui-mic {
  position: relative;
  width: 96px; height: 96px; margin: 26px auto 16px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  display: grid; place-items: center; color: #06230f;
  box-shadow: 0 16px 36px rgba(63, 224, 129, 0.35);
  z-index: 1;
}
.ui-mic .material-symbols-outlined { font-size: 40px; }
.ui-ripple {
  position: absolute; inset: -8px; border-radius: 36px;
  border: 2px solid var(--green);
  animation: micRipple 2.2s ease-out infinite;
  pointer-events: none;
}
.ui-ripple-2 { animation-delay: 1.1s; border-color: var(--cyan); }
@keyframes micRipple {
  0%   { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1.45); opacity: 0; }
}
.ui-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.ui-eq { display: flex; gap: 6px; align-items: flex-end; justify-content: center; height: 34px; margin-top: 18px; }
.ui-eq span {
  width: 7px; height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--green));
  border-radius: 3px;
  transform-origin: bottom;
  animation: eqBounce 1.1s ease-in-out infinite;
}
.ui-eq span:nth-child(2) { animation-delay: 0.15s; }
.ui-eq span:nth-child(3) { animation-delay: 0.3s; }
.ui-eq span:nth-child(4) { animation-delay: 0.45s; }
.ui-eq span:nth-child(5) { animation-delay: 0.6s; }
@keyframes eqBounce { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.ui-foot {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; font-size: 13px; color: var(--muted);
  background: var(--surface-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px;
}
.ui-foot .material-symbols-outlined { font-size: 16px; color: var(--cyan); }

/* nearby players (decorative) */
.prox {
  position: absolute; display: grid; place-items: center; gap: 4px;
  animation: floaty 6s ease-in-out infinite; z-index: 2;
}
.prox i {
  font-style: normal;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: #06230f;
}
.prox em {
  font-style: normal; font-family: var(--font-mono); font-size: 10px;
  color: var(--faint); background: var(--surface-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px;
}
.prox-1 { top: 12%; right: -4%; }
.prox-1 i { background: linear-gradient(135deg, var(--green), var(--cyan)); box-shadow: 0 0 0 4px var(--green-soft); }
.prox-2 { bottom: 22%; left: -6%; animation-delay: 1.4s; }
.prox-2 i { background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: 0 0 0 4px var(--cyan-soft); }
.prox-3 { top: 2%; left: 12%; animation-delay: 2.6s; }
.prox-3 i { background: linear-gradient(135deg, var(--violet), var(--amber)); box-shadow: 0 0 0 4px var(--violet-soft); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); }
.footer-pixels {
  height: 10px;
  background: repeating-linear-gradient(90deg,
      var(--px-g) 0 46px, var(--px-g2) 46px 56px,
      var(--px-b) 56px 102px, var(--px-b2) 102px 112px,
      var(--px-g) 112px 158px, var(--px-g2) 158px 168px,
      var(--px-b) 168px 214px, var(--px-b2) 214px 224px);
  animation: pixels 9s linear infinite;
}
@keyframes pixels { to { background-position: 224px 0; } }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center; padding: 40px 0 52px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); }
.footer-text { color: var(--muted); font-size: 13.5px; }
.footer-heart { color: var(--green); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 30px; left: 50%; z-index: 100;
  transform: translate(-50%, 24px) scale(0.95);
  display: flex; align-items: center; gap: 11px;
  background: var(--glass); color: var(--ink);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 15px 24px; border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-2);
  border-bottom: 4px solid var(--green);
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast .material-symbols-outlined { color: var(--green); }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 90;
  width: 50px; height: 50px; border-radius: 15px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #06230f; display: grid; place-items: center;
  box-shadow: var(--shadow-md), var(--glow-green);
  opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(63, 224, 129, 0.45); }
.back-top .material-symbols-outlined { font-size: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding: 150px 0 160px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-panel { order: -1; padding: 30px 0 10px; }
  .server-wrap { margin-top: -72px; }
  .server-bar { grid-template-columns: 1fr; }
  .sbar-main { padding: 18px 22px; }
  .sbar-cells { border-top: 1px solid var(--line); }
  .sbar-cell { flex: 1; justify-content: center; padding: 16px 12px; }
  .sbar-cell:first-child { border-left: none; }
  .sbar-copy { margin: 0; width: 100%; border-radius: 0; padding: 16px; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .features { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .voice-panel { grid-template-columns: 1fr; gap: 40px; }
  .voice-ui { overflow: hidden; }
  .prox { display: none; }
  .pcube-1, .pcube-3 { display: none; }
  .section { padding: 84px 0; }
  .marquee { margin-top: 48px; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: var(--nav-h, 76px); left: 0; right: 0;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 24px 16px; display: none;
  }
  .nav-links.open { display: flex; animation: menuIn 0.3s ease; }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav-link { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 16px; border-radius: 0; }
  .nav-link:hover { background: none; }
  .nav-link.active::after { left: 4px; bottom: 10px; }
  .nav-toggle { display: inline-flex; }
  .navbar .nav-copy .copy-label { display: none; }
  .navbar .btn { padding: 12px; }
  .section { padding: 72px 0; }
  .hero { padding: 128px 0 120px; }
  .hero-cta .btn { width: 100%; }
  .badge { font-size: 13px; }
  .pcube-2, .pcube-4 { display: none; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
  .server-bar { border-radius: 16px; }
  .sbar-main { padding: 16px 20px; }
  .sbar-cells { flex-direction: column; }
  .sbar-cell { padding: 14px 20px; justify-content: flex-start; }
  .sbar-cell + .sbar-cell { border-left: none; border-top: 1px solid var(--line); }
  .console-body { padding: 20px 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal:not(.visible) { opacity: 1; }
  .reveal { animation: none !important; }
  .marquee-track { animation: none !important; }
}
