/* ===== "Get clips" stage: one long video in -> clips for every platform out ===== */
.stage-sec { padding: 40px 0 70px; position: relative; overflow: hidden; }
.stage-sec::before { content: ""; position: absolute; left: 50%; top: 46%; width: 1100px; height: 620px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(198,255,61,.10), transparent 70%); pointer-events: none; }
.stage-sec h2 { margin-bottom: 18px; }
.sg-tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); margin: 0 auto 30px; }
.sg-tabs button { border: 0; background: none; color: #A1A1AA; font: 700 14px/1 "Plus Jakarta Sans", sans-serif; padding: 11px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background .25s, color .25s; }
.sg-tabs button:hover { color: #EDEDE6; }
.sg-tabs button.on { background: #C6FF3D; color: #0A0A0B; }
.sg-rec { width: 9px; height: 9px; border-radius: 50%; background: #FF3B5C; box-shadow: 0 0 0 0 rgba(255,59,92,.6); animation: sgRec 1.4s infinite; }
.sg-tabs button.on .sg-rec { background: #D7002E; }
@keyframes sgRec { 70% { box-shadow: 0 0 0 7px rgba(255,59,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); } }

.sg-wrap { position: relative; margin: 0 auto; max-width: 1152px; padding: 0 16px; }
.sg { position: relative; width: 1120px; height: 610px; transform-origin: 0 0; }
/* beams from the "Get clips" bar to every clip */
.sg-beams { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.sg-beams path { fill: none; stroke: url(#sgBeam); stroke-width: 2; stroke-linecap: round; opacity: 0; }
.sg.go .sg-beams path { opacity: .9; animation: sgDraw .7s cubic-bezier(.3,.7,.2,1) forwards; animation-delay: calc(var(--k) * 70ms); }
@keyframes sgDraw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
.sg-beams .dot { fill: #C6FF3D; opacity: 0; filter: drop-shadow(0 0 6px #C6FF3D); }
.sg.go .sg-beams .dot { opacity: 1; }

/* the long video */
.sg-src { position: absolute; left: 50%; top: 0; width: 392px; height: 220px; margin-left: -196px; border-radius: 20px; overflow: hidden;
  background: #111; box-shadow: 0 30px 70px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.1); }
.sg-src img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .45s, transform 6s linear; }
.sg-src img.out { opacity: 0; }
.sg.play .sg-src img { transform: scale(1.06); }
.sg-src::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 62%, rgba(0,0,0,.65)); pointer-events: none; }
.sg-dur, .sg-live, .sg-view, .sg-name { position: absolute; z-index: 2; font: 700 12px/1 "Plus Jakarta Sans", sans-serif; color: #fff; }
.sg-dur { right: 12px; bottom: 26px; background: rgba(0,0,0,.7); padding: 5px 8px; border-radius: 7px; letter-spacing: .02em; }
.sg-name { left: 14px; top: 14px; display: flex; gap: 8px; align-items: center; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.sg-name i { width: 24px; height: 24px; border-radius: 50%; background: #C6FF3D center/60% no-repeat; display: inline-block; }
.sg-live { left: 14px; bottom: 26px; background: #E5103A; padding: 5px 9px; border-radius: 6px; display: none; letter-spacing: .08em; }
.sg-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 6px; vertical-align: 1px; animation: sgBlink 1s infinite; }
@keyframes sgBlink { 50% { opacity: .25; } }
.sg-view { left: 84px; bottom: 26px; background: rgba(0,0,0,.6); padding: 5px 8px; border-radius: 6px; display: none; }
.sg.live .sg-live, .sg.live .sg-view { display: block; }
/* progress bar + the moments the AI finds on it */
.sg-tl { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 11px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.22); }
.sg-tl i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: #C6FF3D; }
.sg.scan .sg-tl i { width: 100%; transition: width 1.1s cubic-bezier(.4,.1,.2,1); }
.sg.live .sg-tl i { width: 100%; transition: none; background: linear-gradient(90deg, #C6FF3D, #E5103A); }
.sg-tl b { position: absolute; top: -5px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #C6FF3D; box-shadow: 0 0 0 3px rgba(198,255,61,.3), 0 0 14px #C6FF3D; transform: scale(0); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.sg-tl b.on { transform: scale(1); }
.sg-scan { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; }
.sg-scan::before { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; left: -90px; background: linear-gradient(90deg, transparent, rgba(198,255,61,.35), transparent); }
.sg.scan .sg-scan { opacity: 1; }
.sg.scan .sg-scan::before { animation: sgScan 1.1s cubic-bezier(.4,.1,.2,1) forwards; }
@keyframes sgScan { to { left: 100%; } }
.sg-found { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.8); opacity: 0; background: rgba(10,10,11,.82); border: 1px solid rgba(198,255,61,.5);
  color: #EDEDE6; padding: 9px 14px; border-radius: 999px; font: 700 13px/1 "Plus Jakarta Sans", sans-serif; white-space: nowrap; transition: .35s; backdrop-filter: blur(6px); }
.sg-found b { color: #C6FF3D; }
.sg.found .sg-found { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.sg.go .sg-found { opacity: 0; }

/* paste bar + Get clips */
.sg-bar { position: absolute; left: 50%; top: 246px; width: 480px; height: 58px; margin-left: -240px; border-radius: 999px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 20px;
  background: rgba(22,22,24,.92); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 50px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06); }
.sg-bar svg { width: 18px; height: 18px; flex: none; color: #A1A1AA; }
.sg-url { flex: 1; min-width: 0; color: #EDEDE6; font: 500 15px/1 "Plus Jakarta Sans", sans-serif; white-space: nowrap; overflow: hidden; }
.sg-url:empty::before { content: attr(data-ph); color: #71717A; }
.sg-url::after { content: ""; display: inline-block; width: 2px; height: 17px; background: #C6FF3D; margin-left: 2px; vertical-align: -3px; animation: sgBlink 1s steps(1) infinite; }
.sg-go { flex: none; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: #C6FF3D; color: #0A0A0B; font: 800 15px/1 "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
  display: flex; gap: 8px; align-items: center; transition: transform .15s, box-shadow .3s; box-shadow: 0 0 0 0 rgba(198,255,61,.5); }
.sg-go svg { width: 16px; height: 16px; color: #0A0A0B; }
.sg-go.press { transform: scale(.93); box-shadow: 0 0 0 10px rgba(198,255,61,.12), 0 0 30px rgba(198,255,61,.5); }
.sg.live .sg-go { background: #E5103A; color: #fff; }
.sg.live .sg-go svg { color: #fff; }
/* the hand that clicks */
.sg-cursor { position: absolute; z-index: 9; left: 0; top: 0; width: 30px; height: 30px; pointer-events: none; opacity: 0;
  transition: transform .9s cubic-bezier(.5,0,.2,1), opacity .3s; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.sg-cursor.on { opacity: 1; }
.sg-cursor.click svg { transform: scale(.82); }
.sg-cursor svg { width: 30px; height: 30px; transition: transform .12s; }

/* clips row */
.sg-row { position: absolute; left: 0; right: 0; top: 372px; display: flex; justify-content: center; align-items: flex-end; gap: 14px; }
.sg-card { --h: 196px; position: relative; height: var(--h); width: calc(var(--h) * var(--r)); border-radius: 16px; overflow: visible; flex: none;
  opacity: 0; transform: translate(var(--fx, 0), var(--fy, -120px)) scale(.35); filter: blur(6px);
  transition: transform .75s cubic-bezier(.2,1.25,.35,1), opacity .4s, filter .5s; transition-delay: calc(var(--k) * 90ms); }
.sg.go .sg-card.in, .sg.live .sg-card.in { opacity: 1; transform: none; filter: none; }
.sg-card .sg-media { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: #151517; box-shadow: 0 24px 50px -24px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.1); }
.sg-card img, .sg-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-card .sg-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); pointer-events: none; }
.sg-card:hover { z-index: 5; }
.sg-card:hover .sg-media { box-shadow: 0 30px 60px -20px rgba(0,0,0,.95), 0 0 0 2px #C6FF3D; }
.sg-plat { position: absolute; z-index: 4; left: 50%; top: -19px; width: 38px; height: 38px; margin-left: -19px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(30,30,33,.95); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 8px 20px -6px rgba(0,0,0,.8); }
.sg-plat svg { width: 19px; height: 19px; }
.sg-score { position: absolute; z-index: 3; left: 9px; bottom: 9px; display: grid; justify-items: center; padding: 5px 7px 4px; border-radius: 9px; background: rgba(10,10,11,.78);
  border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(4px); line-height: 1; }
.sg-score small { font: 700 7.5px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .12em; color: #A1A1AA; }
.sg-score b { font: 800 19px/1.05 "Bricolage Grotesque", sans-serif; color: #C6FF3D; margin-top: 2px; }
.sg-fmt { position: absolute; z-index: 3; right: 8px; top: 8px; font: 700 10px/1 "Plus Jakarta Sans", sans-serif; color: #fff; background: rgba(0,0,0,.55); padding: 4px 6px; border-radius: 6px; }
.sg-ago { position: absolute; z-index: 3; left: 8px; top: 8px; font: 700 10px/1 "Plus Jakarta Sans", sans-serif; color: #fff; background: #E5103A; padding: 4px 6px; border-radius: 6px; display: none; }
.sg.live .sg-ago { display: block; }
.sg.live .sg-fmt { display: none; }
/* word-by-word captions on the vertical clips */
.sg-cap { position: absolute; z-index: 3; left: 6px; right: 6px; top: 42%; text-align: center; font: 800 15px/1.12 "Bricolage Grotesque", sans-serif; color: #fff; text-transform: uppercase;
  text-shadow: 0 2px 0 #000, 0 0 3px #000, 0 0 10px rgba(0,0,0,.8); letter-spacing: .01em; }
.sg-cap span { display: inline-block; opacity: 0; transform: scale(.6) translateY(4px); transition: .18s cubic-bezier(.3,1.6,.5,1); margin: 0 1px; }
.sg-cap span.on { opacity: 1; transform: none; }
.sg-cap span.hot { color: #C6FF3D; transform: scale(1.14); }
.sg-card[data-p="yt"] .sg-cap, .sg-card[data-p="li"] .sg-cap { font-size: 17px; top: auto; bottom: 46px; }
/* side chips */
.sg-chip { position: absolute; z-index: 6; display: flex; gap: 10px; align-items: center; padding: 11px 15px; border-radius: 16px; background: rgba(20,20,22,.88); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.9); backdrop-filter: blur(8px); font: 700 13px/1.25 "Plus Jakarta Sans", sans-serif; color: #EDEDE6; opacity: 0; transform: translateY(10px); transition: .5s; }
.sg-chip small { display: block; font-weight: 500; color: #A1A1AA; font-size: 12px; }
.sg-chip .ic2 { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(198,255,61,.14); color: #C6FF3D; font-size: 17px; flex: none; }
.sg-chip.c1 { left: 40px; top: 70px; }
.sg-chip.c2 { right: 40px; top: 130px; }
.sg.go .sg-chip, .sg.live .sg-chip { opacity: 1; transform: none; transition-delay: .9s; }
.sg-lang { color: #C6FF3D; display: inline-block; min-width: 54px; }

/* phones / small tablets: two rows of clips, everything scaled to fit */
.sg.narrow { width: 600px; height: 800px; }
.sg.narrow .sg-src { width: 360px; height: 203px; margin-left: -180px; }
.sg.narrow .sg-bar { top: 228px; width: 430px; margin-left: -215px; }
.sg.narrow .sg-row { top: 352px; flex-wrap: wrap; row-gap: 44px; padding: 0 20px; }
.sg.narrow .sg-card { --h: 168px; }
.sg.narrow .sg-card[data-p="yt"], .sg.narrow .sg-card[data-p="li"] { --h: 168px; }
.sg.narrow .sg-chip { display: none; }

@media (max-width: 520px) {
  .sg-tabs { gap: 2px; padding: 4px; }
  .sg-tabs button { font-size: 13px; padding: 10px 12px; white-space: nowrap; gap: 6px; }
  .stage-sec { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-card, .sg-cursor, .sg-src img, .sg-chip { transition: none !important; }
  .sg-beams path { animation: none !important; stroke-dashoffset: 0 !important; }
  .sg-rec, .sg-live::before, .sg-url::after { animation: none; }
}

.sg-ic { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sg-ic circle { fill: currentColor; }
@media (max-width: 400px) { .sg-tabs { max-width: 100%; } .sg-tabs button { padding: 9px 10px; font-size: 12.5px; gap: 5px; } .sg-ic { width: 14px; height: 14px; } }
