@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Noto+Sans+SC:wght@400;500;700;900&display=swap");

:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --panel: rgba(0, 12, 0, 0.80);
  --panel-strong: rgba(0, 18, 0, 0.92);
  --line: rgba(0, 255, 65, 0.12);
  --line-strong: rgba(0, 255, 65, 0.30);
  --text: #c0ffc8;
  --muted: #4a8a52;
  --accent: #00ff41;
  --accent-soft: rgba(0, 255, 65, 0.10);
  --gold: #00ff41;
  --verdigris: #00cc33;
  --shadow: 0 0 60px rgba(0, 255, 65, 0.08);
  --radius-xl: 4px;
  --radius-lg: 3px;
  --radius-md: 2px;
  --radius-sm: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #000000;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 65, 0.03) 2px,
      rgba(0, 255, 65, 0.03) 4px
    );
  pointer-events: none;
  z-index: 9999;
}

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

button {
  border: 0;
  cursor: pointer;
}

.backdrop {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.matrix-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.12;
}

.backdrop__orb {
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  position: absolute;
}

.backdrop__orb--one {
  background: rgba(0, 255, 65, 0.15);
  height: 22rem;
  left: -4rem;
  top: 10rem;
  width: 22rem;
}

.backdrop__orb--two {
  background: rgba(0, 200, 50, 0.10);
  height: 18rem;
  right: -5rem;
  top: 7rem;
  width: 18rem;
}

.backdrop__orb--three {
  background: rgba(0, 255, 65, 0.06);
  bottom: -5rem;
  height: 24rem;
  left: 34%;
  width: 24rem;
}

.backdrop__mesh {
  background-image:
    linear-gradient(rgba(0, 255, 65, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.06) 1px, transparent 1px);
  background-position: center;
  background-size: 40px 40px;
  inset: 0;
  mask-image: radial-gradient(circle at center, black 40%, transparent 88%);
  opacity: 0.5;
  position: absolute;
}

.page-shell {
  margin: 0 auto;
  max-width: 1280px;
  padding: 32px 20px 72px;
  position: relative;
  z-index: 1;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 18px;
}

.brand-lockup__eyebrow {
  color: var(--accent);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.brand-lockup__title {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  margin: 0;
}

.app {
  animation: matrix-boot 1s ease both;
}

.screen {
  display: grid;
  gap: 14px;
}

.panel {
  background: rgba(0, 8, 0, 0.85);
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.06), inset 0 0 40px rgba(0, 255, 65, 0.03);
  overflow: hidden;
  position: relative;
}

.panel::before {
  background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.15), transparent);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.panel--cut {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.hero {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  padding: 28px;
  background: rgba(0, 12, 0, 0.30);
}

.hero__cta {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  justify-content: center;
  padding-top: 8px;
}

.hero__eyebrow {
  color: var(--accent);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero__title {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.4), 0 0 60px rgba(0, 255, 65, 0.15);
}

.hero__title span {
  color: var(--accent);
  display: block;
  text-shadow: 0 0 24px rgba(0, 255, 65, 0.5);
}

.hero__summary {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 14px 0 0;
  max-width: 58ch;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--text);
  padding: 10px 16px;
}

