/* ============================================================
   home.css — Homepage-specific styles
   Zinflow v19
============================================================ */

/* ---------- HERO ---------- */
.hero-full {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 0 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  padding-bottom: 80px;
}
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-3d-bg { display: none; }
}

.hero-copy h1 { color: var(--cream-on-dark); font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1.1; }
.hero-copy h1 em { color: var(--gold-bright); font-style: italic; display: block; }
.hero-copy .lead { color: var(--muted-on-dark); max-width: 540px; }

.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px); z-index: 0;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,162,76,0.14) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,162,76,0.08) 0%, transparent 70%);
  bottom: 0; left: 0;
}

/* Hero badge floating cards */
.hero-badge {
  position: absolute; z-index: 10;
  background: rgba(13,12,16,0.92);
  backdrop-filter: blur(12px);

  border-radius: 14px; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(4,3,8,0.6), 0 0 24px rgba(200,162,76,0.1);
  animation: badge-float 6s ease-in-out infinite;
}
.hero-badge-1 { top: -20px; left: -30px; animation-delay: 0s; }
.hero-badge-2 { bottom: 10px; right: -30px; animation-delay: 3s; }
@media (max-width: 500px) {
  .hero-badge-1 { top: -14px; left: -10px; }
  .hero-badge-2 { bottom: 0; right: -10px; }
}
@keyframes badge-float {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.b-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: var(--charcoal); font-size: 1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.b-text strong { color: var(--cream-on-dark); font-size: 0.82rem; display: block; }
.b-text span { color: var(--muted-on-dark); font-size: 0.72rem; }

.hero-sphere-ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 420px; height: 420px; border-radius: 50%;

  z-index: 0; pointer-events: none;
  box-shadow: inset 0 0 80px rgba(200,162,76,0.04);
}
.hero-sphere-ring::before {
  content: "";
  position: absolute; inset: 20px; border-radius: 50%;

}

.stat-divider { display: none; }

/* Chat bubble animation */
.bubble-anim {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.bubble-anim.shown { opacity: 1; transform: translateY(0); }

/* ---------- LIVE COUNTER BAR ---------- */
.live-counter-bar {
  background: var(--charcoal-2);


  padding: 22px 0;
}
.counter-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.counter-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.counter-num {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 0 30px rgba(228,193,113,0.4);
}
.counter-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-on-dark); }
.counter-divider { width: 1px; height: 40px; background: var(--line-dark); }

/* ---------- SCENARIO TICKER ---------- */
.scenario-ticker {
  background: var(--charcoal);

  padding: 0; overflow: hidden; height: 52px;
  display: flex; align-items: center;
}
.ticker-track {
  display: flex; gap: 0; white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 32px; color: var(--muted-on-dark); font-size: 0.83rem;
}
.ticker-item .dot-g {
  width: 6px; height: 6px; border-radius: 50%; background: #25D366;
  flex-shrink: 0; animation: glow-pulse 2s ease-in-out infinite;
}
.ticker-item strong { color: var(--cream-on-dark); }

/* ---------- THE MOMENT SECTION ---------- */
.moment-section {
  background: var(--charcoal);
  padding: 120px 0;
  overflow: hidden; position: relative;
}
.moment-section::before { display: none; }
.moment-section::after { display: none; }
.moment-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
@media (max-width: 900px) { .moment-inner { grid-template-columns: 1fr; gap: 48px; } }

.moment-text .sec-num { color: var(--gold-bright); font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; }
.moment-text h2 { color: var(--cream-on-dark); font-size: clamp(2rem, 3.5vw, 3rem); margin: 14px 0 20px; line-height: 1.15; }
.moment-text h2 em { color: var(--gold-bright); font-style: italic; }
.moment-text p { color: var(--muted-on-dark); font-size: 1.05rem; line-height: 1.75; margin-bottom: 16px; }
.moment-highlight { color: var(--gold-bright) !important; font-weight: 600; }

