@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --bg-primary: #f7f6f3;
  --bg-secondary: #ffffff;
  --bg-elevated: #ffffff;
  --text-primary: #0c0d0f;
  --text-secondary: #5c6470;
  --text-muted: #7d8690;
  --border: rgba(12, 13, 15, 0.08);
  --border-strong: rgba(12, 13, 15, 0.12);
  --accent-start: #ffc012;
  --accent-end: #ffad60;
  --accent-glow: rgba(255, 192, 18, 0.28);
  --hero-top-offset: 132px;
  --hero-bottom-offset: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter Tight", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 192, 18, 0.12), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(255, 173, 96, 0.08), transparent 28%),
    linear-gradient(180deg, #faf9f6 0%, var(--bg-primary) 45%, #f0efeb 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 13, 15, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 13, 15, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}

.orb-1 {
  width: 480px;
  height: 480px;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 192, 18, 0.18);
}

.orb-2 {
  width: 320px;
  height: 320px;
  bottom: 8%;
  right: 4%;
  background: rgba(255, 173, 96, 0.14);
  animation-delay: -5s;
}

.orb-3 {
  width: 240px;
  height: 240px;
  bottom: 22%;
  left: 2%;
  background: rgba(255, 210, 120, 0.12);
  animation-delay: -9s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(16px);
  }
}

.layout {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.section-container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.top-banner {
  background: var(--text-primary);
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 13px;
  font-weight: 500;
}

.top-banner span {
  color: rgba(255, 255, 255, 0.72);
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 1.25rem 0;
  background: linear-gradient(180deg, rgba(247, 246, 243, 0.96) 70%, rgba(247, 246, 243, 0));
  backdrop-filter: blur(10px);
}

.nav-shell {
  max-width: 1120px;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 2px rgba(12, 13, 15, 0.04), 0 8px 24px rgba(12, 13, 15, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-logo img {
  height: 22px;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  margin-left: 1.5rem;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-badge {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 192, 18, 0.12);
  border: 1px solid rgba(255, 192, 18, 0.25);
}

main {
  flex: 1;
}

.hero {
  position: relative;
  min-height: calc(100dvh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--hero-top-offset) 1.25rem var(--hero-bottom-offset);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-start);
  box-shadow: 0 0 12px var(--accent-glow);
}

.gradient-text {
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.035em;
  max-width: 880px;
  color: var(--text-primary);
}

.hero-subtitle {
  margin: 1.25rem auto 0;
  max-width: 620px;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-secondary);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-wrapper {
  position: relative;
  display: inline-flex;
  border-radius: 0.62rem;
  padding: 1px;
  overflow: hidden;
}

.btn-wrapper::before,
.btn-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn-wrapper::before {
  background: linear-gradient(270deg, var(--accent-start), var(--accent-end));
  opacity: 1;
}

.btn-wrapper::after {
  background: linear-gradient(270deg, #ffd54a, #ffc285);
}

.btn-wrapper:hover::after {
  opacity: 1;
}

.btn-wrapper:hover {
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-primary,
.btn-defi {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: none;
  border-radius: 0.58rem;
  padding: 0.78rem 1.55rem;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-primary);
  background: linear-gradient(270deg, var(--accent-start), var(--accent-end));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-defi:hover {
  transform: translateY(-1px);
}

.btn-primary svg,
.btn-defi svg {
  width: 16px;
  height: 16px;
}

.btn-outline {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: 0.58rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border-strong);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.btn-outline:hover {
  border-color: rgba(12, 13, 15, 0.2);
  box-shadow: 0 4px 16px rgba(12, 13, 15, 0.06);
}

.connect_wallet {
  appearance: none;
  -webkit-appearance: none;
}

.content-section {
  padding: 0 1.25rem 5rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  padding: 1.1rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.stat-value {
  margin-top: 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.info-card {
  padding: 1.35rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 2px rgba(12, 13, 15, 0.03);
}

.info-card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.info-card-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.info-card-desc {
  margin-top: 0.5rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.panel {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border-radius: 0.875rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 32px rgba(12, 13, 15, 0.04);
}

.panel-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.steps {
  display: grid;
  gap: 0.85rem;
}

.step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(270deg, rgba(255, 192, 18, 0.25), rgba(255, 173, 96, 0.25));
  border: 1px solid rgba(255, 192, 18, 0.35);
}

.step-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.vote-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.vote-option {
  padding: 1.2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
  text-align: left;
}

.vote-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.vote-option-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.vote-option-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: #8a6200;
  background: rgba(255, 192, 18, 0.14);
  border: 1px solid rgba(255, 192, 18, 0.22);
}

.vote-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(12, 13, 15, 0.06);
  overflow: hidden;
}

.vote-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(270deg, var(--accent-start), var(--accent-end));
}

.vote-meta {
  margin-top: 0.55rem;
  font-size: 12px;
  color: var(--text-muted);
}

.trust-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.trust-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.75;
}

.partner-row {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  opacity: 0.55;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer {
  padding: 2rem 1.25rem 2.5rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 320px;
}

.footer-copy {
  font-size: 14px;
  color: var(--text-muted);
}

.rewards-hero {
  min-height: auto;
  padding-top: calc(var(--hero-top-offset) + 0.5rem);
  padding-bottom: 2rem;
}

.rewards-hero .hero-title {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
}

.rewards-panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

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

  .nav-badge {
    display: inline-flex;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
