/* =========================================================
   Hooked Cat — $HOOKEDCAT
   Rules in the mint. Cat on the hook.
   ========================================================= */

:root {
  --bg: #07040f;
  --bg-elevated: #0e081a;
  --bg-soft: #140c24;
  --violet-deep: #2a0f4a;
  --violet: #7b2cff;
  --violet-bright: #a855ff;
  --magenta: #ff2d9b;
  --magenta-hot: #ff4fd8;
  --orange: #ff6a3d;
  --orange-soft: #ff8f5a;
  --chrome: #e8f0ff;
  --chrome-dim: #a8b4d0;
  --text: #f5f2ff;
  --text-muted: #b7aed0;
  --text-dim: #7d7399;
  --line: rgba(168, 120, 255, 0.28);
  --glow-violet: rgba(123, 44, 255, 0.45);
  --glow-magenta: rgba(255, 45, 155, 0.35);
  --glow-orange: rgba(255, 106, 61, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-nav: 0 10px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--violet);
  color: white;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Ambient ---------- */

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

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.ambient__glow--violet {
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  right: -10%;
  top: 8%;
  background: radial-gradient(circle, var(--glow-violet), transparent 70%);
}

.ambient__glow--magenta {
  width: 40vw;
  height: 40vw;
  max-width: 520px;
  max-height: 520px;
  right: 5%;
  top: 35%;
  background: radial-gradient(circle, var(--glow-magenta), transparent 70%);
  opacity: 0.4;
}

.ambient__glow--orange {
  width: 45vw;
  height: 45vw;
  max-width: 560px;
  max-height: 560px;
  left: -12%;
  top: 18%;
  background: radial-gradient(circle, var(--glow-orange), transparent 70%);
  opacity: 0.35;
}

.ambient__cursor {
  position: absolute;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 255, 0.18), transparent 68%);
  opacity: 0;
  transform: translate3d(-100vw, -100vh, 0);
  transition: opacity 0.4s ease;
  will-change: transform;
}

body.has-pointer .ambient__cursor.is-on {
  opacity: 1;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 1080px);
  z-index: 100;
  transition: top 0.3s var(--ease);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  background: rgba(10, 6, 20, 0.72);
  border: 1px solid rgba(168, 120, 255, 0.22);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: var(--shadow-nav);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 2px 4px 2px 2px;
  border-radius: 999px;
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 18px rgba(255, 45, 155, 0.25);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand__ticker {
  font-size: 0.68rem;
  color: var(--magenta-hot);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links + .nav-actions {
  margin-left: 0;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  margin-top: 10px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(10, 6, 20, 0.92);
  border: 1px solid rgba(168, 120, 255, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid;
  gap: 6px;
  box-shadow: var(--shadow-nav);
}

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

.mobile-nav a:not(.btn) {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text-muted);
}

.mobile-nav a:not(.btn):hover,
.mobile-nav a:not(.btn):focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-nav__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.mobile-nav__actions .btn {
  justify-content: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--magenta-hot);
  outline-offset: 3px;
}

.btn--sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.84rem;
}

.btn--lg {
  min-height: 52px;
  padding: 0 24px;
  font-size: 1rem;
}

.btn--primary {
  color: white;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 40%),
    linear-gradient(135deg, #ff4fd8 0%, #a855ff 45%, #7b2cff 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 10px 30px rgba(168, 85, 255, 0.35),
    0 0 24px rgba(255, 45, 155, 0.2);
}

.btn--primary:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 14px 36px rgba(168, 85, 255, 0.45),
    0 0 30px rgba(255, 45, 155, 0.28);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(168, 120, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn--ghost:hover {
  background: rgba(168, 85, 255, 0.12);
  border-color: rgba(255, 79, 216, 0.45);
}

.btn--copy {
  min-width: 108px;
  color: white;
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.9), rgba(123, 44, 255, 0.95));
  box-shadow: 0 8px 24px rgba(123, 44, 255, 0.3);
}

.btn--copy.is-copied {
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

/* ---------- Layout ---------- */

main {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding: 96px 24px;
}

.section__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section__header {
  max-width: 720px;
  margin-bottom: 48px;
}

.section__title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 750;
}

