/* =========================================================
   Q-Option public site — layout, chart stage, holographics
   ========================================================= */
:root {
  --public-bg: #060b12;
  --public-panel: #0d1520;
  --public-panel-2: #111c2a;
  --public-line: rgba(148, 178, 208, 0.16);
  --public-text: #eef5fb;
  --public-muted: #8fa3b8;
  --public-green: #1fd6a4;
  --public-blue: #3aa0ff;
  --public-gold: #e8b86d;
  --public-red: #ff5d72;
  --qx-font: "Outfit", "Segoe UI", sans-serif;
  --qx-display: "Syne", "Outfit", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

body,
body.public-site {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  color: var(--public-text);
  background: var(--public-bg);
  font-family: var(--qx-font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; }

.public-site {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% -8%, rgba(58, 160, 255, 0.12), transparent 36%),
    radial-gradient(circle at 8% 18%, rgba(31, 214, 164, 0.08), transparent 30%),
    linear-gradient(155deg, #08101a, #060b12 55%, #0a131d);
}

/* Ambient holographic field */
.public-site::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(31, 214, 164, 0.06), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(58, 160, 255, 0.05), transparent 30%),
    repeating-linear-gradient(
      0deg,
      transparent 0 3px,
      rgba(148, 178, 208, 0.015) 3px 4px
    );
  animation: qxHoloDrift 18s ease-in-out infinite alternate;
}
.public-site > * { position: relative; z-index: 1; }

@keyframes qxHoloDrift {
  from { opacity: 0.7; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-12px); }
}

/* ---------- Nav ---------- */
.public-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 76px);
  border-bottom: 1px solid var(--public-line);
  background: rgba(8, 14, 22, 0.86);
  backdrop-filter: blur(18px);
}
.public-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--qx-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--public-green);
  background: transparent !important;
  border: 0 !important;
}
.brand-mark img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.brand-copy,
.brand-copy b,
.brand-copy span { color: #fff !important; }
.public-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.35vw, 20px);
  color: #8fa3b8;
  font-size: 12px;
  font-weight: 700;
}
.public-links a { position: relative; padding: 6px 0; }
.public-links a:hover,
.public-links a.active { color: #5eefc4; }
.public-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1fd6a4, #3aa0ff);
}
.public-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.public-auth-toggle { display: none; }
.public-auth-popover { display: none; }
.public-menu {
  display: none;
  border: 1px solid var(--public-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 22px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

.public-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(148, 178, 208, 0.2);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.public-btn:hover { transform: translateY(-1px); }
.public-btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #22e0ad, #14b889);
  color: #04150f;
  box-shadow: 0 8px 22px rgba(31, 214, 164, 0.22);
}
.public-btn-primary:hover {
  background: linear-gradient(135deg, #3aefbf, #1bc996);
  color: #03120c;
}
.public-btn-quiet {
  background: rgba(255, 255, 255, 0.04);
  color: #e5edf5;
}
.public-btn-quiet:hover {
  border-color: rgba(58, 160, 255, 0.4);
  background: rgba(58, 160, 255, 0.1);
}

/* ---------- Hero / page headers ---------- */
.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: 1250px;
  min-height: min(680px, calc(100dvh - 72px));
  margin: 0 auto;
  padding: 72px clamp(20px, 5vw, 76px) 56px;
}
.page-hero {
  max-width: 1250px;
  margin: 0 auto;
  padding: 88px clamp(20px, 5vw, 76px) 48px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--public-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3, h4, p { margin-top: 0; }
.public-hero h1,
.page-hero h1 {
  max-width: 720px;
  margin: 18px 0 16px;
  font-family: var(--qx-display);
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #f4f8fc;
}
.public-hero h1 em {
  color: #5eefc4;
  font-style: normal;
}
.hero-copy,
.page-hero p {
  max-width: 590px;
  margin: 0;
  color: var(--public-muted);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 40px;
  color: #7d92a8;
  font-size: 11px;
  font-weight: 800;
}
.hero-trust strong {
  display: block;
  margin-bottom: 4px;
  color: #f3f7fb;
  font-size: 20px;
  font-family: var(--qx-display);
}

/* ---------- Terminal / chart ---------- */
.hero-visual {
  position: relative;
  min-height: 420px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(31, 214, 164, 0.18), transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(58, 160, 255, 0.16), transparent 40%);
  filter: blur(18px);
  animation: qxGlowPulse 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes qxGlowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.terminal-card {
  position: absolute;
  inset: 8px 0 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(58, 160, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(155deg, rgba(14, 24, 38, 0.96), rgba(8, 14, 22, 0.98));
  box-shadow:
    0 0 0 1px rgba(31, 214, 164, 0.08),
    0 28px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.public-demo-terminal {
  position: relative;
  inset: auto;
  min-height: 460px;
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
}

.terminal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 178, 208, 0.12);
  color: #8fa3b8;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.terminal-pair { color: #fff; font-size: 14px; }
.terminal-pair small { color: #8fa3b8; font-weight: 700; margin-left: 6px; }
.terminal-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--public-green);
  letter-spacing: 0.08em;
}
.terminal-live i {
  font-size: 8px;
  animation: qxPulseLive 1.6s ease-in-out infinite;
}
@keyframes qxPulseLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.qx-chart-stage {
  position: relative;
  flex: 1;
  min-height: 280px;
  overflow: hidden;
}
.market-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.public-demo-terminal .market-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Hide old floating price badge — price is drawn on canvas */
.terminal-price { display: none !important; }

.terminal-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(148, 178, 208, 0.1);
  background: rgba(6, 11, 18, 0.55);
  color: #7d92a8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.terminal-stats b {
  display: block;
  margin-top: 4px;
  color: #f3f7fb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.qx-holo-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  top: -30%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(31, 214, 164, 0.08),
    rgba(58, 160, 255, 0.06),
    transparent
  );
  animation: qxScan 4.8s linear infinite;
  mix-blend-mode: screen;
}
@keyframes qxScan {
  0% { top: -35%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 0.7; }
  100% { top: 105%; opacity: 0; }
}

