/* qisqa.tv landing page — same design tokens as the app and the admin panel (dark cinematic UI). */

:root {
  color-scheme: dark;
  --fon: #0B0A0D;
  --deep: #050406;
  --s1: #151318;
  --s2: #1E1B22;
  --s3: #2A2630;
  --t1: #F5F2F6;
  --t2: #A9A3AF;
  --t3: #6F6975;
  --soft: #CFC9D4;
  --red: #E0284F;
  --red-hi: #EB3A60;
  --red-t: #FF5C7A;
  --gold: #F6B93B;
  --gold-t: #FFD46E;
  --gold-grad: linear-gradient(180deg, #FFD36B, #F2A91E);
  --line: rgba(255, 255, 255, .06);
  --line2: rgba(255, 255, 255, .1);
  --line3: rgba(255, 255, 255, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: 20px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; scrollbar-color: var(--s3) transparent; }
body {
  margin: 0;
  background: var(--fon);
  color: var(--t1);
  font: 400 16px/1.6 Onest, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: rgba(224, 40, 79, .45); color: #fff; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b { font-weight: 700; color: var(--t1); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red-t); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-tile { display: inline-grid; place-items: center; width: 20px; height: 28px; border-radius: 6px; background: var(--red); flex: none; }
.logo-play { width: 0; height: 0; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.logo-word { font: 700 21px/1 Unbounded, sans-serif; letter-spacing: -.8px; }
.logo-tile.xl { width: 46px; height: 64px; border-radius: 14px; box-shadow: 0 0 60px rgba(224, 40, 79, .6); }
.logo-tile.xl .logo-play { border-left-width: 17px; border-top-width: 11px; border-bottom-width: 11px; margin-left: 5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: 999px; font: 600 15px/1 Onest, sans-serif; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(224, 40, 79, .35); }
.btn-red:hover { background: var(--red-hi); transform: translateY(-1px); }
.btn-gold { background: var(--gold-grad); color: #1A1204; box-shadow: 0 10px 30px rgba(246, 185, 59, .25); }
.btn-gold:hover { transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--t1); box-shadow: inset 0 0 0 1px var(--line2); }
a.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn.is-soon, .btn[aria-disabled="true"] { color: var(--t3); cursor: default; box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 255, 255, .03); transform: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta.center { justify-content: center; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 10, 13, .72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; font-weight: 500; color: var(--t2); }
.nav a:hover, .foot-nav a:hover { color: var(--t1); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% 0; pointer-events: none;
  background:
    radial-gradient(46% 55% at 78% 38%, rgba(224, 40, 79, .26), transparent 70%),
    radial-gradient(40% 45% at 12% 8%, rgba(246, 185, 59, .07), transparent 70%);
}
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; letter-spacing: .2px; color: var(--red-t); margin-bottom: 20px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(224, 40, 79, .18); }
.eyebrow.gold { color: var(--gold-t); }
.eyebrow.gold .dot { box-shadow: 0 0 0 5px rgba(246, 185, 59, .16); }
h1 { font: 700 clamp(34px, 5.4vw, 62px)/1.08 Unbounded, sans-serif; letter-spacing: -.035em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--red-t); }
.lead { margin: 24px 0 32px; max-width: 520px; font-size: clamp(16px, 1.5vw, 18.5px); color: var(--t2); }
.hero-stats { margin-top: 26px; font-size: 14px; color: var(--t3); }
.hero-stats b { color: var(--soft); font-weight: 600; }

.stage { position: relative; height: 560px; display: grid; place-items: center; }
.phone {
  position: relative; z-index: 2; width: 264px; aspect-ratio: 390 / 844; padding: 8px; border-radius: 44px;
  background: linear-gradient(160deg, #3A3640, #151318 40%, #0B0A0D);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px rgba(0, 0, 0, .7), 0 0 120px rgba(224, 40, 79, .22);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--deep); }
.screen-art { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity .6s var(--ease); }
.screen-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 4, 6, .5), transparent 22%, transparent 48%, rgba(5, 4, 6, .92)); }
.screen-top { position: absolute; top: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 18px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .55); }
.screen-top .on { color: #fff; }
.screen-top .on::after { content: ''; display: block; width: 16px; height: 2.5px; margin: 5px auto 0; border-radius: 2px; background: var(--red); }
.screen-side { position: absolute; right: 10px; bottom: 124px; display: grid; gap: 16px; }
.act { display: grid; justify-items: center; gap: 3px; }
.act svg { width: 28px; height: 28px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.act i { font-style: normal; font-size: 10px; font-weight: 600; color: #fff; }
.screen-bottom { position: absolute; left: 14px; right: 50px; bottom: 18px; }
.screen-line { font-size: 13px; font-weight: 600; line-height: 1.35; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); margin-bottom: 12px; }
.screen-title { font: 700 14px/1.25 Unbounded, sans-serif; letter-spacing: -.3px; }
.screen-meta { margin-top: 4px; font-size: 11px; color: rgba(255, 255, 255, .7); }
.screen-bar { margin-top: 12px; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.screen-bar span { display: block; height: 100%; width: 0; background: var(--red); border-radius: 2px; }
.screen.playing .screen-bar span { animation: bar 5s linear forwards; }
.screen.fade .screen-art, .screen.fade .screen-bottom { opacity: 0; }
.screen-bottom { transition: opacity .4s var(--ease); }
@keyframes bar { to { width: 100%; } }

.side-poster { position: absolute; z-index: 1; width: 176px; aspect-ratio: 3 / 4; border-radius: 18px; background-size: cover; background-position: center; background-color: var(--s2); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); opacity: .8; }
.side-poster.left { left: 2%; top: 22%; transform: rotate(-9deg); }
.side-poster.right { right: 0; top: 34%; transform: rotate(8deg); }

/* ---------- Sections ---------- */
.sec { padding: 56px 0; }
.sec-head { margin-bottom: 26px; }
h2 { font: 700 clamp(24px, 3vw, 34px)/1.15 Unbounded, sans-serif; letter-spacing: -.03em; text-wrap: balance; }
.sec-head p { margin-top: 10px; color: var(--t2); }

/* Poster rails: bleed to the screen edge on small screens, snap card by card. */
.rail-wrap { overflow: hidden; }
.rail { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-left: var(--gutter); padding-bottom: 12px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > li { flex: none; width: 178px; scroll-snap-align: start; }
.card { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.poster { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background-color: var(--s2); background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 10, 13, .8)); }
.card:hover .poster { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line3), 0 18px 40px rgba(0, 0, 0, .5); }
.poster .eps { position: absolute; left: 10px; bottom: 9px; z-index: 1; font-size: 11.5px; font-weight: 600; color: #fff; }
.poster .rate { position: absolute; right: 10px; bottom: 9px; z-index: 1; font-size: 11.5px; font-weight: 700; color: var(--gold-t); }
.card-title { margin-top: 11px; font-size: 14.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { margin-top: 3px; font-size: 12.5px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Top 10: the outlined place number stands beside the poster, tucked slightly behind it. */
.rail-top > li { width: 226px; }
.rail-top .card { display: grid; grid-template-columns: 58px minmax(0, 1fr); }
.rail-top .card > * { grid-column: 2; }
.rail-top .poster { z-index: 1; }
.rail-top .card > .rank { grid-column: 1; grid-row: 1; align-self: end; justify-self: end; margin-right: -4px; font: 800 80px/.8 Unbounded, sans-serif; letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 2px var(--s3); user-select: none; }
.rail-top li:nth-child(10) { width: 268px; }
.rail-top li:nth-child(10) .card { grid-template-columns: 100px minmax(0, 1fr); }
.rail-top li:nth-child(-n+3) .rank { -webkit-text-stroke-color: var(--red); }

.genres { display: flex; flex-wrap: wrap; gap: 12px; }
.genre { position: relative; display: flex; align-items: flex-end; width: 170px; height: 84px; padding: 12px 14px; border-radius: 16px; overflow: hidden; font-weight: 700; font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 26px 24px 28px; border-radius: 24px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(224, 40, 79, .16); color: var(--red-t); font: 700 16px/1 Unbounded, sans-serif; }
.step-n.gold { background: rgba(246, 185, 59, .14); color: var(--gold-t); }
.step h3 { margin: 18px 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.step p { color: var(--t2); font-size: 15px; }

.soon { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.soon li { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.soon .poster { width: 72px; flex: none; border-radius: 12px; }
.soon .poster::after { display: none; }
.soon-date { display: inline-block; margin-bottom: 6px; padding: 4px 9px; border-radius: 999px; background: rgba(224, 40, 79, .16); color: var(--red-t); font-size: 12px; font-weight: 700; }
.soon-title { font-weight: 600; line-height: 1.3; }

.studio { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; padding: 48px; border-radius: 32px; background: radial-gradient(70% 120% at 100% 0%, rgba(246, 185, 59, .12), transparent 65%), var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.studio:has(.studio-list[hidden]) { grid-template-columns: 1fr; }
.studio-copy > p:not(.eyebrow) { margin-top: 14px; max-width: 560px; color: var(--t2); }
.ticks { margin: 22px 0 30px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--soft); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(246, 185, 59, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='%23FFD46E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.studio-list { display: grid; gap: 10px; }
.studio-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.studio-mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background-size: cover; background-position: center; font: 700 16px/1 Unbounded, sans-serif; }
.studio-name { font-weight: 600; line-height: 1.25; }
.studio-sub { font-size: 12.5px; color: var(--t3); }

.get { text-align: center; padding: 64px 24px; border-radius: 32px; background: radial-gradient(60% 90% at 50% 0%, rgba(224, 40, 79, .22), transparent 70%), var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.get h2 { margin-top: 28px; }
.get > p { margin: 12px auto 28px; max-width: 480px; color: var(--t2); }
.get .get-note { margin: 22px auto 0; font-size: 13px; color: var(--t3); }

/* ---------- Footer ---------- */
.foot { margin-top: 24px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 28px; padding-bottom: 36px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--t2); }
.copy { margin-left: auto; font-size: 13px; color: var(--t3); }

/* ---------- Series sheet ---------- */
.sheet { width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 28px; background: var(--s1); color: var(--t1); box-shadow: 0 0 0 1px var(--line2), 0 40px 100px rgba(0, 0, 0, .7); overflow: hidden; }
.sheet[open] { display: grid; grid-template-columns: 240px 1fr; animation: pop .28s var(--ease); }
.sheet::backdrop { background: rgba(5, 4, 6, .72); backdrop-filter: blur(6px); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.sheet-poster { min-height: 320px; background-size: cover; background-position: center; }
.sheet-body { padding: 30px 28px 28px; overflow-y: auto; }
.sheet-body h3 { font: 700 22px/1.2 Unbounded, sans-serif; letter-spacing: -.03em; padding-right: 36px; }
.sheet-meta { margin-top: 10px; font-size: 13.5px; color: var(--t2); }
.sheet-meta .star { color: var(--gold-t); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tags li { padding: 6px 12px; border-radius: 999px; background: var(--s2); font-size: 12.5px; font-weight: 600; color: var(--soft); }
.sheet-desc { margin-bottom: 24px; color: var(--t2); font-size: 15px; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(34, 31, 39, .9); color: var(--t1); cursor: pointer; }
.sheet-close svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .top-in .btn { margin-left: auto; }
  .hero { padding: 44px 0 24px; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .stage { height: 500px; }
  .phone { width: 232px; }
  .side-poster { width: 150px; }
  .side-poster.left { left: calc(50% - 220px); }
  .side-poster.right { right: calc(50% - 220px); }
  .steps { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 1fr; padding: 32px 24px; }
  .sec { padding: 40px 0; }
}
@media (max-width: 560px) {
  .btn-lg { height: 52px; padding: 0 22px; font-size: 15px; }
  .cta .btn-lg { flex: 1 1 100%; }
  .rail > li { width: 148px; }
  .rail-top > li { width: 196px; }
  .rail-top .card { grid-template-columns: 48px minmax(0, 1fr); }
  .rail-top .card > .rank { font-size: 66px; }
  .genre { width: calc(50% - 6px); }
  .sheet[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .sheet-poster { min-height: 0; aspect-ratio: 16 / 10; }
  .sheet-body { overflow: visible; padding: 22px 20px 24px; }
  .sheet-body .btn { width: 100%; }
  .get { padding: 48px 20px; }
  .copy { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
