:root {
    --navy-950: #050b1f;
    --navy-900: #0a1633;
    --navy-800: #10224d;
    --navy-700: #183172;
    --blue: #2563eb;
    --blue-soft: #60a5fa;
    --gold: #f5b02e;
    --gold-deep: #d98e0b;
    --gold-soft: #fde7b0;
    --ink: #0f172a;
    --muted: #5b6b82;
    --line: #e6eaf2;
    --paper: #f7f8fc;
    --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.gold-text {
    background: linear-gradient(100deg, #ffd770, var(--gold) 45%, #ff9f1c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.35rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: .98rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}
.btn i { font-size: 1.25rem; }
.btn:hover { transform: translateY(-2px); }

.btn-gold {
    background: linear-gradient(135deg, #ffcf5a, var(--gold) 50%, var(--gold-deep));
    color: #1b1203;
    box-shadow: 0 10px 30px -10px rgba(245, 176, 46, .7);
}
.btn-gold:hover { box-shadow: 0 16px 36px -10px rgba(245, 176, 46, .85); }

.btn-ghost {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-color: rgba(255, 255, 255, .22);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); box-shadow: 0 12px 28px -12px rgba(16, 34, 77, .8); }

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 1.15rem .6rem .95rem;
    border-radius: 12px;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); }
.store-btn i { font-size: 1.9rem; }
.store-btn small { display: block; font-size: .68rem; opacity: .8; line-height: 1.1; letter-spacing: .02em; }
.store-btn strong { display: block; font-size: 1.05rem; line-height: 1.15; }
.store-btn.apk-btn { background: linear-gradient(135deg, #f5b52e, #d99a12); color: #1b1203; border-color: transparent; }
.store-btn.apk-btn i { color: #1b1203; }
.store-btn.is-soon { cursor: default; opacity: .9; }
.store-btn.is-soon:hover { transform: none; box-shadow: none; }
.store-btn .soon {
    position: absolute;
    top: -9px;
    right: -9px;
    background: var(--gold);
    color: #1b1203;
    font-size: .64rem;
    font-weight: 800;
    padding: .15rem .45rem;
    border-radius: 999px;
    letter-spacing: .03em;
}

/* ---------- Nav ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
    padding: 1rem 0;
}
.nav.is-scrolled {
    background: rgba(5, 11, 31, .88);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px -18px rgba(0, 0, 0, .8);
    padding: .6rem 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.brand img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.nav-links { display: flex; gap: 1.6rem; color: rgba(255, 255, 255, .78); font-weight: 600; font-size: .94rem; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { display: flex; gap: .6rem; align-items: center; }
.nav-cta .btn { padding: .6rem 1rem; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 8.5rem 0 5rem;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(37, 99, 235, .35), transparent 60%),
        radial-gradient(700px 420px at 10% 90%, rgba(245, 176, 46, .18), transparent 60%),
        linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 75%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    background: rgba(245, 176, 46, .12);
    border: 1px solid rgba(245, 176, 46, .35);
    color: var(--gold-soft);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .02em;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(245, 176, 46, .25); }

.hero h1 {
    margin: 1.1rem 0 1rem;
    font-size: clamp(2.3rem, 5vw, 3.9rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    font-weight: 800;
}
.hero .lead { font-size: 1.12rem; color: rgba(255, 255, 255, .78); max-width: 560px; margin: 0 0 .5rem; }
.hero .lead-sw { font-size: .98rem; color: rgba(255, 255, 255, .55); font-style: italic; max-width: 560px; margin: 0 0 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 2rem;
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    width: fit-content;
}
.hero-stats strong { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-size: .82rem; color: rgba(255, 255, 255, .6); }

.landing-error {
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    border-radius: 12px;
    background: rgba(239, 68, 68, .15);
    border: 1px solid rgba(239, 68, 68, .4);
    color: #fecaca;
    font-weight: 600;
}

/* ---------- Phone mockup ---------- */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-visual .glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 176, 46, .35), rgba(37, 99, 235, .15) 45%, transparent 70%);
    filter: blur(10px);
    animation: pulse 6s ease-in-out infinite;
}
.phone {
    position: relative;
    width: 290px;
    height: 580px;
    border-radius: 44px;
    padding: 12px;
    background: linear-gradient(145deg, #1f2937, #0b1020);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), inset 0 0 0 2px rgba(255, 255, 255, .08);
    transform: rotate(-4deg);
    animation: float 7s ease-in-out infinite;
}
.phone-screen {
    height: 100%;
    border-radius: 34px;
    overflow: hidden;
    background: #fff;
    color: var(--ink);
    display: flex;
    flex-direction: column;
}
.phone-notch { width: 110px; height: 24px; background: #0b1020; border-radius: 0 0 16px 16px; margin: 0 auto; flex: none; }
.phone-cover {
    margin: .7rem .8rem 0;
    height: 210px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--navy-700), var(--blue));
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    flex: none;
}
.phone-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .7)); }
.phone-cover .cover-title { position: absolute; left: .85rem; right: .85rem; bottom: .75rem; z-index: 1; color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.phone-cover .cover-title small { display: block; font-weight: 600; font-size: .72rem; opacity: .8; margin-top: .15rem; }
.phone-body { padding: .75rem .9rem; display: flex; flex-direction: column; gap: .55rem; font-size: .78rem; }
.phone-meta { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-weight: 600; }
.phone-meta .stars { color: var(--gold-deep); letter-spacing: 1px; }
.phone-chip { display: inline-block; background: #eef2ff; color: var(--navy-700); padding: .15rem .55rem; border-radius: 999px; font-weight: 700; font-size: .68rem; }
.phone-chapter { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.phone-chapter .num { width: 26px; height: 26px; border-radius: 8px; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .72rem; flex: none; }
.phone-chapter .t { font-weight: 700; line-height: 1.2; }
.phone-chapter .s { color: var(--muted); font-size: .68rem; }
.phone-chapter i { margin-left: auto; color: var(--blue); font-size: 1.05rem; }
.phone-read-btn { margin-top: .2rem; text-align: center; background: linear-gradient(135deg, #ffcf5a, var(--gold)); color: #1b1203; font-weight: 800; padding: .6rem; border-radius: 12px; }

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem .9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    color: var(--ink);
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
    font-size: .82rem;
    font-weight: 700;
    animation: float 6s ease-in-out infinite;
}
.float-card i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem; color: #fff; }
.float-card small { display: block; color: var(--muted); font-weight: 600; font-size: .7rem; }
.float-card.one { top: 70px; left: -10px; animation-delay: -1s; }
.float-card.two { top: 250px; right: -20px; animation-delay: -3s; }
.float-card.three { bottom: 60px; left: 10px; animation-delay: -2s; }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes pulse { 0%, 100% { opacity: .8; scale: 1; } 50% { opacity: 1; scale: 1.06; } }

/* ---------- Genres strip ---------- */
.genres-strip { background: var(--navy-800); padding: 1.1rem 0; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .06); }
.genres-track { display: flex; gap: .7rem; width: max-content; animation: marquee 40s linear infinite; }
.genres-strip:hover .genres-track { animation-play-state: paused; }
.genre-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    font-weight: 700;
    font-size: .88rem;
    white-space: nowrap;
}
.genre-chip span { color: var(--gold); font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section.block { padding: 5.5rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-kicker { display: inline-block; color: var(--gold-deep); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; }
.section-head h2 { margin: 0 0 .8rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section-head .sw { display: block; font-style: italic; font-size: .95rem; margin-top: .35rem; }

/* ---------- Stories ---------- */
.stories-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.stories-grid.few { display: flex; flex-wrap: wrap; justify-content: center; }
.stories-grid.few .story-card { width: 270px; }
.story-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}
.story-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(16, 34, 77, .45); }
.story-cover {
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--navy-700), var(--blue));
    background-size: cover;
    background-position: center;
    position: relative;
}
.story-cover .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .5); font-size: 3rem; }
.story-cover .rating {
    position: absolute;
    top: .7rem;
    left: .7rem;
    background: rgba(5, 11, 31, .78);
    color: #fff;
    border-radius: 999px;
    padding: .2rem .6rem;
    font-size: .78rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.story-cover .rating i { color: var(--gold); }
.story-info { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.story-info h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; font-weight: 800; }
.story-info .by { color: var(--muted); font-size: .85rem; font-weight: 600; }
.story-info .desc { color: var(--muted); font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .5rem; }
.story-tags span { background: #eef2ff; color: var(--navy-700); font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.story-tags .ch { background: #fff7e6; color: #92560a; }

.stories-empty {
    text-align: center;
    padding: 3rem 1rem;
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    background: #fff;
}

/* ---------- Features ---------- */
.features { background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.feature {
    padding: 1.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, var(--paper));
    transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: rgba(245, 176, 46, .6); transform: translateY(-3px); }
.feature .icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--navy-700), var(--blue));
    margin-bottom: 1rem;
    box-shadow: 0 10px 22px -12px rgba(37, 99, 235, .8);
}
.feature:nth-child(even) .icon { background: linear-gradient(135deg, #ffcf5a, var(--gold-deep)); color: #1b1203; box-shadow: 0 10px 22px -12px rgba(245, 176, 46, .9); }
.feature h3 { margin: 0 0 .4rem; font-size: 1.12rem; font-weight: 800; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }
.feature .sw { display: block; margin-top: .45rem; font-size: .84rem; font-style: italic; color: #8a97ab; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; max-width: 980px; margin: 0 auto; }
.plan {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 2rem 1.6rem;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -28px rgba(16, 34, 77, .5); }
.plan.popular {
    background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 30px 60px -30px rgba(10, 22, 51, .9);
    transform: scale(1.04);
}
.plan.popular:hover { transform: scale(1.04) translateY(-5px); }
.plan .badge {
    position: absolute;
    top: -13px;
    left: 50%;
    translate: -50% 0;
    background: linear-gradient(135deg, #ffcf5a, var(--gold));
    color: #1b1203;
    font-size: .74rem;
    font-weight: 800;
    padding: .3rem .8rem;
    border-radius: 999px;
    letter-spacing: .04em;
    white-space: nowrap;
}
.plan h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.plan .sw-period { font-size: .85rem; color: var(--muted); font-weight: 600; }
.plan.popular .sw-period { color: rgba(255, 255, 255, .6); }
.plan .price { margin: 1.1rem 0 .2rem; font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.plan .price small { font-size: .95rem; font-weight: 700; opacity: .7; margin-right: .25rem; }
.plan .per { color: var(--muted); font-size: .88rem; }
.plan.popular .per { color: rgba(255, 255, 255, .65); }
.plan ul { list-style: none; padding: 0; margin: 1.4rem 0 1.6rem; text-align: left; display: grid; gap: .55rem; font-size: .92rem; }
.plan li { display: flex; gap: .5rem; align-items: flex-start; }
.plan li i { color: #16a34a; font-size: 1.1rem; line-height: 1.4; }
.plan.popular li i { color: var(--gold); }
.plan .btn { width: 100%; justify-content: center; }
.pay-note { text-align: center; color: var(--muted); margin-top: 2rem; font-size: .92rem; }
.pay-note i { color: #16a34a; }

/* ---------- Authors ---------- */
.authors {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(700px 400px at 90% 0%, rgba(245, 176, 46, .22), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(37, 99, 235, .3), transparent 60%),
        linear-gradient(160deg, var(--navy-950), var(--navy-800));
}
.authors .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.authors .section-kicker { color: var(--gold); }
.authors h2 { margin: 0 0 1rem; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
.authors .intro { color: rgba(255, 255, 255, .75); font-size: 1.05rem; margin: 0 0 1.6rem; }
.share-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.4rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(245, 176, 46, .35);
    margin-bottom: 1.8rem;
}
.share-card .pct { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.share-card p { margin: 0; color: rgba(255, 255, 255, .78); font-size: .95rem; }
.share-card p strong { color: #fff; }
.author-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.steps { display: grid; gap: 1rem; counter-reset: step; }
.step {
    display: flex;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: background .2s ease, border-color .2s ease;
}
.step:hover { background: rgba(255, 255, 255, .08); border-color: rgba(245, 176, 46, .4); }
.step .n {
    counter-increment: step;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: linear-gradient(135deg, #ffcf5a, var(--gold-deep));
    color: #1b1203;
}
.step .n::before { content: counter(step); }
.step h4 { margin: 0 0 .2rem; font-size: 1.02rem; font-weight: 800; }
.step p { margin: 0; color: rgba(255, 255, 255, .68); font-size: .9rem; }
.step .sw { display: block; font-style: italic; font-size: .82rem; color: rgba(255, 255, 255, .5); margin-top: .2rem; }

.author-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 3.5rem; }
.perk { text-align: center; padding: 1.2rem 1rem; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.perk i { font-size: 1.7rem; color: var(--gold); }
.perk h5 { margin: .5rem 0 .25rem; font-size: .98rem; font-weight: 800; }
.perk p { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .62); }

/* ---------- How it works ---------- */
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; position: relative; }
.how {
    text-align: center;
    padding: 1.8rem 1.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.how .big { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; color: var(--navy-800); background: linear-gradient(135deg, var(--gold-soft), #fff4d6); border: 2px solid rgba(245, 176, 46, .45); }
.how h3 { margin: 0 0 .35rem; font-size: 1.08rem; font-weight: 800; }
.how p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Download CTA ---------- */
.download {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 3.5rem 3rem;
    color: #fff;
    background:
        radial-gradient(500px 300px at 100% 0%, rgba(245, 176, 46, .35), transparent 60%),
        linear-gradient(135deg, var(--navy-800), var(--navy-950));
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 40px 80px -40px rgba(10, 22, 51, .9);
}
.download h2 { margin: 0 0 .7rem; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.download p { margin: 0 0 1.5rem; color: rgba(255, 255, 255, .75); }
.download-apps { display: grid; gap: 1rem; }
.app-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
}
.app-tile .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.app-tile .ico.reader { background: linear-gradient(135deg, var(--blue), var(--navy-700)); }
.app-tile .ico.author { background: linear-gradient(135deg, #ffcf5a, var(--gold-deep)); color: #1b1203; }
.app-tile h4 { margin: 0; font-size: 1rem; font-weight: 800; }
.app-tile p { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .6); }
.app-tile .store-btn { margin-left: auto; padding: .45rem .8rem .45rem .7rem; }
.app-tile .store-btn i { font-size: 1.5rem; }
.app-tile .store-btn strong { font-size: .9rem; }

/* ---------- Footer ---------- */
footer { padding: 3rem 0 2rem; color: var(--muted); font-size: .9rem; }
footer .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.8rem; }
footer .brand { color: var(--ink); font-size: 1.05rem; }
footer .brand img { width: 34px; height: 34px; }
footer nav { display: flex; gap: 1.3rem; font-weight: 600; }
footer nav a:hover { color: var(--navy-700); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- SSO loading ---------- */
.sso-loading { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(5, 11, 31, .85); backdrop-filter: blur(4px); }
.sso-loading[hidden] { display: none !important; }
.sso-loading-card { text-align: center; color: #fff; font-weight: 600; }
.sso-spinner { width: 42px; height: 42px; margin: 0 auto .85rem; border: 3px solid rgba(245, 176, 46, .25); border-top-color: var(--gold); border-radius: 50%; animation: sso-spin .7s linear infinite; }
@keyframes sso-spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .stories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .author-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
    .nav-links { display: none; }
    .hero { padding-top: 7rem; }
    .hero .container, .authors .container, .download { grid-template-columns: 1fr; }
    .hero-visual { min-height: 520px; }
    .features-grid, .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
    .plan.popular { transform: none; }
    .plan.popular:hover { transform: translateY(-5px); }
    .download { padding: 2.5rem 1.6rem; }
}

@media (max-width: 640px) {
    .nav-cta .btn-ghost { display: none; }
    .hero-stats { grid-template-columns: repeat(2, auto); gap: 1.2rem 2rem; }
    .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
    .features-grid, .how-grid, .author-perks { grid-template-columns: 1fr; }
    .float-card.one { left: 0; }
    .float-card.two { right: 0; }
    .app-tile { flex-wrap: wrap; }
    .app-tile .store-btn { margin-left: 0; }
    section.block { padding: 4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