.qx-holo-frame {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(31, 214, 164, 0.12);
  border-radius: 10px;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(58, 160, 255, 0.04);
}
.qx-holo-frame::before,
.qx-holo-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #1fd6a4;
}
.qx-holo-frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}
.qx-holo-frame::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

/* ---------- Content blocks ---------- */
.public-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1250px;
  margin: 0 auto;
  padding: 22px clamp(20px, 5vw, 76px);
  border-top: 1px solid rgba(148, 178, 208, 0.12);
  border-bottom: 1px solid rgba(148, 178, 208, 0.12);
}
.public-strip > div {
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 178, 208, 0.08);
  text-align: center;
}
.public-strip strong {
  display: block;
  color: #fff;
  font-size: 22px;
  font-family: var(--qx-display);
}
.public-strip span {
  color: #7d92a8;
  font-size: 11px;
  font-weight: 700;
}

.public-section {
  max-width: 1250px;
  margin: 0 auto;
  padding: 88px clamp(20px, 5vw, 76px);
}
.public-section-head {
  max-width: 680px;
  margin-bottom: 36px;
}
.public-section h2 {
  margin: 12px 0 14px;
  font-family: var(--qx-display);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #f4f8fc;
}
.public-section p { color: var(--public-muted); line-height: 1.7; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature-card,
.info-card,
.faq-item,
.contact-card {
  padding: 24px;
  border: 1px solid rgba(148, 178, 208, 0.14);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 28, 42, 0.88), rgba(10, 18, 28, 0.9));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover,