.section__lede {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 42ch;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--magenta-hot);
  text-shadow: 0 0 24px rgba(255, 45, 155, 0.35);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 36px) 24px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero__title {
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.hero__title span {
  background: linear-gradient(105deg, #fff 0%, #ffe8d8 28%, #ff8ad8 62%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 79, 216, 0.28));
}

.hero__ticker {
  margin: 14px 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--violet-bright);
}

.hero__lede {
  margin: 22px 0 0;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--text-muted);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ca-module {
  margin-top: 28px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(14, 8, 26, 0.8);
  border: 1px solid rgba(168, 120, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  max-width: 420px;
}

.ca-module__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ca-module__chain {
  color: var(--orange-soft);
}

.ca-module__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ca-module__value {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
  color: var(--chrome);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero__stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 320px;
}

.hero__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 2px);
  width: 100%;
  height: min(42vh, calc(var(--header-h) + 180px));
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.hero__line-beam {
  position: absolute;
  top: 0;
  left: 78.5%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(232, 240, 255, 0.12) 12%,
    rgba(232, 240, 255, 0.85) 58%,
    rgba(168, 85, 255, 0.7) 100%
  );
  box-shadow:
    0 0 8px rgba(232, 240, 255, 0.55),
    0 0 18px rgba(168, 85, 255, 0.45),
    0 0 36px rgba(255, 45, 155, 0.2);
  animation: line-pulse 4.5s ease-in-out infinite;
}

.hero__line-beam::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--chrome);
  box-shadow: 0 0 12px rgba(232, 240, 255, 0.9);
}

.hero__glow {
  position: absolute;
  width: 78%;
  height: 78%;
  top: 12%;
  left: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 40%, rgba(168, 85, 255, 0.45), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(255, 106, 61, 0.22), transparent 50%);
  filter: blur(30px);
  pointer-events: none;
}

.hero__hang {
  position: relative;
  width: min(100%, 540px);
  transform-origin: 78.5% 0%;
  animation: hang-sway 7.5s ease-in-out infinite;
  will-change: transform;
}

.hero__mascot {
  width: 100%;
  filter: drop-shadow(0 20px 50px rgba(123, 44, 255, 0.28));
  user-select: none;
  pointer-events: none;
}

.hero__tagline {
  width: min(100%, var(--max));
  margin: 28px auto 0;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

@keyframes hang-sway {
  0%,
  100% {
    transform: rotate(-1.1deg) translateX(-4px);
  }
  50% {
    transform: rotate(1.15deg) translateX(5px);
  }
}

@keyframes line-pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- The Hook ---------- */

.hook-section {
  background:
    linear-gradient(180deg, transparent, rgba(42, 15, 74, 0.28) 40%, transparent);
}

.transfer-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 28px 18px;
  border-radius: 28px;
  background: rgba(10, 6, 20, 0.65);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.transfer-step {
  display: grid;
  justify-items: center;
}

.transfer-step__node {
  width: min(100%, 180px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 30%, rgba(168, 85, 255, 0.16), transparent 60%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(168, 120, 255, 0.22);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--ease);
}

.transfer-step__node--hook {
  border-color: rgba(255, 79, 216, 0.45);
  box-shadow: 0 0 40px rgba(255, 45, 155, 0.15);
}

.transfer-step__node--land {
  border-color: rgba(255, 143, 90, 0.4);
}

.transfer-step__icon {
  width: 48px;
  height: 48px;
  color: var(--violet-bright);
  margin: 0 auto;
}

.transfer-step__node--hook .transfer-step__icon {
  color: var(--magenta-hot);
}

.transfer-step__node--land .transfer-step__icon {
  color: var(--orange-soft);
}

.transfer-step__icon svg {
  width: 100%;
  height: 100%;
}

.transfer-step__label {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.transfer-step__connector {
  width: 2px;
  height: 42px;
  margin: 6px 0;
  position: relative;
  background: linear-gradient(to bottom, rgba(168, 85, 255, 0.15), rgba(255, 79, 216, 0.55));
  overflow: hidden;
}

.transfer-step__arrow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: translateY(-100%);
}

.transfer-flow.is-live .transfer-step__arrow {
  animation: flow-pulse 2.2s ease-in-out infinite;
}

.transfer-flow.is-live .transfer-step[data-step="1"] .transfer-step__arrow {
  animation-delay: 0s;
}

.transfer-flow.is-live .transfer-step[data-step="2"] .transfer-step__arrow {
  animation-delay: 0.35s;
}

.transfer-flow.is-live .transfer-step[data-step="3"] .transfer-step__arrow {
  animation-delay: 0.7s;
}

.transfer-flow.is-live .transfer-step__node {
  animation: node-glow 2.8s ease-in-out infinite;
}

.transfer-flow.is-live .transfer-step[data-step="2"] .transfer-step__node {
  animation-delay: 0.35s;
}

.transfer-flow.is-live .transfer-step[data-step="3"] .transfer-step__node {
  animation-delay: 0.7s;
}

.transfer-flow.is-live .transfer-step[data-step="4"] .transfer-step__node {
  animation-delay: 1.05s;
}

@keyframes flow-pulse {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes node-glow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: none;
  }
  40% {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(168, 85, 255, 0.2);
  }
}

