/* =============================================================
   BASEBULL — THE WORLD BELOW
   style.css
   ============================================================= */

/* ---------------------------------------------------------------
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
--------------------------------------------------------------- */
:root {
  /* Brand Palette */
  --bb-blue:       #226AE5;
  --bb-sky:        #3786F9;
  --bb-light-sky:  #4C9EFD;
  --bb-navy:       #0D2367;
  --bb-mountain:   #1A44B1;
  --bb-pale:       #A4CAFD;
  --bb-cloud:      #D3E3FD;
  --bb-white:      #FFFFFF;

  /* Typography */
  --font-display: 'Outfit', 'Space Grotesk', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;

  /* Transitions */
  --transition-fast:   0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow:   0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Z-index layers */
  --z-bg:       0;
  --z-clouds:   1;
  --z-deco:     2;
  --z-content:  10;
  --z-ground:   5;
  --z-nav:      100;
  --z-overlay:  50;
}

/* ---------------------------------------------------------------
   RESET & BASE
--------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bb-navy);
  color: var(--bb-cloud);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

/* ---------------------------------------------------------------
   KEYFRAME ANIMATIONS
--------------------------------------------------------------- */

/* Cloud drift */
@keyframes cloudDriftA {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(40px, -8px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes cloudDriftB {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(-30px, 5px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes cloudDriftC {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(20px, -12px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Floating elements */
@keyframes floatA {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  33%  { transform: translate3d(6px, -14px, 0) rotate(2deg); }
  66%  { transform: translate3d(-4px, -8px, 0) rotate(-1deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}
@keyframes floatB {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(-8px, -18px, 0) rotate(-3deg) scale(1.02); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
}
@keyframes floatC {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  50%  { transform: translate3d(4px, -10px, 0) scale(1.05); opacity: 1; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
}
@keyframes floatD {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.6; }
  50%  { transform: translate3d(-6px, -16px, 0) rotate(5deg); opacity: 0.9; }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.6; }
}
@keyframes floatE {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; }
  40%  { transform: translate3d(10px, -12px, 0) scale(1.1); opacity: 0.8; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; }
}

/* Energy orb glow pulse */
@keyframes orbPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(55, 134, 249, 0.5)); }
  50%       { filter: drop-shadow(0 0 20px rgba(55, 134, 249, 0.9)); }
}

/* Scroll reveal */
@keyframes revealUp {
  from { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.98); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* Nav scroll shimmer */
@keyframes navGlow {
  0%, 100% { border-bottom-color: rgba(34, 106, 229, 0.2); }
  50%       { border-bottom-color: rgba(34, 106, 229, 0.5); }
}

/* Phase card entrance */
@keyframes phaseIn {
  from { opacity: 0; transform: translate3d(-20px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------------------------------------------------------------
   ANIMATION UTILITY CLASSES
--------------------------------------------------------------- */
.cloud-drift-slow    { animation: cloudDriftA 18s ease-in-out infinite; }
.cloud-drift-slow2   { animation: cloudDriftB 20s ease-in-out infinite; }
.cloud-drift-medium  { animation: cloudDriftB 13s ease-in-out infinite; }
.cloud-drift-medium2 { animation: cloudDriftA 15s ease-in-out infinite 2s; }
.cloud-drift-fast    { animation: cloudDriftC 9s ease-in-out infinite; }

.float-a { animation: floatA 6s ease-in-out infinite; }
.float-b { animation: floatB 7.5s ease-in-out infinite 1.2s; }
.float-c { animation: floatC 5s ease-in-out infinite 0.5s; }
.float-d { animation: floatD 8s ease-in-out infinite 2s; }
.float-e { animation: floatE 10s ease-in-out infinite 0.8s; }

.orb-glow { animation: floatC 5s ease-in-out infinite 0.5s, orbPulse 3s ease-in-out infinite; }

/* ---------------------------------------------------------------
   REVEAL ON SCROLL
--------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.98);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* ---------------------------------------------------------------
   GLOBAL SECTION STYLING
--------------------------------------------------------------- */
section {
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  padding: 0 1.5rem;
  margin-bottom: 4rem;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--bb-light-sky);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--bb-white);
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(34, 106, 229, 0.4);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--bb-pale);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------------------------------------------------------------
   SECTION DIVIDER
--------------------------------------------------------------- */

.section-divider {
  width: 100%;
  line-height: 0;
  pointer-events: none;
  user-select: none;
}

/*
 * --bottom: sits absolute at the bottom of its parent section,
 * rotated 180° so the image points downward into the next section.
 */
.section-divider--bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  overflow: hidden;
}

.section-divider--bottom img {
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(180deg) translateY(1px);
  transform-origin: center center;
}

/*
 * Extra bottom padding so section content never hides
 * behind the overlapping divider image.
 */
#stats      { padding-bottom: clamp(80px, 10vw, 140px); }
#story      { padding-bottom: clamp(80px, 10vw, 140px); }
#how-to-buy { padding-bottom: clamp(80px, 10vw, 140px); }
#tokenomics { padding-bottom: clamp(80px, 10vw, 140px); }

/* --normal: overrides the default 180° rotation — keeps image as-is */
.section-divider--normal img {
  transform: translateY(1px) !important;
}

/* ---------------------------------------------------------------
   BUTTONS
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              filter var(--transition-fast);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

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

.btn:focus-visible {
  outline: 2px solid var(--bb-light-sky);
  outline-offset: 3px;
}

/* Primary: Basebull blue */
.btn-primary {
  background: linear-gradient(135deg, var(--bb-blue), var(--bb-sky));
  color: var(--bb-white);
  box-shadow: 0 4px 20px rgba(34, 106, 229, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(55, 134, 249, 0.6);
  filter: brightness(1.1);
}

/* Secondary: dark navy + blue border */
.btn-secondary {
  background: rgba(13, 35, 103, 0.85);
  color: var(--bb-pale);
  border: 1px solid rgba(76, 158, 253, 0.5);
}
.btn-secondary:hover {
  background: rgba(26, 68, 177, 0.7);
  border-color: var(--bb-light-sky);
  box-shadow: 0 4px 16px rgba(76, 158, 253, 0.3);
}

/* Outline: subtle chart button */
.btn-outline {
  background: transparent;
  color: var(--bb-pale);
  border: 1px solid rgba(164, 202, 253, 0.35);
}
.btn-outline:hover {
  background: rgba(34, 106, 229, 0.15);
  border-color: var(--bb-pale);
}

/* Sizes */
.btn-sm  { padding: 0.55rem 1.1rem; font-size: 0.78rem; }
.btn-lg  { padding: 1rem 2.5rem; font-size: 1rem; }

/* ---------------------------------------------------------------
   CONTRACT COPY COMPONENT
--------------------------------------------------------------- */
.contract-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(13, 35, 103, 0.7);
  border: 1px solid rgba(76, 158, 253, 0.4);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  padding: 0.65rem 1.1rem;
  backdrop-filter: blur(6px);
  max-width: 100%;
}

.contract-box--dark {
  background: rgba(7, 17, 56, 0.8);
  border-color: rgba(76, 158, 253, 0.5);
}

.contract-box--footer {
  background: rgba(7, 17, 56, 0.9);
  border-color: rgba(76, 158, 253, 0.3);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.contract-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--bb-light-sky);
  text-transform: uppercase;
  flex-shrink: 0;
}

.contract-address {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.65rem, 1.3vw, 0.82rem);
  color: var(--bb-cloud);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.btn-copy {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--bb-sky);
  background: rgba(34, 106, 229, 0.2);
  border: 1px solid rgba(34, 106, 229, 0.4);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  transition: background var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-copy:hover {
  background: rgba(34, 106, 229, 0.4);
  color: var(--bb-white);
}
.btn-copy:focus-visible {
  outline: 2px solid var(--bb-light-sky);
  outline-offset: 2px;
}
.btn-copy.copied {
  background: rgba(34, 229, 130, 0.2);
  color: #4cffaa;
  border-color: rgba(34, 229, 130, 0.4);
}

.btn-copy-sm {
  padding: 0.25rem 0.55rem;
  font-size: 0.62rem;
}

/* ---------------------------------------------------------------
   NAVIGATION
--------------------------------------------------------------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  transition: background var(--transition-smooth), border-bottom var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(9, 21, 64, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 106, 229, 0.25);
  animation: navGlow 4s ease-in-out infinite;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
}
.nav-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  animation: floatA 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(34, 106, 229, 0.45));
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--bb-white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--bb-pale);
  padding: 0.4rem 0.75rem;
  transition: color var(--transition-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--bb-sky);
  transition: width var(--transition-fast), left var(--transition-fast);
}
.nav-link:hover {
  color: var(--bb-white);
}
.nav-link:hover::after {
  width: 70%;
  left: 15%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Live Market Cap widget */
.nav-mc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(13, 35, 103, 0.7);
  border: 1px solid rgba(76, 158, 253, 0.3);
  padding: 0.38rem 0.75rem;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  backdrop-filter: blur(6px);
}

/* Blinking green dot */
@keyframes mcDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.7); }
}
.nav-mc-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.8);
  animation: mcDotBlink 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

