/* NUSU AI — public site styles (mobile-first, holographic dark theme) */

:root {
  --bg: #070914;
  --surface: rgba(17, 22, 46, 0.72);
  --surface-2: #10142c;
  --text: #e7ecff;
  --muted: #96a0c2;
  --accent: #22d3ee;
  --accent-2: #7c3aed;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.12);
  --bad: #ff5a6e;
  --bad-soft: rgba(255, 90, 110, 0.12);
  --warn: #ffb020;
  --warn-soft: rgba(255, 176, 32, 0.12);
  --border: rgba(120, 160, 255, 0.16);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --font: "Inter", "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 520px at 88% -6%, rgba(124, 58, 237, 0.20), transparent 60%),
    radial-gradient(760px 460px at -12% 14%, rgba(34, 211, 238, 0.10), transparent 55%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.3rem, 3.5vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: #04121a; padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- site header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(34, 211, 238, 0.07);
}
.site-header .container {
  display: flex; align-items: center; gap: 0.75rem;
  min-height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 800; color: var(--text); font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .brand-dot { color: var(--accent); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }

.lang-toggle, .menu-btn {
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); border-radius: 999px;
  padding: 0.42rem 0.9rem; font-size: 0.9rem; font-family: inherit;
  cursor: pointer; min-height: 40px;
}
.lang-toggle:hover, .menu-btn:hover { border-color: var(--accent); color: var(--accent); }
.menu-btn { display: inline-flex; align-items: center; gap: 0.4rem; }

.main-nav { display: none; }
.main-nav.is-open {
  display: flex; flex-direction: column;
  position: absolute; left: 0; right: 0; top: 60px;
  background: #0a0d1e; border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem 1rem; box-shadow: var(--shadow);
}
.main-nav a {
  padding: 0.65rem 0.5rem; color: var(--text); border-radius: 8px;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a.is-active { background: var(--accent-soft); color: var(--accent); text-decoration: none; }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .main-nav {
    display: flex; align-items: center; gap: 0.15rem;
    position: static; flex-direction: row; padding: 0;
    border: 0; box-shadow: none; background: transparent;
    margin-left: 1rem;
  }
  .main-nav a { padding: 0.45rem 0.6rem; font-size: 0.94rem; }
}

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 380px at 78% 30%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(900px 460px at 20% 0%, rgba(124, 58, 237, 0.20), transparent 60%),
    linear-gradient(180deg, #0a0d1e 0%, #070914 100%);
  border-bottom: 1px solid var(--border);
  padding: clamp(2.2rem, 7vw, 4.5rem) 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000, transparent);
}
.hero .container { position: relative; z-index: 1; }

.hero > .container:not(.hero-grid) { padding-right: clamp(0rem, 8vw, 7rem); }
.hero > .container:not(.hero-grid)::after {
  content: ""; position: absolute; pointer-events: none;
  right: -16px; top: -14px;
  width: clamp(84px, 15vw, 140px); aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(148, 163, 255, 0.28);
  border-top-color: rgba(34, 211, 238, 0.6);
  animation: orb-spin 34s linear infinite;
}