.hook-copy {
  margin-top: 40px;
  max-width: 34ch;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

.hook-copy__emphasis {
  margin-top: 18px;
  color: var(--text);
  font-weight: 650;
}

/* ---------- Rules ---------- */

.rules-layout {
  position: relative;
}

.rules-hook {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 220px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.55;
}

.rules-hook__line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 70px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--chrome));
  box-shadow: 0 0 12px rgba(232, 240, 255, 0.45);
}

.rules-hook__eye {
  position: absolute;
  left: 50%;
  top: 66px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--chrome);
  box-shadow: 0 0 14px rgba(232, 240, 255, 0.8);
}

.rules-hook__curve {
  position: absolute;
  left: 50%;
  top: 76px;
  width: 70px;
  height: 90px;
  border: 3px solid transparent;
  border-right-color: var(--magenta-hot);
  border-bottom-color: var(--violet-bright);
  border-radius: 0 0 70px 70px;
  transform: translateX(-8px);
  filter: drop-shadow(0 0 12px rgba(255, 45, 155, 0.4));
}

.rules-hook__barb {
  position: absolute;
  right: 18px;
  bottom: 58px;
  width: 18px;
  height: 18px;
  border-left: 3px solid var(--chrome);
  border-top: 3px solid var(--chrome);
  transform: rotate(-35deg);
  opacity: 0.9;
}

.rules-grid {
  display: grid;
  gap: 16px;
}

.rule-card {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(168, 120, 255, 0.2);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.rule-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.rule-card[data-rule="venue"]::before {
  background: radial-gradient(circle, rgba(255, 79, 216, 0.2), transparent 70%);
}

.rule-card[data-rule="tithe"]::before {
  background: radial-gradient(circle, rgba(255, 106, 61, 0.18), transparent 70%);
}

.rule-card[data-rule="allow"]::before {
  background: radial-gradient(circle, rgba(232, 240, 255, 0.12), transparent 70%);
}

.rule-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 79, 216, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.rule-card__mark {
  width: 40px;
  height: 40px;
  color: var(--violet-bright);
  margin-bottom: 16px;
}

.rule-card[data-rule="venue"] .rule-card__mark {
  color: var(--magenta-hot);
}

.rule-card[data-rule="tithe"] .rule-card__mark {
  color: var(--orange-soft);
}

.rule-card[data-rule="allow"] .rule-card__mark {
  color: var(--chrome);
}

.rule-card__mark svg {
  width: 100%;
  height: 100%;
}

.rule-card__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  font-weight: 750;
}

.rule-card__body {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 24ch;
}

/* ---------- Story ---------- */

.story-section {
  padding-top: 120px;
  padding-bottom: 120px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(123, 44, 255, 0.18), transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 45, 155, 0.12), transparent 40%);
}

.story-section__inner {
  max-width: 920px;
}