.nav-mc-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--bb-light-sky);
  text-transform: uppercase;
}

.nav-mc-value {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: #2ecc71;
  letter-spacing: 0.05em;
  min-width: 3.5rem;
  text-align: left;
}

/* Hide on small screens — already cramped */
@media (max-width: 1100px) {
  .nav-mc { display: none; }
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bb-pale);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------
   HERO SECTION
--------------------------------------------------------------- */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

/* Background image layer */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-bg);
}
.hero-bg-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-mountain-layers {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: bottom;
  opacity: 0.7;
}

/* Clouds */
.hero-clouds {
  position: absolute;
  inset: 0;
  z-index: var(--z-clouds);
  pointer-events: none;
}

.cloud {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.cloud-distant {
  top: 12%;
  left: -5%;
  width: 35%;
  opacity: 0.55;
}
.cloud-wide {
  top: 18%;
  right: -3%;
  width: 30%;
  opacity: 0.45;
}
.cloud-normal {
  top: 22%;
  left: 15%;
  width: 22%;
  opacity: 0.6;
}
.cloud-small {
  top: 30%;
  right: 20%;
  width: 14%;
  opacity: 0.5;
}
.cloud-angular {
  top: 8%;
  left: 42%;
  width: 18%;
  opacity: 0.4;
  transform: translateX(-50%);
}

/* Decorative elements */
.hero-decorations {
  position: absolute;
  inset: 0;
  z-index: var(--z-deco);
  pointer-events: none;
}

.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.deco-crystal-sm {
  width: clamp(60px, 6vw, 90px);
  top: 35%;
  right: 8%;
  opacity: 0.7;
}
.deco-crystal-cl {
  width: clamp(80px, 9vw, 130px);
  top: 55%;
  left: 5%;
  opacity: 0.6;
}
.deco-orb {
  width: clamp(50px, 5vw, 75px);
  top: 40%;
  left: 18%;
  opacity: 0.75;
}
.deco-particle {
  width: clamp(30px, 3.5vw, 50px);
  top: 60%;
  right: 22%;
  opacity: 0.5;
}
.deco-particle2 {
  width: clamp(20px, 2.5vw, 38px);
  top: 28%;
  right: 35%;
  opacity: 0.4;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: var(--z-content);
  text-align: center;
  padding: 8rem 2rem 14rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

/* Hero mascot — floats above the scene, not in content flow */
.hero-mascot-wrap {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  pointer-events: none;
}

.hero-mascot {
  display: block;
  width: clamp(130px, 14vw, 200px);
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(34, 106, 229, 0.6))
          drop-shadow(0 2px 16px rgba(0, 0, 0, 0.7));
  animation: floatA 6s ease-in-out infinite;
}

.hero-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--bb-light-sky);
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 1px 12px rgba(76, 158, 253, 0.6);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--bb-white);
  text-transform: uppercase;
  line-height: 0.95;
  text-shadow:
    0 0 40px rgba(34, 106, 229, 0.6),
    0 4px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--bb-pale);
  text-transform: uppercase;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 16px rgba(0,0,0,0.5);
}

