/* ─────────────────────────────────────────
   pages/home.css — Hidden in Numbers
   Home page specific styles
───────────────────────────────────────── */

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-black);
}

#matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  padding-top: var(--nav-height);
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 0.9;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero-title .accent-line {
  color: var(--color-accent);
  display: block;
}

.hero-binary {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1.2vw, 0.85rem);
  color: var(--color-text-dim);
  letter-spacing: 0.12em;
  margin-top: 2rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--color-text-dim);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ════════════════════════════════════════
   BRAND STATEMENT
════════════════════════════════════════ */
.statement {
  padding: clamp(5rem, 10vh, 9rem) clamp(1.5rem, 6vw, 5rem);
  border-top: 1px solid var(--color-border);
}

.statement-inner {
  max-width: 900px;
}

.statement-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.statement-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.statement-body {
  font-size: var(--text-sm);
  line-height: 2;
  color: var(--color-text-mid);
  max-width: 600px;
}
.statement-body p + p { margin-top: 1rem; }

/* ════════════════════════════════════════
   COLLECTION GRID
════════════════════════════════════════ */
.collection {
  padding: clamp(4rem, 8vh, 7rem) clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--color-border);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--color-border);
}

/* Asymmetric layout — Card 1 is double-height featured */
.product-grid .product-card:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.product-grid .product-card:nth-child(2) { grid-column: span 4; }
.product-grid .product-card:nth-child(3) { grid-column: span 3; }
.product-grid .product-card:nth-child(4) { grid-column: span 4; }
.product-grid .product-card:nth-child(5) { grid-column: span 3; }

.product-grid .product-card .product-image { min-height: 280px; }
.product-grid .product-card:nth-child(1) .product-image { min-height: 560px; }

/* ════════════════════════════════════════
   CONCEPTS / DNA
════════════════════════════════════════ */
.concepts {
  padding: clamp(4rem, 8vh, 7rem) clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--color-border);
}

.concepts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  margin-top: var(--space-12);
}

/* ════════════════════════════════════════
   DECODER CTA SECTION
════════════════════════════════════════ */
.decoder-cta {
  position: relative;
  padding: clamp(5rem, 12vh, 10rem) clamp(1.5rem, 6vw, 5rem);
  border-top: 1px solid var(--color-border);
  overflow: hidden;
  text-align: center;
}

#decoder-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
}

.decoder-cta-inner {
  position: relative;
  z-index: 2;
}

.decoder-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.decoder-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  line-height: 1.05;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.decoder-heading span { color: var(--color-accent); }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .product-grid .product-card {
    grid-column: span 6 !important;
    grid-row: span 1 !important;
  }
  .product-grid .product-card .product-image {
    min-height: 320px !important;
  }
  .concepts-grid {
    grid-template-columns: 1fr;
  }
  .concept-card {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .concept-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(3rem, 14vw, 4rem);
  }
  .product-grid .product-card {
    grid-column: span 12 !important;
  }
  .product-grid .product-card .product-image {
    min-height: 380px !important;
  }
}
