:root {
  --base: #0052ff;
  --base-deep: #0036c9;
  --base-soft: #4d82ff;
  --base-mist: #e8efff;
  --base-fog: #f3f7ff;
  --ink: #0a1633;
  --ink-muted: #4a5a7a;
  --white: #ffffff;
  --line: rgba(0, 82, 255, 0.14);
  --radius: 18px;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Sora", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(0, 82, 255, 0.18), transparent 55%),
    radial-gradient(900px 600px at 100% 20%, rgba(77, 130, 255, 0.16), transparent 50%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3ff 40%, #f8faff 100%);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

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

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

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

#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.cursor-glow {
  position: fixed;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 82, 255, 0.7);
  background: rgba(0, 82, 255, 0.12);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s;
  mix-blend-mode: multiply;
}

.cursor-glow.hot {
  width: 52px;
  height: 52px;
  background: rgba(0, 82, 255, 0.2);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: 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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav,
.mobile-menu,
main,
footer {
  position: relative;
  z-index: 2;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  backdrop-filter: blur(16px);
  background: rgba(247, 249, 255, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 30px rgba(0, 82, 255, 0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 84px;
  width: auto;
  transition: transform 0.35s var(--ease);
}

.nav-brand:hover .nav-logo {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  position: relative;
  transition: color 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--base);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.nav-toggle.open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  background: rgba(247, 249, 255, 0.96);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--base);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(0, 82, 255, 0.28);
}

.btn-primary:hover {
  background: var(--base-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--ink-muted);
}

.btn-ghost:hover {
  color: var(--base);
}

.btn-outline {
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.btn-outline:hover {
  border-color: var(--base);
  color: var(--base);
}

.btn-lg {
  padding: 0.95rem 1.45rem;
  font-size: 1.05rem;
  border-radius: 14px;
}

.magnetic {
  will-change: transform;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  animation: kenburns 22s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from {
    transform: scale(1.08) translate(0, 0);
  }
  to {
    transform: scale(1.16) translate(-1.5%, -1%);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 249, 255, 0.15) 0%, rgba(247, 249, 255, 0.55) 45%, rgba(238, 243, 255, 0.92) 78%, #eef3ff 100%),
    linear-gradient(90deg, rgba(0, 82, 255, 0.08), transparent 40%);
}

.hero-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 82, 255, 0.08) 48%,
    transparent 52%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: scan 5.5s linear infinite;
  mix-blend-mode: multiply;
  pointer-events: none;
}

@keyframes scan {
  0% {
    background-position: 0 -40%;
  }
  100% {
    background-position: 0 140%;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 7.5rem 1.5rem 5.5rem;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.hero-logo {
  height: 96px;
  width: auto;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 8px 20px rgba(0, 82, 255, 0.15));
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.hero-title .line {
  display: inline-block;
  background: linear-gradient(120deg, var(--ink) 20%, var(--base) 55%, var(--base-soft) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}

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

.hero-sub {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

#copy-ca {
  min-width: min(100%, 280px);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.88rem;
}

.ca-label {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--base);
  letter-spacing: 0.04em;
}

.ca-copied {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--base);
  color: white;
  font-family: var(--font-body);
  font-weight: 700;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease), opacity 0.35s;
}

#copy-ca.copied .ca-copied {
  opacity: 1;
  transform: translateY(0);
}

.hero-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  padding: 0.7rem 0;
}

.ticker-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--base);
  animation: marquee 28s linear infinite;
}

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

/* Sections */
.section {
  padding: 6.5rem 1.5rem;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--base);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.section-title em {
  font-style: normal;
  color: var(--base);
}

.section-lead {
  max-width: 38rem;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
}

.section-lead strong {
  color: var(--ink);
  font-weight: 600;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat {
  position: relative;
  padding: 1.75rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(232, 239, 255, 0.65));
  overflow: hidden;
  transition: border-color 0.3s, transform 0.35s var(--ease);
  transform-style: preserve-3d;
}

.stat:hover {
  border-color: rgba(0, 82, 255, 0.35);
}

.stat-ring {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 18px solid rgba(0, 82, 255, 0.08);
  animation: spin 14s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.stat h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--base);
  margin-bottom: 0.35rem;
  position: relative;
}

.stat p {
  color: var(--ink-muted);
  position: relative;
}

/* How to buy */
.howto {
  background:
    radial-gradient(700px 400px at 80% 20%, rgba(0, 82, 255, 0.1), transparent 60%),
    linear-gradient(180deg, transparent, rgba(0, 82, 255, 0.04), transparent);
}

.steps {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.4rem 1.4rem 1.4rem 5.2rem;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}

.step::before {
  content: attr(data-step);
  position: absolute;
  left: 1.2rem;
  top: 1.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--base);
}

.step:hover {
  transform: translateX(8px);
  border-color: rgba(0, 82, 255, 0.35);
  background: rgba(255, 255, 255, 0.9);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--ink-muted);
  line-height: 1.55;
}

.step code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.9em;
  color: var(--base);
  background: var(--base-mist);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.howto-cta {
  margin-top: 2rem;
}

/* Join */
.join {
  position: relative;
  overflow: hidden;
}

.join-bg {
  position: absolute;
  inset: 10% -10% -20%;
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 82, 255, 0.16), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(77, 130, 255, 0.18), transparent 40%);
  filter: blur(10px);
  animation: pulse-bg 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes pulse-bg {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.08) translate(2%, -2%);
  }
}

.join-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 420px;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.35s var(--ease), background 0.3s;
}

.join-link:hover {
  border-color: var(--base);
  background: white;
}

.join-x {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--base);
  color: white;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.join-link strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.join-link small {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.join-arrow {
  margin-left: auto;
  font-size: 1.4rem;
  color: var(--base);
  transition: transform 0.3s var(--ease);
}

.join-link:hover .join-arrow {
  transform: translateX(6px);
}

/* Footer */
.footer {
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo {
  height: 72px;
  width: auto;
}

.footer p {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-weight: 600;
  color: var(--base);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.hero-content .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.hero-content .reveal:nth-child(2) {
  transition-delay: 0.18s;
}
.hero-content .reveal:nth-child(3) {
  transition-delay: 0.3s;
}
.hero-content .reveal:nth-child(4) {
  transition-delay: 0.42s;
}

.about-grid .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.about-grid .reveal:nth-child(2) {
  transition-delay: 0.15s;
}
.about-grid .reveal:nth-child(3) {
  transition-delay: 0.25s;
}

.steps .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.steps .reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.steps .reveal:nth-child(3) {
  transition-delay: 0.19s;
}
.steps .reveal:nth-child(4) {
  transition-delay: 0.26s;
}

/* Responsive */
@media (max-width: 860px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

  .hero-content {
    padding-top: 6.5rem;
    padding-bottom: 4.5rem;
  }

  body {
    cursor: auto;
  }

  .cursor-glow {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-lg,
  #copy-ca {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .step {
    padding-left: 4.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-banner {
    transform: none;
    animation: none;
  }

  body {
    cursor: auto;
  }

  .cursor-glow,
  #fx-canvas {
    display: none;
  }
}