.hero-description {
  font-size: clamp(0.88rem, 1.8vw, 1rem);
  color: rgba(211, 227, 253, 0.85);
  line-height: 1.8;
  margin-bottom: 2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* Contract box in hero */
#hero .contract-box {
  margin: 0 auto;
  max-width: 620px;
  display: inline-flex;
}

/* Ground foreground */
.hero-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-ground);
  pointer-events: none;
  line-height: 0;
}
.hero-ground img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
}

/* Bottom gradient overlay for hero readability */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(to top, rgba(13, 35, 103, 0.7) 0%, transparent 100%);
  z-index: 4;
  pointer-events: none;
}

/* ---------------------------------------------------------------
   STATS STRIP
--------------------------------------------------------------- */
#stats {
  background: linear-gradient(180deg, rgba(13, 35, 103, 0.95) 0%, rgba(9, 21, 64, 1) 100%);
  border-top: 1px solid rgba(34, 106, 229, 0.25);
  border-bottom: 1px solid rgba(34, 106, 229, 0.25);
  padding: 2rem 2rem;
  position: relative;
  z-index: 10;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stats-brand {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.stats-token-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--bb-white);
}
.stats-token-sub {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--bb-light-sky);
  text-transform: uppercase;
}

.stats-divider {
  width: 1px;
  height: 50px;
  background: rgba(76, 158, 253, 0.3);
  flex-shrink: 0;
}