.race-container {
  background: rgba(13,12,16,0.8);
  border-radius: 20px; padding: 36px; position: relative;
}
.race-title {
  text-align: center; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted-on-dark); margin-bottom: 28px;
}
.race-row { margin-bottom: 24px; }
.race-row:last-of-type { margin-bottom: 0; }
.race-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.race-who { font-size: 0.82rem; font-weight: 600; color: var(--cream-on-dark); }
.race-time { font-size: 0.82rem; color: var(--muted-on-dark); }
.race-bar-track {
  height: 10px; background: rgba(255,255,255,0.06);
  border-radius: 99px; overflow: hidden;
}
.race-bar-fill {
  height: 100%; border-radius: 99px;
  width: 0%; transition: width 1.8s cubic-bezier(0.16,1,0.3,1);
}
.race-bar-fill.zinflow {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  box-shadow: 0 0 16px rgba(228,193,113,0.5);
}
.race-bar-fill.human { background: rgba(167,158,140,0.3); }
.race-bar-fill.competitor { background: rgba(100,80,60,0.5); }
.race-winner {
  text-align: center; margin-top: 20px; padding-top: 20px;

}
.race-winner span {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,162,76,0.12);
  color: var(--gold-bright); border-radius: 99px;
  padding: 8px 18px; font-size: 0.82rem; font-weight: 600;
}
.race-note {
  margin-top: 16px; padding: 18px;
  background: rgba(200,162,76,0.06);
  border-radius: 12px; font-size: 0.8rem; color: var(--muted-on-dark); line-height: 1.6;
}
.race-note strong { color: var(--gold-bright); display: block; margin-bottom: 4px; }

