:root {
  color-scheme: dark;
  --bg: #03100f;
  --bg-2: #071b18;
  --panel: rgba(8, 26, 23, 0.9);
  --panel-strong: rgba(11, 35, 31, 0.96);
  --ink: #f5f8ee;
  --soft-ink: #d7e2d5;
  --muted: #8ea49a;
  --line: rgba(184, 212, 197, 0.18);
  --line-strong: rgba(75, 224, 189, 0.42);
  --cyan: #4be0bd;
  --cyan-2: #9af6df;
  --cyan-soft: rgba(75, 224, 189, 0.12);
  --gold: #d8bc75;
  --gold-soft: rgba(216, 188, 117, 0.13);
  --red: #ff837a;
  --red-soft: rgba(255, 131, 122, 0.12);
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.46);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -8%, rgba(75, 224, 189, 0.2), transparent 25rem),
    radial-gradient(circle at 12% 8%, rgba(216, 188, 117, 0.11), transparent 17rem),
    linear-gradient(180deg, #03100f 0%, #071b18 36%, #03100f 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  letter-spacing: 0;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.8) 34%, transparent 82%);
}

body::after {
  background:
    linear-gradient(90deg, transparent, rgba(75, 224, 189, .05), transparent),
    repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  opacity: .58;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  position: relative;
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 0 12px 34px;
}

.hero {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px 0 12px;
  overflow: hidden;
}

.radar-stage {
  position: absolute;
  inset: -18px 0 auto;
  height: 246px;
  pointer-events: none;
  transform: translateY(-6px);
}

.radar-stage::before,
.radar-stage::after,
.radar {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}

.radar-stage::before {
  width: 204px;
  height: 204px;
  border: 1px solid rgba(216, 188, 117, .28);
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(216,188,117,.22) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, rgba(216,188,117,.22) 50%, transparent 50.3%);
  content: "";
  opacity: .72;
}

.radar-stage::after {
  width: 266px;
  height: 266px;
  border: 1px solid rgba(75, 224, 189, .12);
  box-shadow:
    inset 0 0 70px rgba(75, 224, 189, .07),
    0 0 60px rgba(75, 224, 189, .1);
  content: "";
}

.radar {
  width: 242px;
  height: 242px;
  border: 1px solid rgba(75, 224, 189, .24);
  background:
    repeating-radial-gradient(circle, rgba(75,224,189,.22) 0 1px, transparent 1px 26px),
    conic-gradient(from -22deg, transparent 0deg, rgba(75,224,189,.06) 24deg, rgba(75,224,189,.5) 52deg, transparent 76deg);
  filter: drop-shadow(0 0 34px rgba(75, 224, 189, .24));
  animation: sweep 7.6s linear infinite;
}

.radar-core {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(75, 224, 189, .52);
  border-radius: 50%;
  background: rgba(3, 16, 15, .88);
  box-shadow:
    0 0 0 8px rgba(75,224,189,.04),
    0 0 36px rgba(75,224,189,.24);
  transform: translate(-50%, -50%);
}

.radar-core span,
.radar-core b {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: .9;
}

.radar-core span {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .16em;
}

.radar-core b {
  color: var(--cyan);
  font-size: 20px;
  letter-spacing: .04em;
}

.signal-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(75,224,189,.08), 0 0 24px rgba(75,224,189,.74);
  animation: blink 2.8s var(--ease) infinite;
}

.dot-a {
  top: 45px;
  left: 58%;
}

.dot-b {
  top: 104px;
  left: 30%;
  animation-delay: .6s;
}

.dot-c {
  top: 146px;
  left: 67%;
  animation-delay: 1.1s;
}

.hero-panel,
.mission-card,
.signal-strip,
.track-tabs {
  position: relative;
  z-index: 1;
}

.hero-panel {
  padding-top: 202px;
}

.kicker,
.rail-label,
.track-pill,
.status-pill,
.tags span,
.signal-strip b,
.mission-card span {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  animation: rise .52s var(--ease) both;
}

.kicker::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
  content: "";
}

h1 {
  margin: 0;
  max-width: 7em;
  color: var(--ink);
  font-size: clamp(42px, 13.5vw, 58px);
  line-height: .9;
  letter-spacing: 0;
  text-shadow: 0 0 32px rgba(75,224,189,.16);
  animation: rise .58s var(--ease) .04s both;
}

.claim {
  margin: 10px 0 0;
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1.52;
  animation: rise .58s var(--ease) .08s both;
}

.mission-card {
  margin: 12px 0 9px;
  padding: 10px;
  border: 1px solid rgba(216, 188, 117, .28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216,188,117,.12), transparent 52%),
    rgba(5, 19, 17, .76);
  box-shadow: 0 18px 60px rgba(0,0,0,.32);
  animation: rise .58s var(--ease) .1s both;
}

.mission-card b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
}

.mission-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 9px 0;
  animation: rise .58s var(--ease) .12s both;
}

.signal-strip article {
  min-height: 64px;
  padding: 9px 8px;
  border: 1px solid rgba(75, 224, 189, .24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(75,224,189,.1), transparent),
    rgba(7, 26, 23, .78);
}

.signal-strip span {
  display: block;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 27px;
  line-height: 1;
}

.signal-strip b {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
}

