/* ============================================
   THE FALSE POSITIVE — Homepage Styles
   ============================================ */

/* ── Hero Section ──────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  gap: 0;
  position: relative;
  overflow: hidden;
}

/* Noise/grain background texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(67,102,113,0.10) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}



/* ── Hero Title Graphic ────────────────────── */
.hero-title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 780px;
  /* Negative margin pulls quote up to compensate for transparent PNG whitespace */
  margin-bottom: -3rem;
  position: relative;
}

.hero-title-graphic {
  width: 100%;
  max-width: 660px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(225, 233, 232, 0.12));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.hero-title-graphic:hover {
  transform: scale(1.015);
  filter:
    drop-shadow(0 0 28px rgba(225, 233, 232, 0.45))
    drop-shadow(0 0 10px rgba(225, 233, 232, 0.25));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Quote — minimal divider style ─────────── */
.hero-quote-container {
  max-width: 560px;
  width: 100%;
  margin: 0 auto var(--space-lg);
  padding: var(--space-md) 0;
  position: relative;
  text-align: center;
  border-top: 1px solid rgba(225, 233, 232, 0.08);
  border-bottom: 1px solid rgba(225, 233, 232, 0.08);
}

.hero-quote {
  font-family: 'Crimson Pro', 'Georgia', serif;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-style: italic;
  font-weight: 400;
  color: var(--off-white);
  line-height: 1.7;
  text-align: center;
  margin: 0 0 var(--space-sm);
  letter-spacing: 0.02em;
  opacity: 0.88;
}

.hero-quote-attr {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0;
  text-align: center;
  opacity: 0.7;
}

/* ── Description ─────────────────────── */
.hero-desc {
  max-width: 480px;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: var(--space-xl);
  text-align: center;
  letter-spacing: 0.01em;
  opacity: 0.8;
}

/* ── CTA Button ────────────────────────────── */
.hero-cta {
  margin-bottom: var(--space-2xl);
}

/* ── Scroll indicator ────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  z-index: 10;
  pointer-events: none;
  opacity: 0.5;
}

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

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50%       { transform: scaleY(1.3); opacity: 0.9; }
}

/* ── Section Cards ─────────────────────── */
.home-sections {
  padding: var(--space-2xl) var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
}

.home-sections-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2xl);
  text-align: center;
  opacity: 0.6;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.home-card {
  background: rgba(30, 34, 30, 0.7);
  border: 1px solid rgba(225, 233, 232, 0.06);
  border-radius: 8px;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.home-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 1px solid rgba(67, 102, 113, 0);
  transition: border-color 0.35s ease;
  pointer-events: none;
}

.home-card:hover {
  background: rgba(34, 39, 34, 0.85);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(67,102,113,0.2);
}

.home-card:hover::after {
  border-color: rgba(67, 102, 113, 0.25);
}

.card-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(225, 233, 232, 0.2);
  margin-bottom: -0.25rem;
}

.card-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--red-bright);
  opacity: 0.75;
}

.card-tag {
  display: none;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card-desc {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1rem;
  color: var(--silver);
  line-height: 1.7;
  flex: 1;
  opacity: 0.85;
}

.card-arrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--red-bright);
  margin-top: var(--space-sm);
  opacity: 0.7;
  transition: gap 0.25s ease, opacity 0.25s ease;
}

.home-card:hover .card-arrow {
  gap: 0.7rem;
  opacity: 1;
}

/* ── Probability Badge (L-style) ─────────── */
.l-probability {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--white);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  padding: 0.4rem 0.9rem;
  margin-top: var(--space-sm);
  margin-bottom: 4.5rem;
  max-width: 90vw;
  text-align: center;
  line-height: 1.6;
  opacity: 0.7;
}

.l-probability .prob-val {
  color: var(--silver);
  font-weight: 700;
}

@media (max-width: 480px) {
  .l-probability {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
    margin-bottom: 3.5rem;
  }
}

/* ── About Strip ───────────────────────────── */
.home-about {
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) var(--space-xl);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-handle {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.about-handle .handle-l {
  color: var(--red-bright);
  text-shadow: 0 0 14px rgba(91,141,161,0.5), 0 0 30px rgba(67,102,113,0.2);
}

.about-text {
  color: var(--silver);
  font-size: 1rem;
  line-height: 1.8;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: var(--space-2xl) var(--space-md); }
  .home-sections { padding: var(--space-2xl) var(--space-md); }
  .home-cards { grid-template-columns: 1fr; }
}

/* ── Death Note Book Parallax Section ─────────── */
.parallax-section {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: var(--space-3xl) 0;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Crucial for parallax reveal */
  filter: brightness(0.65) saturate(0.8);
  z-index: 1;
}

/* Fallback for iOS/Safari where fixed background attachment is broken */
@supports (-webkit-touch-callout: none) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg-primary) 0%,
    rgba(26, 29, 26, 0.4) 30%,
    rgba(26, 29, 26, 0.4) 70%,
    var(--bg-primary) 100%
  );
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--white);
  text-align: center;
  padding: 0 var(--space-xl);
  text-transform: uppercase;
  z-index: 3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

/* ── L Portrait in About ────────────────────── */
.about-l-image {
  margin-bottom: var(--space-lg);
}

.about-l-portrait {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 2px solid var(--border-red);
  filter: saturate(0.9) brightness(1.0);
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 30px rgba(67,102,113,0.2), 0 0 0 4px var(--bg-secondary);
  transition: filter var(--transition-slow), box-shadow var(--transition-slow);
}

.about-l-portrait:hover {
  filter: saturate(1) brightness(1);
  box-shadow: 0 0 40px rgba(67,102,113,0.35), 0 0 0 4px var(--bg-secondary);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .about-l-portrait { width: 120px; height: 120px; }
  .parallax-section {
    height: 240px;
    margin: var(--space-2xl) 0;
  }
  .parallax-text {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }
}