.story-line {
  margin: 0 0 28px;
  font-size: clamp(2rem, 6.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 750;
  color: var(--text-muted);
}

.story-line--accent {
  color: var(--text);
  margin-bottom: 56px;
}

.story-line--accent em {
  font-style: normal;
  background: linear-gradient(90deg, var(--magenta-hot), var(--violet-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.story-aside {
  display: grid;
  gap: 10px;
  max-width: 28ch;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

.story-aside p {
  margin: 0;
}

/* ---------- Mascot ---------- */

.mascot-section__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.mascot-section__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
}

.mascot-section__visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 70% 40%, rgba(168, 85, 255, 0.4), transparent 55%),
    radial-gradient(circle at 25% 70%, rgba(255, 106, 61, 0.2), transparent 50%);
  filter: blur(28px);
  z-index: 0;
}

.mascot-section__visual img {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.mascot-section__copy p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 38ch;
}

.mascot-section__ticker {
  margin-top: 24px !important;
  font-size: 1.2rem !important;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: var(--magenta-hot) !important;
}

/* ---------- Chart ---------- */

.chart-panel {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(168, 120, 255, 0.22);
  background: rgba(10, 6, 20, 0.75);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.chart-panel__frame {
  position: relative;
  min-height: 420px;
  background:
    linear-gradient(160deg, rgba(42, 15, 74, 0.45), rgba(7, 4, 15, 0.9)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(168, 120, 255, 0.04) 80px
    );
}

.chart-panel__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.chart-panel__frame.is-ready iframe {
  opacity: 1;
}

.chart-panel__frame.is-ready iframe[hidden] {
  display: block;
}

.chart-panel__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: opacity 0.35s ease;
}

.chart-panel__frame.is-ready .chart-panel__fallback {
  opacity: 0;
  pointer-events: none;
}

.chart-panel__fallback-icon {
  width: 64px;
  height: 64px;
  color: var(--magenta-hot);
  margin-bottom: 4px;
  filter: drop-shadow(0 0 18px rgba(255, 45, 155, 0.35));
}

.chart-panel__fallback-icon svg {
  width: 100%;
  height: 100%;
}

.chart-panel__fallback h3 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.chart-panel__fallback p {
  margin: 0 0 8px;
  color: var(--text-muted);
  max-width: 36ch;
}

/* ---------- Final CTA ---------- */

.cta-section {
  padding-top: 72px;
  padding-bottom: 100px;
}

.cta-section__inner {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 48px 28px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 85% 20%, rgba(168, 85, 255, 0.28), transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(255, 106, 61, 0.14), transparent 35%),
    linear-gradient(160deg, rgba(20, 12, 36, 0.95), rgba(10, 6, 20, 0.92));
  border: 1px solid rgba(168, 120, 255, 0.25);
  overflow: hidden;
  text-align: center;
}

.cta-section__mascot {
  justify-self: center;
  width: min(100%, 280px);
  transform-origin: 78.5% 0%;
  animation: hang-sway 8s ease-in-out infinite;
}

.cta-section__mascot img {
  width: 100%;
  filter: drop-shadow(0 18px 40px rgba(123, 44, 255, 0.3));
}

.cta-section__title {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.cta-section__sub {
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 28ch;
}

.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 40px 24px 56px;
  border-top: 1px solid rgba(168, 120, 255, 0.14);
  background: rgba(5, 3, 10, 0.85);
}

.site-footer__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.site-footer__name {
  margin: 0;
  font-weight: 700;
}

.site-footer__meta {
  margin: 2px 0 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-footer__links a {
  color: var(--text-muted);
  font-weight: 600;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--magenta-hot);
}

.site-footer__disclaimer {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  max-width: 62ch;
  line-height: 1.5;
}

/* ---------- Reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

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

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  .transfer-flow {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 28px;
    align-items: center;
  }

  .transfer-step {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .transfer-step__connector {
    width: 100%;
    height: 2px;
    margin: 0;
    flex: 1;
    background: linear-gradient(to right, rgba(168, 85, 255, 0.15), rgba(255, 79, 216, 0.55));
  }

  .transfer-step__arrow {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.85), transparent);
    transform: translateX(-100%);
  }

  .transfer-flow.is-live .transfer-step__arrow {
    animation-name: flow-pulse-x;
  }

  @keyframes flow-pulse-x {
    0% {
      transform: translateX(-100%);
      opacity: 0;
    }
    30% {
      opacity: 1;
    }
    100% {
      transform: translateX(100%);
      opacity: 0;
    }
  }

  .transfer-step:last-child {
    justify-content: center;
  }

  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mascot-section__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
  }

  .cta-section__inner {
    grid-template-columns: 0.7fr 1.3fr;
    text-align: left;
    padding: 40px 40px 40px 20px;
  }

  .cta-section__actions {
    justify-content: flex-start;
  }

  .cta-section__sub {
    margin-left: 0;
  }

  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .site-footer__disclaimer {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 20px;
    min-height: calc(100svh - var(--header-h) - 120px);
  }

  .hero__stage {
    min-height: 520px;
    justify-content: flex-end;
  }

  .hero__hang {
    width: min(100%, 580px);
  }

  .hero__line {
    height: min(48vh, 320px);
  }

  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 820px;
    margin: 0 auto;
  }

  .rules-hook {
    display: block;
  }

  .cta-section__mascot {
    width: min(100%, 340px);
  }
}

@media (max-width: 719px) {
  .hero {
    padding-top: calc(var(--header-h) + 28px);
    justify-content: flex-start;
  }

  .hero__ctas .btn,
  .cta-section__actions .btn {
    width: 100%;
  }

  .ca-module__row {
    flex-wrap: wrap;
  }

  .ca-module__value {
    width: 100%;
    flex: 1 1 100%;
  }

  .btn--copy {
    width: 100%;
  }

  .hero__line {
    height: min(18vh, 120px);
  }

  .nav-actions .btn--ghost:nth-child(1),
  .nav-actions .btn--ghost:nth-child(2) {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand__text {
    display: none;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__hang,
  .cta-section__mascot,
  .hero__line-beam,
  .transfer-flow.is-live .transfer-step__arrow,
  .transfer-flow.is-live .transfer-step__node {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .rule-card,
  .ambient__cursor {
    transition: none;
  }
}
