/* ============================================================
   Landing Page Styles — Speaky-Spooky
   ============================================================ */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-podium-left,
.hero-podium-right {
  position: absolute;
  bottom: 0;
  width: 38%;
  height: 70%;
  opacity: 0.04;
}
.hero-podium-left {
  left: 0;
  background: linear-gradient(135deg, transparent 40%, var(--crimson) 100%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.hero-podium-right {
  right: 0;
  background: linear-gradient(225deg, transparent 40%, var(--gold) 100%);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.hero-line-left,
.hero-line-right {
  position: absolute;
  top: var(--nav-h);
  width: 1px;
  height: 40%;
  opacity: 0.15;
}
.hero-line-left  { left: 10%;  background: linear-gradient(to bottom, var(--crimson), transparent); }
.hero-line-right { right: 10%; background: linear-gradient(to bottom, var(--gold), transparent); }

.hero-particles {
  position: absolute;
  inset: 0;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
  padding-bottom: 80px;
}
.hero-eyebrow { margin-bottom: 24px; animation: fadeUp 0.8s 0.2s both; }
.hero-title {
  animation: fadeUp 0.8s 0.35s both;
  max-width: 800px;
}
.hero-title-accent {
  color: var(--gold);
  font-style: italic;
}
.hero-sub {
  max-width: 560px;
  margin-top: 24px;
  animation: fadeUp 0.8s 0.5s both;
}
.hero-br { display: none; }
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  animation: fadeUp 0.8s 0.65s both;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 64px;
  animation: fadeUp 0.8s 0.8s both;
}
.hero-stat {
  text-align: center;
  padding: 0 40px;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat-num {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-num::after { content: '+'; }
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  white-space: nowrap;
}
.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--ink-border);
  flex-shrink: 0;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 0.8s 1.2s both;
}
.hero-scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── About ── */
.about-section { background: var(--ink-mid); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-pillars { display: flex; flex-direction: column; gap: 20px; }
.pillar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-md);
  background: var(--ink-surface);
  transition: var(--transition);
}
.pillar:hover { border-color: var(--gold); }
.pillar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.podium-graphic {
  display: flex;
  align-items: center;
  gap: 20px;
}
.podium-card {
  flex: 1;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-border);
}
.podium-card--prop {
  background: linear-gradient(135deg, rgba(196,164,74,0.06), rgba(196,164,74,0.02));
  border-color: rgba(196,164,74,0.2);
}
.podium-card--opp {
  background: linear-gradient(135deg, rgba(139,26,26,0.1), rgba(139,26,26,0.03));
  border-color: rgba(139,26,26,0.2);
}
.podium-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.podium-timer {
  font-family: var(--ff-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 12px;
}
.podium-card--opp .podium-timer { color: var(--crimson-light); }
.podium-vs {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Gallery ── */
.gallery-section { background: var(--ink); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.gallery-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 320px;
  gap: 16px;
}
.gallery-skeleton { background-size: 200% 100%; }
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(5,5,8,0.9), transparent);
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,5,8,0.97);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox.open { display: flex; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.lightbox-close:hover { background: var(--crimson); }
.lightbox-content { text-align: center; max-width: 90vw; }
.lightbox-content img { max-height: 75vh; border-radius: var(--radius-md); }
.lightbox-caption { color: var(--text-secondary); margin-top: 16px; font-size: 0.9rem; }

/* ── How It Works ── */
.hiw-section { background: var(--ink-mid); }
.mb-64 { margin-bottom: 64px; }
.hiw-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.hiw-step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}
.hiw-step-num {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(196,164,74,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--gold-pale);
}
.hiw-connector {
  flex-shrink: 0;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(196,164,74,0.2));
  margin-top: 26px;
}

/* ── Leaderboard Preview ── */
.lb-section { background: var(--ink); }
.lb-podium-display {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}
.lb-podium-item {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-border);
  min-width: 180px;
  position: relative;
  transition: var(--transition);
}
.lb-podium-item:hover { transform: translateY(-4px); }
.lb-gold {
  border-color: rgba(196,164,74,0.4);
  background: linear-gradient(180deg, rgba(196,164,74,0.08), transparent);
  padding-top: 48px;
}
.lb-silver, .lb-bronze {
  background: var(--ink-surface);
}
.lb-crown {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--gold);
}
.lb-rank {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.lb-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0 auto 12px;
  border: 2px solid var(--ink-border);
}
.lb-avatar--gold {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--gold);
}
.lb-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.lb-score {
  font-family: var(--ff-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.lb-badge { margin-top: 8px; }

/* ── CTA ── */
.cta-section { background: var(--ink-mid); }
.cta-box {
  position: relative;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-align: center;
}
.cta-bg-decor {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(139,26,26,0.15), transparent 60%),
              radial-gradient(ellipse at 20% 50%, rgba(196,164,74,0.06), transparent 50%);
}
.cta-inner {
  position: relative;
  z-index: 1;
  padding: 80px 40px;
}

/* ── Footer ── */
.footer {
  background: var(--ink-deep);
  padding: 72px 0 32px;
  border-top: 1px solid var(--ink-border);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.footer-link:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Link Button ── */
.link-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}
.link-btn:hover { color: var(--gold-light); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .hiw-track { flex-wrap: wrap; justify-content: center; }
  .hiw-connector { display: none; }
  .hiw-step { flex: 0 0 calc(50% - 16px); margin-bottom: 32px; }
}
@media (max-width: 768px) {
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .hero-stat { padding: 0 20px; }
  .hero-stat-divider { display: none; }
  .hero-br { display: block; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .podium-graphic { flex-direction: column; }
  .gallery-demo-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-item--tall, .gallery-item--wide { grid-row: span 1; grid-column: span 1; height: 220px; }
  .lb-podium-display { flex-direction: column; align-items: center; }
  .lb-podium-item { width: 100%; max-width: 300px; }
  .hiw-step { flex: 0 0 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links-group { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-inner { padding: 48px 24px; }
  .cta-box .flex-center { flex-direction: column; }
  .cta-box .btn { width: 100%; justify-content: center; }
  .lb-section .flex-between { flex-direction: column; align-items: flex-start; gap: 16px; }
}