.stats-grid {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  flex: 1;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--bb-light-sky);
  text-transform: uppercase;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bb-white);
}

.stat-contract {
  flex: 1;
  min-width: 0;
}
.stat-ca-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stat-ca-value {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------------
   STORY SECTION
--------------------------------------------------------------- */
#story {
  background: linear-gradient(180deg, #09153e 0%, #071138 50%, #0a1840 100%);
  padding: 6rem 2rem 5rem;
  position: relative;
}

.story-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(26, 68, 177, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(34, 106, 229, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.story-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.story-cloud-1 {
  top: 5%;
  left: -8%;
  width: 28%;
  opacity: 0.2;
}
.story-cloud-2 {
  top: 20%;
  right: -5%;
  width: 22%;
  opacity: 0.15;
}

#story .section-header {
  position: relative;
  z-index: 2;
}

/* Story chapters */
.story-chapter {
  max-width: 1100px;
  margin: 0 auto 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.story-chapter--reverse {
  direction: rtl;
}
.story-chapter--reverse > * {
  direction: ltr;
}

.chapter-image-wrap {
  position: relative;
}

.chapter-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.5),
    0 0 0 1px rgba(76, 158, 253, 0.2);
  transition: transform var(--transition-smooth);
}
.chapter-img:hover {
  transform: scale(1.02);
}

/* Decorative angular frame overlaid on chapter images */
.chapter-frame {
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(76, 158, 253, 0.3);
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  pointer-events: none;
}

.chapter-number {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--bb-light-sky);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--bb-white);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.chapter-text {
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  color: var(--bb-pale);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.chapter-emphasis {
  color: var(--bb-cloud);
  font-weight: 600;
  font-style: italic;
  line-height: 2;
}

/* Story climax */
.story-climax {
  position: relative;
  text-align: center;
  z-index: 2;
  margin-top: 4rem;
  padding: 4rem 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.story-wide-frame-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.story-wide-frame-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0.35;
}

.climax-question {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--bb-white);
  text-transform: uppercase;
  text-shadow: 0 2px 32px rgba(34, 106, 229, 0.5);
  margin-bottom: 0.5rem;
}

.climax-answer {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--bb-pale);
  text-transform: uppercase;
}

/* ---------------------------------------------------------------
   TOKENOMICS SECTION
--------------------------------------------------------------- */
#tokenomics {
  background: linear-gradient(180deg, #0a1840 0%, #0d1e50 50%, #091540 100%);
  padding: 6rem 2rem;
  position: relative;
}

/* Tokenomics decorations (positioned within section) */
.tknx-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.tknx-crystal-1 {
  width: clamp(50px, 5vw, 80px);
  top: 15%;
  right: 5%;
  opacity: 0.55;
}
.tknx-crystal-2 {
  width: clamp(70px, 7vw, 110px);
  bottom: 20%;
  left: 3%;
  opacity: 0.45;
}
.tknx-orb {
  width: clamp(40px, 4vw, 65px);
  top: 55%;
  right: 12%;
  opacity: 0.65;
}
.tknx-particle {
  width: clamp(25px, 3vw, 45px);
  top: 30%;
  left: 10%;
  opacity: 0.45;
}
.tknx-particle2 {
  width: clamp(18px, 2vw, 32px);
  bottom: 35%;
  right: 25%;
  opacity: 0.35;
}

#tokenomics .section-header,
#tokenomics .tokenomics-layout {
  position: relative;
  z-index: 2;
}

