/* ══════════════════════════════════════
   HOME PAGE — futuristic enhancements
   ══════════════════════════════════════ */

/* ── Hero grid overlay ── */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── Hero text animations ── */
.hero-eyebrow,
.hero-subtitle,
.hero-cta {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-title {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.red-word {
  color: var(--red);
}

.hero-eyebrow.visible  { opacity: 1; transform: none; transition-delay: 0.2s; }
.hero-title.visible    { opacity: 1; transform: none; transition-delay: 0.4s; }
.hero-subtitle.visible { opacity: 1; transform: none; transition-delay: 0.65s; }
.hero-cta.visible      { opacity: 1; transform: none; transition-delay: 0.85s; }

/* Trigger hero on load */
@keyframes heroLoad {
  to { opacity: 1; transform: none; }
}

/* ── Scroll hint arrow ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(192,57,43,0.8));
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ── Ticker ── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(192,57,43,0.2);
  border-bottom: 1px solid rgba(192,57,43,0.2);
  background: rgba(192,57,43,0.04);
  padding: 14px 0;
  white-space: nowrap;
}

.ticker {
  display: inline-flex;
  gap: 0;
  animation: tickerScroll 30s linear infinite;
}

.ticker span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 28px;
}

.ticker .sep {
  color: var(--red);
  padding: 0;
  font-size: 9px;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-wrap:hover .ticker {
  animation-play-state: paused;
}

/* ── Stats ── */
.stats-section {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  padding: 64px 48px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.stats-section.visible {
  opacity: 1;
  transform: none;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.stat-plus {
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 800;
  color: var(--red);
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(192,57,43,0.25);
}

/* ── Parallax breaks ── */
.parallax-break {
  position: relative;
  height: 65vh;
  min-height: 380px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.parallax-city {
  background-image: url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=1800&auto=format&fit=crop&q=80');
}

.parallax-phone {
  background-image: url('https://images.unsplash.com/photo-1512941937669-90a1b58e7e9c?w=1800&auto=format&fit=crop&q=80');
  background-position: center 40%;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.55) 100%);
}

.parallax-text {
  position: relative;
  z-index: 1;
  padding: 0 48px;
  max-width: 640px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.parallax-text.visible {
  opacity: 1;
  transform: none;
}

.parallax-text-right {
  margin-left: auto;
  text-align: right;
}

.parallax-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.parallax-text h2 {
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.parallax-cta {
  display: inline-block;
  margin-top: 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 26px;
  border: 1px solid rgba(192,57,43,0.7);
  color: var(--text);
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 14px rgba(192,57,43,0.2);
}

.parallax-cta:hover {
  background: var(--red);
  box-shadow: 0 0 28px var(--red-glow);
}

/* ── Scroll reveal base ── */
.reveal-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.visible {
  opacity: 1;
  transform: none;
}

.fade-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease, background 0.25s, box-shadow 0.25s;
}

.fade-card.visible {
  opacity: 1;
  transform: none;
}

/* ── Why DMM grid ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
}

.why-card {
  padding: 44px 36px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s, box-shadow 0.25s;
}

.why-card:hover {
  background: var(--red-subtle);
  box-shadow: inset 0 0 40px rgba(192,57,43,0.06);
}

.why-icon {
  font-size: 22px;
  color: var(--red);
  margin-bottom: 20px;
  display: block;
  line-height: 1;
}

.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Growth Section ── */
.growth-section {
  background: #080808;
  padding: 100px 48px;
  border-top: 1px solid rgba(192,57,43,0.2);
  border-bottom: 1px solid rgba(192,57,43,0.2);
}

.growth-header {
  text-align: center;
  margin-bottom: 72px;
}

.growth-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 16px;
}

.growth-chart {
  position: relative;
  max-width: 900px;
  margin: 0 auto 80px;
}

.growth-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bars-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  height: 300px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.bar-col {
  flex: 1;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 10px;
}

.bar-value {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
  min-height: 20px;
}

.bar-track {
  width: 100%;
  height: 240px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, var(--bar-color), rgba(192,57,43,0.4));
  border-radius: 2px 2px 0 0;
  transition: height 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  opacity: 0.6;
  box-shadow: 0 0 8px var(--red), 0 0 16px var(--red-glow);
}

.bar-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.growth-cta {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.growth-sub {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 28px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .stats-section {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 48px 24px;
  }

  .stat-divider { display: none; }

  .parallax-break {
    background-attachment: scroll;
    height: 55vw;
    min-height: 300px;
  }

  .parallax-text {
    padding: 0 24px;
  }

  .parallax-text-right {
    margin-left: 0;
    text-align: left;
  }

  .parallax-overlay {
    background: rgba(0,0,0,0.65);
  }
}
