/* ─────────────────────────────────────────────────────────────────────────────
   meet-skippy — style.css
   Design language: dark space, GAP brand (#FF6B35 orange, #0B2447 navy, white)
   Apple glassmorphism content cards, 55+ premium demographic.
───────────────────────────────────────────────────────────────────────────── */

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #02060f;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Three.js canvas container ────────────────────────────────────────────── */
#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Chapter scaffold ─────────────────────────────────────────────────────── */
.chapter {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 40px 24px;
}

/* Chapter 1 is the hero — no card, content overlaid */
.chapter--hero {
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 80px;
}

/* Glassmorphism content card (chapters 2–6) */
.chapter-inner {
  max-width: 700px;
  width: 100%;
  background: rgba(11, 36, 71, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 0.5px rgba(255, 107, 53, 0.08) inset;
}

/* Hero text block — no card backdrop */
.chapter--hero .chapter-inner {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  text-align: center;
  padding: 0 24px 24px;
}

/* ── Chapter entrance animation ───────────────────────────────────────────── */
.chapter-inner {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.chapter--active .chapter-inner {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for hero (immediate) */
.chapter--hero.chapter--active .chapter-inner {
  transition-delay: 0.15s;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
.eyebrow {
  display: block;
  color: #FF6B35;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #ffffff;
}

.chapter-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
}

/* ── Hero specifics ───────────────────────────────────────────────────────── */
.chapter--hero h2 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

.chapter--hero .chapter-body {
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.cta-btn {
  display: inline-block;
  background: #FF6B35;
  color: #ffffff;
  border-radius: 12px;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.35);
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background: #ff824d;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 53, 0.5);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn--ghost {
  background: transparent;
  border: 2px solid #FF6B35;
  color: #FF6B35;
  box-shadow: none;
  margin-left: 12px;
}

.cta-btn--ghost:hover {
  background: rgba(255, 107, 53, 0.1);
}

/* ── Audio player ─────────────────────────────────────────────────────────── */
.audio-block {
  margin-top: 24px;
}

.audio-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 107, 53, 0.8);
  margin-bottom: 8px;
}

audio {
  width: 100%;
  border-radius: 8px;
  outline: none;
  accent-color: #FF6B35;
}

/* ── Demo widget placeholder ──────────────────────────────────────────────── */
.demo-widget-placeholder {
  margin-top: 28px;
  border: 1.5px dashed rgba(255, 107, 53, 0.35);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  color: rgba(255, 107, 53, 0.6);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(255, 107, 53, 0.04);
}

/* ── Partnership section — two columns on wide viewports ─────────────────── */
.partnership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}

.partnership-stat {
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: 12px;
  padding: 18px 20px;
}

.partnership-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: #FF6B35;
  line-height: 1.1;
  margin-bottom: 4px;
}

.partnership-stat span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ── CTA chapter footer disclosure ───────────────────────────────────────── */
.site-disclosure {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.6;
}

/* ── Divider line between chapters ───────────────────────────────────────── */
.chapter-divider {
  position: relative;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
  margin: 0;
  width: 100%;
}

/* ── Scroll cue (ch1) ─────────────────────────────────────────────────────── */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-cue svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 107, 53, 0.6);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  50%       { opacity: 0.8;  transform: translateY(4px); }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .partnership-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .chapter-inner {
    padding: 32px 24px;
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .cta-btn {
    width: 100%;
    text-align: center;
  }

  .cta-btn--ghost {
    margin-left: 0;
    margin-top: 12px;
  }
}

/* ── Reduced motion overrides ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .chapter-inner {
    transition: opacity 0.3s ease;
    transform: none !important;
  }

  .scroll-cue {
    animation: none;
  }

  .cta-btn:hover {
    transform: none;
  }
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