.tokenomics-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
  padding: 0 1rem;
}

.tokenomics-visual {
  text-align: center;
}
.coin-stack-img {
  width: min(340px, 100%);
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 8px 32px rgba(34, 106, 229, 0.35));
  transition: transform var(--transition-smooth);
}
.coin-stack-img:hover {
  transform: translateY(-8px) scale(1.02);
}

.tokenomics-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tknx-card {
  background: rgba(13, 35, 103, 0.6);
  border: 1px solid rgba(76, 158, 253, 0.25);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  padding: 1.5rem 1.75rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.tknx-card:hover {
  border-color: rgba(76, 158, 253, 0.5);
  background: rgba(26, 68, 177, 0.25);
}

.tknx-card--wide {
  grid-column: 1 / -1;
}

.tknx-card-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--bb-light-sky);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.tknx-card-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--bb-white);
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------
   HOW TO BUY SECTION
--------------------------------------------------------------- */
#how-to-buy {
  background: linear-gradient(180deg, #091540 0%, #0b1a4a 50%, #0d2060 100%);
  padding: 6rem 2rem;
  position: relative;
}

/* Angular glow radial bg */
#how-to-buy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(34, 106, 229, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.htb-steps {
  max-width: 900px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.htb-step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  background: rgba(13, 35, 103, 0.5);
  border: 1px solid rgba(76, 158, 253, 0.2);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  padding: 1.75rem 2rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.htb-step:hover {
  border-color: rgba(76, 158, 253, 0.45);
  background: rgba(26, 68, 177, 0.2);
}

.htb-step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  color: rgba(76, 158, 253, 0.3);
  letter-spacing: 0.05em;
  line-height: 1;
  flex-shrink: 0;
  width: 4rem;
  text-align: right;
}

.htb-step-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.08em;
  color: var(--bb-white);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.htb-step-text {
  font-size: clamp(0.88rem, 1.5vw, 0.95rem);
  color: var(--bb-pale);
  line-height: 1.7;
}
.htb-step-text strong {
  color: var(--bb-light-sky);
  font-weight: 700;
}

/* Angular connector between steps */
.htb-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, rgba(76, 158, 253, 0.4), rgba(76, 158, 253, 0.1));
  margin-left: calc(2rem + 4rem - 1px); /* align with step-num center */
  flex-shrink: 0;
}

.htb-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* ---------------------------------------------------------------
   ROADMAP SECTION
--------------------------------------------------------------- */
#roadmap {
  background: linear-gradient(180deg, #0d2060 0%, #091540 50%, #071138 100%);
  padding: 6rem 2rem 5rem;
  position: relative;
}

.roadmap-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.rm-cloud-1 {
  top: 10%;
  left: -10%;
  width: 25%;
  opacity: 0.12;
}
.rm-cloud-2 {
  bottom: 15%;
  right: -5%;
  width: 22%;
  opacity: 0.1;
}

#roadmap .section-header {
  position: relative;
  z-index: 2;
}

.roadmap-track {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

/* Track line between phases */
.roadmap-track::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 2px;
  background: linear-gradient(90deg,
    rgba(76, 158, 253, 0.5),
    rgba(76, 158, 253, 0.8),
    rgba(76, 158, 253, 0.5)
  );
  z-index: -1;
}

.roadmap-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.phase-marker {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, var(--bb-blue), var(--bb-navy));
  border: 2px solid rgba(76, 158, 253, 0.6);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(34, 106, 229, 0.4);
}

.phase-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--bb-white);
  letter-spacing: 0.05em;
}

.phase-card {
  background: rgba(13, 35, 103, 0.55);
  border: 1px solid rgba(76, 158, 253, 0.22);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  padding: 1.5rem 1.25rem;
  width: 100%;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.phase-card:hover {
  border-color: rgba(76, 158, 253, 0.45);
  background: rgba(26, 68, 177, 0.25);
}

.phase-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--bb-light-sky);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.phase-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  letter-spacing: 0.06em;
  color: var(--bb-white);
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.phase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.phase-list li {
  font-size: 0.82rem;
  color: var(--bb-pale);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}
.phase-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--bb-sky);
  font-size: 0.65rem;
  top: 0.15em;
}

.roadmap-disclaimer {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 3rem;
  font-size: 0.78rem;
  color: rgba(164, 202, 253, 0.55);
  font-style: italic;
}

