/* ==========================================================================
   THE BURNING COIN (TBC) — RESPONSIVE STYLESHEET (MULTI-BREAKPOINT VERIFIED)
   Breakpoints: 360px, 375px, 390px, 430px, 768px, 1024px, 1440px
   ========================================================================== */

/* Global Mobile Guard */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* 1440px+ Widescreen Screens */
@media (min-width: 1440px) {
  .tbc-container {
    max-width: 1360px;
  }
}

/* 1025px - 1280px Laptops */
@media (max-width: 1280px) {
  .tbc-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
  }

  .tbc-coin-stage {
    max-width: 440px;
  }

  .tbc-dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 769px - 1024px Tablets */
@media (max-width: 1024px) {
  :root {
    --tbc-header-height: 70px;
  }

  .tbc-nav-logo-wrapper {
    width: 48px;
  }

  .tbc-section {
    padding-top: 70px;
    padding-bottom: 70px;
    overflow: hidden;
  }

  .tbc-nav-menu {
    display: none !important;
  }

  .tbc-mobile-toggle {
    display: flex !important;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .tbc-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .tbc-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

  .tbc-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
  }

  .tbc-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tbc-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tbc-concept-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tbc-concept-flow::before,
  .tbc-step-arrow-desktop {
    display: none;
  }

  .tbc-step-arrow-mobile {
    display: block;
  }

  .tbc-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tbc-roadmap-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .tbc-roadmap-timeline::before {
    display: none;
  }

  .tbc-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
  }

  .tbc-footer-logo-wrapper {
    width: 115px;
  }
}

/* 431px - 768px Mobile Landscape & Tablets */
@media (max-width: 768px) {
  :root {
    --tbc-header-height: 66px;
  }

  .tbc-container {
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .tbc-header {
    width: 100%;
    max-width: 100vw;
  }

  .tbc-nav-container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .tbc-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .tbc-nav-actions .wallet-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    height: 36px;
  }

  .tbc-nav-actions .wallet-btn .wallet-badge-env {
    display: none;
  }

  .tbc-nav-actions .wallet-dropdown {
    right: 0;
    left: auto;
    width: calc(100vw - 32px);
    max-width: 280px;
  }

  .tbc-nav-logo-wrapper {
    width: 44px;
  }

  .tbc-section {
    padding-top: 56px;
    padding-bottom: 56px;
    overflow: hidden;
  }

  .tbc-grid-2, .tbc-grid-3, .tbc-grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tbc-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tbc-roadmap-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tbc-cta-banner {
    padding: 40px 16px;
  }

  .tbc-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tbc-footer-logo-wrapper {
    width: 100px;
  }

  .tbc-footer-brand-desc {
    max-width: 100%;
  }

  .tbc-footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* 320px - 430px Standard & Small Mobile Viewports */
@media (max-width: 430px) {
  :root {
    --tbc-header-height: 62px;
  }

  .tbc-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tbc-nav-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tbc-nav-logo-wrapper {
    width: 40px;
  }

  .tbc-nav-actions {
    gap: 6px;
  }

  .tbc-nav-actions .wallet-btn {
    padding: 5px 10px;
    font-size: 0.74rem;
    height: 34px;
    gap: 5px;
  }

  .tbc-mobile-toggle {
    width: 24px;
    height: 18px;
  }

  .tbc-hero {
    min-height: auto;
    padding-top: calc(var(--tbc-header-height) + 20px);
    padding-bottom: 40px;
    overflow: hidden;
  }

  .tbc-hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem);
    line-height: 1.08;
    margin-bottom: 16px;
    word-break: break-word;
  }

  .tbc-hero-description {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 24px;
    padding: 0 4px;
  }

  .tbc-hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .tbc-hero-ctas .tbc-btn {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    font-size: 0.88rem;
  }

  .tbc-btn {
    width: 100%;
    justify-content: center;
  }

  .tbc-hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .tbc-stat-card {
    padding: 14px 10px;
  }

  .tbc-stat-value {
    font-size: 1.3rem;
  }

  .tbc-stat-label {
    font-size: 0.72rem;
  }

  .tbc-card {
    padding: 20px 14px;
  }

  .tbc-coin-stage {
    max-width: 260px;
    margin: 0 auto;
  }

  .tbc-floating-pill {
    display: none;
  }

  .tbc-cta-watermark {
    width: 220px;
  }

  .tbc-section-header {
    margin-bottom: 36px;
  }

  .tbc-section-header h2 {
    font-size: 1.75rem;
  }
}

