:root {
  --yellow: #ffd54f;
  --yellow-deep: #f0b429;
  --yellow-soft: #ffe9a0;
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --foam: #ffffff;
  --ocean: #071018;
  --ocean-mid: #0d1b28;
  --ocean-glow: rgba(255, 213, 79, 0.18);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 28px;
  --font-display: "Bagel Fat One", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--foam);
  font-family: var(--font-body);
  font-weight: 700;
  background: var(--ocean);
  overflow-x: hidden;
  line-height: 1.55;
}

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

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

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

/* ---------- Ocean background ---------- */
.ocean-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 213, 79, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 35% at 90% 20%, rgba(255, 255, 255, 0.06), transparent 50%),
    radial-gradient(ellipse 45% 40% at 10% 70%, rgba(255, 213, 79, 0.08), transparent 55%),
    linear-gradient(180deg, #08131d 0%, #0a1622 45%, #071018 100%);
}

.sun-glow {
  position: absolute;
  top: -8%;
  left: 50%;
  width: 70vw;
  height: 42vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 213, 79, 0.35), transparent 65%);
  filter: blur(20px);
  animation: pulseGlow 8s ease-in-out infinite;
}

.wave-layer {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 220px;
  opacity: 0.35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath fill='%23ffd54f' d='M0,120 C240,180 480,40 720,100 C960,160 1200,60 1440,120 L1440,220 L0,220 Z'/%3E%3C/svg%3E")
    repeat-x bottom / 1440px 220px;
  animation: driftWave 18s linear infinite;
}

.wave-a {
  bottom: 0;
  opacity: 0.12;
  animation-duration: 22s;
}

.wave-b {
  bottom: 40px;
  opacity: 0.08;
  filter: brightness(1.2);
  animation-duration: 16s;
  animation-direction: reverse;
}

.wave-c {
  bottom: 90px;
  opacity: 0.05;
  animation-duration: 28s;
}

.splash {
  position: absolute;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  background: var(--yellow);
  opacity: 0.12;
  filter: blur(1px);
  animation: blobFloat 12s ease-in-out infinite;
}

.splash-1 {
  width: 280px;
  height: 220px;
  top: 18%;
  right: -60px;
  background: #fff;
  opacity: 0.06;
}

.splash-2 {
  width: 200px;
  height: 180px;
  bottom: 22%;
  left: -40px;
  animation-delay: -4s;
}

.splash-3 {
  width: 140px;
  height: 120px;
  top: 55%;
  right: 18%;
  background: #fff;
  opacity: 0.05;
  animation-delay: -7s;
}

.bubble-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 213, 79, 0.35);
  background: rgba(255, 255, 255, 0.04);
  animation: rise linear infinite;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  backdrop-filter: blur(16px);
  background: rgba(7, 16, 24, 0.72);
  border-bottom: 2px solid rgba(255, 213, 79, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--yellow);
  object-fit: cover;
  transition: transform 0.35s ease;
}

.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--foam);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--yellow);
}

.brand-ticker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}

.nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  margin-right: 1rem;
}

.nav a {
  font-weight: 800;
  font-size: 0.95rem;
  opacity: 0.85;
  position: relative;
  transition: color 0.2s, opacity 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: var(--yellow);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav a:hover {
  color: var(--yellow);
  opacity: 1;
}

.nav a:hover::after {
  width: 100%;
}

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

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn img {
  width: 18px;
  height: 18px;
  filter: brightness(0);
}

.icon-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  background: var(--foam);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 900;
  border: 3px solid var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-ico {
  width: 22px;
  height: 22px;
}

.btn-primary,
.btn-buy {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 4px 4px 0 #fff;
}

.btn-primary:hover,
.btn-buy:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--foam);
  box-shadow: 4px 4px 0 var(--yellow);
}

.btn-ghost:hover {
  background: rgba(255, 213, 79, 0.12);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--yellow);
}

.btn-ghost img,
.btn-ghost .btn-ico {
  width: 18px;
  height: 18px;
}

.btn-ghost img[src*="x.svg"] {
  filter: brightness(0) invert(1);
}

.btn-primary .btn-ico {
  width: 22px;
  height: 22px;
}

.btn-copy {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  border: 2px solid var(--yellow);
  font-size: 0.8rem;
  font-weight: 800;
}

.btn-copy.copied {
  background: var(--yellow);
  color: var(--ink);
}

/* ---------- Typography ---------- */
.display-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--foam);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--yellow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 213, 79, 0.12);
  border: 2px solid rgba(255, 213, 79, 0.35);
  color: var(--yellow);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.sol-mark {
  width: 16px;
  height: 16px;
}

.section-lead,
.hero-lead {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2rem);
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head .display-title {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  margin-bottom: 0.85rem;
}

.section-head .section-lead {
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 4vw, 2rem) clamp(4rem, 8vw, 6rem);
  min-height: calc(100vh - 80px);
}

.hero-copy .display-title {
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  margin-bottom: 1rem;
}

.display-title .line {
  display: block;
}

.display-title .accent {
  color: var(--yellow);
  -webkit-text-stroke: 4px var(--ink);
  text-shadow: 4px 4px 0 #fff;
}

