:root {
  --sky: #5ec8f0;
  --sky-deep: #2aa4d8;
  --ocean: #2ec4b6;
  --ocean-deep: #1a9a9e;
  --foam: #e8fbff;
  --sand: #f2d59a;
  --sand-deep: #e0b86a;
  --sun: #ffb347;
  --sun-hot: #ff8c42;
  --ink: #1a3d4a;
  --ink-soft: #3d6674;
  --white: #ffffff;
  --stroke: #176b7a;
  --font-display: "Lilita One", cursive;
  --font-body: "Outfit", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 50% at 80% 8%, rgba(255, 220, 120, 0.55) 0%, transparent 55%),
    linear-gradient(
      180deg,
      #7ad4f5 0%,
      #4ec4e8 18%,
      #3eb8c9 38%,
      #3ac4b0 52%,
      #f0d48a 72%,
      #e8c878 100%
    );
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

/* —— Atmosphere —— */
.sun-glow {
  pointer-events: none;
  position: fixed;
  top: -8rem;
  right: -4rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 220, 90, 0.75) 0%,
    rgba(255, 180, 70, 0.35) 40%,
    transparent 70%
  );
  animation: sun-pulse 6s ease-in-out infinite;
  z-index: 0;
}

.wave-layer {
  pointer-events: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18vh;
  height: 120px;
  z-index: 0;
  opacity: 0.35;
}

.wave {
  position: absolute;
  left: 0;
  width: 200%;
  height: 100%;
  fill: var(--foam);
}

.wave-a {
  animation: drift 18s linear infinite;
  opacity: 0.55;
}

.wave-b {
  animation: drift 28s linear infinite reverse;
  opacity: 0.35;
  top: 18px;
}

@keyframes sun-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

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

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(
    180deg,
    rgba(232, 251, 255, 0.78) 0%,
    rgba(232, 251, 255, 0.4) 70%,
    transparent 100%
  );
  backdrop-filter: blur(10px);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand-mark img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--white);
  box-shadow: 0 2px 0 var(--stroke);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-buy,
.btn-primary {
  background: linear-gradient(180deg, var(--sun) 0%, var(--sun-hot) 100%);
  color: var(--ink);
  border-color: #c96a28;
  box-shadow: 0 3px 0 #c96a28;
}

.btn-buy:hover,
.btn-primary:hover {
  background: linear-gradient(180deg, #ffc05c 0%, #ff9a52 100%);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border-color: var(--stroke);
}

.btn-ghost:hover { 
  background: rgba(255, 255, 255, 0.85);
}

/* —— Hero —— */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6.5rem 1.25rem 3rem;
  overflow: hidden;
}

.hero-sky {
  position: absolute;
  inset: 0 0 42% 0;
  background:
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(255, 230, 120, 0.5), transparent 60%),
    linear-gradient(180deg, #8ad8f8 0%, #5ec8e8 55%, #3ebfc8 100%);
  z-index: -2;
}

.hero-shore {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background:
    radial-gradient(ellipse 80% 40% at 20% 30%, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(180deg, #36c4b8 0%, #4ecfc0 18%, #f4d89a 42%, #ebd07a 100%);
  z-index: -2;
}

.hero-shore::before {
  content: "";
  position: absolute;
  top: 14%;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 20%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.45) 80%,
    transparent 100%
  );
  animation: foam 5s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes foam {
  0%,
  100% {
    transform: translateX(-2%);
    opacity: 0.5;
  }
  50% {
    transform: translateX(2%);
    opacity: 0.85;
  }
}

.hero-stage {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: clamp(0.5rem, 3vw, 2rem);
}

.hero-logo {
  width: min(640px, 108%);
  max-width: none;
  height: auto;
  margin: 0 0 -2rem -4%;
  animation: float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 22px 32px rgba(26, 61, 74, 0.22));
}

.hero-copy {
  padding-bottom: clamp(1.5rem, 5vh, 3.5rem);
  animation: rise 0.9s ease-out both;
}

.hero-copy h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.45);
}

.ticker {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--ocean-deep);
  letter-spacing: 0.04em;
}

.hero-tagline {
  margin: 0 0 1.5rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 500;
}

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

/* —— Sections —— */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem;
}

.section-inner {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  color: var(--ink);
  letter-spacing: 0.01em;
}

.section p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 500;
}

.section p strong {
  color: var(--ink);
  font-weight: 700;
}

.about {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.12) 100%
  );
}

.story {
  background: linear-gradient(
    180deg,
    rgba(46, 196, 182, 0.18) 0%,
    rgba(242, 213, 154, 0.25) 100%
  );
}

.story-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.75rem;
  margin-top: 1.5rem;
}

.story-links a {
  font-weight: 700;
  color: var(--ocean-deep);
  border-bottom: 2px solid rgba(26, 154, 158, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.story-links a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.token {
  background: rgba(255, 255, 255, 0.22);
}

.token-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 0;
  text-align: left;
}

.token-facts > div {
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(23, 107, 122, 0.2);
  border-radius: 14px;
}

.token-facts dt {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.token-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}

.ca {
  cursor: pointer;
  word-break: break-all;
  transition: color 0.2s ease;
}

.ca:hover {
  color: var(--ocean-deep);
}

.gallery {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(46, 196, 182, 0.16) 100%
  );
}

.gallery-inner {
  width: min(980px, 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: 1.75rem;
  text-align: left;
}

.gallery-item {
  margin: 0;
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.25s ease;
}

.gallery-open:hover {
  transform: scale(1.015);
}

.gallery-open img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-item figcaption {
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(16, 40, 48, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(920px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.55rem 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.join .social-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.social-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.15rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(23, 107, 122, 0.22);
  border-radius: 14px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--stroke);
}

.social-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.social-handle {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

/* —— Footer —— */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(224, 184, 106, 0.45) 100%);
}

.site-footer img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--white);
}

.site-footer p {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.disclaimer {
  max-width: 28rem;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: var(--ink-soft) !important;
  line-height: 1.45;
}

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

  .hero {
    align-items: center;
    padding-top: 5.5rem;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-logo {
    width: min(420px, 92vw);
    margin: 0 auto -0.5rem;
    order: -1;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0.5rem;
  }

  .hero-tagline {
    max-width: 22rem;
  }

  .hero-ctas {
    justify-content: center;
  }

  .join .social-row {
    grid-template-columns: 1fr;
  }

  .token-facts {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .btn-buy {
    display: none;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .hero-ctas .btn {
    width: 100%;
  }
}