/* ---------------------------------------------------------------
   COMMUNITY SECTION
--------------------------------------------------------------- */
#community {
  position: relative;
  padding: 8rem 2rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.community-scene-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.community-scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.community-scene-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(9, 21, 64, 0.78) 0%,
    rgba(13, 35, 103, 0.55) 50%,
    rgba(9, 21, 64, 0.8) 100%
  );
}

.community-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}

.community-text {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--bb-pale);
  line-height: 2;
  margin: 1.5rem 0 2.5rem;
}

.community-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------
   FINAL CTA SECTION
--------------------------------------------------------------- */
#cta {
  background: linear-gradient(180deg, #071138 0%, #0a1840 40%, #0d2367 100%);
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Angular mountain silhouette divider at top of CTA */
#cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,
    transparent,
    rgba(34, 106, 229, 0.5),
    rgba(76, 158, 253, 0.8),
    rgba(34, 106, 229, 0.5),
    transparent
  );
}

/* CTA decorations */
.cta-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.cta-crystal-1 {
  width: clamp(60px, 6vw, 90px);
  top: 20%;
  left: 5%;
  opacity: 0.55;
}
.cta-crystal-2 {
  width: clamp(80px, 9vw, 130px);
  bottom: 25%;
  right: 5%;
  opacity: 0.45;
}
.cta-orb {
  width: clamp(50px, 5vw, 75px);
  top: 55%;
  left: 15%;
  opacity: 0.65;
}
.cta-particle {
  width: clamp(28px, 3vw, 48px);
  top: 35%;
  right: 20%;
  opacity: 0.45;
}
.cta-particle2 {
  width: clamp(20px, 2vw, 35px);
  bottom: 40%;
  left: 30%;
  opacity: 0.35;
}
.cta-cloud {
  bottom: 5%;
  right: -5%;
  width: 28%;
  opacity: 0.12;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--bb-white);
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 4px 48px rgba(34, 106, 229, 0.5);
  margin: 1.5rem 0 1.25rem;
}

.cta-text {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--bb-pale);
  line-height: 2;
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------
   FOOTER
--------------------------------------------------------------- */
footer {
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem 3rem;
}

.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.footer-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.55;
}

/* Dark overlay */
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 56, 0.85) 0%, rgba(5, 12, 40, 0.95) 100%);
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--bb-white);
}
.footer-brand-sub {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--bb-light-sky);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--bb-pale);
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.footer-link:hover {
  color: var(--bb-white);
  border-bottom-color: var(--bb-sky);
}

.footer-contract {
  width: 100%;
  max-width: 600px;
}

.contract-box--footer {
  width: 100%;
  justify-content: center;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(164, 202, 253, 0.55);
  line-height: 1.7;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(164, 202, 253, 0.35);
  letter-spacing: 0.1em;
}

/* ===============================================================
   RESPONSIVE — TABLET  (≤ 1024px)
   =============================================================== */
@media (max-width: 1024px) {

  /* Nav */
  .nav-inner { gap: 1rem; padding: 0.75rem 1.25rem; }
  .nav-mc { display: none; } /* hide MC widget to save space */

  /* Hero mascot — shift down a bit on smaller viewports */
  .hero-mascot-wrap { top: 9%; }
  .hero-mascot { width: clamp(120px, 14vw, 180px); }

  /* Story */
  .story-chapter { gap: 2rem; }
  /* Keep 2-col but reduce gap */

  /* Tokenomics */
  .tokenomics-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .tokenomics-visual { order: -1; }
  .coin-stack-img { width: min(260px, 80%); }

  /* Roadmap → 2 columns */
  .roadmap-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .roadmap-track::before { display: none; }

  /* Hide heavy decorations */
  .deco-crystal-cl,
  .tknx-crystal-2,
  .cta-crystal-2 { display: none; }
}

/* ===============================================================
   RESPONSIVE — MOBILE  (≤ 768px)
   =============================================================== */
