/* ==========================================================================
   Vortexbuzz Voice. Home landing (Oscar Piastri style full-screen scroll).
   Built entirely on brand.css tokens so it matches the console and auth gate.
   Cream canvas, bronze accent, Playfair display. No em dashes.
   ========================================================================== */

html { scroll-behavior: smooth; }

/* Keep page above the shared warm atmosphere */
.home-nav, main, .home-footer { position: relative; z-index: 2; }

/* Layout -------------------------------------------------------------------- */
.home-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.home-soft { color: var(--ink-muted); line-height: 1.65; }
.home-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.home-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* Nav ----------------------------------------------------------------------- */
.home-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding-block: 14px;
  background: rgba(251,247,239,0.72);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease), padding var(--dur-slow) var(--ease);
}
.home-nav.scrolled { background: rgba(251,247,239,0.9); border-bottom-color: var(--border); padding-block: 10px; }
.home-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.home-brand { display: inline-flex; align-items: center; gap: 11px; }
.home-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -0.02em; color: var(--ink); }
.home-nav-links { display: flex; align-items: center; gap: 28px; }
.home-nav-links a { font-size: 0.92rem; color: var(--ink-muted); font-weight: 500; transition: color var(--dur); }
.home-nav-links a:hover { color: var(--ink); }
.home-nav-cta { display: flex; align-items: center; gap: 10px; }

/* Panels -------------------------------------------------------------------- */
.home-panel {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 96px; box-sizing: border-box; position: relative;
}
.home-h2 { max-width: 22ch; margin-top: 14px; margin-bottom: 42px; color: var(--ink); }
.home-hero-title { max-width: 17ch; margin: 16px 0 22px; }
.home-hero-sub { max-width: 56ch; }

/* Scroll cue ---------------------------------------------------------------- */
.home-scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--border-strong); border-radius: var(--r-pill);
  display: grid; place-items: start center; padding-top: 7px;
}
.home-scroll-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: homeCue 1.6s ease-in-out infinite; }
@keyframes homeCue { 0%,100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(14px); opacity: 1; } }

/* Cards / steps ------------------------------------------------------------- */
.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.home-card { transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.home-card:hover { box-shadow: var(--shadow-raise); transform: translateY(-2px); border-color: var(--border-strong); }
.home-num { display: block; color: var(--accent); margin-bottom: 16px; }
.home-card h3 { color: var(--ink); margin-bottom: 10px; }

.home-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.home-step { border-top: 1px solid var(--border); padding-top: 22px; }
.home-step h3 { color: var(--ink); margin: 12px 0 10px; }

/* Checklist ----------------------------------------------------------------- */
.home-checklist { display: grid; gap: 14px; max-width: 62ch; margin: 0 0 8px; }
.home-checklist li { position: relative; padding-left: 30px; color: var(--ink-muted); line-height: 1.5; }
.home-checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 13px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* Dark closing panel (mirrors the auth proof panel) ------------------------- */
.home-dark { background: var(--nav); color: var(--nav-ink); overflow: hidden; }
.home-dark-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .34; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask: linear-gradient(to bottom, #000 30%, transparent 100%);
  mask: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.home-dark .home-wrap { position: relative; z-index: 1; }
.home-dark-kicker { color: var(--nav-ink-muted) !important; }
.home-dark-title { color: var(--nav-ink); max-width: 18ch; margin: 16px 0 20px; }
.home-dark-sub { color: var(--nav-ink-muted); max-width: 56ch; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.7; }
.home-dark .grad-text { background: var(--grad-volt); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.home-btn-onDark { color: var(--nav-ink); border-color: rgba(255,255,255,0.22); }
.home-btn-onDark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

/* Footer -------------------------------------------------------------------- */
.home-footer { padding: 34px 0; border-top: 1px solid var(--border); }
.home-footer .home-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.home-footer-brand { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.home-footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.home-footer-links a { color: var(--ink-muted); font-size: 0.9rem; }
.home-footer-links a:hover { color: var(--ink); }

/* Full-screen scroll-snap, once JS opts in ---------------------------------- */
body.home-snap #homeScroll { height: 100svh; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; }
body.home-snap .home-panel { scroll-snap-align: start; }
body.home-snap .home-footer { display: none; }

@media (max-width: 820px) {
  .home-nav-links { display: none; }
  .home-panel { padding: 104px 0 80px; }
  .home-h2 { margin-bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-scroll-dot { animation: none; }
  body.home-snap #homeScroll { scroll-snap-type: none; }
}
