:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(18, 20, 22, 0.76);
  --panel-strong: rgba(25, 27, 30, 0.92);
  --text: #f4f1e8;
  --muted: #aaa69b;
  --line: rgba(244, 241, 232, 0.14);
  --gold: #f5c15d;
  --ember: #ff6a3d;
  --mint: #7ce7b8;
  --cyan: #78d5ff;
  --danger: #ff7a91;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 193, 93, 0.18), transparent 28rem),
    radial-gradient(circle at 78% 12%, rgba(124, 231, 184, 0.1), transparent 24rem),
    linear-gradient(180deg, #070707 0%, #0d0b09 48%, #050505 100%);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

#field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.68);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(124, 231, 184, 0.6);
  border-radius: 8px;
  background: #36f4a1;
  box-shadow: 0 0 24px rgba(54, 244, 161, 0.22);
  animation: ritualSpin 14s linear infinite;
  transform-origin: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand:hover .brand-mark {
  animation-play-state: paused;
  transform: rotate(0deg) scale(1.04);
}

.nav-links {
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.wallet-button,
.ghost-action,
.primary-action {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.wallet-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(124, 231, 184, 0.36);
  background: rgba(124, 231, 184, 0.08);
  color: var(--text);
}

.wallet-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 18px currentColor;
}

.wallet-button.connected .wallet-dot {
  background: var(--mint);
}

.hero,
.signal-band,
.feedback-section,
.board-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  scroll-margin-top: 104px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 92px);
  min-height: calc(100vh - 82px);
  padding: 42px 0 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6;
}

.hero-actions,
.form-footer,
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 30px;
}

.hero-status {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  color: #15100a;
  font-weight: 800;
  box-shadow: 0 16px 45px rgba(255, 106, 61, 0.24);
}

.ghost-action {
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.primary-action:hover,
.ghost-action:hover,
.wallet-button:hover {
  transform: translateY(-2px);
}

.chain-console,
.feedback-form,
.feedback-board article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.chain-console {
  overflow: hidden;
  min-height: 500px;
}

.console-top {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.console-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.console-top span:nth-child(2) {
  background: var(--ember);
}

.console-top span:nth-child(3) {
  background: var(--mint);
}

.console-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.console-grid div {
  min-height: 112px;
  padding: 20px;
  background: rgba(7, 7, 7, 0.72);
}

.console-grid small,
.feedback-board small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.console-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.pulse-map {
  position: relative;
  height: 292px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(245, 193, 93, 0.2), transparent 18rem),
    linear-gradient(135deg, rgba(124, 231, 184, 0.08), rgba(120, 213, 255, 0.06));
}

.pulse-map::before,
.pulse-map::after {
  position: absolute;
  inset: 36px;
  content: "";
  border: 1px solid rgba(245, 193, 93, 0.24);
  border-radius: 50%;
  animation: orbit 12s linear infinite;
}

.pulse-map::after {
  inset: 82px;
  border-color: rgba(124, 231, 184, 0.28);
  animation-duration: 8s;
  animation-direction: reverse;
}

.pulse-map span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 28px var(--gold);
}

.pulse-map span:nth-child(1) { top: 24%; left: 22%; }
.pulse-map span:nth-child(2) { top: 40%; left: 68%; background: var(--mint); box-shadow: 0 0 28px var(--mint); }
.pulse-map span:nth-child(3) { top: 68%; left: 44%; background: var(--cyan); box-shadow: 0 0 28px var(--cyan); }
.pulse-map span:nth-child(4) { top: 78%; left: 78%; }
.pulse-map span:nth-child(5) { top: 18%; left: 50%; background: var(--ember); box-shadow: 0 0 28px var(--ember); }
.pulse-map span:nth-child(6) { top: 58%; left: 14%; background: var(--mint); box-shadow: 0 0 28px var(--mint); }

.signal-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.signal-band article {
  min-height: 210px;
  padding: 28px;
  background: rgba(8, 8, 8, 0.76);
}

.signal-band span {
  color: var(--gold);
  font-weight: 800;
}

.signal-band h2 {
  margin-top: 46px;
  font-size: 24px;
}

.signal-band p,
.section-heading p,
.feedback-board p,
.form-footer p {
  color: var(--muted);
  line-height: 1.6;
}

.feedback-section,
.board-section {
  padding: 96px 0 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 24px;
}

.feedback-form {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 34px);
}

