/* =========================================================================
   HOME.CSS — landing page (core/index.html). Builds on site.css tokens.
   ========================================================================= */

/* ---------- Hero ---------- */
.h-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
}

.h-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(239, 68, 68, 0.22), transparent 60%),
    radial-gradient(40% 50% at 10% 90%, rgba(251, 146, 60, 0.08), transparent 60%);
}

.h-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 80% at 60% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 80% at 60% 30%, #000 20%, transparent 75%);
}

.h-hero-bg::after {
  content: '';
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: 46%;
  aspect-ratio: 1;
  background: url('../images/index_scene.png') no-repeat center / contain;
  filter: invert(1);
  opacity: 0.05;
}

.h-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .h-hero { padding: 6rem 0 5rem; }
  .h-hero-grid { grid-template-columns: 1.25fr 1fr; gap: 4rem; }
}

.h-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 30px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
}

.h-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.h-dot-green { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15); }

.h-hero-title {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.h-gradient {
  background: linear-gradient(100deg, #f87171 0%, #ef4444 35%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h-hero-lead {
  max-width: 34rem;
  margin: 0 0 2rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-2);
}

.h-hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.h-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin: 2.75rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.h-stats dt {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.h-stats dd {
  margin: 0.2rem 0 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Spotlight card ---------- */
.h-spotlight {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(239, 68, 68, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--surface);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.h-spotlight:hover { color: var(--text); transform: translateY(-4px); border-color: rgba(239, 68, 68, 0.4); }

.h-spotlight-top { display: flex; align-items: center; justify-content: space-between; }
.h-spotlight-go {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  transition: background 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.h-spotlight:hover .h-spotlight-go { background: var(--accent-strong); border-color: transparent; color: #fff; transform: rotate(45deg); }

.h-spotlight-date { display: flex; align-items: flex-end; gap: 0.9rem; margin-top: 0.5rem; }
.h-spotlight-day {
  font-size: clamp(4.5rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.h-spotlight-month {
  padding-bottom: 0.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.h-spotlight-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.h-spotlight-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.875rem; color: var(--text-2); }
.h-spotlight-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.h-spotlight-meta i { color: var(--text-3); }

.h-spotlight-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fca5a5;
}
.h-spotlight-cta i { transition: transform 0.2s var(--ease); }
.h-spotlight:hover .h-spotlight-cta i { transform: translateX(4px); }

/* ---------- Bento features ---------- */
.h-bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .h-bento { grid-template-columns: repeat(3, 1fr); }
  .h-feature-wide { grid-column: span 2; }
}

.h-feature {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent), var(--surface);
  overflow: hidden;
  transition: border-color 0.2s;
}
.h-feature:hover { border-color: var(--border-strong); }

.h-feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  color: #fca5a5;
  font-size: 1.1rem;
}

.h-feature h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.h-feature p { margin: 0; max-width: 30rem; font-size: 0.9rem; line-height: 1.55; color: var(--text-2); }

/* Decorative bracket in the wide card */
.h-mini-bracket {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  gap: 14px;
  opacity: 0.9;
}
@media (min-width: 992px) { .h-mini-bracket { display: flex; } .h-feature-wide p { max-width: 24rem; } }
.h-mb-col { display: flex; flex-direction: column; justify-content: space-around; gap: 8px; }
.h-mb-col span {
  display: block;
  width: 64px;
  height: 18px;
  border-radius: 5px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
}
.h-mb-col span.is-win { background: var(--accent-soft); border-color: var(--accent-ring); }

/* ---------- CTA band ---------- */
.h-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(239, 68, 68, 0.16), transparent 60%),
    var(--surface);
}
.h-cta .s-lead { margin-top: 0.4rem; }
.h-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (max-width: 575.98px) {
  .h-hero { padding-top: 3rem; }
  .h-hero-cta .s-btn, .h-cta-actions .s-btn { flex: 1 1 auto; }
  .h-stats { gap: 1.25rem 1.75rem; }
  .h-stats dd { font-size: 1.4rem; }
  .h-spotlight { padding: 1.4rem; }
  .h-cta { padding: 1.5rem; }
}
