/* ===========================================================================
   StreamForge homepage — additive styles for index.html only.
   styles.css stays the shared base for every page; everything here is scoped
   to the revamped landing sections (hero-v2, diff, spotlights, galleries,
   comparison). Same tokens, same radius scale, same pink.
   =========================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.br-wide { display: none; }
@media (min-width: 900px) { .br-wide { display: inline; } }

/* ---------- hero ---------- */
.hero-v2 { padding: 150px 0 40px; }
.hero-v2 .hero-title { max-width: 18ch; margin: 0 auto; font-size: clamp(36px, 5.6vw, 68px); }
.hero-v2 .hero-sub { max-width: 66ch; }
.hero-v2 .pill { background: rgba(255, 255, 255, 0.03); border-color: var(--border); color: var(--muted); }
.hero-v2 .pill i { color: var(--pink-3); }

.proof { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; margin-top: 38px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; }
.proof li { display: flex; align-items: baseline; gap: 8px; padding: 12px 22px; border-left: 1px solid var(--border); }
.proof li:first-child { border-left: none; }
.proof b { font-family: "Geist Mono", monospace; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--pink-4); }
.proof span { font-size: 12.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }

.hero-shot { position: relative; max-width: 1180px; margin: 64px auto 0; padding: 0 24px; }
.app-frame-hero { position: relative; max-width: none; }
.app-frame-hero img { display: block; width: 100%; height: auto; }

