:root {
  --bg: #071008;
  --surface: rgba(10, 13, 10, 0.58);
  --surface-strong: rgba(10, 13, 10, 0.82);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f8f2;
  --muted: rgba(246, 248, 242, 0.72);
  --pink: #ff57bb;
  --orange: #ff9f35;
  --yellow: #fff15a;
  --green: #5af57f;
  --cyan: #63e1ff;
  --blue: #7083ff;
  --purple: #d46bff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", sans-serif;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

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

.page-backdrop,
.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-backdrop {
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(4, 8, 5, 0.22), rgba(4, 8, 5, 0.76)),
    url("assets/hero-forest.png") center / cover no-repeat;
}

.page-backdrop::before,
.page-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
}

.page-backdrop::before {
  background:
    radial-gradient(circle at 46% 40%, rgba(255, 87, 187, 0.25), transparent 12%),
    radial-gradient(circle at 52% 44%, rgba(255, 159, 53, 0.2), transparent 12%),
    radial-gradient(circle at 50% 50%, rgba(255, 241, 90, 0.18), transparent 13%),
    radial-gradient(circle at 50% 57%, rgba(90, 245, 127, 0.18), transparent 13%),
    radial-gradient(circle at 50% 64%, rgba(99, 225, 255, 0.18), transparent 13%),
    radial-gradient(circle at 50% 70%, rgba(212, 107, 255, 0.22), transparent 12%);
  filter: blur(48px);
}

.page-backdrop::after {
  background: linear-gradient(180deg, rgba(4, 8, 5, 0), rgba(4, 8, 5, 0.36) 35%, rgba(4, 8, 5, 0.72));
}

.page-noise {
  z-index: -2;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 5px 5px, 5px 5px;
  mix-blend-mode: soft-light;
}

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

.gain-popup {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  animation: float-gain 3.6s ease-out forwards;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.gain-popup.r1 { color: var(--pink); }
.gain-popup.r2 { color: var(--orange); }
.gain-popup.r3 { color: var(--yellow); }
.gain-popup.r4 { color: var(--green); }
.gain-popup.r5 { color: var(--cyan); }
.gain-popup.r6 { color: var(--purple); }

.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.floating-actions {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 40;
  display: flex;
  gap: 10px;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 13, 10, 0.54);
  color: white;
  backdrop-filter: blur(14px);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, var(--pink), var(--orange) 18%, var(--yellow) 36%, var(--green) 56%, var(--cyan) 76%, var(--purple));
  color: #091009;
  font-size: 12px;
  font-weight: 800;
}

main {
  padding: 0 0 72px;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 108px 0 64px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.55;
}

.hero-glow-a {
  width: 440px;
  height: 440px;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  background:
    conic-gradient(from 180deg, var(--pink), var(--orange), var(--yellow), var(--green), var(--cyan), var(--purple), var(--pink));
}

.hero-glow-b {
  width: 320px;
  height: 320px;
  bottom: 2%;
  left: 48%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle, rgba(255,255,255,0.22), rgba(255,255,255,0));
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 16px;
  color: rgba(246, 248, 242, 0.76);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Outfit", sans-serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(72px, 12vw, 158px);
  line-height: 0.88;
}

h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.92;
  max-width: 780px;
}

h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1;
}

.hero-subtitle {
  margin-top: 20px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.06;
}

.hero-copy,
.section-copy p,
.scanner-summary p,
.meme-card p,
.step p {
  color: var(--muted);
  line-height: 1.55;
}

.hero-copy {
  margin: 24px auto 0;
  max-width: 860px;
  font-size: clamp(18px, 1.45vw, 22px);
}