/* ---------- STATS SECTION ---------- */
.stats-section {
  background: var(--charcoal-2); padding: 100px 0; position: relative;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 2px;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-block {
  background: var(--charcoal);
  padding: 48px 36px; text-align: center;
  transition: border-color 0.3s, background 0.3s;
  position: relative; overflow: hidden;
}
.stat-block::before { display: none; }
.stat-block:hover { }
.stat-block:hover::before { opacity: 1; }
.stat-val {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700;
  color: var(--gold-bright); line-height: 1;
  text-shadow: 0 0 40px rgba(228,193,113,0.35);
  display: block; margin-bottom: 10px;
}
.stat-block p { color: var(--muted-on-dark); font-size: 0.9rem; margin: 0; }
.gold-em-bright { color: var(--gold-bright) !important; font-style: italic; }

/* ---------- BEFORE / AFTER ---------- */
.beforeafter-section { padding: 120px 0; background: var(--charcoal); }
.beforeafter-section .section-head h2 { color: var(--cream-on-dark); }

.ba-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
@media (max-width: 800px) { .ba-grid { grid-template-columns: 1fr; } }

.ba-col { border-radius: 20px; padding: 40px; }
.ba-col.before { background: #fafafa; }
.ba-col.after {
  background: var(--charcoal);
  box-shadow: 0 20px 60px rgba(4,3,8,0.3), 0 0 40px rgba(200,162,76,0.08);
}
.ba-header { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.ba-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
  background: rgba(0,0,0,0.06);
}
.ba-col.after .ba-icon { background: rgba(200,162,76,0.15); }
.ba-title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.after-title { color: var(--cream-on-dark) !important; }

.ba-list { display: flex; flex-direction: column; gap: 14px; }
.ba-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(0,0,0,0.03);
}
.ba-after-item {
  background: rgba(200,162,76,0.06) !important;

}
.ba-mark {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.ba-no { background: rgba(200,50,50,0.1); color: #c43232; }
.ba-yes { background: var(--gold); color: var(--charcoal); }
.ba-item-text { font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); }
.after-text { color: var(--cream-on-dark) !important; }

/* ---------- HOW IT WORKS ---------- */
.how-section { background: var(--charcoal); padding: 120px 0; }
.how-inner {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start;
}
@media (max-width: 900px) { .how-inner { grid-template-columns: 1fr; gap: 48px; } }

.how-steps { display: flex; flex-direction: column; gap: 0; }
.how-step {
  display: flex; gap: 24px; padding: 28px 0;

  cursor: pointer; transition: opacity 0.2s;
}
.how-step:first-child { padding-top: 0; }

.how-step-num {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  color: var(--muted-on-dark); font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.3s, background 0.3s;
}
.how-step.active .how-step-num {
  border-color: var(--gold); color: var(--charcoal);
  background: var(--gold-bright);
}
.how-step-content h4 { color: var(--cream-on-dark); font-size: 1.05rem; margin-bottom: 4px; }
.how-step-content p { color: var(--muted-on-dark); font-size: 0.88rem; margin: 0; }
.how-step.active .how-step-content h4 { color: var(--gold-bright); }

.how-visual {
  position: sticky; top: 120px;
  border-radius: 20px; padding: 40px; min-height: 340px;
  display: flex; align-items: center; justify-content: center;
}
.how-vis-slide {
  display: none; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.how-vis-slide.active {
  display: flex; animation: fade-up 0.4s var(--ease) both;
}
.how-vis-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(200,162,76,0.1);
  font-size: 2.2rem;
  display: flex; align-items: center; justify-content: center;
}
.how-vis-slide h3 { color: var(--cream-on-dark); font-size: 1.3rem; }
.how-vis-slide p { color: var(--muted-on-dark); max-width: 280px; font-size: 0.9rem; }

/* ---------- SOURCES GRID ---------- */
.sources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .sources-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .sources-grid { grid-template-columns: 1fr; } }

.source-tile {
  background: var(--charcoal);
  border-radius: var(--radius-md); padding: 28px 24px; text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.source-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(4,3,8,0.5), 0 0 20px rgba(200,162,76,0.08);
}
.source-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(200,162,76,0.1);
  color: var(--gold-bright); font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.source-tile strong { color: var(--cream-on-dark); font-size: 0.95rem; display: block; margin-bottom: 4px; }
.source-tile span { color: var(--muted-on-dark); font-size: 0.8rem; }
.source-check {
  position: absolute; top: 14px; right: 14px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: var(--charcoal);
  font-size: 0.68rem; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- TIMELINE ---------- */
.timeline-grid {
  display: flex; flex-direction: column; gap: 0;
  position: relative; max-width: 800px; margin: 0 auto;
}
.timeline-grid::before {
  content: ""; position: absolute; top: 28px; bottom: 28px; left: 27px; width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  opacity: 0.3; z-index: 0;
}
.timeline-step {
  display: flex; align-items: flex-start; gap: 24px;
  padding: 0 0 36px; text-align: left; position: relative; z-index: 1;
}
.timeline-step:last-child { padding-bottom: 0; }
.tl-day {
  display: flex; align-items: center; justify-content: center;
  min-width: 56px; height: 56px; border-radius: 50%;
  color: var(--gold-bright); font-weight: 700; font-size: 0.7rem;
  background: var(--charcoal-2); flex-shrink: 0; text-align: center; line-height: 1.2;
  box-shadow: 0 0 20px rgba(200,162,76,0.25);
}
.tl-content { padding-top: 10px; }
.tl-content h4 { color: var(--cream-on-dark); font-size: 1rem; margin-bottom: 6px; }
.tl-content p { color: var(--muted-on-dark); font-size: 0.88rem; max-width: 580px; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--charcoal-2), var(--charcoal));
  border-radius: 28px; padding: 72px 60px;
  text-align: center; position: relative; overflow: hidden;
}
@media (max-width: 700px) { .cta-banner { padding: 48px 24px; } }
.cta-banner::before {
  content: ""; position: absolute;
  top: -60%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(200,162,76,0.15), transparent 70%);
  pointer-events: none;
}
.cta-eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 16px;
}
.cta-banner p { color: var(--muted-on-dark); font-size: 1.02rem; max-width: 560px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { color: var(--muted-on-dark); font-size: 0.82rem; margin-top: 18px; }

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- SEC NUM ---------- */
.sec-num {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-bright);
  display: block; margin-bottom: 12px;
}

/* ---------- FOOTER ---------- */
.site-footer { background: var(--charcoal); padding: 80px 0 36px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px;
}
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--muted-on-dark); font-size: 0.9rem; margin-top: 16px; max-width: 280px; line-height: 1.65; }
.footer-contact { display: flex; align-items: center; gap: 8px; color: var(--muted-on-dark); font-size: 0.88rem; margin-top: 12px; transition: color 0.2s; }
.footer-contact:hover { color: var(--gold-bright); }
.footer-col h4 { color: var(--cream-on-dark); font-family: var(--font-serif); font-size: 0.95rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted-on-dark); font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; }
.footer-bottom span { color: var(--muted-on-dark); font-size: 0.82rem; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 8px;
  color: var(--muted-on-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; transition: color 0.2s;
}
.social-row a:hover { color: var(--gold-bright); }
