:root {
  --coinbase-blue: #0052ff;
  --coinbase-blue-hover: #0141d9;
  --coinbase-blue-soft: rgba(0, 82, 255, 0.08);
  --background: #ffffff;
  --foreground: #0a0b0d;
  --card: #ffffff;
  --primary-foreground: #ffffff;
  --secondary: #f0f2f7;
  --muted-foreground: #5b616e;
  --accent: #0052ff;
  --border: #d8dce5;
  --vote-yes: #0052ff;
  --vote-yes-glow: #0141d9;
  --vote-no: #5b616e;
  --vote-no-deep: #0a0b0d;
  --vote-no-hover: #3a3f4a;
  --success: #098551;
  --shadow-sm: 0 1px 3px rgba(10, 11, 13, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 11, 13, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--coinbase-blue);
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.glass-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.55;
  }
}

.animate-pulse-glow {
  animation: pulse-glow 4s ease-in-out infinite;
}

.glow-green {
  box-shadow:
    0 0 20px rgba(34, 197, 94, 0.35),
    0 0 40px rgba(34, 197, 94, 0.12);
}

.glow-red {
  box-shadow:
    0 0 20px rgba(220, 38, 38, 0.38),
    0 0 40px rgba(34, 197, 94, 0.08);
}

/* Layout shell */
.page {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: var(--background);
}

.page__blobs {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.page__blobs .blob-a {
  position: absolute;
  top: -5%;
  left: 20%;
  width: 28rem;
  height: 28rem;
  border-radius: 9999px;
  background: rgba(0, 82, 255, 0.06);
  filter: blur(64px);
}

.page__blobs .blob-b {
  position: absolute;
  right: 15%;
  bottom: 10%;
  width: 20rem;
  height: 20rem;
  border-radius: 9999px;
  background: rgba(9, 133, 81, 0.04);
  filter: blur(64px);
}

.page__inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1;
  flex-direction: column;
}

/* Header */
.site-header {
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.site-header__row {
  display: flex;
  height: 3.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo__img {
  display: block;
  height: 1.75rem;
  width: 1.75rem;
  object-fit: contain;
}

.logo__word {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.icon {
  display: block;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  vertical-align: middle;
}

.icon--nav {
  width: 0.75rem;
  height: 0.75rem;
}

.icon--btn {
  width: 1rem;
  height: 1rem;
}

.token-scan {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--secondary);
  padding: 0.875rem 1rem;
}

.token-scan__title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 0.375rem;
}

.token-scan__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--foreground);
}

.token-scan__detail {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.token-scan__detail a {
  color: var(--accent);
}

.scan--loading .token-scan__text {
  color: var(--muted-foreground);
}

.nav-main {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-main {
    display: flex;
  }
}

.nav-main button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
  border-radius: 9999px;
}

.nav-main button:hover {
  background: var(--secondary);
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: var(--secondary);
  color: var(--foreground);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: #e4e7ee;
}

@media (min-width: 768px) {
  .icon-btn {
    display: flex;
  }
}

.auth-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-btns button {
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-btns .login {
  height: 2.5rem;
  border-radius: 9999px;
  padding: 0 1rem;
  background: transparent;
  color: var(--foreground);
  font-weight: 600;
}

.auth-btns .login:hover {
  background: var(--secondary);
}

.auth-btns .signup {
  height: 2.5rem;
  border-radius: 9999px;
  padding: 0 1.25rem;
  background: var(--coinbase-blue);
  color: var(--primary-foreground);
  font-weight: 600;
}

.auth-btns .signup:hover {
  background: var(--coinbase-blue-hover);
}

/* Main vote grid */
main.site-main {
  flex: 1;
  padding: 2rem 0;
}

.vote-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .vote-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.token-visual {
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .token-visual {
    justify-content: flex-end;
  }
}

.token-visual__wrap {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 28rem;
}

.token-visual__glow {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(
    to bottom right,
    rgba(0, 82, 255, 0.12),
    rgba(9, 133, 81, 0.08)
  );
  filter: blur(48px);
  animation: pulse-glow 4s ease-in-out infinite;
}

.token-visual__circle {
  position: relative;
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, var(--secondary) 100%);
  box-shadow: var(--shadow-md);
}