.info-card:hover,
.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 214, 164, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.feature-card i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: rgba(31, 214, 164, 0.12);
  color: var(--public-green);
  font-size: 18px;
}
.feature-card h3,
.info-card h3 { margin-bottom: 10px; font-size: 17px; color: #eef5fb; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: step;
}
.step-card {
  position: relative;
  padding: 26px;
  border-top: 2px solid var(--public-green);
  border-radius: 0 0 14px 14px;
  background: #0d1724;
}
.step-card::before {
  counter-increment: step;
  content: "0" counter(step);
  color: var(--public-green);
  font: 800 28px/1 var(--qx-display);
}
.step-card h3 { margin: 18px 0 10px; color: #eef5fb; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.market-ticker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.market-chip {
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 178, 208, 0.14);
  background: rgba(12, 20, 30, 0.85);
  position: relative;
  overflow: hidden;
}
.market-chip::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(31, 214, 164, 0.12);
  filter: blur(16px);
}
.market-chip .pair {
  font-size: 12px;
  font-weight: 800;
  color: #c9d7e6;
  letter-spacing: 0.04em;
}
.market-chip .px {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.market-chip .chg {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
}
.market-chip .chg.up { color: #5eefc4; }
.market-chip .chg.down { color: #ff8a99; }

.hologrid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: stretch;
}
.holo-panel {
  position: relative;
  padding: 26px;
  border-radius: 16px;
  border: 1px solid rgba(58, 160, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(16, 28, 42, 0.92), rgba(8, 14, 22, 0.95));
  overflow: hidden;
}
.holo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(31, 214, 164, 0.08), transparent 70%);
  transform: translateX(-100%);
  animation: qxSheen 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes qxSheen {
  0%, 40% { transform: translateX(-100%); }
  70%, 100% { transform: translateX(100%); }
}
.holo-panel h3 { margin: 0 0 10px; color: #fff; }
.holo-panel p { margin: 0; color: var(--public-muted); line-height: 1.65; }
.holo-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.holo-metric {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 178, 208, 0.1);
}
.holo-metric span {
  display: block;
  color: #7d92a8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.holo-metric strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 16px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: #eef5fb;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: #1fd6a4;
  font-weight: 800;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 14px 0 0; color: var(--public-muted); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}
.pub-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
  color: var(--public-muted);
}
.pub-list li { display: flex; gap: 10px; line-height: 1.5; }
.pub-list i { color: var(--public-green); }
.pub-form { display: grid; gap: 13px; }
.pub-form label {
  display: grid;
  gap: 7px;
  color: #8fa3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.pub-form input,
.pub-form textarea {
  width: 100%;
  border: 1px solid rgba(148, 178, 208, 0.18);
  border-radius: 10px;
  padding: 13px;
  outline: 0;
  background: #0a121c;
  color: var(--public-text);
  font: inherit;
}
.pub-form textarea { min-height: 140px; resize: vertical; }
.pub-form input:focus,
.pub-form textarea:focus {
  border-color: #3aa0ff;
  box-shadow: 0 0 0 3px rgba(58, 160, 255, 0.14);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 80px;
  max-width: 1250px;
  padding: 32px clamp(20px, 5vw, 48px);
  border: 1px solid rgba(31, 214, 164, 0.22);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(31, 214, 164, 0.12), rgba(58, 160, 255, 0.1));
}
.cta-band h2 {
  margin: 8px 0 0;
  font-family: var(--qx-display);
  font-size: clamp(22px, 3vw, 30px);
  color: #f4f8fc;
}

.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 32px clamp(20px, 5vw, 76px);
  border-top: 1px solid rgba(148, 178, 208, 0.12);
  color: #7d92a8;
  font-size: 12px;
}
.public-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.public-footer strong { color: #fff; }

/* ---------- Expanded footer (all public pages) ---------- */
.public-footer-mega {
  max-width: 1250px;
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 76px) 26px;
  border-top: 1px solid rgba(148, 178, 208, 0.12);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}