.hero-grid { display: grid; gap: clamp(1.6rem, 5vw, 3rem); align-items: center; }
.hero-copy { min-width: 0; }
.hero .lead { font-size: clamp(1rem, 2.6vw, 1.15rem); color: var(--muted); max-width: 62ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.hero h1 { color: var(--text); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(105deg, #eaf6ff 25%, #9be8ff 55%, #c4b5fd 88%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
}

.hero-wordmark {
  display: block; width: min(320px, 78%); height: auto;
  margin: 0.4rem 0 0.9rem;
  filter: drop-shadow(0 0 26px rgba(139, 92, 246, 0.45)) drop-shadow(0 0 8px rgba(59, 130, 246, 0.35));
  animation: wordmark-float 9s ease-in-out infinite;
}

.version-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--accent-soft); color: #8ee9fb;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px; padding: 0.35rem 0.9rem;
  font-size: 0.88rem; font-weight: 600; margin-bottom: 1rem;
  box-shadow: inset 0 0 12px rgba(34, 211, 238, 0.08);
}
.version-pill .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ------------------------------------------------------------- hero orb */
.orb-stage {
  position: relative; justify-self: center;
  width: clamp(210px, 34vw, 330px); aspect-ratio: 1;
  display: grid; place-items: center;
  order: -1;
  animation: orb-float 8s ease-in-out infinite;
}
.orb-glow {
  position: absolute; inset: -20%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.20), rgba(124, 58, 237, 0.16) 45%, transparent 72%);
  animation: orb-breathe 6s ease-in-out infinite;
}
.orb-core {
  position: relative; width: 44%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 50% 50%, #22d3ee, #7c3aed);
  box-shadow:
    0 0 26px rgba(34, 211, 238, 0.6),
    0 0 74px rgba(124, 58, 237, 0.38),
    inset 0 0 18px rgba(255, 255, 255, 0.28);
  animation: orb-pulse 4.5s ease-in-out infinite;
}
.orb-ring { position: absolute; border-radius: 50%; }
.orb-ring-a {
  inset: 9%;
  border: 2px solid rgba(34, 211, 238, 0.16);
  border-top-color: rgba(34, 211, 238, 0.85);
  animation: orb-spin 9s linear infinite;
}
.orb-ring-a::after {
  content: ""; position: absolute; top: -5px; left: 50%;
  width: 9px; height: 9px; border-radius: 50%;
  background: #22d3ee; box-shadow: 0 0 12px #22d3ee;
  transform: translateX(-50%);
}
.orb-ring-b {
  inset: 0%;
  border: 2px solid rgba(124, 58, 237, 0.16);
  border-left-color: rgba(167, 139, 250, 0.85);
  animation: orb-spin-rev 14s linear infinite;
}
.orb-ring-c {
  inset: -9%;
  border: 1px dashed rgba(148, 163, 255, 0.24);
  animation: orb-spin 26s linear infinite;
}
@keyframes orb-spin { to { transform: rotate(360deg); } }
@keyframes orb-spin-rev { to { transform: rotate(-360deg); } }
@keyframes orb-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 26px rgba(34, 211, 238, 0.6), 0 0 74px rgba(124, 58, 237, 0.38), inset 0 0 18px rgba(255, 255, 255, 0.28); }
  50% { transform: scale(1.06); box-shadow: 0 0 40px rgba(34, 211, 238, 0.8), 0 0 110px rgba(124, 58, 237, 0.5), inset 0 0 22px rgba(255, 255, 255, 0.34); }
}
@keyframes orb-breathe { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }
@keyframes orb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes wordmark-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr auto; }
  .hero-grid .orb-stage { order: 0; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border: 1px solid rgba(165, 245, 255, 0.35); border-radius: 999px;
  padding: 0.75rem 1.6rem; font-size: 1rem; font-weight: 600;
  font-family: inherit; cursor: pointer; min-height: 46px;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.3), 0 8px 24px rgba(124, 58, 237, 0.28);
  transition: box-shadow 0.2s ease, filter 0.2s ease, transform 0.15s ease;
}
.btn:hover {
  text-decoration: none; filter: brightness(1.08);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.45), 0 10px 30px rgba(124, 58, 237, 0.38);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.is-disabled, .btn[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; box-shadow: none; pointer-events: none;
  transform: none; filter: none;
}
.btn-secondary {
  background: rgba(15, 20, 42, 0.72); color: #a8ecfb;
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: inset 0 0 14px rgba(34, 211, 238, 0.08);
}
.btn-secondary:hover { box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.14), 0 0 18px rgba(34, 211, 238, 0.25); }
.btn-small { padding: 0.45rem 1rem; font-size: 0.9rem; min-height: 38px; margin-top: 0.6rem; }
.btn-danger {
  background: linear-gradient(135deg, #ff5a6e, #b91c3c);
  border-color: rgba(255, 160, 170, 0.4);
  box-shadow: 0 0 16px rgba(255, 90, 110, 0.3);
}

/* ------------------------------------------------------------------ cards */
.section { padding: clamp(2rem, 6vw, 3.5rem) 0; }
.section-alt {
  background: rgba(10, 13, 28, 0.72);
  border-block: 1px solid rgba(120, 160, 255, 0.10);
}

.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: linear-gradient(160deg, rgba(23, 29, 58, 0.78), rgba(12, 16, 36, 0.7));
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem 1.4rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4), 0 0 22px rgba(34, 211, 238, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.card h3 { margin-bottom: 0.35rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: inset 0 0 12px rgba(34, 211, 238, 0.12);
  font-size: 1.25rem; margin-bottom: 0.8rem;
}

/* ----------------------------------------------------------------- notices */
.notice {
  border-radius: var(--radius); padding: 1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.3rem;
  border: 1px solid var(--border); background: var(--surface-2);
  margin-bottom: 1.2rem;
}
.notice-warn { background: var(--warn-soft); border-color: rgba(255, 176, 32, 0.35); color: #ffd48a; }
.notice-warn strong { color: #ffd48a; }
.notice-ok { background: var(--ok-soft); border-color: rgba(52, 211, 153, 0.35); color: #7bedb8; }
.notice-error { background: var(--bad-soft); border-color: rgba(255, 90, 110, 0.35); color: #ff9aa8; }
#announcement-banner {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff; border-radius: var(--radius);
  padding: 0.9rem 1.2rem; margin: 1rem 0;
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.4);
}
#announcement-banner a, #announcement-banner strong { color: #fff; }

/* --------------------------------------------------------------- dl blocks */
.dl-grid { display: grid; gap: 1rem; }
@media (min-width: 760px) { .dl-grid { grid-template-columns: 1.2fr 1fr; } }

.meta-list { list-style: none; padding: 0; margin: 0; }
.meta-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}
.meta-list li:last-child { border-bottom: 0; }
.meta-list .label { color: var(--muted); }
.meta-list .value { font-weight: 600; text-align: right; word-break: break-all; }

.sha-value { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.8rem; }

.release-card .btn { margin-top: 0.8rem; }

/* --------------------------------------------------------------- status */
.status-list { display: grid; gap: 0.9rem; }
.status-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.2rem;
}
.status-row .desc { color: var(--muted); font-size: 0.9rem; }
.status-label { font-weight: 700; color: var(--muted); white-space: nowrap; }
.status-row.is-ok .status-label { color: var(--ok); text-shadow: 0 0 12px rgba(52, 211, 153, 0.5); }
.status-row.is-bad .status-label { color: var(--bad); text-shadow: 0 0 12px rgba(255, 90, 110, 0.5); }
.status-row.is-ok { border-color: rgba(52, 211, 153, 0.32); background: rgba(52, 211, 153, 0.07); }
.status-row.is-bad { border-color: rgba(255, 90, 110, 0.32); background: rgba(255, 90, 110, 0.07); }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 0.9rem; max-width: 560px; }
.form label { font-weight: 600; font-size: 0.93rem; display: grid; gap: 0.35rem; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--text); background: rgba(9, 12, 28, 0.85);
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 0.65rem 0.8rem; min-height: 44px; width: 100%;
}
.form select option { background: #0d1024; color: var(--text); }
.form input::placeholder, .form textarea::placeholder { color: #6b7496; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.25);
}
.form textarea { min-height: 130px; resize: vertical; }
.form-status { font-size: 0.93rem; min-height: 1.2em; }
.form-status.is-error { color: #ff8fa0; }
.form-status.is-success { color: #6ee7b7; }

/* ---------------------------------------------------------------- content */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 0.9rem 0;
  list-style: none; position: relative; padding-right: 2rem;
}
.faq-item summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 0.75rem;
  color: var(--accent); font-size: 1.3rem; font-weight: 600;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item { border-bottom: 1px solid var(--border); padding: 0.2rem 0 0.6rem; }
.faq-item p { color: var(--muted); margin: 0.2rem 0 0.4rem; }

/* ----------------------------------------------------------------- footer */
.site-footer {
  background: #05070f; color: #b9c2e4; margin-top: 2.5rem;
  padding: 2.4rem 0 1.6rem; font-size: 0.95rem;
  border-top: 1px solid rgba(34, 211, 238, 0.18);
  box-shadow: 0 -1px 0 rgba(124, 58, 237, 0.14);
}
.site-footer a { color: #8be9fb; }
.site-footer a:hover { color: #c4b5fd; }
.site-footer h4 { color: #fff; margin: 0 0 0.6rem; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-bottom {
  border-top: 1px solid rgba(120, 160, 255, 0.14); margin-top: 1.8rem; padding-top: 1.1rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between;
  color: #7a8098; font-size: 0.85rem;
}

/* --------------------------------------------------------------- utility */
[hidden] { display: none !important; }
.badge {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
  background: var(--accent-soft); color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.25);
}
.badge-ok { background: var(--ok-soft); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.3); }
.badge-bad { background: var(--bad-soft); color: #ff8fa0; border-color: rgba(255, 90, 110, 0.3); }
.badge-warn { background: var(--warn-soft); color: #ffd48a; border-color: rgba(255, 176, 32, 0.3); }

/* --------------------------------------------------------------- purchase */
.purchase-price-card {
  position: relative;
  background: linear-gradient(160deg, rgba(30, 24, 74, 0.88), rgba(12, 16, 36, 0.82));
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.22), 0 10px 30px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.purchase-price-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.7), rgba(124, 58, 237, 0.6), transparent 68%);
  -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;
  pointer-events: none;
}
.purchase-price-card h3 { color: #d9d4ff; }
.purchase-price {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-size: clamp(1.9rem, 5vw, 2.4rem); font-weight: 800;
  color: var(--accent); margin: 0.2rem 0 0.6rem;
  text-shadow: 0 0 22px rgba(34, 211, 238, 0.45);
}
.purchase-price-once { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.purchase-steps {
  margin: 0.4rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.5rem;
  color: var(--muted); font-size: 0.95rem;
}
.purchase-method {
  display: grid; gap: 0.2rem; padding: 0.7rem 0;
  border-bottom: 1px dashed var(--border);
}
.purchase-method:last-child { border-bottom: 0; padding-bottom: 0.2rem; }
.purchase-method-label { font-weight: 700; font-size: 0.92rem; }
.purchase-method strong { font-size: 1.15rem; letter-spacing: 0.04em; color: #9be8fb; }
.purchase-copy { width: fit-content; }
.purchase-consent { grid-template-columns: auto 1fr; align-items: start; }
.purchase-consent input[type="checkbox"] { width: 18px; min-height: 18px; height: 18px; margin-top: 0.25rem; accent-color: var(--accent); }
.purchase-consent span { display: grid; gap: 0.2rem; font-weight: 600; font-size: 0.93rem; }
.purchase-success { border-color: rgba(52, 211, 153, 0.4); }
.purchase-success h3 { color: #6ee7b7; }
.purchase-feed { display: grid; gap: 0.6rem; }
.purchase-feed-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.8rem 1rem;
}
.purchase-toast {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 60;
  background: #0d1128; color: var(--text);
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 12px; box-shadow: var(--shadow), 0 0 18px rgba(34, 211, 238, 0.15);
  padding: 0.75rem 1rem; font-size: 0.92rem; line-height: 1.4;
  max-width: min(88vw, 340px); pointer-events: none;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.purchase-toast.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------- voice commands */
.cmd-list {
  list-style: none; margin: 1.2rem 0 0; padding: 0;
  display: grid; gap: 0.55rem; max-width: 760px;
}
.cmd-item {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.5rem 1rem;
  background: linear-gradient(160deg, rgba(23, 29, 58, 0.72), rgba(12, 16, 36, 0.62));
  border: 1px solid var(--border); border-radius: 12px;
  padding: 0.65rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cmd-item:hover {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.12);
}
.cmd-phrase { font-weight: 600; font-size: 0.97rem; }
.cmd-code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.78rem; color: #a8ecfb;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px; padding: 0.18rem 0.65rem;
  white-space: nowrap;
}
.cmd-more { margin-top: 1rem; max-width: 62ch; }

/* ------------------------------------------------------------ voice demo */
.demo-panel {
  display: grid; gap: 1.1rem; justify-items: start;
  max-width: 740px;
  background: linear-gradient(160deg, rgba(23, 29, 58, 0.78), rgba(12, 16, 36, 0.7));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 4vw, 1.8rem);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.demo-mic {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border: 1px solid rgba(165, 245, 255, 0.35);
  border-radius: 999px; padding: 0.85rem 1.5rem;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  min-height: 54px;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.35), 0 10px 26px rgba(124, 58, 237, 0.3);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.demo-mic:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.5), 0 12px 32px rgba(124, 58, 237, 0.4);
}
.demo-mic:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; transform: none; }
.demo-mic-icon { font-size: 1.2rem; }
.demo-mic-ring {
  position: absolute; inset: -7px; border-radius: 999px;
  border: 2px solid rgba(34, 211, 238, 0.6); opacity: 0;
}
.demo-mic.is-listening .demo-mic-ring { animation: mic-ring 1.4s ease-out infinite; }
@keyframes mic-ring {
  0% { transform: scale(0.97); opacity: 0.85; }
  100% { transform: scale(1.14); opacity: 0; }
}

.demo-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.demo-chip {
  border: 1px solid var(--border); background: rgba(15, 20, 42, 0.72);
  color: var(--text); border-radius: 999px;
  padding: 0.45rem 0.9rem; font: inherit; font-size: 0.9rem;
  cursor: pointer; min-height: 38px;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.demo-chip:hover { border-color: rgba(34, 211, 238, 0.5); color: #a8ecfb; }
.demo-chip.is-picked {
  border-color: var(--accent); color: #a8ecfb;
  background: var(--accent-soft);
  box-shadow: inset 0 0 12px rgba(34, 211, 238, 0.14), 0 0 14px rgba(34, 211, 238, 0.18);
}

.demo-result {
  width: 100%;
  background: rgba(9, 12, 28, 0.85);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  display: grid; gap: 0.4rem;
}
.demo-heard { font-size: 0.95rem; }
.demo-heard strong { color: #9be8fb; word-break: break-word; }
.demo-verdict { font-weight: 700; font-size: 0.95rem; }
.demo-verdict.is-match { color: #6ee7b7; }
.demo-verdict.is-near { color: #ffd48a; }
.demo-verdict.is-nomatch { color: var(--muted); }
.demo-action {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85rem; color: #a8ecfb;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 8px; padding: 0.2rem 0.6rem; width: fit-content;
}
.demo-note { max-width: 62ch; margin: 0; }

/* --------------------------------------------------------- scroll reveal */
.reveal-pending {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-pending.reveal-in { opacity: 1; transform: none; }

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb-stage, .orb-core, .orb-glow, .orb-ring, .orb-ring-a::after,
  .hero-wordmark, .version-pill .pulse, .demo-mic-ring,
  .hero > .container:not(.hero-grid)::after {
    animation: none !important;
  }
  .btn, .card { transition: none; }
  .btn:hover { transform: none; }
  .reveal-pending { opacity: 1 !important; transform: none !important; transition: none !important; }
  .purchase-toast { transition: opacity 0.3s ease; transform: none; }
}