.hero__card {
  align-content: start;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.hero__card-title {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.20em;
  margin: 0;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.hero__list li {
  align-items: center;
  color: var(--muted);
  display: grid;
  gap: 8px;
  grid-template-columns: 28px 1fr;
  list-style: none;
}

.hero__list li > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__list-count {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero__list strong {
  color: var(--text);
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.hero__list-index {
  align-items: center;
  background: rgba(0, 255, 65, 0.12);
  border: 1px solid rgba(0, 255, 65, 0.25);
  border-radius: 2px;
  color: var(--accent);
  display: inline-flex;
  font-family: "Share Tech Mono", monospace;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button,
.ghost-button {
  border-radius: 2px;
  padding: 13px 22px;
  font-family: "Share Tech Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.primary-button {
  background: rgba(0, 255, 65, 0.15);
  border: 1px solid rgba(0, 255, 65, 0.6);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2), inset 0 0 20px rgba(0, 255, 65, 0.05);
  color: #00ff41;
  font-weight: 700;
  position: relative;
}

.primary-button::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(ellipse at center, rgba(0, 255, 65, 0.25), transparent 70%);
  opacity: 0.6;
  animation: btn-breathe 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.primary-button:hover {
  background: rgba(0, 255, 65, 0.25);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.35), inset 0 0 30px rgba(0, 255, 65, 0.08);
}

.primary-button:hover::before {
  opacity: 1;
}

@keyframes btn-breathe {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
    filter: blur(8px);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.08);
    filter: blur(14px);
  }
}

.secondary-button {
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid rgba(0, 255, 65, 0.15);
  color: var(--text);
}

.ghost-button {
  background: rgba(0, 255, 65, 0.04);
  border: 1px solid rgba(0, 255, 65, 0.20);
  color: var(--muted);
}

.ghost-button[hidden] {
  display: none;
}

.quiz-shell {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.question-panel,
.result-panel {
  padding: 14px 4px;
}

.result-panel {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.result-panel::before {
  display: none;
}

.side-panel {
  align-content: start;
  display: grid;
  gap: 4px;
  padding: 8px 12px;
}

.side-panel__label,
.section-badge,
.section-card__eyebrow,
.copy-card__eyebrow,
.action-list__eyebrow {
  color: var(--accent);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  margin: 0;
  text-transform: uppercase;
}

.progress-meta {
  display: flex;
  gap: 6px;
  justify-content: space-between;
  align-items: center;
}

.progress-value {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.85rem;
  margin: 0;
  color: var(--accent);
}

.progress-track {
  background: rgba(0, 255, 65, 0.08);
  border-radius: 1px;
  height: 4px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #00cc33, #00ff41);
  border-radius: inherit;
  height: 100%;
  transition: width 0.35s ease;
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.section-stack {
  display: grid;
  gap: 10px;
}

.section-card {
  background: rgba(0, 255, 65, 0.03);
  border: 1px solid rgba(0, 255, 65, 0.10);
  border-radius: 2px;
  padding: 14px 16px;
}

.section-card--active {
  border-color: rgba(0, 255, 65, 0.40);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 65, 0.12), 0 0 15px rgba(0, 255, 65, 0.08);
}

.section-card__title {
  font-size: 1rem;
  margin: 6px 0;
}

.section-card__meta {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

.question-panel {
  display: grid;
  gap: 12px;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.question-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.question-index {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin: 6px 0 0;
  color: var(--accent);
}

.question-title {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  line-height: 1.6;
  margin: 0;
}

.question-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0;
}

.choice-grid {
  display: grid;
  gap: 8px;
}

.choice-card {
  background: rgba(0, 255, 65, 0.03);
  border: 1px solid rgba(0, 255, 65, 0.10);
  border-radius: 2px;
  color: inherit;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.choice-card:hover {
  border-color: rgba(0, 255, 65, 0.35);
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.08);
}

.choice-card.is-selected {
  background: rgba(0, 255, 65, 0.10);
  border-color: rgba(0, 255, 65, 0.50);
  box-shadow:
    inset 0 0 0 1px rgba(0, 255, 65, 0.18),
    0 0 20px rgba(0, 255, 65, 0.12);
}

.choice-card__badge {
  align-items: center;
  background: rgba(0, 255, 65, 0.12);
  border: 1px solid rgba(0, 255, 65, 0.25);
  border-radius: 2px;
  color: var(--accent);
  display: inline-flex;
  flex-shrink: 0;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.78rem;
  height: 26px;
  justify-content: center;
  width: 26px;
  margin-top: 1px;
}

.choice-card__text {
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

.choice-card__meta {
  display: none;
}

.tone-chip {
  background: rgba(0, 255, 65, 0.06);
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: 2px;
  color: var(--accent);
  font-size: 0.8rem;
  padding: 6px 10px;
}

.question-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.question-tip {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0;
}

.result-grid {
  display: grid;
  gap: 14px;
}

/* === Result Page Transition === */
.result-transition {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  animation: trans-flash 1.6s ease both;
}

.result-transition__text {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(1.2rem, 4vw, 2rem);
  color: #00ff41;
  letter-spacing: 0.3em;
  text-shadow: 0 0 20px rgba(0,255,65,0.6), 0 0 60px rgba(0,255,65,0.3);
  animation: analyzing-pulse 0.4s ease-in-out infinite alternate;
}

@keyframes trans-flash {
  0% { opacity: 0; }
  10% { opacity: 1; }
  70% { opacity: 1; }
  85% { opacity: 0; filter: brightness(3) blur(4px); }
  100% { opacity: 0; }
}

@keyframes analyzing-pulse {
  0% { opacity: 0.5; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.02); }
}

/* === Result Scene (distinct from quiz/intro) === */
.result-scene {
  animation: result-enter 0.8s ease both;
}

.result-scene::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 255, 65, 0.08), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 200, 50, 0.05), transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: result-glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes result-enter {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    filter: blur(8px) brightness(1.5);
  }
  50% {
    filter: blur(0) brightness(1.2);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) brightness(1);
  }
}

@keyframes result-glow-pulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* === Result Score Hero (big centered score) === */
.result-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 65, 0.12);
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 255, 65, 0.06), transparent 60%),
    rgba(0, 6, 0, 0.7);
}

.result-reveal::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -60%);
  background: radial-gradient(circle, rgba(0, 255, 65, 0.12), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: score-orb 3s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes score-orb {
  0% { transform: translate(-50%, -60%) scale(1); opacity: 0.5; }
  100% { transform: translate(-50%, -60%) scale(1.3); opacity: 1; }
}

.result-score-hero {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.result-score-num {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  color: #00ff41;
  text-shadow: 0 0 30px rgba(0,255,65,0.6), 0 0 80px rgba(0,255,65,0.25);
  animation: score-count-in 1.2s ease both;
}

.result-score-sub {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--muted);
  margin: 0;
  animation: score-count-in 1.2s 0.3s ease both;
}

@keyframes score-count-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
  }
  60% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.result-band-name {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  text-shadow: 0 0 14px rgba(0,255,65,0.3);
  animation: score-count-in 0.8s 0.5s ease both;
}

