/* =========================================================
   Stremry — landing page (intro + download)
   Same identity as the app: Sky #51B3D0 + Play orange #EE984F on Night #0B0E13.
   Flat: no shadows on buttons or cards — depth comes from borders, colour and motion.
   ========================================================= */
:root {
  color-scheme: dark;
  --bg: #0B0E13;
  --bg-2: #0F1319;
  --surface: #11161D;
  --surface-2: #171D26;
  --surface-3: #1E2631;
  --line: #1D242E;
  --line-2: #2A333F;
  --text: #F2F4F8;
  --text-2: #B4BCC8;
  --text-3: #7A8494;
  --ember: #51B3D0;
  --ember-300: #7FCBE2;
  --amber: #EE984F;
  --live: #FF4D5E;
  --grad: linear-gradient(135deg, #2A86A8 0%, #3A9BBD 55%, #51B3D0 100%);
  --grad-text: linear-gradient(120deg, #7FCBE2 0%, #51B3D0 45%, #EE984F 100%);
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --display: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.3px; }
p { margin: 0; }
img { display: block; }
::selection { background: var(--ember); color: #06212B; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 40px); }
.grad { color: var(--ember); }
.w100 { width: 100%; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(var(--dx, 6px), var(--dy, -8px)); } }
@keyframes hue { 0%, 100% { filter: hue-rotate(0deg); } 50% { filter: hue-rotate(-25deg); } }

/* ---- the character: blinks, looks at the cursor, its play button breathes (site.js draws it) ---- */
.mascot { display: block; width: 100%; height: auto; overflow: visible; }
.mascot .m-eye { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .08s ease-in; }
.mascot.blink .m-eye { transform: scaleY(.08); }
.mascot .m-eyes { transition: transform .45s var(--ease); }
.mascot .m-badge { transform-box: fill-box; transform-origin: 50% 50%; animation: m-badge 2.8s ease-in-out infinite; }
@keyframes m-badge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes m-hop { 0%, 100% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-14%) rotate(-6deg); } 65% { transform: translateY(0) rotate(3deg); } }
.mascot-slot { display: block; }
.brand .mascot-slot { width: 38px; }
.brand:hover .mascot { animation: m-hop .55s var(--ease); }

