:root {
      --bg: #0F172A;
      --panel: #111928;
      --panel-strong: #1E293B;
      --text: #F8FAFC;
      --muted: #CBD5F5;
      --soft: #94A3B8;
      --accent: #38BDF8;
      --violet: #7C3AED;
      --line: rgba(148, 163, 184, 0.24);
    }

    * { box-sizing: border-box; }

    html {
      scroll-behavior: smooth;
      background: #030711;
    }

    body {
      margin: 0;
      color: var(--text);
      background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.14) 0%, transparent 28%),
        linear-gradient(215deg, rgba(124, 58, 237, 0.24) 0%, transparent 34%),
        linear-gradient(180deg, #0B1220 0%, var(--bg) 46%, #030711 100%);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      min-height: 100vh;
    }

    a { color: inherit; text-decoration: none; }
    button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
    button:focus-visible, a:focus-visible {
      outline: 3px solid rgba(92, 200, 247, 0.72);
      outline-offset: 3px;
      border-radius: 8px;
    }
    [hidden] { display: none !important; }

    .page { min-height: 100vh; }
    .shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

    /* ---------- site chrome ---------- */
    .nav {
      display: flex; align-items: center; justify-content: space-between;
      gap: 24px; padding: 16px 0;
    }
    .brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; font-weight: 800; }
    .brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 16px 32px rgba(124, 58, 237, 0.32); }
    .brand span { font-size: 18px; white-space: nowrap; }
    .nav-links {
      display: flex; align-items: center; gap: 18px;
      color: var(--muted); font-size: 14px; font-weight: 700;
    }
    .nav-links a { padding: 8px 0; }

    footer {
      padding: 36px 0 48px; color: var(--soft);
      border-top: 1px solid rgba(148, 163, 184, 0.12); margin-top: 40px;
    }
    .footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
    .footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
    footer a {
      color: var(--text); font-weight: 800; text-decoration: underline;
      text-decoration-color: rgba(56, 189, 248, 0.55); text-underline-offset: 4px;
    }

    /* ---------- hero ---------- */
    .hero { padding: 16px 0 12px; }
    .eyebrow {
      display: inline-flex; align-items: center; gap: 10px; width: fit-content;
      color: var(--accent); background: rgba(56, 189, 248, 0.10);
      border: 1px solid rgba(56, 189, 248, 0.28); border-radius: 999px;
      padding: 8px 12px; font-size: 13px; font-weight: 800;
    }
    .eyebrow::before {
      content: ""; width: 8px; height: 8px; border-radius: 999px;
      background: var(--accent); box-shadow: 0 0 18px rgba(56, 189, 248, 0.8);
    }
    h1 {
      margin: 12px 0 9px; max-width: 900px;
      font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05;
      font-weight: 900; letter-spacing: -0.01em;
    }
    .lead {
      max-width: 60ch; margin: 0; color: var(--muted);
      font-size: clamp(15.5px, 1.4vw, 17.5px); line-height: 1.5; font-weight: 500;
    }

    /* ---------- progress + demo nav ---------- */
    .prog {
      height: 4px; border-radius: 999px; background: rgba(148, 163, 184, 0.22);
      overflow: hidden; margin: 16px 0 18px;
    }
    .prog i { display: block; height: 100%; width: 0%; background: var(--accent); border-radius: 999px; }

    .demo-kicker {
      display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
      font-size: 12.5px; font-weight: 700; color: var(--soft);
    }
    .demo-kicker a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(56,189,248,.45); text-underline-offset: 3px; }
    .demo-kicker .sep { opacity: .5; }

    /* ---------- hub ---------- */
    .hubgrid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 16px; margin: 22px 0 8px;
    }
    .hubcard {
      display: flex; flex-direction: column; gap: 10px;
      padding: 18px; border-radius: 16px; border: 1px solid var(--line);
      background: rgba(17, 25, 40, 0.72); transition: border-color .18s ease, transform .18s ease;
    }
    .hubcard:hover { border-color: rgba(56, 189, 248, 0.6); transform: translateY(-2px); }
    .hubcard .hnum {
      font-size: 11px; font-weight: 800; letter-spacing: .12em;
      text-transform: uppercase; color: var(--accent);
    }
    .hubcard h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
    .hubcard p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
    .hubcard .hgo { margin-top: auto; color: var(--accent); font-size: 14px; font-weight: 800; }
    .hubcard.soon { opacity: .62; pointer-events: none; }
    .hubcard.soon .hgo { color: var(--soft); }

    .nextup {
      display: flex; align-items: center; justify-content: space-between; gap: 16px;
      flex-wrap: wrap; margin-top: 26px; padding-top: 22px;
      border-top: 1px solid rgba(148, 163, 184, 0.16);
    }
    .nextup .nlabel { color: var(--soft); font-size: 13px; font-weight: 700; }
    .nextup .ntitle { font-size: 19px; font-weight: 800; margin-top: 2px; }

    /* ---------- player ---------- */
    .player {
      display: grid; grid-template-columns: auto minmax(0, 1fr);
      gap: 40px; align-items: center; padding: 4px 0 8px;
    }
    .stagewrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
    .scalebox { position: relative; }
    .scaler { transform-origin: top left; }

    .caption { min-width: 0; }
    .caption .ckicker {
      font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em;
      text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
    }
    .caption h2 {
      margin: 0 0 12px; font-size: clamp(24px, 2.8vw, 34px);
      line-height: 1.12; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance;
    }
    .caption p {
      margin: 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px);
      line-height: 1.6; max-width: 46ch;
    }
    .caption .cnote {
      margin-top: 18px; padding-left: 14px; border-left: 3px solid rgba(56, 189, 248, 0.5);
      color: var(--soft); font-size: 14.5px; line-height: 1.55; max-width: 44ch;
    }

    /* ---------- controls ---------- */
    .controls { display: flex; align-items: center; gap: 12px; }
    .cbtn {
      width: 44px; height: 44px; border-radius: 999px;
      border: 1px solid var(--line); background: rgba(15, 23, 42, 0.72);
      display: flex; align-items: center; justify-content: center;
      color: var(--text);
    }
    .cbtn:hover { border-color: rgba(56, 189, 248, 0.7); color: var(--accent); }
    .cbtn[disabled] { opacity: 0.35; pointer-events: none; }
    .cbtn.play { width: 54px; height: 54px; background: var(--accent); color: #03101D; border-color: transparent; }
    .cbtn.play:hover { background: #7DD3FC; color: #03101D; }
    .cbtn svg { width: 18px; height: 18px; fill: currentColor; }
    .cbtn.play svg { width: 20px; height: 20px; }
    .stepcount {
      color: var(--soft); font-size: 13px; font-weight: 700;
      font-variant-numeric: tabular-nums; min-width: 74px; text-align: center;
    }

    .cta-row {
      display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
      margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(148, 163, 184, 0.16);
    }
    .button {
      display: inline-flex; align-items: center; justify-content: center;
      min-height: 48px; border-radius: 999px; padding: 0 22px;
      font-weight: 850; border: 1px solid transparent; white-space: nowrap;
    }
    .button.primary { color: #03101D; background: var(--accent); box-shadow: 0 18px 42px rgba(56, 189, 248, 0.28); }
    .button.secondary { color: var(--text); background: rgba(15, 23, 42, 0.72); border-color: var(--line); }
    .cta-note { color: var(--soft); font-size: 14px; }

    @media (max-width: 900px) {
      .player { grid-template-columns: 1fr; gap: 18px; }
      .caption { order: -1; }
      .caption p { max-width: none; font-size: 15.5px; }
      .caption h2 { font-size: 23px; margin-bottom: 8px; }
      .caption .ckicker { margin-bottom: 8px; }
      .caption .cnote { display: none; }
      .nav-links { display: none; }
      .chap { min-width: 128px; }
      .hero { padding: 10px 0 6px; }
      .lead { font-size: 15px; }
    }

    /* ======================= PHONE ======================= */
    .phone {
      position: relative; width: 393px; height: 852px; border-radius: 47px;
      background: #0F172A;
      box-shadow: 0 0 0 11px #0C0F16, 0 0 0 12.5px #2E3746, 0 30px 70px -26px rgba(0, 0, 0, 0.8);
      font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    }
    .phone * { box-sizing: border-box; }
    .glass { position: absolute; inset: 0; border-radius: 47px; overflow: hidden; isolation: isolate; }
    .island {
      position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
      width: 122px; height: 36px; border-radius: 20px; background: #04060B; z-index: 40;
    }
    .homebar {
      position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%);
      width: 134px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.8);
      z-index: 40; pointer-events: none;
    }
    .sbar {
      position: absolute; top: 0; left: 0; right: 0; height: 56px; z-index: 30;
      display: flex; justify-content: space-between; align-items: flex-start;
      padding: 17px 30px 0 40px; color: #F8FAFC; pointer-events: none;
    }
    .sbar .t { font-size: 16px; font-weight: 600; }

    .scr { position: absolute; inset: 0; background: #0F172A; overflow: hidden; }
    .scr .lay { position: absolute; inset: 0; display: flex; flex-direction: column; }
    .fadeable { transition: opacity 0.3s ease, transform 0.3s ease; }
    .scr.enter { opacity: 0; transform: translateX(14px); }
    .scr.exit { opacity: 0; transform: translateX(-14px); }

    /* screenshot frames */
    .scr.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
    .spot { position: absolute; inset: 0; pointer-events: none; }
    .spot .ring {
      position: absolute; border: 2px solid rgba(56, 189, 248, 0.95);
      border-radius: 18px; box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.18), 0 0 0 2000px rgba(2, 6, 16, 0.58);
      animation: spot 2.4s ease-in-out infinite;
    }
    @keyframes spot {
      0%, 100% { box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.14), 0 0 0 2000px rgba(2, 6, 16, 0.58); }
      50% { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.26), 0 0 0 2000px rgba(2, 6, 16, 0.58); }
    }

    /* onboarding */
    .scr.ob::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #101936, #0C1233); opacity: 0.85; }
    .ob-page { flex: 1; padding-top: 48px; padding-bottom: 84px; display: flex; flex-direction: column; position: relative; }
    .ob-hero-img { height: 55%; display: flex; align-items: center; justify-content: center; }
    .ob-hero-img img { width: 85%; max-height: 100%; object-fit: contain; }
    .ob-hero-txt { padding: 20px 32px 0; }
    .ob-t-hero { font-size: 32px; line-height: 40px; font-weight: 700; color: #F8FAFC; text-align: center; margin: 0 0 16px; }
    .ob-b-hero { font-size: 18px; line-height: 28px; color: #CBD5E1; text-align: center; margin: 0; }
    .ob-std { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 12px 24px; gap: 10px; }
    .ob-img-30 { height: 32%; display: flex; align-items: center; justify-content: center; margin: 8px 0 10px; }
    .ob-img-30 img { width: 64%; max-height: 100%; object-fit: contain; }
    .ob-t { font-size: 28px; line-height: 36px; font-weight: 700; color: #F8FAFC; text-align: center; margin: 0 0 16px; }
    .ob-b { font-size: 16px; line-height: 24px; color: #CBD5E1; text-align: center; margin: 0 0 12px; white-space: pre-line; padding: 0 8px; }
    .ob-hl { background: rgba(56, 189, 248, 0.1); border-left: 3px solid #38BDF8; padding: 16px; border-radius: 8px; margin: 8px 8px 0; }
    .ob-hl p { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: #38BDF8; }
    .ob-dots { position: absolute; bottom: 80px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; padding: 20px 0; }
    .ob-dots i { width: 8px; height: 8px; border-radius: 4px; background: #334155; }
    .ob-dots i.on { width: 24px; background: #38BDF8; }
    .ob-ctl {
      position: absolute; bottom: 0; left: 0; right: 0; display: flex;
      justify-content: space-between; align-items: center; padding: 20px 24px 26px;
      background: #0F172A; border-top: 1px solid #1E293B; gap: 10px;
    }
    .ob-skip { padding: 12px 16px; font-size: 16px; font-weight: 600; color: #94A3B8; }
    .ob-next { background: #38BDF8; padding: 14px 22px; border-radius: 8px; min-width: 140px; text-align: center; font-size: 16px; font-weight: 600; color: #0F172A; }

    /* auth */
    .scr.auth::before { content: ""; position: absolute; inset: 0; background: url(/assets/demo/authbg-20260911.webp) center/cover no-repeat; opacity: 0.78; }
    .auth-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 50px 24px 34px; }
    .fcard { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 26px; padding: 24px; display: flex; flex-direction: column; }
    .fcard .logo { width: 84px; height: 84px; object-fit: contain; align-self: center; margin-bottom: 10px; }
    .fcard h2 { margin: 0 0 6px; font-size: 26px; font-weight: 700; color: #F8FAFC; text-align: center; }
    .fcard .sub { margin: 0 0 18px; font-size: 15px; line-height: 22px; color: #B5C7E8; text-align: center; }
    .pnote { margin: -10px 0 18px; display: flex; align-items: center; justify-content: center; gap: 6px; }
    .pnote .pi { color: #A7F3D0; font-size: 14px; font-weight: 700; }
    .pnote .pt { color: #A7F3D0; font-size: 13px; font-weight: 700; }
    .igroup { margin-bottom: 13px; }
    .inputbx {
      position: relative; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 14px; padding: 14px 16px; font-size: 16px; color: #F8FAFC; min-height: 50px;
    }
    .inputbx.focused { border-color: #38BDF8; box-shadow: 0 8px 14px -6px rgba(56, 189, 248, 0.18); }
    .inputbx .ph { color: rgba(255, 255, 255, 0.65); }
    .inputbx .tog { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 700; color: #94A3B8; }
    .caret { display: inline-block; width: 2px; height: 18px; background: #38BDF8; vertical-align: -4px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
    @keyframes blink { 50% { opacity: 0; } }
    .reftog { min-height: 44px; margin: -6px 0 8px; display: flex; align-items: center; justify-content: center; }
    .reftog .rt { color: #B5C7E8; font-size: 14px; font-weight: 600; }
    .reftog .ra { color: #38BDF8; font-weight: 700; }
    .abtn { background: #38BDF8; border-radius: 16px; padding: 15px; text-align: center; font-size: 17px; font-weight: 700; color: #0B1220; }
    .abtn.dis { opacity: 0.65; }
    .sbtn {
      min-height: 50px; margin-top: 12px; padding: 14px 16px; display: flex;
      align-items: center; justify-content: center; border-radius: 16px;
      border: 1px solid rgba(125, 211, 252, 0.72); background: rgba(14, 165, 233, 0.06);
      color: #E0F2FE; font-size: 15px; font-weight: 700;
    }

    /* ---- Stories list (Tagged tab) ---- */
    .scr.list { background: #0B1220; }
    .lst { flex: 1; padding: 58px 16px 0; display: flex; flex-direction: column; min-height: 0; }
    .ltabs { display: flex; gap: 8px; margin-bottom: 14px; overflow: hidden; }
    .ltab { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #94A3B8; white-space: nowrap; }
    .ltab.on { background: #38BDF8; color: #0B1220; }
    .lsearch { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
    .lsbox {
      flex: 1; display: flex; align-items: center; gap: 8px; min-height: 42px;
      padding: 0 14px; border-radius: 999px; border: 1px solid #223047; background: rgba(15, 23, 42, 0.7);
      color: #64748B; font-size: 14.5px;
    }
    .lsbox svg { width: 16px; height: 16px; stroke: #64748B; fill: none; stroke-width: 2; }
    .lfilter { padding: 9px 14px; border-radius: 999px; border: 1px solid #38BDF8; color: #E2E8F0; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
    .lsummary { color: #38BDF8; font-size: 13.5px; font-weight: 700; margin-bottom: 14px; }
    .lsec {
      display: flex; align-items: center; justify-content: space-between;
      background: #111928; padding: 8px 12px; border-radius: 10px; margin-bottom: 10px;
    }
    .lsec b { font-size: 15px; font-weight: 700; color: #F8FAFC; }
    .lsec span { color: #94A3B8; font-size: 13px; font-weight: 700; }
    .lrow { background: #141D2B; border-radius: 18px; padding: 12px; display: flex; gap: 12px; margin-bottom: 10px; }
    .lthumb { width: 66px; height: 66px; border-radius: 14px; overflow: hidden; flex: none; border: 1px solid #334155; }
    .lthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .lmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
    .ltitle { color: #F8FAFC; font-size: 15.5px; font-weight: 700; line-height: 1.25; }
    .lowner { display: flex; align-items: center; gap: 6px; min-width: 0; }
    .lowner img { width: 18px; height: 18px; border-radius: 999px; object-fit: cover; flex: none; }
    .lowner .on { color: #CBD5E1; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
    .lowner .sep, .lowner .tm { color: #64748B; font-size: 12.5px; }
    .ltags { display: flex; gap: 6px; margin-left: auto; align-self: flex-end; }
    .ltag { background: #0F172A; border: 1px solid #223047; border-radius: 999px; padding: 4px 10px; color: #E2E8F0; font-size: 11.5px; font-weight: 700; }
    .lrowfoot { display: flex; align-items: flex-end; gap: 8px; }

    /* ---- Watching a story ---- */
    .scr.watch { background: #0B1220; }
    .wtop { position: relative; height: 46%; flex: none; background: #04070E; }
    .wtop img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.95; }
    .wclose {
      position: absolute; top: 58px; left: 16px; width: 34px; height: 34px; border-radius: 999px;
      background: rgba(2, 6, 16, 0.6); display: flex; align-items: center; justify-content: center;
      color: #F8FAFC; font-size: 17px; font-weight: 600;
    }
    .wplay {
      position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
      width: 74px; height: 74px; border-radius: 999px; background: rgba(56, 189, 248, 0.92);
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 16px 40px rgba(2, 6, 16, 0.6);
    }
    .wplay svg { width: 26px; height: 26px; fill: #04121F; margin-left: 4px; }
    .wscrub { position: absolute; left: 16px; right: 16px; bottom: 14px; }
    .wbar { height: 4px; border-radius: 999px; background: rgba(248, 250, 252, 0.28); overflow: hidden; }
    .wbar i { display: block; height: 100%; width: 34%; background: #38BDF8; border-radius: 999px; }
    .wtime { display: flex; justify-content: space-between; margin-top: 7px; color: #CBD5E1; font-size: 11.5px; font-weight: 600; }
    .wbody { flex: 1; padding: 18px 18px 0; overflow: hidden; }
    .wowner { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
    .wowner img { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; }
    .wowner b { color: #F8FAFC; font-size: 14.5px; font-weight: 700; display: block; }
    .wowner span { color: #94A3B8; font-size: 12.5px; }
    .wtitle { color: #F8FAFC; font-size: 22px; font-weight: 700; line-height: 1.2; margin: 0 0 8px; }
    .wprompt { color: #94A3B8; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 5px; }
    .wq { color: #CBD5E1; font-size: 14px; line-height: 1.45; margin: 0 0 14px; }
    .wcard { background: #141D2B; border-radius: 14px; padding: 14px; }
    .wcard b { color: #F8FAFC; font-size: 14.5px; font-weight: 700; display: block; margin-bottom: 6px; }
    .wcard p { color: #CBD5E1; font-size: 13px; line-height: 1.5; margin: 0 0 10px; }
    .wchips { display: flex; gap: 7px; }
    .wchip { background: #0F172A; border: 1px solid #223047; border-radius: 999px; padding: 4px 10px; color: #E2E8F0; font-size: 11.5px; font-weight: 700; }

    /* ---- shared tab bar ---- */
    .tabbar {
      height: 70px; background: #0B1220; border-top: 1px solid #1E293B;
      display: flex; align-items: center; padding: 8px 6px 0; margin-bottom: 22px; flex: none;
    }
    .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
    .tab i { width: 24px; height: 24px; display: block; background: #94A3B8; }
    .tab span { font-size: 11px; font-weight: 600; color: #94A3B8; }
    .tab.on i { background: #38BDF8; }
    .tab.on span { color: #38BDF8; }

    @media (prefers-reduced-motion: reduce) {
      .fadeable, .caret, .spot .ring { animation: none !important; transition: none !important; }
      .scr.enter, .scr.exit { opacity: 1; transform: none; }
      html { scroll-behavior: auto; }
    }
