/* ===== TOKENS ===== */
:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.08);
  --text: #e4e4ec;
  --text-dim: rgba(228, 228, 236, 0.5);
  --accent: #ffa54d;
  --g1: #f97316;
  --g2: #fbbf24;
  --g3: #ff6b2b;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1080px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
strong { color: #fff; font-weight: 600; }

/* ===== CANVAS BG ===== */
#grid-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .35;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .025;
}

/* ===== NAV ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(10, 10, 15, .7);
  border-bottom: 1px solid var(--surface-border);
  transition: transform .4s var(--ease), background .4s var(--ease);
}

.topbar.is-hidden { transform: translateY(-100%); }

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.02em;
}

.logo img { border-radius: 8px; }
.logo:hover { color: var(--accent); }

.topbar-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}

.topbar-links a { color: var(--text-dim); }
.topbar-links a:hover { color: #fff; }

@media (max-width: 640px) {
  .topbar-links { display: none; }
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .burger { display: flex; }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--surface-border);
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  display: block;
  padding: 16px 24px;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--surface-border);
  transition: background .2s ease, color .2s ease;
}

.mobile-nav a:hover { background: var(--surface); color: #fff; }

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,.22) 0%, rgba(251,191,36,.10) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0%   { opacity: .6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1;  transform: translateX(-50%) scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.chain-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(249, 115, 22, .3);
  background: rgba(249, 115, 22, .08);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero-h1 {
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 4s ease infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  margin: 0 0 40px;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-dim);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--g1), #e85d04);
  color: #fff;
  box-shadow: 0 4px 24px rgba(249, 115, 22, .35);
}

.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(249, 115, 22, .5);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: rgba(255, 255, 255, .15);
  color: #fff;
}

.contract-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contract-addr {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  word-break: break-all;
  text-align: center;
}

.contract-addr:hover { color: var(--accent); }

.copy-btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .25s var(--ease);
}

.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.is-done { border-color: #22c55e; color: #22c55e; }

/* ===== PAIN MARQUEE ===== */
.pain-strip {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  background: var(--bg2);
  padding: 20px 0;
}

.pain-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-dim);
  width: max-content;
}

.pain-sep { color: rgba(255,255,255,.12); }
.pain-highlight { color: var(--accent); font-weight: 600; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SECTIONS ===== */
.sect {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
}

.sect + .sect { padding-top: 40px; }

@media (max-width: 640px) {
  .sect { padding: 64px 20px; }
  .sect + .sect { padding-top: 24px; }
}

.sect-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.sect-label {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
}

.sect-h2 {
  margin: 0 0 40px;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
}

.prose { max-width: 620px; }
.prose p { margin: 0 0 16px; }
.prose .dim { color: var(--text-dim); }

.pullquote {
  margin: 48px 0 0;
  padding: 24px 32px;
  border-left: 3px solid var(--accent);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ===== GLASS CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 12px;
}

@media (max-width: 800px) {
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
}

.glass-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, .25);
  box-shadow: 0 12px 40px rgba(249, 115, 22, .08);
}

.card-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.glass-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.glass-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ===== CTA / GET ===== */
.sect-cta {
  background: linear-gradient(180deg, transparent, rgba(249, 115, 22, .04) 50%, transparent);
}

.get-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 540px;
}

.get-steps li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--surface-border);
  font-size: 15px;
}

.get-steps li:first-child { border-top: 1px solid var(--surface-border); }

.step-n {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.get-alt {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* ===== PILLARS ===== */
.pillars {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 40px 24px 100px;
  flex-wrap: wrap;
}

.pillar-item {
  padding: 20px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}

.pillar-item:hover {
  border-color: rgba(249, 115, 22, .35);
  box-shadow: 0 0 30px rgba(249, 115, 22, .08);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--surface-border);
  background: var(--bg2);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.footer-logo img { border-radius: 6px; }
.footer-logo:hover { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: #fff; }

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
  width: 100%;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
  margin-top: 8px;
}

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECTION DIVIDERS ===== */
.sect-inner::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--g1), var(--g2));
  margin-bottom: 32px;
  opacity: .5;
}

/* ===== STEP NUMBER GLOW ===== */
.get-steps li:hover .step-n {
  border-color: var(--accent);
  background: rgba(249, 115, 22, .12);
  box-shadow: 0 0 16px rgba(249, 115, 22, .2);
}

.step-n { transition: all .3s var(--ease); }
.get-steps li { transition: background .2s ease; }
.get-steps li:hover { background: var(--surface); border-radius: 8px; padding-left: 12px; padding-right: 12px; }

/* ===== SELECTION ===== */
::selection {
  background: rgba(249, 115, 22, .3);
  color: #fff;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .pain-track { animation: none; }
}