/* reveal on scroll (site.js adds .in) */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }
.hero .rv { opacity: 1; transform: none; transition: none; animation: rise .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); background: linear-gradient(135deg, #3196B8 0%, #45A8C9 55%, #5EBEDA 100%); }
.btn-outline { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-outline:hover { border-color: var(--ember); background: rgba(81, 179, 208, .08); transform: translateY(-2px); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn svg.i { width: 19px; height: 19px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(11, 14, 19, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img.wm-img { width: auto; height: 25px; }
.links { display: flex; gap: 2px; margin-inline-start: 10px; }
.links a { position: relative; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: 15px; transition: color .2s; }
.links a::after { content: ''; position: absolute; inset-inline: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--ember); transform: scaleX(0); transition: transform .3s var(--ease); }
.links a:hover { color: var(--text); }
.links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 8px; margin-inline-start: auto; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 30px 0 40px; }
.hero-glow { position: absolute; inset: -30% -20% auto; height: 110%; pointer-events: none; animation: hue 14s ease-in-out infinite;
  background: radial-gradient(40% 45% at 50% 32%, rgba(81, 179, 208, .22), transparent 70%), radial-gradient(28% 30% at 72% 60%, rgba(238, 152, 79, .1), transparent 70%), radial-gradient(28% 30% at 25% 55%, rgba(81, 179, 208, .08), transparent 70%); }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(55% 50% at 50% 30%, #000, transparent); mask-image: radial-gradient(55% 50% at 50% 30%, #000, transparent);
}
.hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-mascot { position: relative; width: 170px; margin: 18px 0 26px; animation: float 6s ease-in-out infinite; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  animation: drift 7s ease-in-out infinite, rise .8s var(--ease) both;
}
.chip svg.i { width: 16px; height: 16px; }
.chip-live { top: 6%; inset-inline-start: 112%; color: #fff; background: var(--live); border-color: var(--live); --dx: -6px; --dy: 6px; animation-delay: -2s, .5s; }
.chip-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.chip-chat { top: 58%; inset-inline-start: 120%; --dx: 8px; --dy: -6px; animation-delay: -4s, .7s; }
.chip-tip { top: 8%; inset-inline-end: 112%; color: var(--amber); border-color: rgba(238, 152, 79, .4); --dx: 6px; --dy: 8px; animation-delay: -1s, .9s; }
.chip-heart { top: 62%; inset-inline-end: 118%; color: #FF8FA3; border-color: rgba(255, 94, 138, .35); --dx: -8px; --dy: -6px; animation-delay: -5s, 1.1s; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ember-300); background: rgba(81, 179, 208, .1); border: 1px solid rgba(81, 179, 208, .28); padding: 5px 12px; border-radius: 999px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); animation: pulse 1.5s infinite; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.12; font-weight: 700; margin: 20px 0 18px; letter-spacing: -1.5px; text-wrap: balance; }
.lead { font-size: 19px; color: var(--text-2); max-width: 600px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--text-3); font-size: 14px; }
.ticks li { display: flex; align-items: center; gap: 7px; }
.ticks li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: rgba(43, 212, 125, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232BD47D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* the product: a broadcast window + the phone remote */
.product { position: relative; margin: 64px auto 0; max-width: 1040px; padding-inline-end: 0; }
.win { border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); direction: ltr; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.win-bar span { margin: 0 auto; padding: 3px 14px; border-radius: 8px; background: var(--surface); color: var(--text-3); font-size: 12px; }
.win-body { display: grid; grid-template-columns: 1fr 260px; height: 440px; }
.stage { position: relative; overflow: hidden; }
.scene { position: absolute; inset: 0;
  background: radial-gradient(50% 70% at 25% 30%, rgba(81, 179, 208, .55), transparent 60%), radial-gradient(45% 60% at 80% 85%, rgba(238, 152, 79, .35), transparent 60%), linear-gradient(160deg, #13324A, #0A1018 70%);
  animation: hue 10s ease-in-out infinite; }
.scene::after { content: ''; position: absolute; inset: 55% -20% -10%; transform: perspective(300px) rotateX(55deg); opacity: .5;
  background-image: linear-gradient(rgba(127, 203, 226, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 203, 226, .35) 1px, transparent 1px);
  background-size: 40px 40px; animation: grid-run 3s linear infinite; }
@keyframes grid-run { to { background-position: 0 40px; } }
.live-tag { position: absolute; top: 14px; inset-inline-end: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; background: var(--live); color: #fff; font-weight: 700; font-size: 12.5px; }
.live-tag i, .r-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.viewers { position: absolute; top: 14px; inset-inline-end: 92px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 6px; background: rgba(0, 0, 0, .55); font-size: 12.5px; }
.viewers svg.i { width: 15px; height: 15px; }
.cam { position: absolute; inset-inline-start: 22px; bottom: 22px; width: 25%; aspect-ratio: 4 / 3; border-radius: 12px; border: 2px solid var(--ember);
  background: radial-gradient(circle at 50% 42%, #E8C4A0 20%, transparent 21%), radial-gradient(60% 45% at 50% 100%, #2A86A8 60%, transparent 61%), linear-gradient(160deg, #1B3A4F, #0E1A24); }
.eq { position: absolute; inset-inline-end: 18px; bottom: 18px; display: flex; gap: 3px; align-items: flex-end; height: 22px; direction: ltr; }
.eq i { width: 3px; height: 100%; background: var(--amber); border-radius: 2px; transform-origin: bottom; animation: bar 1s ease-in-out infinite; }
.eq i:nth-child(2n) { animation-delay: -.3s; } .eq i:nth-child(3n) { animation-delay: -.6s; }
.alert { position: absolute; top: 26%; left: 50%; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 16px; text-align: start;
  background: rgba(11, 14, 19, .9); border: 1px solid rgba(238, 152, 79, .5); transform: translate(-50%, -10px) scale(.9); opacity: 0; transition: opacity .35s, transform .45s var(--ease); }
.alert.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.alert > svg.i { width: 34px; height: 34px; color: var(--amber); }
.alert b { color: var(--amber); }
.alert small { display: block; color: var(--text-2); font-size: 13px; }
.chat { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px; border-inline-start: 1px solid var(--line); background: var(--bg); overflow: hidden; font-size: 13px; line-height: 1.55; text-align: start; }
.chat p { animation: rise .45s var(--ease) both; color: #D7DCE4; }
.chat p b { margin-inline-end: 4px; }
.chat p.ev { padding: 5px 8px; border-radius: 8px; background: rgba(81, 179, 208, .12); border: 1px solid rgba(81, 179, 208, .28); color: var(--ember-300); font-weight: 600; }
.remote { position: absolute; inset-inline-start: -46px; bottom: -40px; width: 196px; padding: 12px; border-radius: 26px; background: var(--bg-2); border: 1px solid var(--line-2); animation: float 7s ease-in-out infinite; }
.r-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12px; }
.r-top b { font-family: var(--display); direction: ltr; color: var(--text-2); }
.r-live { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: var(--live); color: #fff; font-weight: 700; font-size: 11.5px; }
.r-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.r-grid span, .ph-grid span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; font-size: 11.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line-2); transition: background .25s, color .25s, border-color .25s, transform .2s; }
.r-grid span svg.i { width: 18px; height: 18px; }
.r-grid span.on { background: var(--ember); border-color: var(--ember); color: #06212B; transform: scale(.95); }

/* numbers */
.stats { padding: 70px 0 10px; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 24px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: clamp(30px, 3.6vw, 42px); line-height: 1.2; direction: ltr; color: var(--ember); }
.stat > span { color: var(--text-3); font-size: 14.5px; }

/* sections */
.section { padding: 100px 0; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; margin: 16px 0 12px; line-height: 1.25; text-wrap: balance; }
.sec-head p { color: var(--text-2); font-size: 17.5px; }

/* features: a bento grid, each tile with a small moving picture */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.tile:hover { border-color: rgba(81, 179, 208, .45); transform: translateY(-4px); }
.tile::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(81, 179, 208, .1), transparent 60%); }
.tile:hover::before { opacity: 1; }
.tile.wide { grid-column: span 2; flex-direction: row; align-items: center; }
.tile.wide .t-text { flex: 1; }
.t-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px; background: rgba(81, 179, 208, .12); color: var(--ember); border: 1px solid rgba(81, 179, 208, .25); }
.t-ico svg.i { width: 24px; height: 24px; }
.tile h3, .earn-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.tile p, .earn-card p { color: var(--text-2); font-size: 15.5px; }
.t-art { position: relative; flex: none; }
.tile.wide .t-art { width: 46%; }
/* studio: the three scenes take turns */
.studio-art .sa-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.sa-tabs span { flex: 1; text-align: center; padding: 6px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--line-2); animation: tab-on 9s infinite; }
.sa-tabs span:nth-child(2) { animation-delay: 3s; } .sa-tabs span:nth-child(3) { animation-delay: 6s; }
@keyframes tab-on { 0%, 30% { color: #06212B; background: var(--ember); border-color: var(--ember); } 34%, 100% { color: var(--text-3); background: var(--surface-2); border-color: var(--line-2); } }
.sa-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); }
.sa-s { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; opacity: 0; animation: scene-on 9s infinite; }
.sa-s b { font-family: var(--display); font-size: 17px; }
.sa-s em { font-style: normal; font-family: var(--display); font-size: 26px; color: var(--amber); direction: ltr; }
.sa-s.s1 { background: radial-gradient(60% 80% at 30% 20%, rgba(81, 179, 208, .5), transparent 60%), #0E1822; }
.sa-s.s2 { animation-delay: 3s; background: radial-gradient(50% 70% at 70% 30%, rgba(238, 152, 79, .35), transparent 60%), linear-gradient(160deg, #13324A, #0A1018); }
.sa-s.s3 { animation-delay: 6s; background: radial-gradient(60% 80% at 70% 80%, rgba(183, 140, 255, .35), transparent 60%), #120F1C; }
.sa-s.s3 em { font-size: 15px; color: var(--text-2); }
@keyframes scene-on { 0% { opacity: 0; transform: scale(1.06); } 4%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; } }
.sa-cam { position: absolute; inset-inline-start: 8%; bottom: 10%; width: 30%; aspect-ratio: 4 / 3; border-radius: 10px; border: 2px solid var(--ember);
  background: radial-gradient(circle at 50% 42%, #E8C4A0 20%, transparent 21%), radial-gradient(60% 45% at 50% 100%, #2A86A8 60%, transparent 61%), #0E1A24; }
/* alerts: one pops in, again and again */
.alert-art { display: grid; place-items: center; height: 110px; border-radius: 14px; background: radial-gradient(70% 90% at 50% 100%, rgba(238, 152, 79, .14), transparent 70%), var(--bg-2); border: 1px solid var(--line); }
.aa-card { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid rgba(238, 152, 79, .45); animation: pop-loop 4s var(--ease) infinite; }
.aa-card > svg.i { width: 28px; height: 28px; color: var(--amber); }
.aa-card b { display: block; font-size: 13.5px; color: var(--amber); }
.aa-card small { color: var(--text-2); font-size: 12px; }
@keyframes pop-loop { 0% { opacity: 0; transform: translateY(14px) scale(.9); } 12%, 78% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-8px) scale(.96); } }
/* chat: a poll filling up */
.poll-art { padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13.5px; }
.poll-art > b { display: block; margin-bottom: 10px; }
.pa-row { position: relative; display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 9px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.pa-row i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: rgba(81, 179, 208, .22); }
.tile.in .pa-row i, .rv.in .pa-row i { animation: poll 5s var(--ease) infinite; }
.pa-row:nth-child(3) i { background: rgba(238, 152, 79, .2); }
.pa-row span, .pa-row em { position: relative; font-style: normal; }
.pa-row em { color: var(--text-2); }
@keyframes poll { 0% { width: 0; } 30%, 85% { width: var(--w); } 100% { width: 0; } }
/* replays and clips: a selection sweeps along the timeline */
.clip-art { padding: 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); direction: ltr; }
.ca-track { position: relative; height: 46px; border-radius: 10px; overflow: hidden;
  background: repeating-linear-gradient(90deg, #1A2A38 0 10px, #15212C 10px 20px); }
.ca-sel { position: absolute; inset-block: 0; width: 18%; border: 2px solid var(--amber); border-radius: 8px; background: rgba(238, 152, 79, .18); animation: sweep 6s var(--ease) infinite; }
.ca-head { position: absolute; inset-block: -4px; width: 2px; background: var(--ember); animation: head 6s linear infinite; }
@keyframes sweep { 0%, 15% { left: 8%; } 50%, 65% { left: 58%; } 100% { left: 8%; } }
@keyframes head { from { left: 0; } to { left: 100%; } }
.ca-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.ca-labels span:nth-child(2) { color: var(--amber); font-weight: 600; direction: rtl; }

/* the phone remote */
.remote-sec { background: linear-gradient(180deg, transparent, rgba(81, 179, 208, .045) 25%, rgba(81, 179, 208, .045) 75%, transparent); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.split-text h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; margin: 16px 0 14px; line-height: 1.25; }
.split-text > p { color: var(--text-2); font-size: 17.5px; max-width: 520px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 15.5px; }
.checks li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px; background: rgba(81, 179, 208, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2351B3D0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.phone { justify-self: center; width: 300px; padding: 14px 14px 18px; border-radius: 42px; background: var(--bg-2); border: 1px solid var(--line-2); outline: 7px solid #141A22; }
.phone.in { animation: float 7s ease-in-out infinite; }
.ph-notch { width: 90px; height: 22px; margin: -2px auto 12px; border-radius: 12px; background: #000; }
.ph-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 0 4px; }
.ph-prev { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line-2);
  background: radial-gradient(50% 70% at 70% 30%, rgba(81, 179, 208, .45), transparent 60%), linear-gradient(160deg, #13324A, #0A1018); }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-grid span { padding: 12px 4px; font-size: 11.5px; }
.ph-grid span svg.i { width: 21px; height: 21px; color: var(--c); }
.ph-grid span.on { background: var(--c); border-color: var(--c); color: #0B0E13; transform: scale(.94); }
.ph-grid span.on svg.i { color: #0B0E13; }
.ph-feed { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid rgba(238, 152, 79, .35); font-size: 13px; font-weight: 600; transition: opacity .3s, transform .3s var(--ease); }
.ph-feed svg.i { width: 18px; height: 18px; color: var(--amber); }
.ph-feed.swap { opacity: 0; transform: translateY(6px); }

/* creators */
.earn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.earn-card { padding: 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.earn-card:hover { border-color: rgba(238, 152, 79, .45); transform: translateY(-4px); }
.earn-card .t-ico { color: var(--amber); background: rgba(238, 152, 79, .1); border-color: rgba(238, 152, 79, .28); }

/* three steps */
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.how::before { content: ''; position: absolute; top: 34px; inset-inline: 16%; height: 2px; background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent); }
.how li { position: relative; text-align: center; padding: 0 16px; }
.how li > span { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ember); color: var(--ember); font-family: var(--display); font-size: 26px; font-weight: 700; transition: background .4s, color .4s; }
.how li.in > span { animation: step-lit 4.5s infinite; animation-delay: calc(var(--d, 0) * 1.5s); }
@keyframes step-lit { 0%, 30% { background: var(--ember); color: #06212B; } 36%, 100% { background: var(--bg); color: var(--ember); } }
.how h3 { font-size: 20px; margin-bottom: 6px; }
.how p { color: var(--text-2); }

/* download */
.download { background: linear-gradient(180deg, transparent, rgba(81, 179, 208, .045) 30%, rgba(81, 179, 208, .045) 70%, transparent); }
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; margin: 0 auto; }
.platform {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 34px 24px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s;
}
.platform:hover { transform: translateY(-4px); border-color: var(--line-2); }
.platform.you { border-color: rgba(81, 179, 208, .6); }
.badge-you { display: none; position: absolute; top: -12px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.platform.you .badge-you { display: block; }
.p-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; margin-bottom: 12px; background: rgba(81, 179, 208, .12); color: var(--ember); border: 1px solid rgba(81, 179, 208, .25); }
.p-ico svg.i { width: 30px; height: 30px; }
.platform h3 { font-size: 21px; font-weight: 600; }
.platform p { color: var(--text-2); font-size: 15px; margin-bottom: 18px; }
.platform p small { color: var(--text-3); font-size: 13px; }
.platform .btn { margin-top: auto; }
.platform .btn.done { background: rgba(43, 212, 125, .14); color: #2BD47D; }
.dl-note { text-align: center; color: var(--text-3); margin-top: 26px; font-size: 15px; }
.dl-note a { color: var(--ember-300); font-weight: 600; }
.dl-note a:hover { text-decoration: underline; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 0 22px; transition: border-color .25s, background .25s; }
.faq details:hover { border-color: var(--line-2); }
.faq details[open] { border-color: rgba(81, 179, 208, .4); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--ember); transition: transform .3s var(--ease); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 20px; }
.faq details[open] p { animation: rise .35s var(--ease) both; }

/* closing CTA */
.cta-band {
  display: flex; align-items: center; gap: 30px; padding: 44px 48px; border-radius: 30px; position: relative; overflow: hidden;
  background: radial-gradient(60% 140% at 100% 0%, rgba(81, 179, 208, .22), transparent 60%), radial-gradient(50% 120% at 0% 100%, rgba(238, 152, 79, .14), transparent 60%), var(--surface);
  border: 1px solid rgba(81, 179, 208, .3);
}
.cta-mascot { width: 104px; flex: none; animation: float 6s ease-in-out infinite; }
.cta-band div { flex: 1; }
.cta-band h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.cta-band p { color: var(--text-2); font-size: 17px; margin-top: 4px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 30px 0 calc(30px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-in .brand .mascot-slot { width: 30px; }
.foot-in .brand img.wm-img { height: 20px; }
.foot-in nav { display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-2); }
.foot-in nav a:hover { color: var(--ember-300); }
.foot-in small { margin-inline-start: auto; color: var(--text-3); }

/* install-steps dialog */
.dlg-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(5, 7, 10, .75); backdrop-filter: blur(6px); }
.dlg { position: relative; width: min(460px, 100%); padding: 30px 28px 26px; border-radius: 22px; margin: auto; background: var(--surface); border: 1px solid var(--line-2); animation: rise .25s both; }
.dlg::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 22px 22px 0 0; background: var(--grad); }
.dlg-x { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); }
.dlg-x:hover { background: var(--surface-2); color: var(--text); }
.dlg h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.dlg > p { color: var(--text-2); margin-bottom: 20px; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); counter-increment: s; }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-family: var(--display); font-size: 14px; }
.steps b { color: var(--text); }
.steps .kbd { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line-2); font-size: 13px; vertical-align: 1px; }
.steps .kbd svg.i { width: 15px; height: 15px; }
.link-box { display: flex; gap: 8px; margin-top: 16px; }
.link-box code { flex: 1; min-width: 0; direction: ltr; text-align: left; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text-2); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg-note { margin-top: 16px; font-size: 13px; color: #FFD28A; background: rgba(238, 152, 79, .08); border: 1px solid rgba(238, 152, 79, .28); border-radius: 12px; padding: 10px 12px; line-height: 1.6; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; background: var(--surface-3); border: 1px solid var(--line-2); padding: 11px 18px; border-radius: 12px; font-weight: 500; animation: rise .2s both; }

/* responsive */
@media (max-width: 1080px) {
  .links { display: none; }
  .remote { inset-inline-start: -14px; }
}
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.wide { flex-direction: column; align-items: stretch; }
  .tile.wide .t-art { width: 100%; }
  .split { grid-template-columns: 1fr; gap: 50px; }
  .split-text { text-align: center; }
  .split-text > p { margin-inline: auto; }
  .checks { text-align: start; }
  .earn { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .win-body { grid-template-columns: 1fr 200px; height: 360px; }
  .remote { display: none; }
}
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .nav-in { height: 64px; }
  .hero { padding: 10px 0 30px; }
  .hero-mascot { width: 128px; }
  .chip { font-size: 12px; padding: 5px 10px; }
  .chip-live { inset-inline-start: 104%; } .chip-chat { inset-inline-start: 96%; top: 70%; }
  .chip-tip { inset-inline-end: 104%; } .chip-heart { display: none; }
  .lead { font-size: 16.5px; }
  .hero-cta .btn { width: 100%; }
  .product { margin-top: 44px; }
  .win-body { grid-template-columns: 1fr; height: auto; }
  .stage { aspect-ratio: 16 / 10; }
  .chat { height: 150px; border-inline-start: 0; border-top: 1px solid var(--line); }
  .alert { padding: 10px 14px; font-size: 13.5px; }
  .section { padding: 72px 0; }
  .bento, .platforms, .how { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .how { gap: 34px; } .how::before { display: none; }
  .checks { grid-template-columns: 1fr; }
  .phone { width: 270px; }
  .platform.you { order: -1; }   /* one column: the visitor's own device comes first */
  .cta-band { flex-direction: column; text-align: center; padding: 36px 24px; }
  .foot-in { justify-content: center; text-align: center; }
  .foot-in nav { justify-content: center; }
  .foot-in small { margin: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  .sa-s.s2, .alert { opacity: 1; }
}