.token-visual__circle img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  border-radius: 9999px;
}

.token-visual__placeholder {
  display: flex;
  width: 80%;
  height: 80%;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--secondary);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.vote-card h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

.vote-card .symbol {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--success);
}

.chain-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  background: var(--secondary);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.chain-pill .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--coinbase-blue);
}

.contract-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.contract-row button.contract-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--secondary);
  padding: 0.375rem 0.75rem;
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  cursor: pointer;
  color: inherit;
}

.contract-row button.contract-copy:hover {
  background: #e4e7ee;
}

.bar-wrap {
  width: 100%;
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 500;
}

.bar-labels .yes {
  color: var(--coinbase-blue);
}

.bar-labels .no {
  color: var(--muted-foreground);
}

.bar-track {
  display: flex;
  height: 0.625rem;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--secondary);
  margin-top: 0.5rem;
}

.bar-track .seg-yes {
  height: 100%;
  background: var(--coinbase-blue);
  transition: width 0.5s ease-out;
}

.bar-track .seg-no {
  height: 100%;
  background: #c4c9d4;
  transition: width 0.5s ease-out;
}

.bar-meta {
  margin-top: 0.25rem;
  text-align: right;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.vote-actions {
  display: flex;
  gap: 1rem;
}

.vote-actions button {
  flex: 1;
  height: 3.25rem;
  border: none;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.vote-actions .btn-yes {
  background: var(--coinbase-blue);
  color: var(--primary-foreground);
}

.vote-actions .btn-yes:hover:not(:disabled) {
  background: var(--coinbase-blue-hover);
}

.vote-actions .btn-no {
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.vote-actions .btn-no:hover:not(:disabled) {
  background: var(--secondary);
  border-color: #c4c9d4;
}

.vote-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Vote actions: hover-only feedback via interact-button */
.interact-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease,
    filter 0.22s ease;
}

.interact-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.interact-button:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.02);
}

.interact-button:hover::before {
  transform: translateX(120%);
}

.interact-button.btn-yes:hover {
  box-shadow:
    0 4px 14px rgba(0, 82, 255, 0.35),
    0 12px 32px rgba(0, 82, 255, 0.12);
}

.interact-button.btn-no:hover {
  box-shadow:
    0 4px 14px rgba(10, 11, 13, 0.08),
    0 8px 20px rgba(10, 11, 13, 0.06);
}

.interact-button:active {
  transform: translateY(0) scale(0.995);
  transition-duration: 0.08s;
}

.auth-btns .interact-button.login:hover {
  box-shadow: 0 4px 14px rgba(10, 11, 13, 0.08);
}

.auth-btns .interact-button.signup:hover {
  box-shadow:
    0 4px 14px rgba(0, 82, 255, 0.35),
    0 8px 20px rgba(0, 82, 255, 0.12);
}

.listing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  background: var(--coinbase-blue-soft);
  border: 1px solid rgba(0, 82, 255, 0.15);
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coinbase-blue);
}

.sub-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .sub-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.activity-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: rgba(9, 133, 81, 0.1);
  color: var(--success);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.activity-live-dot::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--success);
  animation: activity-pulse 1.5s ease-in-out infinite;
}

@keyframes activity-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

@keyframes activity-live-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.activity-list article.activity-live-in {
  animation: activity-live-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.activity-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.activity-list article + article {
  margin-top: 0.75rem;
}

.activity-list .left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activity-list .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
}

.activity-list .dot.yes {
  background: var(--coinbase-blue);
}

.activity-list .dot.no {
  background: #c4c9d4;
}

.activity-list .muted {
  color: var(--muted-foreground);
}

.activity-list .side-yes {
  color: var(--coinbase-blue);
  font-weight: 600;
}

