/* ============================================================
   VINYL 3D — Homepage (index.css)
   Hero · Intro · Stats · Features · Statement · Specs
   Testimonials · Pre-Order
   ============================================================ */

/* ═══════════════════════════════════════════════════════════════
   HERO SCROLL SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero-scroll-section {
  /* 600vh gives ~3s of comfortable scrolling at normal speed */
  height: 600vh;
  position: relative;
}

/* ── Loader Overlay ─────────────────────────────────────────── */
.hero-loader {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.hero-loader-inner {
  text-align: center;
  width: 260px;
}

.hero-loader-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-load-track {
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.hero-load-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transition: width 0.1s linear;
  border-radius: 2px;
}

/* ── Canvas Sticky Wrapper ──────────────────────────────────── */
.hero-canvas-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

#vinyl-canvas {
  display: block;
  max-width: 100%;
  max-height: 100vh;
  object-fit: cover;
}

/* ── Bottom gradient — fades canvas into dark ───────────────── */
.hero-canvas-grad {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 280px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}

/* ── Text Layers ────────────────────────────────────────────── */
.hero-text-intro,
.hero-text-mid,
.hero-text-end {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: min(680px, 90vw);
  pointer-events: none;
  user-select: none;
  /* JS controls opacity and Y transform */
}

.hero-text-intro {
  top: 50%;
  transform: translate(-50%, -50%);
}

.hero-text-intro .label {
  display: block;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-text-intro h1 {
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

.hero-text-mid {
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.hero-text-mid p {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

.hero-text-end {
  bottom: 14%;
  opacity: 0;
  pointer-events: auto; /* CTA buttons need to be clickable */
}

.hero-text-end .label {
  display: block;
  margin-bottom: 1rem;
}

.hero-text-end p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
  margin-bottom: 2rem;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Scroll Hint ────────────────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.hero-scroll-line {
  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.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ═══════════════════════════════════════════════════════════════
   INTRO SECTION
   ═══════════════════════════════════════════════════════════════ */
.intro-section {
  background: var(--bg);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════════════ */
.stats-section {
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  position: relative;
  text-align: center;
  padding: 2rem 1rem;
}

.stat-divider {
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border-gold);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-divider:nth-child-of-type(2) {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════════ */
.features-section {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: border-color var(--transition-normal),
              transform var(--transition-normal),
              box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 8px 40px rgba(201, 168, 76, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.04));
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.feature-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.feature-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--border-gold);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   STATEMENT
   ═══════════════════════════════════════════════════════════════ */
.statement-section {
  background: var(--bg-secondary);
  text-align: center;
}

.statement-inner {
  max-width: 780px;
  margin: 0 auto;
}

.statement-inner .label {
  display: block;
  margin-bottom: 2rem;
}

.statement-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 2rem;
  position: relative;
}

.statement-quote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: -1.5rem;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   TECHNICAL SPECS
   ═══════════════════════════════════════════════════════════════ */
.specs-section {
  background: var(--bg);
}

.specs-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: center;
  margin-top: 1rem;
}

/* Decorative record rings */
.specs-ring-wrap {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 0 auto;
}

.specs-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.specs-ring-1 {
  width: 100%;
  height: 100%;
  animation: ringPulse 4s ease-in-out infinite;
}

.specs-ring-2 {
  width: 72%;
  height: 72%;
  border-color: rgba(201,168,76,0.4);
  animation: ringPulse 4s ease-in-out infinite 0.5s;
}

.specs-ring-3 {
  width: 42%;
  height: 42%;
  border-color: rgba(201,168,76,0.6);
  background: radial-gradient(circle, rgba(201,168,76,0.08), transparent 70%);
  animation: ringPulse 4s ease-in-out infinite 1s;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.specs-ring-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
}

/* Spec table */
.specs-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.specs-group {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.specs-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.06);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-key {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.spec-val {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .specs-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .specs-ring-wrap {
    width: 240px;
    height: 240px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════════ */
.testimonials-section {
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              transform var(--transition-normal);
}

.testimonial-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 6px 32px rgba(201,168,76,0.08);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.testimonial-quote {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.5rem;
  border: none;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PRE-ORDER / CTA
   ═══════════════════════════════════════════════════════════════ */
.preorder-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.preorder-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.preorder-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.preorder-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: 0.4rem 1rem;
  border-radius: 100px;
}

/* Pricing block */
.preorder-pricing {
  margin: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.price-tag {
  text-align: left;
}

.price-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.price-unit {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-divider {
  width: 1px;
  height: 80px;
  background: var(--border-gold);
}

.price-details {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.price-detail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.price-detail-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* Email form */
.preorder-form {
  margin-top: 2.5rem;
}

.preorder-email-form {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto;
}

.preorder-input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition-normal);
}

.preorder-input::placeholder {
  color: var(--text-dim);
}

.preorder-input:focus {
  border-color: var(--gold);
}

.preorder-note {
  font-size: 0.775rem;
  color: var(--text-dim);
  margin-top: 1rem;
}

/* Units progress */
.preorder-units {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.units-bar {
  width: 100%;
  max-width: 400px;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin: 0 auto 0.85rem;
  overflow: hidden;
}

.units-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 4px;
  animation: fillPulse 3s ease-in-out infinite alternate;
}

@keyframes fillPulse {
  from { opacity: 0.85; }
  to { opacity: 1; }
}

.units-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .preorder-email-form {
    flex-direction: column;
  }

  .preorder-pricing {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    text-align: left;
  }

  .price-divider {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE (≤ 768px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Hero: reduce scroll height so it doesn't feel endless */
  .hero-scroll-section {
    height: 420vh;
  }

  /* CTA buttons stack vertically */
  .hero-cta-row {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-cta-row .btn {
    width: min(320px, 90vw);
    justify-content: center;
  }

  /* End text panel: push up slightly so CTA clears nav-safe zone */
  .hero-text-end {
    bottom: 8%;
  }

  /* Stats: 2-column on mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hide the vertical dividers that don't make sense in 2-col */
  .stat-item:nth-child(3) .stat-divider {
    display: none;
  }

  /* Statement: hide the oversized quote glyph that clips on narrow screens */
  .statement-quote::before {
    display: none;
  }

  /* Testimonials: full-width single column */
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* Feature cards: full-width */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Spec ring: smaller on mobile */
  .specs-ring-wrap {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  /* Even shorter scroll height on small phones */
  .hero-scroll-section {
    height: 360vh;
  }

  /* Tighten up feature card padding */
  .feature-card {
    padding: 1.75rem;
  }

  /* Tighten testimonial card padding */
  .testimonial-card {
    padding: 1.5rem;
  }

  /* Price amount slightly smaller */
  .price-amount {
    font-size: 2.75rem;
  }
}