.hero-lead {
  margin: 0 0 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.ca-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--yellow);
  max-width: 100%;
}

.ca-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 900;
}

.ca-value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.9;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.logo-orbit {
  position: relative;
  width: min(420px, 88vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-logo {
  width: 72%;
  border-radius: 28%;
  border: 5px solid var(--ink);
  box-shadow:
    10px 10px 0 var(--yellow),
    -6px -6px 0 #fff;
  animation: floatLogo 5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.orbit-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 3px dashed rgba(255, 213, 79, 0.45);
  animation: spin 24s linear infinite;
}

.orbit-ring.delay {
  inset: 0;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.12);
  animation-duration: 36s;
  animation-direction: reverse;
}

.ripple {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 2px solid rgba(255, 213, 79, 0.45);
  animation: rippleOut 3.6s ease-out infinite;
  z-index: 1;
}

.ripple.r2 {
  animation-delay: 1.2s;
}

.ripple.r3 {
  animation-delay: 2.4s;
}

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

.ink-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 213, 79, 0.12), rgba(255, 255, 255, 0.04));
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--yellow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ink-card:hover {
  transform: translate(-4px, -4px) rotate(-0.5deg);
  box-shadow: 10px 10px 0 var(--yellow);
}

.ink-card h3 {
  margin: 0.85rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  color: var(--yellow);
}

.ink-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.card-icon.splash-shape {
  width: 54px;
  height: 44px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 60% 40% 55% 45% / 50% 45% 55% 50%;
  box-shadow: 3px 3px 0 #fff;
  animation: wiggle 4s ease-in-out infinite;
}

.card-icon.splash-shape.alt {
  background: #fff;
  animation-delay: -1.2s;
}

.card-icon.splash-shape.third {
  background: var(--yellow-deep);
  animation-delay: -2.4s;
}

/* ---------- How to buy ---------- */
.buy-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step-card {
  position: relative;
  padding: 1.4rem 1.15rem 1.3rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 #fff;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 213, 79, 0.2), transparent 65%);
  pointer-events: none;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 0.75rem 0;
  border-radius: 18px;
  background: #fff;
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 3px 3px 0 var(--yellow);
}

.step-icon img {
  width: 30px;
  height: 30px;
}

.step-icon.tick {
  position: relative;
}

.step-icon.tick::after {
  content: "";
  width: 16px;
  height: 10px;
  border-left: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  transform: rotate(-45deg) translate(1px, -2px);
}

.step-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}

.step-card p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.buy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* ---------- Chart ---------- */
.chart-shell {
  border-radius: 28px;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--yellow);
  overflow: hidden;
  background: #0b1218;
}

#dexscreener-embed {
  position: relative;
  width: 100%;
  padding-bottom: 125%;
}

#dexscreener-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.chart-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

/* ---------- Join ---------- */
.banner-frame {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 2rem;
  aspect-ratio: 3 / 1;
  border-radius: 24px;
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--yellow), -4px -4px 0 #fff;
  overflow: hidden;
  background: var(--yellow);
  animation: bannerBob 6s ease-in-out infinite;
}

.join-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.join-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.4rem 1rem;
  text-align: center;
  border-radius: 24px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.join-card img {
  width: 36px;
  height: 36px;
  margin-bottom: 0.35rem;
  filter: brightness(0);
}

.join-card span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  -webkit-text-stroke: 2px transparent;
}

.join-card small {
  font-weight: 700;
  opacity: 0.7;
}

.join-card:hover {
  transform: translate(-3px, -3px) scale(1.02);
  box-shadow: 8px 8px 0 #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3rem clamp(1rem, 4vw, 2rem) 2.5rem;
  border-top: 3px solid rgba(255, 213, 79, 0.2);
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 3px solid var(--ink);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}

.footer-brand span {
  font-size: 0.8rem;
  color: var(--yellow);
}

.footer-tag {
  max-width: 32rem;
  margin: 0 auto 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  font-weight: 800;
  color: var(--yellow);
}

.disclaimer {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

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

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

/* ---------- Animations ---------- */
@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

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

@keyframes rippleOut {
  0% {
    transform: scale(0.7);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes driftWave {
  from {
    background-position: 0 bottom;
  }
  to {
    background-position: 1440px bottom;
  }
}

@keyframes blobFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(18px, -22px) rotate(8deg);
  }
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-110vh) scale(1.2);
    opacity: 0;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(6deg);
  }
}

@keyframes bannerBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 1400px) {
  #dexscreener-embed {
    padding-bottom: 65%;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
  }

  .hero-lead,
  .section-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta,
  .ca-box {
    justify-content: center;
  }

  .about-grid,
  .buy-steps,
  .join-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(7, 16, 24, 0.96);
    border-bottom: 2px solid rgba(255, 213, 79, 0.25);
  }

  .nav.open a {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-toggle {
    display: flex;
  }

  .btn-buy {
    display: none;
  }
}

@media (max-width: 640px) {
  .about-grid,
  .buy-steps,
  .join-grid {
    grid-template-columns: 1fr;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .hero-copy .display-title {
    font-size: clamp(2.8rem, 14vw, 3.6rem);
  }

  .banner-frame {
    border-radius: 16px;
    box-shadow: 6px 6px 0 var(--yellow);
  }
}
