/* Home page only (redesign 2026-11). Shared tokens and nav/footer come from style.css. */
html, body { overflow-x: hidden; }
.h-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: 48px 0 88px; position: relative; }
.h-hero > div { flex: 1 1 440px; min-width: 0; position: relative; }
.badge { display: inline-flex; padding: 7px 14px; border: 1px solid #2c3244; border-radius: 999px; font-size: 13px; color: #c9c1ff; background: rgba(139, 124, 255, 0.08); }
.h-hero h1 { margin-top: 20px; font-size: clamp(44px, 6.4vw, 68px); line-height: 1.02; }
.h-hero h1 em { font-style: italic; color: var(--ember); }
.h-hero .lead { margin-top: 22px; color: #b4bdd0; }
.btn.light { background: var(--text); color: var(--bg); }
.btn.ghost { border: 1px solid #2c3244; color: var(--muted); }

/* flipping card stack */
.stack { height: 500px; position: relative; display: flex; justify-content: center; }
.stack .halo { position: absolute; inset: -60px -80px auto auto; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 124, 255, 0.28), transparent 65%); animation: glow 3.5s ease-in-out infinite; }
.stack .back { position: absolute; top: 60px; width: 290px; height: 370px; border-radius: 28px; }
.stack .b1 { background: #1b1840; border: 1px solid #2f2a63; transform: translateX(-50px) rotate(-9deg); }
.stack .b2 { background: #221e52; border: 1px solid #3a3480; transform: translateX(-25px) rotate(-4deg); }
.flipwrap { position: absolute; top: 44px; width: 290px; height: 370px; perspective: 1400px; }
.flipper { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: flip 7s cubic-bezier(.7, 0, .3, 1) infinite; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 28px; padding: 28px;
  display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.face.front { background: linear-gradient(160deg, #fff, #e6e2ff); color: #1a1638; }
.face.answer { transform: rotateY(180deg); background: linear-gradient(160deg, #7c6cf7, #4b3cc9); color: #fff; }
.face .tag { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; padding: 6px 10px; border-radius: 8px; background: #ece9ff; color: #6b5cf0; }
.face.answer .tag { background: rgba(255, 255, 255, 0.16); color: #fff; }
.face .q { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2; margin-top: 26px; }
.face .clue { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff4dc; color: #8a5a00; font-weight: 700; font-size: 15px; }
.face .grades { margin-top: auto; }
.face .grades span { padding: 10px 0; }
.chip { position: absolute; padding: 11px 15px; border-radius: 14px; background: var(--card); border: 1px solid #2c3244; font-size: 14px; line-height: 1.35;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); animation: bob 6s ease-in-out infinite; }
.chip small { display: block; color: #8892a8; font-size: 12px; }
.chip b { color: var(--aurora); }
.chip.c1 { right: 0; top: 320px; }
.chip.c2 { left: 0; top: 110px; animation-delay: -3s; }
.chip.c2 b { color: var(--ember); }
@keyframes flip { 0%, 38% { transform: rotateY(0); } 50%, 88% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .flipper, .chip, .stack .halo { animation: none; } }

/* sections */
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: 1.5px; color: var(--violet-bright); margin-bottom: 12px; }
.eyebrow.ember { color: var(--ember); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > div { flex: 1 1 420px; min-width: 0; }
.how { background: var(--bg2); }
.stepsl { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.stepsl > div { display: flex; gap: 16px; }
.stepsl .n { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: var(--violet-soft); color: #c9c1ff; }
.stepsl .n.e { background: rgba(245, 165, 36, 0.16); color: var(--ember); }
.stepsl .n.g { background: rgba(52, 211, 153, 0.16); color: var(--aurora); }
.stepsl b { display: block; }
.stepsl span { color: var(--muted); font-size: 15px; }
.chart svg { width: 100%; height: auto; margin-top: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; vertical-align: middle; margin-right: 6px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 32px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 32px; }
.fgrid .card { background: transparent; }
.fgrid svg { display: block; margin-bottom: 12px; }
.card h3 { font-family: var(--sans); font-size: 18px; font-weight: 800; letter-spacing: 0; margin-bottom: 8px; }
.giveband { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 44px; border-radius: 28px;
  background: linear-gradient(135deg, #1d1a44, #121426); border: 1px solid #2f2a63; }
.giveband > div { flex: 1 1 380px; min-width: 0; }
.giveband .card { background: rgba(10, 11, 16, 0.5); border-color: #2f2a63; }
@media (max-width: 820px) { .stack { height: 470px; } .stack .halo { width: 380px; height: 380px; inset: -20px 0 auto auto; } .chip.c2 { display: none; } .chip.c1 { top: auto; bottom: 0; right: 12px; } .giveband { padding: 28px; } }