.hero-copy strong {
  color: var(--text);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-badges span,
.scan-card span,
.meme-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-badges span {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.proof,
.scanner,
.meme-wall,
.howto {
  margin-top: 22px;
  padding: 34px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.section-copy {
  max-width: 760px;
}

.tweet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.tweet-card,
.scan-card,
.scanner-summary,
.meme-card,
.step {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.tweet-card {
  padding: 18px;
}

.tweet-card-rainbow {
  background:
    linear-gradient(rgba(255,255,255,0.05), rgba(255,255,255,0.05)) padding-box,
    linear-gradient(135deg, rgba(255,87,187,0.68), rgba(255,159,53,0.66), rgba(255,241,90,0.62), rgba(90,245,127,0.65), rgba(99,225,255,0.62), rgba(212,107,255,0.68)) border-box;
  border: 1px solid transparent;
}

.tweet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.tweet-head strong,
.tweet-head span {
  display: block;
}

.tweet-head strong {
  font-size: 20px;
}

.tweet-head span {
  margin-top: 4px;
  color: rgba(246,248,242,0.58);
  font-size: 16px;
}

.tweet-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  color: #fff;
}

.tweet-avatar.red { background: #ff3a3a; }
.tweet-avatar.blue { background: #5575ff; }
.tweet-avatar.dark { background: #171717; }

.tweet-card p {
  color: var(--text);
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.08;
}

.scanner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.82fr);
  gap: 18px;
  margin-top: 24px;
}

.scanner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.scan-card,
.scanner-summary,
.meme-card,
.step {
  padding: 18px;
}

.scan-card p {
  color: var(--text);
  font-size: 18px;
}

.scan-card span {
  margin-top: 14px;
  color: #0a0f08;
  font-size: 14px;
  font-weight: 800;
  background:
    linear-gradient(135deg, var(--pink), var(--orange) 18%, var(--yellow) 34%, var(--green) 52%, var(--cyan) 72%, var(--purple));
}

.negative span {
  background: rgba(255, 86, 133, 0.24);
  color: white;
}

.scanner-summary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.scanner-summary h3 {
  margin: 10px 0 14px;
}

.summary-line {
  margin-top: 18px;
  font-family: "Outfit", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.02;
  color: var(--text) !important;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.meme-tag {
  margin-bottom: 14px;
  padding: 8px 12px;
  color: rgba(246,248,242,0.9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meme-card p {
  font-family: "Outfit", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.06;
}

.rainbow-border {
  background:
    linear-gradient(rgba(255,255,255,0.05), rgba(255,255,255,0.05)) padding-box,
    linear-gradient(135deg, var(--pink), var(--orange), var(--yellow), var(--green), var(--cyan), var(--purple)) border-box;
  border: 1px solid transparent;
}

.tilt-a { transform: rotate(-2deg); }
.tilt-b { transform: rotate(2.5deg); }
.tilt-c { transform: rotate(-1deg); }
.tilt-d { transform: rotate(1.5deg); }
.tilt-e { transform: rotate(-2.2deg); }
.tilt-f { transform: rotate(2deg); }

.steps-board {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.contract-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 26px;
  background:
    linear-gradient(rgba(255,255,255,0.06), rgba(255,255,255,0.06)) padding-box,
    linear-gradient(135deg, var(--pink), var(--orange), var(--yellow), var(--green), var(--cyan), var(--purple)) border-box;
  backdrop-filter: blur(10px);
}

.contract-label {
  color: rgba(246,248,242,0.68);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-card code {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(7, 16, 8, 0.58);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.contract-copy {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #091009;
  font-weight: 800;
  cursor: pointer;
}

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, var(--pink), var(--orange) 18%, var(--yellow) 34%, var(--green) 52%, var(--cyan) 72%, var(--purple));
  color: #091009;
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.step h3 {
  margin-bottom: 8px;
}

.howto a {
  color: var(--yellow);
}

@keyframes float-gain {
  0% {
    transform: translate3d(0, 18px, 0) scale(0.92);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translate3d(0, -54px, 0) scale(1.05);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .tweet-grid,
  .meme-grid,
  .scanner-grid,
  .scanner-layout {
    grid-template-columns: 1fr;
  }

  .tilt-a,
  .tilt-b,
  .tilt-c,
  .tilt-d,
  .tilt-e,
  .tilt-f {
    transform: none;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .floating-actions {
    top: 12px;
    left: 12px;
    right: 12px;
    flex-wrap: wrap;
  }

  .action-pill {
    min-height: 44px;
    padding: 0 14px;
  }

  .shell {
    width: calc(100% - 20px);
  }

  .proof,
  .scanner,
  .meme-wall,
  .howto {
    padding: 22px 18px;
  }

  .hero {
    padding-top: 110px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .tweet-card p {
    font-size: 24px;
  }

  .meme-card p {
    font-size: 24px;
  }

  .contract-card {
    grid-template-columns: 1fr;
  }

  .contract-copy {
    width: 100%;
  }

  .step {
    grid-template-columns: 1fr;
  }
}