@media (max-width: 768px) {

  /* ----- GLOBAL ----- */
  body { overflow-x: hidden; }

  section { overflow: hidden; }

  /* ----- NAVBAR ----- */
  .nav-inner {
    padding: 0.6rem 1rem;
    gap: 0.5rem;
    position: relative;
  }
  .nav-hamburger { display: flex; }
  .nav-cta       { display: none; }
  .nav-mc        { display: none; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(7, 17, 56, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid rgba(34, 106, 229, 0.25);
    gap: 0;
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links li   { width: 100%; }
  .nav-link {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(76, 158, 253, 0.08);
  }
  .nav-logo img  { width: 52px; height: 52px; }
  .nav-logo-text { font-size: 0.95rem; }

  /* ----- HERO ----- */
  #hero { min-height: 100svh; }

  .hero-content {
    padding: 5rem 1.25rem 9rem;
    width: 100%;
  }

  /* Mascot: smaller & repositioned so it doesn't block text */
  .hero-mascot-wrap {
    top: 7%;
    left: 50%;
    transform: translateX(-50%);
  }
  .hero-mascot { width: clamp(90px, 22vw, 130px); }

  .hero-label   { font-size: 0.65rem; letter-spacing: 0.2em; }
  .hero-title   { font-size: clamp(2.6rem, 13vw, 3.5rem); margin-bottom: 0.75rem; }
  .hero-subtitle { font-size: 0.82rem; letter-spacing: 0.08em; }
  .hero-description { font-size: 0.85rem; line-height: 1.7; }

  /* Contract box — stack on mobile */
  .contract-box {
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .contract-label  { width: 100%; font-size: 0.6rem; }
  .contract-address {
    width: 100%;
    font-size: 0.62rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
  }
  .btn-copy { width: auto; align-self: flex-start; }

  /* Hero buttons — stack vertically */
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
    max-width: 320px;
    margin: 1.25rem auto 0;
  }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  /* Fewer clouds on mobile */
  .cloud-distant,
  .cloud-wide,
  .cloud-angular { display: none; }

  /* Fewer deco elements */
  .deco-crystal-sm,
  .deco-crystal-cl,
  .deco-particle2,
  .deco-orb { display: none; }

  /* ----- STATS ----- */
  #stats { padding: 1.5rem 1rem clamp(90px, 12vw, 130px); }

  .stats-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .stats-divider { display: none; }
  .stats-grid {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }
  .stat-contract { width: 100%; }
  .stat-ca-row   { flex-wrap: wrap; gap: 0.4rem; }
  .stat-ca-value {
    font-size: 0.6rem;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ----- STORY ----- */
  #story { padding: 3.5rem 1.25rem clamp(90px, 12vw, 130px); }

  #story .section-header { margin-bottom: 2.5rem; }

  .story-chapter,
  .story-chapter--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 0;
  }

  .chapter-img { clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%); }

  .chapter-title { font-size: 1.2rem; margin-bottom: 0.75rem; }
  .chapter-text  { font-size: 0.88rem; }

  .story-climax { padding: 2.5rem 1.25rem; }
  .climax-question { font-size: clamp(1.5rem, 7vw, 2rem); }
  .climax-answer   { font-size: clamp(1rem, 5vw, 1.5rem); }

  /* ----- TOKENOMICS ----- */
  #tokenomics { padding: 3.5rem 1.25rem clamp(90px, 12vw, 130px); }

  .tokenomics-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .tokenomics-visual { order: -1; }
  .coin-stack-img { width: min(220px, 70%); }

  .tokenomics-cards {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .tknx-card--wide {
    grid-column: 1 / -1;
  }
  .tknx-card { padding: 1rem 1.1rem; }
  .tknx-card-value { font-size: 1rem; }

  /* Hide tknx decorations */
  .tknx-crystal-1,
  .tknx-crystal-2,
  .tknx-orb,
  .tknx-particle,
  .tknx-particle2 { display: none; }

  /* ----- HOW TO BUY ----- */
  #how-to-buy { padding: 3.5rem 1.25rem clamp(90px, 12vw, 130px); }

  .htb-steps { padding: 0; gap: 0; }

  .htb-step {
    flex-direction: row;
    gap: 1rem;
    padding: 1.25rem 1.1rem;
    align-items: flex-start;
  }
  .htb-step-num {
    font-size: 1.6rem;
    width: 2.5rem;
    text-align: left;
    flex-shrink: 0;
  }
  .htb-step-title { font-size: 0.95rem; }
  .htb-step-text  { font-size: 0.85rem; }

  .htb-connector { margin-left: 1.75rem; height: 16px; }

  .htb-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    max-width: 320px;
    margin: 2rem auto 0;
  }
  .htb-cta .btn { width: 100%; justify-content: center; }

  /* ----- ROADMAP ----- */
  #roadmap { padding: 3.5rem 1.25rem; }

  .roadmap-track {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .roadmap-phase {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }
  .phase-marker {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
  }
  .phase-num { font-size: 0.9rem; }
  .phase-card { padding: 1rem 1.1rem; }
  .phase-title { font-size: 0.88rem; }
  .phase-list li { font-size: 0.8rem; }

  .rm-cloud-1, .rm-cloud-2 { display: none; }

  /* ----- COMMUNITY ----- */
  #community { padding: 5rem 1.25rem; min-height: auto; }

  .community-content { max-width: 100%; }
  .community-text { font-size: 0.9rem; line-height: 1.9; }

  .community-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    max-width: 300px;
    margin: 0 auto;
  }
  .community-buttons .btn { width: 100%; justify-content: center; }

  /* ----- FINAL CTA ----- */
  #cta { padding: 5rem 1.25rem; }

  .cta-headline { font-size: clamp(1.6rem, 7vw, 2.5rem); }
  .cta-text     { font-size: 0.9rem; }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    max-width: 300px;
    margin: 0 auto;
  }
  .cta-buttons .btn { width: 100%; justify-content: center; }

  /* Hide CTA decorations */
  .cta-crystal-1,
  .cta-crystal-2,
  .cta-orb,
  .cta-particle,
  .cta-particle2 { display: none; }

  /* ----- FOOTER ----- */
  footer { padding: 3.5rem 1.25rem 2rem; }
  .footer-content { gap: 1.25rem; }
  .footer-brand img { width: 52px; height: 52px; }
  .footer-brand-name { font-size: 1.15rem; }

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

  .footer-contract { width: 100%; }
  .contract-box--footer {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.4rem;
  }
  .contract-box--footer .contract-address {
    font-size: 0.58rem;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-disclaimer { font-size: 0.72rem; }
  .footer-copy { font-size: 0.65rem; }

  /* ----- SECTION DIVIDERS ----- */
  #stats, #story, #how-to-buy, #tokenomics {
    padding-bottom: clamp(60px, 8vw, 100px);
  }
}