.survey-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.survey-progress span {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.survey-progress span.active {
  background: linear-gradient(90deg, var(--gold), var(--mint));
  box-shadow: 0 0 20px rgba(245, 193, 93, 0.18);
}

.form-slide {
  display: none;
  gap: 18px;
  animation: slideIn 260ms ease;
}

.form-slide.active {
  display: grid;
}

.slide-heading small {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.slide-heading h3 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  color-scheme: dark;
  outline: none;
}

input,
select {
  height: 48px;
  padding: 0 14px;
}

select option {
  background: #11140f;
  color: var(--text);
}

select option:checked,
select option:hover {
  background: #263521;
  color: #f8f4e8;
}

.native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  padding: 0 42px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.custom-select-button::after {
  position: absolute;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.custom-select.open .custom-select-button,
.custom-select-button:focus-visible {
  border-color: rgba(245, 193, 93, 0.7);
  box-shadow: 0 0 0 4px rgba(245, 193, 93, 0.1);
  outline: none;
}

.custom-select.open .custom-select-button::after {
  transform: translateY(2px) rotate(225deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  display: none;
  width: 100%;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(245, 193, 93, 0.34);
  border-radius: 8px;
  background: #11140f;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}

.custom-select.open .custom-select-menu {
  display: grid;
  gap: 4px;
}

.custom-select-option {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option:focus-visible,
.custom-select-option.selected {
  background: #263521;
  color: #f8f4e8;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 150px;
  padding: 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(245, 193, 93, 0.7);
  box-shadow: 0 0 0 4px rgba(245, 193, 93, 0.1);
}

.choice-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.choice-group legend {
  padding: 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.choice-group label {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.choice-group label:has(input:checked) {
  border-color: rgba(245, 193, 93, 0.78);
  background: rgba(245, 193, 93, 0.1);
}

.choice-group input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.choice-group span {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.form-footer {
  justify-content: space-between;
  padding-top: 8px;
}

#submitFeedback {
  display: none;
}

.feedback-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feedback-board:has(.empty-board) {
  grid-template-columns: 1fr;
}

.feedback-board article {
  min-height: 240px;
  padding: 22px;
  background: var(--panel-strong);
}

.feedback-board .empty-board {
  display: grid;
  min-height: 260px;
  align-content: center;
  justify-items: start;
  background:
    linear-gradient(135deg, rgba(245, 193, 93, 0.08), rgba(124, 231, 184, 0.07)),
    var(--panel-strong);
}

.empty-board h3 {
  font-size: clamp(26px, 3vw, 38px);
}

.empty-board p {
  max-width: 620px;
}

.feedback-board h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tag-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 58px 18px 34px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--text);
}

.creator-credit {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(124, 231, 184, 0.28);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.72);
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  animation: creditFloat 4.5s ease-in-out infinite;
}

.creator-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(245, 193, 93, 0.42);
  border-radius: 50%;
  background: rgba(54, 244, 161, 0.12);
  box-shadow: 0 0 24px rgba(54, 244, 161, 0.2);
}

.creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-credit strong {
  color: var(--text);
}

.creator-credit:hover {
  border-color: rgba(245, 193, 93, 0.58);
  color: var(--text);
  transform: translateY(-2px);
}

.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(124, 231, 184, 0.14), transparent 28rem),
    rgba(5, 5, 5, 0.72);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(16px);
  transition: opacity 240ms ease;
}

.success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-card {
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid rgba(245, 193, 93, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 193, 93, 0.12), rgba(124, 231, 184, 0.08)),
    rgba(12, 13, 14, 0.92);
  text-align: left;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.62);
  animation: successCardIn 320ms ease both;
}

.success-card,
.share-x-action {
  cursor: default;
}

.success-card small {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.success-card strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 0.98;
}

.success-card span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.share-x-action {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 0 18px;
  border: 1px solid rgba(124, 231, 184, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 193, 93, 0.18), rgba(124, 231, 184, 0.18)),
    rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.share-x-action:hover,
.share-x-action:focus-visible {
  border-color: rgba(245, 193, 93, 0.68);
  background:
    linear-gradient(135deg, rgba(245, 193, 93, 0.28), rgba(124, 231, 184, 0.22)),
    rgba(255, 255, 255, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.click-ripple,
.click-spark,
.success-burst,
.success-particle {
  position: fixed;
  z-index: 999;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.click-ripple {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(245, 193, 93, 0.86);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(245, 193, 93, 0.42);
  animation: clickRipple 620ms ease-out forwards;
}

.click-spark {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(124, 231, 184, 0.62);
  animation: clickSpark 560ms ease-out forwards;
}

.success-burst {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(124, 231, 184, 0.86);
  border-radius: 50%;
  box-shadow:
    0 0 30px rgba(124, 231, 184, 0.42),
    inset 0 0 18px rgba(245, 193, 93, 0.22);
  animation: successBurst 900ms ease-out forwards;
}

.success-particle {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(245, 193, 93, 0.68);
  animation: successParticle 860ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-particle:nth-of-type(2n) {
  background: var(--mint);
  box-shadow: 0 0 18px rgba(124, 231, 184, 0.68);
}

@keyframes ritualSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes clickRipple {
  from {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.45);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.6);
  }
}

@keyframes clickSpark {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.2);
  }
}

@keyframes successBurst {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.45);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(6.8);
  }
}

@keyframes successParticle {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.1);
  }
}

@keyframes successCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes orbit {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.08); }
  to { transform: rotate(360deg) scale(1); }
}

@keyframes creditFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

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

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .signal-band,
  .feedback-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero,
  .signal-band,
  .feedback-section,
  .board-section {
    width: min(100% - 24px, 1180px);
  }

  .chain-console {
    min-height: auto;
  }

  .console-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .pulse-map {
    height: 220px;
  }

  .creator-credit {
    right: 12px;
    bottom: 10px;
    font-size: 12px;
  }
}