.track-tabs {
  position: sticky;
  top: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(75, 224, 189, .24);
  border-radius: 10px;
  background: rgba(3, 16, 15, .9);
  backdrop-filter: blur(18px);
  animation: rise .58s var(--ease) .16s both;
}

.track-tabs button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.track-tabs button.active {
  border-color: rgba(75, 224, 189, .6);
  background: linear-gradient(180deg, rgba(75,224,189,.17), rgba(75,224,189,.06));
  color: var(--cyan-2);
  box-shadow: inset 0 0 22px rgba(75,224,189,.08);
}

.notice,
.intro-card,
.ask-panel,
.compliance,
.question-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 32%),
    var(--panel);
  box-shadow: var(--shadow);
}

.notice {
  margin: 10px 0 14px;
  padding: 12px;
  color: #ffe5a6;
  font-size: 13px;
  line-height: 1.6;
}

.intro-card,
.ask-panel,
.compliance {
  position: relative;
  padding: 18px;
  overflow: hidden;
}

.intro-card::before,
.ask-panel::before,
.compliance::before,
.question-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  content: "";
  opacity: .75;
}

.intro-card h2,
.ask-panel h2 {
  margin: 10px 0;
  font-size: 23px;
  line-height: 1.14;
}

.intro-card p,
.compliance p,
.answer,
.boundary,
.comment-body,
.form-status {
  color: var(--muted);
  line-height: 1.72;
}

.question-list {
  display: grid;
  gap: 13px;
  margin: 16px 0;
}

.question-card {
  position: relative;
  padding: 15px;
  overflow: hidden;
  transform-origin: top center;
  animation: cardIn .22s var(--ease) both;
}

.question-card:nth-child(3n + 1) {
  border-color: rgba(75, 224, 189, .28);
}

.question-card:nth-child(3n + 2) {
  border-color: rgba(216, 188, 117, .24);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.track-pill,
.status-pill,
.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255,255,255,.035);
}

.track-pill.company {
  color: #8bdcff;
  border-color: rgba(139,220,255,.24);
}

.track-pill.retail {
  color: #78ecaa;
  border-color: rgba(120,236,170,.24);
}

.track-pill.wealth {
  color: #f6c177;
  border-color: rgba(246,193,119,.28);
}

.status-pill:empty {
  display: none;
}

.question-card h2 {
  margin: 14px 0 10px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.28;
}

.answer {
  margin: 10px 0 0;
  font-size: 15px;
}

.answer.collapsed {
  display: -webkit-box;
  max-height: calc(1.72em * 3);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.answer-toggle {
  justify-self: start;
  min-height: 30px;
  margin-top: 8px;
  border: 0;
  border-bottom: 1px solid rgba(75, 224, 189, .42);
  border-radius: 0;
  background: transparent;
  color: var(--cyan-2);
  font-size: 13px;
  font-weight: 800;
}

.boundary {
  margin: 12px 0 0;
  padding: 10px 10px 10px 12px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, var(--gold-soft), transparent);
  color: #e6d8a6;
  font-size: 13px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tags span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.card-actions button,
.comment-form button,
.primary-action {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.035);
  color: var(--ink);
  font-weight: 800;
}

.vote.active.up {
  border-color: rgba(75, 224, 189, .6);
  background: var(--cyan-soft);
  color: var(--cyan-2);
}

.vote.active.down {
  border-color: rgba(255, 131, 122, .52);
  background: var(--red-soft);
  color: var(--red);
}

.pulse {
  animation: pulse .22s var(--ease);
}

.comments {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.comment {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 12px;
}

.comment-body {
  margin: 0;
  font-size: 14px;
}

.empty-comments {
  color: var(--muted);
  font-size: 13px;
}

form {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--gold);
  font-size: 13px;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(3, 16, 15, .86);
  color: var(--ink);
  outline: none;
}

select {
  min-height: 42px;
  padding: 0 10px;
}

textarea {
  min-height: 88px;
  resize: vertical;
  padding: 10px;
  line-height: 1.6;
}

select:focus,
textarea:focus {
  border-color: rgba(75, 224, 189, .56);
  box-shadow: 0 0 0 3px rgba(75, 224, 189, .1);
}

.primary-action {
  border-color: rgba(75, 224, 189, .56);
  background: linear-gradient(135deg, rgba(75, 224, 189, .22), rgba(216, 188, 117, .12));
  color: var(--cyan-2);
  box-shadow: 0 0 28px rgba(75,224,189,.08);
}

.form-status {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
}

.success-flash {
  animation: successFlash .72s var(--ease);
}

.compliance {
  margin: 16px 0 0;
}

.compliance p {
  margin: 8px 0 0;
  font-size: 13px;
}

@keyframes sweep {
  to { transform: rotate(360deg); }
}

@keyframes blink {
  0%, 100% { opacity: .42; transform: scale(.9); }
  45% { opacity: 1; transform: scale(1.18); }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  50% { transform: scale(1.05); }
}

@keyframes successFlash {
  50% {
    border-color: rgba(75, 224, 189, .8);
    box-shadow: 0 0 0 4px rgba(75, 224, 189, .14), var(--shadow);
  }
}

@media (max-width: 360px) {
  .shell {
    padding-inline: 12px;
  }

  h1 {
    font-size: 46px;
  }

  .radar-stage {
    inset-inline: -62px;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