.activity-list .side-no {
  color: var(--muted-foreground);
  font-weight: 600;
}

.why-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.why-list li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.why-list .bullet {
  color: var(--foreground);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--background);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.footer-col__block + .footer-col__block {
  margin-top: 1.5rem;
}

.footer-col--cta h3 {
  line-height: 1.35;
  max-width: 12rem;
}

.footer-register {
  width: 100%;
  margin-bottom: 1rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: none;
  background: var(--coinbase-blue);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.footer-register:hover {
  opacity: 0.92;
}

.footer-qr {
  display: block;
  margin: 0 auto;
  width: 8rem;
  height: 8rem;
  border-radius: 0.5rem;
  object-fit: contain;
  background: #fafafa;
}

.footer-col h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col button {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  cursor: pointer;
  text-align: left;
}

.footer-col button:hover {
  color: var(--foreground);
}

.footer-disclaimer {
  display: flex;
  gap: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 1rem;
}

.footer-disclaimer > .icon {
  color: var(--muted-foreground);
}

.footer-disclaimer p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-legal-divider {
  margin: 2rem 0 0;
  border: 0;
  height: 1px;
  background: #e8ebf0;
}

.footer-legal.footer-legal--main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
  text-align: center;
  background: transparent;
  border-top: none;
}

.footer-legal p {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.footer-legal--main p {
  font-size: 0.625rem;
  line-height: 1.7;
  color: #6e7682;
  letter-spacing: 0.01em;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.footer-social__link {
  display: flex;
  color: var(--foreground);
  opacity: 0.85;
  text-decoration: none;
}

.footer-social__link:hover {
  opacity: 1;
}

.footer-divider {
  margin: 1.25rem 0 0;
  height: 1px;
  border: 0;
  background: var(--border);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-bar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.footer-bar__sep {
  color: #9aa1ad;
}

.footer-bar__link,
.footer-bar__locale {
  border: none;
  padding: 0;
  background: none;
  font: inherit;
  color: var(--muted-foreground);
  cursor: pointer;
}

.footer-bar__link:hover,
.footer-bar__locale:hover {
  color: var(--foreground);
}

.footer-bar__locale {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.footer-bar__globe {
  flex-shrink: 0;
}

.text-muted {
  color: var(--muted-foreground);
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.hidden {
  display: none !important;
}

.home-center {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.home-center--minimal {
  gap: 0;
}

.home-logo {
  margin-bottom: 2rem;
}

.home-logo .logo__img {
  width: 2.25rem;
  height: 2.25rem;
}

.home-logo .logo__word {
  font-size: 1.375rem;
}

.home-search-wrap {
  width: 100%;
  max-width: 26rem;
  margin: 0;
}

.home-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.home-search-icon {
  position: absolute;
  left: 1rem;
  color: var(--muted-foreground);
  pointer-events: none;
}

.home-search {
  width: 100%;
  height: 3.25rem;
  padding: 0 1rem 0 2.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.9375rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.home-search::placeholder {
  color: #9aa1ad;
}

.home-search:hover {
  border-color: #c4c9d4;
}

.home-search:focus {
  outline: none;
  border-color: var(--coinbase-blue);
  box-shadow: 0 0 0 3px var(--coinbase-blue-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-center h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--foreground);
  max-width: 20ch;
}

.home-center p {
  margin: 0 0 1.5rem;
  max-width: 32rem;
  color: var(--muted-foreground);
}

.home-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.home-btns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.home-btns a.secondary {
  border: 1px solid var(--border);
  color: var(--foreground);
  background: var(--background);
}

.home-btns a.secondary:hover {
  background: var(--secondary);
}

.home-btns a.primary {
  background: var(--coinbase-blue);
  color: var(--primary-foreground);
  min-width: 10rem;
}

.home-btns a.primary:hover {
  background: var(--coinbase-blue-hover);
}

code {
  border-radius: 0.25rem;
  background: var(--secondary);
  padding: 0.125rem 0.375rem;
  font-size: 0.75rem;
}
