/* ==========================================================================
   EXTENSIONPAD — LAYOUT & SECTIONS
   Navbar, hero visual story, pinned narrative, explore grid, footer.
   ========================================================================== */

/* 0. TOP ANNOUNCEMENT BAR */
.top-announcement-bar {
  position: relative;
  width: 100%;
  height: 34px;
  background: rgba(6, 14, 10, 0.94);
  border-bottom: 1px solid rgba(44, 247, 154, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--silver-muted);
}

.top-ann-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-ann-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-bright);
  box-shadow: 0 0 8px var(--mint-bright);
  animation: caPulse 2s infinite ease-in-out;
}

.top-ann-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(44, 247, 154, 0.12);
  border: 1px solid rgba(44, 247, 154, 0.3);
  color: var(--mint-bright);
  letter-spacing: 0.05em;
}

.top-ann-text {
  color: var(--silver-bright);
  font-weight: 500;
}

.top-ann-sep {
  color: rgba(255, 255, 255, 0.2);
}

.top-ann-ca {
  color: var(--silver-bright);
  font-weight: 600;
}

.top-ann-ca-val {
  color: var(--mint-bright);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* 1. BALANCED FLOATING NAVBAR */
.navbar-wrap {
  position: fixed;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
}

.navbar {
  pointer-events: all;
  width: min(95%, 1300px);
  height: 58px;
  background: rgba(7, 15, 10, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(221, 230, 225, 0.12);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(44, 247, 154, 0.04);
  transition: all 0.35s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(6, 10, 8, 0.92);
  border-color: rgba(221, 230, 225, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(44, 247, 154, 0.08);
  transform: translateY(-4px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--silver-bright);
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  white-space: nowrap;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--silver-muted);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--silver-bright);
}

.nav-link-studio {
  color: var(--mint-bright);
  background: rgba(44, 247, 154, 0.08);
  border: 1px solid rgba(44, 247, 154, 0.25);
  padding: 5px 11px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 12.5px;
}

.nav-link-studio:hover {
  background: rgba(44, 247, 154, 0.16);
  border-color: rgba(44, 247, 154, 0.45);
  color: #fff;
}

.studio-spark {
  font-size: 11px;
  color: var(--mint-bright);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Common button pill for nav */
.btn-nav {
  height: 36px;
  padding: 0 13px;
  border-radius: 99px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

/* CA SOON Badge */
.ca-soon-badge {
  height: 36px;
  padding: 0 12px;
  border-radius: 99px;
  background: rgba(44, 247, 154, 0.07);
  border: 1px solid rgba(44, 247, 154, 0.3);
  box-shadow: 0 0 12px rgba(44, 247, 154, 0.08);
  font-family: var(--font-mono);
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--silver-bright);
  transition: all 0.2s;
}

.ca-soon-badge:hover {
  background: rgba(44, 247, 154, 0.14);
  border-color: rgba(44, 247, 154, 0.5);
  box-shadow: 0 0 18px rgba(44, 247, 154, 0.2);
}

.ca-soon-badge .ca-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-bright);
  box-shadow: 0 0 8px var(--mint-bright);
  animation: caPulse 2s infinite ease-in-out;
}

.ca-soon-badge .ca-label {
  color: var(--silver-dark);
  font-weight: 500;
}

.ca-soon-badge .ca-val {
  color: var(--mint-bright);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* My Coins Nav Button */
.btn-nav-coins {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--silver-bright);
}

.btn-nav-coins:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-nav-coins .badge-count {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--mint-primary);
  color: #000;
  padding: 1px 6px;
  border-radius: 99px;
  font-weight: 700;
}

/* Phantom Wallet Nav Button */
.btn-nav-wallet {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-nav-wallet:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-nav-wallet .wallet-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
}

.btn-nav-wallet.wallet-connected {
  background: rgba(44, 247, 154, 0.08);
  border-color: rgba(44, 247, 154, 0.32);
  color: var(--mint-bright);
  font-family: var(--font-mono);
  font-size: 12px;
}

.btn-nav-wallet.wallet-connected .wallet-dot {
  background: var(--mint-bright);
  box-shadow: 0 0 8px var(--mint-bright);
}

/* Launch CTA Button */
.btn-nav-launch {
  background: var(--mint-primary);
  color: #040906;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(44, 247, 154, 0.3);
}

.btn-nav-launch:hover {
  background: var(--mint-bright);
  box-shadow: 0 0 24px rgba(44, 247, 154, 0.55);
  transform: translateY(-1px);
}

@keyframes caPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