/* CSS-only gift banner cycle, mirroring the feed's LIVE-Studio-style banners */
.gift-cycle { position: absolute; left: 15%; bottom: 13%; width: 250px; height: 56px; pointer-events: none; }
.gb {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px;
  border-radius: 999px; border: 1px solid rgba(249, 2, 91, 0.4);
  background: linear-gradient(90deg, rgba(60, 8, 30, 0.96), rgba(22, 10, 18, 0.94));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(249, 2, 91, 0.28);
  opacity: 0; transform: translateX(-24px) scale(0.94);
  animation: gbCycle 9s var(--ease) infinite;
}
.gb-2 { animation-delay: 3s; }
.gb-3 { animation-delay: 6s; border-color: rgba(255, 205, 74, 0.55); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 34px rgba(255, 205, 74, 0.28); }
.gb-ava { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(135deg, #7c5cff, #b26bff); }
.gb-2 .gb-ava { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.gb-3 .gb-ava { background: linear-gradient(135deg, #f59e0b, #ff9d2e); }
.gb-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.gb-txt b { font-size: 14px; font-weight: 700; }
.gb-txt small { font-size: 12px; color: var(--muted); }
.gb-x { margin-left: auto; font-family: "Geist Mono", monospace; font-style: italic; font-weight: 700; font-size: 22px; color: #ffcf4a; text-shadow: 0 0 12px rgba(255, 205, 74, 0.6); animation: gbPop 9s var(--ease) infinite; animation-delay: inherit; }
@keyframes gbCycle {
  0% { opacity: 0; transform: translateX(-24px) scale(0.94); }
  5%, 30% { opacity: 1; transform: translateX(0) scale(1); }
  36%, 100% { opacity: 0; transform: translateX(10px) scale(0.96); }
}
@keyframes gbPop { 0%, 4% { transform: scale(0.6); } 8% { transform: scale(1.35); } 12%, 100% { transform: scale(1); } }

/* ---------- different ---------- */
.section-diff { padding-top: 110px; }
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.diff.card { display: flex; flex-direction: column; padding: 26px; }
.diff h3 { font-size: 19px; }
.diff p { font-size: 14.5px; flex: 1; }
.diff .mini-plats { margin-top: 20px; }
.mini-fx { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.mini-fx span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; color: var(--pink-4); background: rgba(249, 2, 91, 0.08); border: 1px solid rgba(249, 2, 91, 0.25); }
.mini-fx.alt span { color: var(--muted); background: rgba(255, 255, 255, 0.03); border-color: var(--border); }
.mini-looks { display: flex; gap: 7px; margin-top: 20px; }
.mini-looks i { width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.12); }
.lk-galaxy { background: linear-gradient(135deg, #2b0a5a, #7c3aed 55%, #22d3ee); }
.lk-fire { background: linear-gradient(135deg, #3a0a02, #f97316 55%, #fde047); }
.lk-ice { background: linear-gradient(135deg, #082032, #38bdf8 55%, #e0f2fe); }
.lk-gold { background: linear-gradient(135deg, #2a1b03, #f59e0b 55%, #fde68a); }
.lk-emerald { background: linear-gradient(135deg, #032a1b, #10b981 55%, #6ee7b7); }
.lk-arcade { background: repeating-linear-gradient(135deg, #f9025b 0 6px, #111 6px 12px); }

/* ---------- spotlight (feed) ---------- */
.section-spot { padding-top: 90px; }
.spot { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.spot .section-title { font-size: clamp(28px, 3.6vw, 42px); }
.spot .section-sub { margin-bottom: 8px; }
.feed-shot { position: relative; width: min(100%, 380px); margin: 0 auto; }
.feed-shot img {
  display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--border);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 80px rgba(249, 2, 91, 0.16);
}
.feed-chip {
  position: absolute; top: 18px; left: -18px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; padding: 8px 12px; border-radius: 999px; color: var(--text);
  background: rgba(14, 12, 16, 0.92); border: 1px solid rgba(249, 2, 91, 0.35); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.feed-chip i { color: var(--pink-3); }

/* ---------- app shots ---------- */
.app-shot-wide { margin-bottom: 26px; }
.app-shot-wide .app-frame { max-width: 1180px; }
.app-frame img { display: block; width: 100%; height: auto; }

/* ---------- overlay gallery ---------- */
.ov-gallery { columns: 4; column-gap: 14px; margin-top: 46px; }
.ovg { break-inside: avoid; margin: 0 0 14px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #0b0b0e; position: relative; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.ovg:hover { border-color: rgba(249, 2, 91, 0.4); transform: translateY(-3px); }
.ovg img { display: block; width: 100%; height: auto; }
.ovg figcaption { position: absolute; left: 10px; bottom: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; padding: 4px 9px; border-radius: 999px; color: var(--text); background: rgba(9, 9, 11, 0.8); border: 1px solid var(--border); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- looks strip ---------- */
.looks { margin-top: 64px; display: grid; grid-template-columns: 0.9fr 1.6fr; gap: 40px; align-items: center; }
.looks-copy h3 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.looks-copy p { color: var(--muted); margin-top: 12px; font-size: 15.5px; }
.looks-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.looks-strip figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #0b0b0e; }
.looks-strip img { display: block; width: 100%; height: auto; }
.looks-strip figcaption { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 6px; color: var(--pink-4); background: rgba(9, 9, 11, 0.8); border: 1px solid rgba(249, 2, 91, 0.3); }

/* ---------- planner + tools ---------- */
.ov-tools { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 48px; align-items: center; margin-top: 72px; }
.ov-tools .app-frame { max-width: none; }
.ov-tools-copy h3 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.ov-tools-copy p { color: var(--muted); margin-top: 12px; font-size: 15.5px; }
.ov-tools-copy .checks { margin-bottom: 0; }

/* ---------- games ---------- */
.section-games { padding-top: 110px; }
.games-grid { display: grid; grid-template-columns: 1.55fr 0.85fr; gap: 20px; align-items: start; }
.games-grid .app-frame { max-width: none; }
.games-side { display: flex; flex-direction: column; gap: 14px; }
.games-side .ovg { flex: 1; display: flex; }
.games-side .ovg img { object-fit: cover; height: 100%; }
.games-row { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.05fr; gap: 14px; margin-top: 14px; align-items: stretch; }
.games-row .ovg { margin: 0; }
.games-stack { display: flex; flex-direction: column; gap: 14px; }
.games-stack .ovg { flex: 1; display: flex; }
.games-stack .ovg img { object-fit: cover; height: 100%; }
.cmds.card { padding: 22px; display: flex; flex-direction: column; }
.cmds .eyebrow { margin-bottom: 12px; }
.cmd-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cmd-list code { font-family: "Geist Mono", monospace; font-size: 12.5px; padding: 5px 9px; border-radius: 8px; color: var(--pink-4); background: rgba(249, 2, 91, 0.08); border: 1px solid rgba(249, 2, 91, 0.22); }
.cmds p { font-size: 14px; margin-top: 0; }
.cmd-more { margin-top: auto !important; padding-top: 14px; font-size: 12.5px !important; color: var(--faint) !important; }

/* ---------- automation flow ---------- */
.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 18px 22px; margin-bottom: 26px; border-color: rgba(249, 2, 91, 0.28); }
.flow:hover { transform: none; }
.flow-trig { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.flow-trig b { color: var(--text); }
.flow-trig i { color: var(--pink-3); font-size: 18px; }
.flow-arrow { color: var(--pink-3); font-size: 22px; animation: flowNudge 1.6s var(--ease) infinite; }
@keyframes flowNudge { 0%, 100% { transform: translateX(0); opacity: 0.7; } 50% { transform: translateX(6px); opacity: 1; } }
.flow-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-act { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; padding: 9px 12px; border-radius: 10px; color: var(--pink-4); background: rgba(249, 2, 91, 0.09); border: 1px solid rgba(249, 2, 91, 0.25); }
.flow-act:nth-child(1) { animation: actIn 9s var(--ease) infinite 0.2s; }
.flow-act:nth-child(2) { animation: actIn 9s var(--ease) infinite 0.5s; }
.flow-act:nth-child(3) { animation: actIn 9s var(--ease) infinite 0.8s; }
.flow-act:nth-child(4) { animation: actIn 9s var(--ease) infinite 1.1s; }
.flow-act:nth-child(5) { animation: actIn 9s var(--ease) infinite 1.4s; }
@keyframes actIn { 0% { opacity: 0.25; transform: translateY(6px); } 6%, 90% { opacity: 1; transform: translateY(0); } 100% { opacity: 0.25; transform: translateY(6px); } }

.engine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.engine-grid .app-shot { margin: 0; }
.engine-grid .app-frame { max-width: none; }
.engine-grid figcaption { color: var(--muted); font-size: 14.5px; margin-top: 14px; padding: 0 4px; }
.engine-grid figcaption b { color: var(--text); }

/* ---------- founders toolkit ---------- */
.section-founders-kit .section-title { background: linear-gradient(120deg, #fff, #ffe6a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kit.card { padding: 14px 14px 24px; border-color: rgba(255, 205, 74, 0.2); background: linear-gradient(180deg, rgba(255, 205, 74, 0.05), rgba(255, 255, 255, 0.02)); }
.kit.card:hover { border-color: rgba(255, 205, 74, 0.45); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4), 0 0 44px rgba(255, 205, 74, 0.12); }
.kit .app-frame { max-width: none; border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.kit h3 { display: flex; align-items: center; gap: 9px; margin: 18px 6px 0; font-size: 20px; }
.kit h3 i { color: #ffcf4a; font-size: 22px; }
.kit p { margin: 8px 6px 0; font-size: 14.5px; }

/* ---------- everything else ---------- */
.section-more { padding-top: 40px; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.more.card { padding: 20px; }
.more.card > i { font-size: 26px; color: var(--pink-3); }
.more h3 { font-size: 16px; margin-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.more p { font-size: 13.5px; margin-top: 6px; }

/* ---------- comparison ---------- */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--card); }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cmp thead th { font-size: 13px; font-weight: 700; color: var(--text); background: rgba(255, 255, 255, 0.03); }
.cmp thead th small { display: block; font-size: 11px; font-weight: 500; color: var(--faint); margin-top: 2px; }
.cmp thead th.cmp-sf { display: table-cell; }
.cmp thead th.cmp-sf img { vertical-align: -5px; margin-right: 6px; filter: drop-shadow(0 2px 8px rgba(249, 2, 91, 0.5)); }
.cmp tbody th { font-weight: 500; color: var(--muted); width: 34%; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }
.cmp td { color: var(--faint); white-space: nowrap; }
.cmp td i { font-size: 17px; vertical-align: -3px; margin-right: 5px; }
.cmp td .ph-check-circle { color: #4ade80; }
.cmp td .ph-x-circle { color: #ff5c7a; }
.cmp td .ph-minus { color: var(--faint); }
.cmp td.cmp-sf { color: var(--text); font-weight: 600; background: rgba(249, 2, 91, 0.06); }
.cmp td.cmp-sf .ph-check-circle { color: var(--pink-3); }
.cmp-note { color: var(--faint); font-size: 12.5px; margin-top: 14px; max-width: 80ch; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .more-grid { grid-template-columns: repeat(3, 1fr); }
  .ov-gallery { columns: 3; }
  .kit-grid { grid-template-columns: 1fr; }
  .kit.card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6px 20px; align-items: center; }
  .kit .app-frame { grid-row: span 2; }
  .kit h3 { margin-top: 6px; }
}
@media (max-width: 940px) {
  .hero-v2 { padding-top: 120px; }
  .spot { grid-template-columns: 1fr; gap: 36px; }
  .looks { grid-template-columns: 1fr; gap: 24px; }
  .ov-tools { grid-template-columns: 1fr; gap: 28px; }
  .games-grid { grid-template-columns: 1fr; }
  .games-side { flex-direction: row; }
  .games-side .ovg { flex: 1; }
  .games-row { grid-template-columns: 1fr 1fr; }
  .games-row .cmds { grid-column: span 2; }
  .games-side .ovg img, .games-stack .ovg img { height: auto; }
  .engine-grid { grid-template-columns: 1fr; }
  .kit.card { grid-template-columns: 1fr; }
  .kit .app-frame { grid-row: auto; }
}
@media (max-width: 620px) {
  .hero-v2 { padding: 104px 0 24px; }
  .hero-v2 .hero-title { font-size: clamp(30px, 8.4vw, 40px); }
  .hero-v2 .pill { font-size: 12px; text-align: center; }
  .proof { border-radius: 20px; }
  .proof li { flex: 1 1 45%; justify-content: center; border-left: none; padding: 10px 12px; }
  .hero-shot { margin-top: 40px; padding: 0 16px; }
  .gift-cycle { width: 190px; height: 46px; bottom: 4%; }
  .gb { padding: 6px 10px 6px 6px; gap: 8px; }
  .gb-ava { width: 30px; height: 30px; font-size: 13px; }
  .gb-txt b { font-size: 12.5px; } .gb-txt small { font-size: 11px; } .gb-x { font-size: 18px; }
  .section-diff, .section-spot, .section-games { padding-top: 72px; }
  .diff-grid { grid-template-columns: 1fr; }
  .ov-gallery { columns: 2; column-gap: 10px; }
  .ov-gallery .ovg:nth-child(n + 9) { display: none; } /* keep the phone page shorter */
  .ovg { margin-bottom: 10px; border-radius: 12px; }
  .looks-strip figure:nth-child(n + 5) { display: none; }
  .ovg figcaption { left: 7px; bottom: 7px; font-size: 10.5px; padding: 3px 7px; }
  .looks-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .games-side { flex-direction: column; }
  .games-row { grid-template-columns: 1fr; }
  .games-row .cmds { grid-column: auto; }
  .flow { padding: 16px; }
  .flow-arrow { display: none; }
  .more-grid { grid-template-columns: 1fr 1fr; }
  .more.card { padding: 16px; }
  .cmp th, .cmp td { padding: 12px 12px; }
  .feed-chip { left: 8px; top: 10px; }
  .container { padding: 0 16px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .gb { animation: none; opacity: 0; }
  .gb-3 { opacity: 1; transform: none; }
  .gb-x, .flow-arrow, .flow-act { animation: none; opacity: 1; transform: none; }
  .ovg:hover, .kit.card:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .proof, .ovg figcaption, .feed-chip { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg-2); }
}
