/* ============ STARPOWER.TECHNOLOGY ============ */

:root {
  --bg: #000;
  --ink: #fff;
  --dim: rgba(255, 255, 255, 0.6);
  --faint: rgba(255, 255, 255, 0.35);
  --ghost: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.1);
  --line-hi: rgba(255, 255, 255, 0.25);
  --green: #7cffb2;
  --blue: #9db4ff;
  --violet: #c9b8ff;
  --amber: #ffc88c;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(157, 180, 255, 0.35); }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }

/* starfield canvas */
#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* world wrapper — blurs when star is in 0G */
#world {
  position: relative;
  z-index: 1;
  transition: filter 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
}
body.warp #world {
  filter: blur(14px) brightness(0.5);
  transform: scale(0.985);
  pointer-events: none;
}
body.warp #stars { z-index: 2; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-primary { background: var(--ink); color: #000; }
.btn-primary:hover { box-shadow: 0 0 36px rgba(255, 255, 255, 0.4); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-hi); color: var(--ink); background: rgba(0,0,0,0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }
.arrow { transition: transform 0.22s ease; display: inline-block; }
.btn:hover .arrow, .index-row:hover .arrow { transform: translateX(4px); }

/* ============ NAV ============ */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16.5px; letter-spacing: -0.02em; }
.logo-star { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(255,255,255,0.5)); }
.logo-star.big { width: 44px; height: 44px; }
.logo-dim { color: var(--faint); font-weight: 500; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 13.5px; color: var(--dim); transition: color 0.2s; font-family: var(--mono); }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.kbd-hint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.2s;
}
.kbd-hint:hover { color: var(--ink); border-color: var(--line-hi); }
.nav-burger { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-burger span { width: 22px; height: 2px; background: #fff; display: block; }
.mobile-menu { display: none; flex-direction: column; gap: 18px; padding: 20px 28px 28px; border-top: 1px solid var(--line); }
.mobile-menu a { color: var(--dim); font-size: 15px; font-family: var(--mono); }
.mobile-menu .btn { justify-content: center; color: #000; }
.mobile-menu.open { display: flex; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 28px 60px;
  position: relative;
}
.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--dim);
  border: 1px solid var(--line-hi);
  border-radius: 6px;
  padding: 7px 14px;
  margin-bottom: 30px;
  background: rgba(0, 0, 0, 0.5);
  letter-spacing: 0.04em;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title {
  font-size: clamp(44px, 6.5vw, 88px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin-bottom: 26px;
}
.hero-line { display: block; }
.hero-line.dim { color: var(--faint); }
.hero-sub {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--dim);
  max-width: 520px;
  margin-bottom: 36px;
  min-height: 90px;
}
.hero-sub .caret { color: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-hint { font-size: 12px; color: var(--faint); letter-spacing: 0.03em; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.2em;
}
.cue-bar { width: 1px; height: 36px; background: linear-gradient(var(--ink), transparent); animation: cueDrop 1.8s ease infinite; }
@keyframes cueDrop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============ TERMINAL ============ */
.terminal {
  border: 1px solid var(--line-hi);
  border-radius: 12px;
  background: rgba(5, 5, 8, 0.88);
  box-shadow: 0 0 70px rgba(157, 180, 255, 0.07), 0 30px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.terminal-title { margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.terminal-live { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--green); }
.terminal-body {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  height: 340px;
  overflow: hidden;
  color: var(--dim);
}
.tl-dim { color: var(--faint); }
.tl-ok { color: var(--green); }
.tl-key { color: var(--violet); }
.tl-val { color: var(--blue); }
.tl-warn { color: var(--amber); }
.tl-white { color: var(--ink); }
.term-caret { color: var(--blue); animation: blink 1s steps(1) infinite; }

/* ============ SECTION BASICS ============ */
.eyebrow {
  font-size: 12.5px;
  color: var(--blue);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 18px;
}
.stream-title {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.04;
  min-height: 1.1em;
  margin-bottom: 22px;
}
.stream-title .caret { color: var(--blue); font-weight: 400; animation: blink 1s steps(1) infinite; }
.section-sub { font-size: 16.5px; line-height: 1.7; color: var(--dim); max-width: 520px; margin-bottom: 32px; }

/* ============ MISSION / AIMS ============ */
.mission { max-width: 1100px; margin: 0 auto; padding: 140px 28px; }
.mission-head { margin-bottom: 56px; }
.aims { list-style: none; counter-reset: aims; border-top: 1px solid var(--line); }
.aim {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px 8px;
  border-bottom: 1px solid var(--line);
  opacity: 0.35;
  transition: opacity 0.4s ease, background 0.3s ease, padding-left 0.3s ease;
}
.aim.lit { opacity: 1; }
.aim:hover { background: rgba(255, 255, 255, 0.025); padding-left: 18px; }
.aim-num { font-size: 13px; color: var(--faint); }
.aim.lit .aim-num { color: var(--blue); text-shadow: 0 0 12px rgba(157, 180, 255, 0.6); }
.aim-body h3 { font-size: clamp(19px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.aim-body p { font-size: 14.5px; line-height: 1.65; color: var(--dim); max-width: 640px; }
.aim-status {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 10px;
  white-space: nowrap;
}
.aim.lit .aim-status { color: var(--green); border-color: rgba(124, 255, 178, 0.35); }
.aim.lit .glow-status { color: var(--amber); border-color: rgba(255, 200, 140, 0.4); box-shadow: 0 0 16px rgba(255, 200, 140, 0.15); }

/* ============ CATALOG (devtools + architectures) ============ */
.catalog {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 28px 140px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.index-list { border-top: 1px solid var(--line); margin-top: 10px; }
.index-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name arrow" "desc arrow";
  row-gap: 6px;
  column-gap: 18px;
  align-items: center;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, padding-left 0.25s ease;
}
.index-row:hover { background: rgba(255, 255, 255, 0.03); padding-left: 16px; }
.row-name { grid-area: name; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-desc { grid-area: desc; font-size: 13.5px; color: var(--dim); line-height: 1.55; }
.index-row .arrow { grid-area: arrow; color: var(--faint); font-size: 18px; }
.tag {
  font-size: 10px;
  font-weight: 500;
  color: var(--violet);
  border: 1px solid rgba(201, 184, 255, 0.4);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: 0.06em;
}

/* ============ APP SECTION ============ */
.app-section { padding: 140px 28px; border-top: 1px solid var(--line); }
.app-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.app-meta { display: flex; gap: 28px; font-size: 12.5px; color: var(--faint); }
.app-meta span { display: flex; align-items: center; gap: 8px; }
.app-phones { position: relative; display: flex; justify-content: center; min-height: 480px; }
.phone {
  position: relative;
  width: 230px;
  height: 470px;
  border: 1px solid var(--line-hi);
  border-radius: 36px;
  background: #050507;
  box-shadow: 0 0 60px rgba(157, 180, 255, 0.08), 0 40px 80px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  z-index: 2;
}
.phone-back {
  position: absolute;
  right: 8%;
  top: 40px;
  transform: rotate(8deg) scale(0.92);
  z-index: 1;
  opacity: 0.7;
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 22px;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 12px;
  z-index: 3;
}
.phone-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.8;
  letter-spacing: 0.12em;
  background:
    radial-gradient(circle at 50% 30%, rgba(157, 180, 255, 0.08), transparent 60%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,0.018) 14px 15px);
}
.phone.placeholder .phone-fallback { display: flex; }

/* ============ WVY.WORLD ============ */
.world { padding: 140px 28px; border-top: 1px solid var(--line); }
.world-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}
.chat-sim {
  border: 1px solid var(--line-hi);
  border-radius: 14px;
  background: rgba(5, 5, 8, 0.9);
  box-shadow: 0 0 80px rgba(157, 180, 255, 0.09), 0 30px 70px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.chat-sim-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
}
.chat-live { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); }
.chat-sim-body {
  padding: 18px;
  height: 360px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 13px;
}
.sim-msg { display: flex; gap: 11px; align-items: flex-start; animation: msgIn 0.35s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sim-av {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  font-family: var(--mono);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-hi);
}
.sim-av.agent { background: rgba(157, 180, 255, 0.14); border-color: rgba(157, 180, 255, 0.45); color: var(--blue); }
.sim-name { font-size: 11.5px; font-weight: 600; color: var(--faint); display: block; margin-bottom: 3px; font-family: var(--mono); }
.sim-msg p { font-size: 13.5px; line-height: 1.5; }
.agent-tag { font-size: 9.5px; color: var(--blue); border: 1px solid rgba(157, 180, 255, 0.4); border-radius: 3px; padding: 1px 5px; margin-left: 6px; font-family: var(--mono); }
.sim-dots { display: inline-flex; gap: 4px; padding: 5px 0; }
.sim-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); animation: bob 1.2s infinite; }
.sim-dots span:nth-child(2) { animation-delay: 0.15s; }
.sim-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bob { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 70px 28px 32px; background: rgba(0,0,0,0.6); }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto 52px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; gap: 16px; align-items: flex-start; max-width: 340px; }
.footer-brand strong { font-size: 16px; display: block; margin-bottom: 8px; }
.footer-brand p { font-size: 12px; color: var(--faint); line-height: 1.7; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h5 { font-size: 11px; font-weight: 500; color: var(--faint); letter-spacing: 0.14em; margin-bottom: 6px; }
.footer-col a { font-size: 13.5px; color: var(--dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: var(--faint);
}

/* ============ MASCOT ============ */
#mascot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 110px;
  height: 110px;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.35)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
  will-change: transform;
}
#mascot:active { cursor: grabbing; }
.mascot-inner { position: relative; width: 100%; height: 100%; }
.mascot-inner img {
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.mascot-eyes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
#mascot .star-eye { transition: transform 0.1s linear; transform-box: fill-box; transform-origin: center; }

/* ============ STAR CHAT ============ */
.star-chat {
  position: fixed;
  z-index: 210;
  width: min(360px, calc(100vw - 32px));
  border: 1px solid var(--line-hi);
  border-radius: 14px;
  background: rgba(8, 8, 12, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 0 60px rgba(157, 180, 255, 0.12), 0 30px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform-origin: bottom right;
}
.star-chat.hidden { display: none; }
.star-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.03);
}
.chat-head-title { white-space: nowrap; }
.chat-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.16);
}
.chat-tab {
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 7px;
  cursor: pointer;
}
.chat-tab.active {
  color: var(--ink);
  background: rgba(157, 180, 255, 0.16);
}
.chat-tab:hover { color: var(--ink); }
.chat-x { background: none; border: 1px solid var(--line); border-radius: 4px; color: var(--faint); font-size: 10.5px; padding: 3px 7px; cursor: pointer; }
.chat-x:hover { color: var(--ink); }
.star-chat-log {
  height: 260px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.6;
}
.star-chat-log::-webkit-scrollbar { width: 4px; }
.star-chat-log::-webkit-scrollbar-thumb { background: var(--ghost); border-radius: 2px; }
.star-chat-list {
  height: 260px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.star-chat-list.hidden, .star-chat-log.hidden, .star-chat-form.hidden { display: none; }
.chat-list-new {
  width: 100%;
  border: 1px solid rgba(157, 180, 255, 0.38);
  border-radius: 8px;
  background: rgba(157, 180, 255, 0.1);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  padding: 9px 10px;
  cursor: pointer;
  text-align: left;
}
.chat-list-new:hover { border-color: var(--line-hi); background: rgba(157, 180, 255, 0.16); }
.chat-list-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--dim);
  padding: 9px 10px;
  cursor: pointer;
  text-align: left;
}
.chat-list-item.active {
  color: var(--ink);
  border-color: rgba(157, 180, 255, 0.45);
  background: rgba(157, 180, 255, 0.09);
}
.chat-list-item:hover { border-color: var(--line-hi); }
.chat-list-title {
  display: block;
  color: inherit;
  font-size: 12.5px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-list-meta {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}
.chat-list-empty {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  padding: 10px 2px;
}
.chat-line.you { color: var(--dim); }
.chat-line.you::before { content: "you › "; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.chat-line.star::before { content: "★ "; color: var(--blue); }
.star-chat-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.prompt-mark { color: var(--blue); font-size: 15px; }
.star-chat-form input, .palette-input-row input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13.5px;
}
.star-chat-form input::placeholder, .palette-input-row input::placeholder { color: var(--faint); }

/* ============ EXPERIENCE MODE (blurred / 0G) ============ */
/* transparent click-catcher — appears only when blurred, exits on click */
.warp-catcher { position: fixed; inset: 0; z-index: 150; display: none; cursor: pointer; }
body.warp .warp-catcher { display: block; }
/* hint ribbon top-center while in experience mode */
.warp-catcher::after {
  content: "click anywhere to step out ↩";
  position: absolute;
  top: 26px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(8, 8, 12, 0.6);
  backdrop-filter: blur(8px);
  animation: hintPulse 2.6s ease-in-out infinite;
}
@keyframes hintPulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.9; } }