/* 2. HERO SECTION */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 170px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.hero-badge-wrap {
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(48px, 6.2vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--silver-bright);
  max-width: 1100px;
  margin: 0 auto 24px auto;
  text-align: center;
}

.hero-title .text-emitted {
  color: var(--mint-bright);
  text-shadow: 0 0 35px rgba(44, 247, 154, 0.45);
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 400;
  color: var(--silver-muted);
  max-width: 680px;
  line-height: 1.5;
  margin: 0 auto 36px auto;
  text-align: center;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 54px auto;
}

/* Hero Visual Story (3-Stage Transformation) */
.hero-story-wrap {
  width: 100%;
  max-width: 1060px;
  margin: 20px auto 0 auto;
}

.hero-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
}

.story-coin-card {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
  box-shadow: var(--shadow-card);
  position: relative;
}

.story-coin-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.story-coin-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #12281c;
  border: 2px solid var(--mint-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--mint-bright);
}

.story-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.connector-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(221, 230, 225, 0.2), var(--mint-primary));
  position: relative;
}

.connector-pulse {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--mint-bright);
  top: -3px;
  animation: movePulse 2s linear infinite;
}

@keyframes movePulse {
  0% { left: 0%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* 3. SECTION TITLES */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px auto;
}

.section-tag {
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--silver-bright);
  margin-bottom: 18px;
}

.section-desc {
  font-size: 18px;
  color: var(--silver-muted);
  line-height: 1.6;
}

/* 4. PINNED HOW IT WORKS STORY */
.how-section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.story-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-mint);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 20px var(--mint-subtle);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--mint-bright);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--silver-bright);
  letter-spacing: -0.01em;
}

.step-text {
  font-size: 14px;
  color: var(--silver-muted);
  line-height: 1.5;
}

/* 5. SHOWCASE SECTION */
.showcase-section {
  padding: var(--space-5xl) 0;
}

.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.showcase-tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--silver-muted);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s var(--ease-out);
}

.showcase-tab-btn.active, .showcase-tab-btn:hover {
  background: rgba(44, 247, 154, 0.12);
  border-color: var(--mint-primary);
  color: var(--silver-bright);
  box-shadow: 0 0 16px var(--mint-dim);
}

.showcase-display {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* 6. EXPLORE PROJECTS GRID */
.explore-section {
  padding: var(--space-5xl) 0;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-mint);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 30px var(--mint-dim);
}

.project-card.featured {
  grid-column: span 2;
  background: radial-gradient(circle at 90% 10%, rgba(44, 247, 154, 0.08) 0%, var(--bg-card) 60%);
  border-color: rgba(44, 247, 154, 0.35);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #0f1d16;
  border: 1px solid var(--border-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--mint-bright);
}

.project-names h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--silver-bright);
}

.project-ticker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mint-bright);
}

.project-desc {
  font-size: 14px;
  color: var(--silver-muted);
  line-height: 1.5;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--silver-dark);
}

/* 7. FINAL DRAMATIC CTA */
.cta-section {
  padding: 140px 0 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box {
  background: radial-gradient(circle at 50% 0%, rgba(44, 247, 154, 0.15) 0%, rgba(7, 16, 11, 0.9) 70%);
  border: 1px solid var(--border-mint);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px var(--mint-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.cta-title {
  font-size: clamp(38px, 4.5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--silver-bright);
}

.cta-sub {
  font-size: 20px;
  color: var(--silver-muted);
  max-width: 540px;
}

/* 8. FOOTER */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 48px 0;
  font-size: 14px;
  color: var(--silver-dark);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a:hover {
  color: var(--silver-bright);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1150px) {
  .nav-links {
    gap: 12px;
  }
  .nav-link-x {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .navbar {
    width: 94%;
  }
}

@media (max-width: 768px) {
  .top-ann-text {
    display: none;
  }
  .btn-nav-coins {
    display: none;
  }
  .hero-title {
    font-size: 40px;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .story-steps-grid {
    grid-template-columns: 1fr;
  }
  .explore-grid {
    grid-template-columns: 1fr;
  }
  .project-card.featured {
    grid-column: span 1;
  }
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .navbar-wrap {
    top: 38px;
  }
  .navbar {
    height: 52px;
    padding: 0 8px 0 14px;
  }
  .brand-title {
    font-size: 15px;
  }
  .btn-nav {
    height: 32px;
    padding: 0 10px;
    font-size: 11.5px;
  }
  .ca-soon-badge {
    height: 32px;
    padding: 0 8px;
    font-size: 11px;
  }
  .btn-nav-launch span {
    display: none;
  }
}
}