/* ===============================================================
   RESPONSIVE — SMALL MOBILE  (≤ 480px)
   =============================================================== */
@media (max-width: 480px) {

  /* Hero */
  .hero-mascot-wrap { top: 6%; }
  .hero-mascot { width: clamp(75px, 20vw, 110px); }
  .hero-title  { font-size: clamp(2.2rem, 12vw, 3rem); }
  .hero-subtitle { font-size: 0.76rem; }
  .hero-description { font-size: 0.8rem; }
  .hero-content { padding-top: 4.5rem; }

  /* Sections */
  .section-title   { font-size: clamp(1.5rem, 8vw, 2rem); }
  .section-eyebrow { font-size: 0.65rem; }
  .cta-headline    { font-size: clamp(1.5rem, 8vw, 2rem); }

  /* Tokenomics cards → 1 column on very small screens */
  .tokenomics-cards { grid-template-columns: 1fr; }
  .tknx-card--wide  { grid-column: auto; }

  /* Roadmap → fully vertical */
  .roadmap-phase {
    flex-direction: column;
    align-items: flex-start;
  }
  .phase-marker {
    width: 3rem;
    height: 3rem;
  }

  /* HOW TO BUY — icon number smaller */
  .htb-step-num { font-size: 1.3rem; width: 2rem; }

  /* Buttons always full width */
  .btn { width: 100% !important; justify-content: center; }
  .hero-buttons,
  .htb-cta,
  .cta-buttons,
  .community-buttons { max-width: 100%; }

  /* Footer */
  .footer-links { gap: 0.75rem; }
}

/* ===============================================================
   RESPONSIVE — EXTRA SMALL  (≤ 360px)
   =============================================================== */
@media (max-width: 360px) {

  .hero-title { font-size: 2rem; }
  .nav-logo-text { display: none; } /* hide wordmark, keep logo only */
  .nav-logo img  { width: 44px; height: 44px; }

  .contract-address { font-size: 0.55rem; }

  .htb-step { padding: 1rem 0.75rem; }
  .phase-card { padding: 0.85rem 0.9rem; }
}