/* WVY speech bubble — tracks the star, types out next to it */
.star-bubble {
  position: fixed;
  z-index: 205;
  max-width: 290px;
  background: rgba(10, 10, 14, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-hi);
  border-radius: 16px 16px 16px 5px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  box-shadow: 0 0 50px rgba(157, 180, 255, 0.18), 0 20px 50px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.star-bubble.hidden { display: none; }
.star-bubble .sb-text { min-height: 1em; }
.sb-caret { color: var(--blue); animation: blink 1s steps(1) infinite; }
.sb-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
}
.sb-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: bob 1.2s infinite;
}
.sb-typing span:nth-child(2) { animation-delay: 0.15s; }
.sb-typing span:nth-child(3) { animation-delay: 0.3s; }

/* floating user message — rises and drifts off the top */
.float-msg {
  position: fixed;
  z-index: 190;
  pointer-events: none;
  max-width: 340px;
  padding: 11px 17px;
  border-radius: 18px 18px 5px 18px;
  background: rgba(157, 180, 255, 0.16);
  border: 1px solid rgba(157, 180, 255, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

/* bottom prompt bar — only present when blurred */
.exp-bar {
  position: fixed;
  left: 50%; bottom: 30px;
  z-index: 215;
  width: min(580px, calc(100vw - 32px));
  transform: translateX(-50%) translateY(150%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.2, 0.85, 0.2, 1), opacity 0.4s ease;
}
body.warp .exp-bar { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.exp-form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(8, 8, 12, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-hi);
  border-radius: 14px;
  padding: 13px 16px;
  box-shadow: 0 0 60px rgba(157, 180, 255, 0.14), 0 30px 60px rgba(0, 0, 0, 0.7);
}
.exp-form input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14.5px;
}
.exp-form input::placeholder { color: var(--faint); }
.exp-send {
  background: var(--ink);
  color: #000;
  border: none;
  border-radius: 9px;
  padding: 8px 15px;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}
.exp-send:hover { box-shadow: 0 0 24px rgba(255, 255, 255, 0.4); }
.exp-hint { text-align: center; font-size: 11px; color: var(--faint); margin-top: 11px; letter-spacing: 0.04em; }

/* ============ PALETTE ============ */
.palette {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  padding-top: 18vh;
}
.palette.hidden { display: none; }
.palette-box {
  width: min(560px, calc(100vw - 32px));
  height: fit-content;
  border: 1px solid var(--line-hi);
  border-radius: 14px;
  background: rgba(8, 8, 12, 0.95);
  box-shadow: 0 0 80px rgba(157, 180, 255, 0.12), 0 40px 80px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: palIn 0.18s ease;
}
@keyframes palIn { from { opacity: 0; transform: translateY(-12px) scale(0.98); } to { opacity: 1; transform: none; } }
.palette-input-row { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette-input-row input { font-size: 14.5px; }
.kbd { font-size: 10.5px; color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; }
.palette-results { max-height: 320px; overflow-y: auto; padding: 8px; }
.pal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--dim);
}
.pal-item .pal-kind { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.pal-item.sel, .pal-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.pal-icon { font-family: var(--mono); color: var(--blue); font-size: 12px; width: 18px; text-align: center; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .nav-links, .nav-right { display: none; }
  .nav-burger { display: flex; }
  .hero { padding-top: 110px; min-height: auto; }
  .hero-grid, .app-grid, .world-grid, .catalog { grid-template-columns: 1fr; gap: 48px; }
  .terminal-body { height: 280px; }
  .scroll-cue { display: none; }
  .aim { grid-template-columns: 44px 1fr; }
  .aim-status { display: none; }
  .mission, .app-section, .world { padding: 90px 20px; }
  .catalog { padding: 40px 20px 90px; }
  #mascot { width: 84px; height: 84px; }
  .app-phones { min-height: 420px; }
}