.result-band-range {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin: 0 0 14px;
  animation: score-count-in 0.8s 0.65s ease both;
}

.result-band-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 0;
  max-width: 50ch;
  animation: score-count-in 0.8s 0.8s ease both;
}

.rank-list,
.phrase-flow,
.action-grid,
.metric-grid {
  display: grid;
  gap: 10px;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  background: rgba(0, 255, 65, 0.03);
  border: 1px solid rgba(0, 255, 65, 0.12);
  border-radius: 2px;
  padding: 12px;
  animation: card-stagger 0.6s ease both;
}

.metric-card:nth-child(1) { animation-delay: 1s; }
.metric-card:nth-child(2) { animation-delay: 1.1s; }
.metric-card:nth-child(3) { animation-delay: 1.2s; }

@keyframes card-stagger {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.metric-card__value {
  font-family: "Share Tech Mono", monospace;
  font-size: 1.5rem;
  margin: 2px 0 6px;
  color: var(--accent);
}

.metric-card__body {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.rank-card,
.action-card {
  background: rgba(0, 255, 65, 0.03);
  border: 1px solid rgba(0, 255, 65, 0.12);
  border-radius: 2px;
  padding: 14px;
  animation: card-stagger 0.6s ease both;
}

.rank-card:nth-child(1) { animation-delay: 1.3s; }
.rank-card:nth-child(2) { animation-delay: 1.45s; }
.rank-card:nth-child(3) { animation-delay: 1.6s; }

.rank-card {
  display: grid;
  gap: 6px;
}

.rank-card__topline {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.rank-card__title,
.action-card__title {
  font-size: 1rem;
  margin: 4px 0 0;
}

.rank-card__score {
  color: var(--accent);
  font-family: "Share Tech Mono", monospace;
  letter-spacing: 0.08em;
}

.rank-card__bar {
  background: rgba(0, 255, 65, 0.08);
  border-radius: 1px;
  height: 5px;
  overflow: hidden;
}

.rank-card__fill {
  background: linear-gradient(90deg, #00cc33, #00ff41);
  border-radius: inherit;
  height: 100%;
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}

.rank-card__body,
.action-card__body {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.phrase-flow {
  gap: 0;
}

.phrase-row {
  border-top: 1px solid rgba(0, 255, 65, 0.10);
  display: grid;
  gap: 10px;
  padding: 16px 0;
}

.phrase-row:first-child {
  border-top: 0;
  padding-top: 4px;
}

.phrase-row__title {
  font-size: 1.05rem;
  margin: 0;
}

.phrase-row__body {
  display: grid;
  gap: 6px;
}

.phrase-row__body p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

.phrase-row__body strong {
  color: var(--text);
}

.action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-card__day {
  color: var(--accent);
  font-family: "Share Tech Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.section-heading {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 2px;
}

.section-heading h2 {
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  margin: 4px 0 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 6px 0 0;
  max-width: 64ch;
}

.empty-state {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.toast {
  background: rgba(0, 8, 0, 0.96);
  border: 1px solid rgba(0, 255, 65, 0.25);
  border-radius: 2px;
  bottom: 24px;
  color: var(--accent);
  left: 50%;
  opacity: 0;
  padding: 12px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 24px);
  font-family: "Share Tech Mono", monospace;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  z-index: 10;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes enter-panel {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes matrix-boot {
  0% {
    opacity: 0;
    transform: perspective(800px) rotateX(8deg) translateY(40px) scale(0.96);
    filter: blur(6px) brightness(2.5);
  }
  40% {
    opacity: 1;
    filter: blur(0) brightness(1.6);
  }
  60% {
    transform: perspective(800px) rotateX(-1deg) translateY(-4px) scale(1.01);
  }
  80% {
    transform: perspective(800px) rotateX(0.5deg) translateY(2px) scale(1);
  }
  100% {
    opacity: 1;
    transform: perspective(800px) rotateX(0) translateY(0) scale(1);
    filter: blur(0) brightness(1);
  }
}

.hero {
  animation: hero-glitch 0.8s 0.3s ease both;
}

@keyframes hero-glitch {
  0% {
    opacity: 0;
    clip-path: inset(40% 0 40% 0);
    transform: translateX(-8px);
  }
  20% {
    opacity: 1;
    clip-path: inset(10% 0 60% 0);
    transform: translateX(4px);
  }
  40% {
    clip-path: inset(50% 0 10% 0);
    transform: translateX(-3px);
  }
  60% {
    clip-path: inset(5% 0 30% 0);
    transform: translateX(2px);
  }
  80% {
    clip-path: inset(0 0 5% 0);
    transform: translateX(-1px);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}

.hero__title {
  animation: text-flicker 0.15s 1s ease-in-out 3;
}

@keyframes text-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__cta {
    grid-column: 1;
  }

  .result-hero,
  .metric-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 12px 8px 48px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .side-panel {
    padding: 16px;
  }

  .question-panel {
    padding: 10px 2px;
  }

  .result-panel {
    padding: 0;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .question-head,
  .question-footer,
  .section-heading {
    flex-direction: column;
  }
}