.footer-brand p {
  max-width: 300px;
  margin: 16px 0 0;
  color: #7d92a8;
  font-size: 13px;
  line-height: 1.7;
}
.footer-col h4 {
  margin: 0 0 14px;
  color: #7d92a8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col a {
  color: #c9d7e6;
  font-size: 13px;
  font-weight: 600;
}
.footer-col a:hover { color: #5eefc4; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 178, 208, 0.1);
  color: #7d92a8;
  font-size: 12px;
}
.footer-bottom .public-footer-links a:hover { color: #5eefc4; }


.risk-note {
  max-width: 1250px;
  margin: 0 auto 40px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(232, 184, 109, 0.22);
  background: rgba(232, 184, 109, 0.06);
  color: #d6c29a;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.security-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1250px;
  margin: 0 auto 40px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(58, 160, 255, 0.2);
  background: rgba(58, 160, 255, 0.06);
  color: #a9bfd7;
  font-size: 12.5px;
  line-height: 1.6;
}
.security-tip i { color: #3aa0ff; font-size: 15px; flex-shrink: 0; }


/* ---------- Responsive / mobile centering ---------- */
@media (max-width: 980px) {
  .public-nav { justify-content: flex-start; }
  .public-menu { display: inline-flex; order: -2; flex: 0 0 42px; }
  .public-brand { order: -1; margin-right: auto; }
  .public-actions { margin-left: auto; }
  .public-links { display: none; }
  .public-nav.is-open .public-links {
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    z-index: 50;
    display: grid;
    gap: 0;
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 18px 14px;
    border: 1px solid rgba(148, 178, 208, 0.16);
    border-radius: 12px;
    background: rgba(8, 17, 27, 0.98);
    border-bottom: 1px solid var(--public-line);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.48);
    animation: publicMenuEnter 180ms ease-out both;
  }
  .public-nav.is-open .public-links a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(148, 178, 208, 0.08);
    text-align: left;
  }
  .public-nav.is-open .public-links a:last-child { border-bottom: 0; }
  @keyframes publicMenuEnter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
  .public-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 48px;
    text-align: center;
  }
  .public-hero h1,
  .page-hero h1,
  .hero-copy,
  .page-hero p,
  .public-section-head {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions,
  .hero-trust {
    justify-content: center;
  }
  .hero-visual {
    min-height: 360px;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
  }
  .page-hero { text-align: center; }
  .page-hero .hero-actions { justify-content: center; }
  .public-section-head { text-align: center; }
  .feature-grid,
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .hologrid { grid-template-columns: 1fr; }
  .market-ticker { grid-template-columns: 1fr 1fr; }
  .cta-band {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .public-nav {
    min-height: 62px;
    padding: 0 14px;
  }
  .public-nav.is-open .public-links { top: 62px; }
  .public-hero { padding: 42px 16px 48px; }
  .public-hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .hero-copy { font-size: 15px; }
  .hero-trust {
    gap: 14px;
    justify-content: center;
  }
  .hero-trust > div { min-width: 42%; }
  .hero-visual { min-height: 300px; }
  .public-demo-terminal { min-height: 360px; }
  .qx-chart-stage { min-height: 220px; }
  .terminal-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .public-strip {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
    gap: 10px;
  }
  .public-section { padding: 56px 16px; }
  .feature-grid,
  .steps-grid,
  .info-grid,
  .contact-grid,
  .market-ticker,
  .holo-metrics { grid-template-columns: 1fr; }
  .feature-card,
  .info-card,
  .step-card,
  .contact-card,
  .faq-item { text-align: center; }
  .feature-card i { margin-left: auto; margin-right: auto; }
  .pub-list li { justify-content: center; text-align: left; }
  .faq-item summary::after { float: none; margin-left: 8px; }
  .cta-band {
    margin: 0 16px 56px;
    padding: 24px 18px;
  }
  .public-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
  }
  .public-footer-links { justify-content: center; }
  .page-hero { padding: 56px 16px 36px; }
  .risk-note { margin: 0 16px 32px; }
  .public-footer-mega { padding: 40px 16px 20px; }
  .footer-top { grid-template-columns: 1fr; text-align: center; gap: 26px; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-brand p { text-align: center; }
  .footer-col { align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .public-nav { gap: 8px; padding: 0 10px; }
  .public-brand { gap: 6px; }
  .public-brand .brand-copy { font-size: 14px; }
  .brand-mark, .brand-mark img { width: 30px; height: 30px; }
  .public-actions { gap: 6px; }
  .public-actions > a[href="register.html"] { display: none; }
  .public-actions > a[href="login.html"] { display: none; }
  .public-auth-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid rgba(31, 214, 164, 0.28);
    border-radius: 9px;
    background: rgba(31, 214, 164, 0.1);
    color: #dffaf2;
    font-size: 12px;
    font-weight: 800;
  }
  .public-auth-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 55;
    min-width: 188px;
    padding: 7px;
    border: 1px solid rgba(148, 178, 208, 0.18);
    border-radius: 11px;
    background: #0b1520;
    box-shadow: 0 16px 42px rgba(0,0,0,.48);
  }
  .public-actions { position: relative; }
  .public-actions.is-account-open .public-auth-popover { display: grid; gap: 3px; animation: publicMenuEnter 180ms ease-out both; }
  .public-auth-popover a { display: flex; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 7px; color: #e7f0f8; font-size: 13px; font-weight: 700; }
  .public-auth-popover a:hover { background: rgba(31,214,164,.1); color: #5eefc4; }
}

@media (max-width: 350px) {
  .public-brand .brand-copy { display: none; }
  .public-menu { flex-basis: 38px; width: 38px; height: 38px; }
  .public-auth-toggle { width: 38px; padding: 0; }
  .public-auth-toggle span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .public-site::before,
  .hero-visual::before,
  .qx-holo-scan,
  .holo-panel::before,
  .terminal-live i {
    animation: none !important;
  }
}
