/* Homepage layout */

.site-nav {
  border-bottom: 1px solid var(--surface-3);
  background: rgba(11, 15, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  padding-top: var(--safe-top);
  transform: translateZ(0);
}

.site-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 max(1rem, var(--safe-left)) 0 max(1rem, var(--safe-right));
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.site-nav-actions .site-nav-auth {
  display: none;
}

.site-nav-actions .site-nav-auth:not(.hidden) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .site-nav-links {
    display: flex;
  }

  .mobile-menu-btn {
    display: none !important;
  }
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 0.5rem;
}

.mobile-menu-btn:hover,
.mobile-menu-btn[aria-expanded="true"] {
  background: rgba(247, 147, 26, 0.1);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: calc(var(--header-h) + var(--safe-top));
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  z-index: 99;
  padding: 1.25rem max(1rem, var(--safe-right)) calc(1.5rem + var(--safe-bottom)) max(1rem, var(--safe-left));
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--surface-3);
  overflow-y: auto;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer .nav-link {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.mobile-drawer .nav-link:hover {
  background: rgba(247, 147, 26, 0.08);
}

.mobile-drawer .btn-primary {
  margin-top: 0.5rem;
  width: 100%;
}

body.drawer-open {
  overflow: hidden;
}

/* Sections */
.section-pad {
  padding: 3.5rem max(1rem, var(--safe-left)) 3.5rem max(1rem, var(--safe-right));
}

@media (min-width: 640px) {
  .section-pad {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .section-pad {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.section-title {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  color: #fff;
  line-height: 1.2;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.6;
  padding: 0 0.5rem;
}

@media (min-width: 640px) {
  .section-sub {
    margin-bottom: 3rem;
  }
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + var(--safe-top) + 2.5rem) max(1rem, var(--safe-right)) 3rem max(1rem, var(--safe-left));
  background: radial-gradient(ellipse at top, #1a1208 0%, var(--surface) 45%, #000 100%);
  min-height: min(90vh, 900px);
  min-height: min(90dvh, 900px);
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero {
    padding-top: calc(var(--header-h) + var(--safe-top) + 4rem);
    padding-bottom: 5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  margin-bottom: 1.75rem;
  max-width: 36rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero-actions .btn-primary,
.hero-actions .btn-ghost {
  width: 100%;
}

@media (min-width: 480px) {
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: auto;
    flex: 0 1 auto;
  }
}

.hero .stat-grid {
  margin-top: 2.5rem;
}

.stat-box {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--surface-3);
  border-radius: 0.75rem;
  padding: 1rem 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .stat-box {
    padding: 1.25rem;
  }
}

.stat-box strong {
  display: block;
  font-size: clamp(0.95rem, 3.5vw, 1.5rem);
  color: var(--btc);
  font-weight: 800;
  line-height: 1.2;
  word-break: break-word;
}

.stat-box span {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}

@media (min-width: 640px) {
  .stat-box span {
    font-size: 0.75rem;
  }
}

/* Features */
.feature-grid {
  display: grid;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .feature-grid {
    gap: 1.25rem;
  }
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: 1rem;
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .feature-card {
    padding: 1.5rem;
  }
}

.feature-card h4 {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

/* Milestones */
.milestone-timeline {
  display: grid;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .milestone-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .milestone-timeline {
    grid-template-columns: repeat(4, 1fr);
  }
}

.milestone {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: 1rem;
  padding: 1.25rem;
  border-top: 3px solid var(--btc);
}

.milestone-year {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--btc);
}

/* Market panel */
.market-panel {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: 1rem;
  overflow: hidden;
  max-width: var(--container);
  margin: 0 auto;
}

.market-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem;
}

@media (min-width: 640px) {
  .market-panel-header {
    padding: 1rem 1.25rem;
  }
}

.period-btns {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.period-btn {
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 0.375rem;
  background: var(--surface-3);
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  min-height: 2.25rem;
  min-width: 2.5rem;
}

.period-btn.active {
  background: var(--btc);
  color: #111;
  font-weight: 600;
}

.chart-wrap {
  height: clamp(180px, 40vw, 280px);
  padding: 0.75rem 1rem;
  position: relative;
}

.chart-live-tag {
  display: none;
}

.market-panel.chart-live .chart-wrap {
  box-shadow: inset 0 0 0 1px rgba(247, 147, 26, 0.15);
}

.live-stat {
  transition: color 0.3s;
}

.market-panel.chart-live .live-stat#mkt-price {
  color: var(--btc);
}

.market-stat span {
  font-weight: 700;
  color: #fff;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 1rem 1rem;
}

@media (min-width: 640px) {
  .market-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem 1.25rem 1.25rem;
  }
}

.market-stat label {
  display: block;
  font-size: 0.65rem;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .market-stat label {
    font-size: 0.7rem;
  }
}

/* Plans */
.plan-grid {
  display: grid;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .plan-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.plan-card {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

@media (min-width: 640px) {
  .plan-card {
    padding: 1.5rem;
  }
}

.plan-card:hover {
  border-color: rgba(247, 147, 26, 0.4);
  transform: translateY(-2px);
}

.plan-card.featured {
  border-color: var(--btc);
  box-shadow: 0 0 30px rgba(247, 147, 26, 0.1);
}

.plan-return {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  color: var(--btc);
  margin: 0.5rem 0;
}

.plan-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.plan-perks {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  flex: 1;
}

.plan-perks li {
  font-size: 0.8rem;
  color: #d1d5db;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--surface-3);
}

.plan-perks li::before {
  content: "✓ ";
  color: var(--btc);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: 1rem;
  padding: 1.25rem;
}

.testimonial .stars {
  color: var(--btc);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.testimonial p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.testimonial .author {
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

.testimonial .role {
  font-size: 0.75rem;
  color: #6b7280;
}

/* CTA */
.cta-band {
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.15), var(--surface-2));
  border-top: 1px solid var(--surface-3);
  border-bottom: 1px solid var(--surface-3);
  text-align: center;
  padding: 3rem max(1rem, var(--safe-left)) 3rem max(1rem, var(--safe-right));
}

@media (min-width: 640px) {
  .cta-band {
    padding: 4rem 1rem;
  }
}

.cta-band h2 {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 480px) {
  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Footer */
.site-footer {
  background: #080b10;
  padding: 2.5rem max(1rem, var(--safe-right)) calc(1.5rem + var(--safe-bottom)) max(1rem, var(--safe-left));
  border-top: 1px solid var(--surface-3);
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.btc-visual {
  aspect-ratio: 16 / 10;
  min-height: 12rem;
  background: linear-gradient(145deg, #1a1208, var(--surface-2));
  border-radius: 1rem;
  border: 1px solid var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btc-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(247, 147, 26, 0.2), transparent 60%);
}

.btc-visual img {
  position: relative;
  z-index: 1;
}

.section-alt {
  background: #0f1419;
}
