:root {
    --ink: #16121a;
    --paper: #fff8ee;
    --mute: #4c527d;
    --accent: #ed6524;
    --accent-hover: #ff7a3a;
    --peach: #f9b86a;
    --label: #b5481a;
    --night: #0b1020;
    --font: "Nunito Sans", system-ui, sans-serif;
    --display: Quicksand, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.home-rain {
    margin: 0;
    font-family: var(--font);
    background: var(--night);
    color: #e9ecf6;
    -webkit-font-smoothing: antialiased;
}

body.home-rain a {
    color: #ffb27a;
}

body.home-rain a:hover {
    color: #ffd2ad;
}

body.home-rain a.brand,
body.home-rain a.brand:hover {
    color: #fff;
}

body.home-rain a.navlink {
    color: #c6cde3;
}

body.home-rain a.navlink:hover {
    color: #fff;
}

body.home-rain .store-row a {
    color: #a7b1d1;
}

body.home-rain .store-row a:hover {
    color: #ffd2ad;
}

img,
video {
    max-width: 100%;
    display: block;
}

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 700;
}

.wrap {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-primary,
body.home-rain a.btn-primary,
body.home-rain a.btn-primary:hover {
    background: var(--accent);
    color: var(--ink);
}

.btn-primary:hover,
body.home-rain a.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-ghost,
body.home-rain a.btn-ghost {
    border-color: rgba(255, 255, 255, 0.35);
    color: #f2f4fb;
}

.btn-ghost:hover,
body.home-rain a.btn-ghost:hover {
    border-color: #fff;
    color: #fff;
}

.btn-nav {
    min-height: 44px;
    padding: 0 20px;
    font-size: 15px;
}

.btn-lg {
    min-height: 60px;
    padding: 0 36px;
    font-size: 19px;
}

.btn-sm {
    min-height: 44px;
    font-size: 15px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.label {
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: 3px;
    color: #ffb27a;
}

.card-label {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--label);
}

@keyframes fall {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: -140px 900px, -90px 700px, -60px 520px; }
}

@keyframes slide {
    0% { transform: translateY(-10px); opacity: 0; }
    15% { opacity: 0.9; }
    100% { transform: translateY(160px); opacity: 0; }
}

.rain-zone {
    position: relative;
    background: linear-gradient(180deg, #070b17 0%, #0e1530 28%, #141b33 55%, #1d2238 78%, #2a2440 100%);
}

.rain {
    position: absolute;
    inset: 0;
    bottom: 12px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        repeating-linear-gradient(100deg, rgba(200, 215, 255, 0) 0 22px, rgba(200, 215, 255, 0.22) 22px 23px, rgba(200, 215, 255, 0) 23px 61px),
        repeating-linear-gradient(102deg, rgba(200, 215, 255, 0) 0 37px, rgba(200, 215, 255, 0.14) 37px 38px, rgba(200, 215, 255, 0) 38px 93px),
        repeating-linear-gradient(98deg, rgba(200, 215, 255, 0) 0 13px, rgba(200, 215, 255, 0.08) 13px 14px, rgba(200, 215, 255, 0) 14px 47px);
    background-size: 300px 900px, 420px 700px, 260px 520px;
    animation: fall 0.9s linear infinite;
    z-index: 1;
}

.rain-drops {
    position: absolute;
    inset: 0;
    bottom: 12px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.drop {
    position: absolute;
    width: 10px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.8), rgba(190, 205, 235, 0.15) 45%, rgba(0, 0, 0, 0) 75%);
    animation: slide 6s ease-in infinite;
}

.rain-horizon {
    position: relative;
    z-index: 3;
    height: 28px;
    background: linear-gradient(180deg, rgba(42, 36, 64, 0) 0%, #1a1630 55%, #0d0a16 100%);
}

.rain-horizon-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(200, 215, 255, 0.35) 12%, rgba(255, 255, 255, 0.7) 50%, rgba(249, 184, 106, 0.85) 78%, transparent 100%);
    box-shadow: 0 0 18px rgba(200, 215, 255, 0.35);
}

.rain-horizon-splash {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12px;
    background:
        radial-gradient(ellipse 18px 6px at 12% 40%, rgba(200, 215, 255, 0.35), transparent 70%),
        radial-gradient(ellipse 28px 7px at 38% 55%, rgba(200, 215, 255, 0.28), transparent 70%),
        radial-gradient(ellipse 16px 5px at 61% 35%, rgba(255, 255, 255, 0.22), transparent 70%),
        radial-gradient(ellipse 24px 6px at 84% 50%, rgba(249, 184, 106, 0.4), transparent 70%);
}

.hero,
.story {
    position: relative;
    z-index: 2;
}

.site-header {
    position: relative;
    padding: 24px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.brand:hover {
    color: #fff;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: 18px;
}

.brand-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 20px;
}

.nav-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    font-size: 16px;
}

.navlink {
    color: #c6cde3;
    text-decoration: none;
    font-weight: 600;
}

.navlink:hover {
    color: #fff;
}

.nav-toggle {
    display: none;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    min-height: 40px;
    padding: 0 16px;
    font-family: var(--display);
    font-weight: 700;
    cursor: pointer;
}

.hero-grid {
    padding: 48px 0 120px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 64px;
}

.hero-copy {
    flex: 1 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--mono);
    font-size: 15px;
    color: #9fb0e0;
    letter-spacing: 0.5px;
}

.time-pill {
    padding: 6px 12px;
    border: 1px solid rgba(159, 176, 224, 0.4);
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(44px, 6vw, 80px);
    line-height: 1.02;
    letter-spacing: -1.5px;
    color: #fff;
}

.lede {
    margin: 0;
    font-size: 21px;
    line-height: 1.55;
    color: #c6cde3;
    max-width: 560px;
}

.store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: 15px;
    color: #a7b1d1;
}

.store-row a {
    color: #a7b1d1;
    text-decoration: none;
}

.store-row a:hover {
    color: #ffd2ad;
}

.phone {
    flex: 0 1 380px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.phone-frame {
    position: relative;
    width: 340px;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 40px;
    padding: 10px;
    background: #05070d;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 80px rgba(237, 101, 36, 0.18);
}

.phone-frame video {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    object-fit: cover;
    background: var(--night);
}

.phone figcaption {
    font-size: 15px;
    color: #a7b1d1;
    text-align: center;
}

.story {
    padding: 110px 0;
}

.story-inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.story-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 760px;
}

.story-intro h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    color: #fff;
}

.story-intro p {
    margin: 0;
    font-size: 19px;
    line-height: 1.6;
    color: #c6cde3;
}

.beats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.beats li {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.beats h3 {
    margin: 0;
    font-size: 22px;
    color: #fff;
}

.beats p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: #b9c1da;
}

.beat-meta {
    font-family: var(--mono);
    font-size: 14px;
    color: #9fb0e0;
}

.beat-turn {
    background: linear-gradient(140deg, rgba(237, 101, 36, 0.22), rgba(224, 64, 251, 0.18));
    border-color: rgba(255, 178, 122, 0.35);
}

.beat-turn .beat-meta {
    color: #ffd2ad;
}

.beat-turn p {
    color: #f1e6f2;
}

.turn {
    position: relative;
    overflow: hidden;
    background: var(--peach);
    padding: 120px 0;
    color: var(--ink);
}

.turn a {
    color: inherit;
}

.turn-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 10%, #e040fb 0, rgba(224, 64, 251, 0) 34%),
        radial-gradient(circle at 92% 45%, #ffe600 0, rgba(255, 230, 0, 0) 26%),
        radial-gradient(circle at 5% 85%, #c600ff 0, rgba(198, 0, 255, 0) 30%),
        radial-gradient(circle at 70% 100%, #7ff 0, rgba(119, 255, 255, 0) 22%);
}

.turn-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;
}

.turn-copy {
    flex: 1 1 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.turn-kicker {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: 22px;
}

.turn-copy h2 {
    margin: 0;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: -1px;
}

.turn-copy p {
    margin: 0;
    font-size: 20px;
    line-height: 1.6;
    max-width: 600px;
    color: #2a1f2c;
}

.flag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.flag {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 18px;
    padding: 14px 20px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 18px;
}

.turn-count {
    flex: 0 1 300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--display);
    font-weight: 700;
}

.turn-99 {
    font-size: 200px;
    line-height: 0.9;
    letter-spacing: -6px;
}

.turn-count span:last-child {
    font-size: 32px;
}

.inside {
    background: var(--paper);
    color: #1c1e2e;
    padding: 110px 0;
}

.inside a,
.reviews a,
.author a {
    color: var(--accent);
}

.inside-inner,
.reviews-inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.inside-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
}

.inside-head h2,
.reviews h2,
.author h2,
.preview h2,
.buy h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
}

.inside-head h2 {
    max-width: 640px;
}

.inside-head p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--mute);
    max-width: 440px;
}

.inside-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.inside-grid article {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 1px 0 rgba(28, 30, 46, 0.06), 0 18px 40px rgba(28, 30, 46, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inside-grid h3 {
    margin: 0;
    font-size: 24px;
}

.inside-grid p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--mute);
}

.audience {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
}

.audience-label {
    font-family: var(--display);
    font-weight: 700;
    font-size: 18px;
    margin-right: 8px;
}

.audience span:not(.audience-label) {
    padding: 10px 18px;
    border-radius: 999px;
    background: #f1e6d6;
    font-weight: 600;
}

.preview {
    background: #16121a;
    padding: 120px 0;
}

.preview-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 72px;
}

.preview-stack {
    flex: 0 1 380px;
    margin: 0 auto;
    position: relative;
    height: 560px;
    width: 380px;
    max-width: 100%;
}

.preview-page {
    position: absolute;
    left: 36px;
    top: 20px;
    width: 320px;
    height: 504px;
    border-radius: 8px;
    background: #fffdf8;
    color: #1c1e2e;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.preview-page span {
    font-family: var(--display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 6px;
    color: var(--label);
}

.preview-page strong {
    font-family: var(--display);
    font-weight: 700;
    font-size: 58px;
    line-height: 1.02;
    text-align: center;
}

.preview-stack img {
    position: absolute;
    left: 0;
    top: 0;
    width: 300px;
    height: 472px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    transform: rotate(-6deg);
}

.preview-copy {
    flex: 1 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: #fff;
}

.preview-copy p {
    margin: 0;
    font-size: 19px;
    line-height: 1.6;
    color: #cfc8d6;
    max-width: 560px;
}

.reviews {
    background: var(--paper);
    color: #1c1e2e;
    padding: 110px 0;
}

.reviews-inner {
    gap: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

.reviews-grid blockquote {
    margin: 0;
    background: #fff;
    border-radius: 24px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: 0 18px 40px rgba(28, 30, 46, 0.06);
}

.reviews-grid p {
    margin: 0;
    font-family: var(--display);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.45;
}

.reviews-grid footer {
    font-size: 16px;
    color: var(--mute);
}

.reviews-grid b {
    color: #1c1e2e;
}

.author {
    background: #fff;
    color: #1c1e2e;
    padding: 100px 0;
}

.author-inner {
    max-width: 1000px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
}

.author-pic {
    flex: 0 0 180px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1e6d6;
}

.author-inner > div {
    flex: 1 1 480px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.author h2 {
    font-size: 40px;
}

.author p {
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
    color: var(--mute);
}

.buy {
    position: relative;
    overflow: hidden;
    background: var(--night);
    padding: 110px 0;
    text-align: center;
}

.buy-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 120%, rgba(237, 101, 36, 0.45), rgba(237, 101, 36, 0) 55%),
        radial-gradient(circle at 15% 0%, rgba(224, 64, 251, 0.25), rgba(224, 64, 251, 0) 40%);
}

.buy-inner {
    position: relative;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.buy h2 {
    color: #fff;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
}

.buy p {
    margin: 0;
    font-size: 20px;
    color: #c6cde3;
}

.buy-stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.site-footer {
    background: #070b17;
    color: #a7b1d1;
    padding: 32px 0;
    font-size: 15px;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.site-footer a {
    color: #a7b1d1;
}

.site-footer a:hover {
    color: #ffd2ad;
}

@media (max-width: 820px) {
    .wrap {
        width: min(1240px, calc(100% - 32px));
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 76px;
        right: 16px;
        left: 16px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 20px;
        background: rgba(7, 11, 23, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        z-index: 10;
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero-grid {
        padding: 28px 0 64px;
        justify-content: center;
        gap: 40px;
    }

    .hero-copy,
    .story-intro,
    .turn-copy,
    .inside-head,
    .preview-copy,
    .author-inner,
    .reviews-inner {
        text-align: center;
        align-items: center;
        margin-inline: auto;
    }

    .hero-copy {
        gap: 22px;
    }

    .kicker {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 10px;
        font-size: 14px;
        letter-spacing: 0;
        max-width: 22em;
    }

    .hero-copy h1 {
        font-size: clamp(32px, 9vw, 48px);
        letter-spacing: -1px;
    }

    .lede,
    .story-intro p,
    .turn-copy p,
    .inside-head p,
    .preview-copy p,
    .author p {
        max-width: 36em;
        margin-left: auto;
        margin-right: auto;
        font-size: 17px;
    }

    .cta-row {
        flex-direction: column;
        align-items: stretch;
        width: min(100%, 360px);
    }

    .cta-row .btn {
        width: 100%;
    }

    .store-row {
        justify-content: center;
        text-align: center;
        gap: 8px 14px;
    }

    .story {
        padding: 56px 0 36px;
    }

    .story-intro {
        max-width: none;
    }

    .story-intro h2,
    .turn-copy h2,
    .inside-head h2,
    .reviews h2,
    .preview h2,
    .author h2 {
        font-size: clamp(30px, 8vw, 42px);
    }

    .beats {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .turn,
    .inside,
    .preview,
    .reviews,
    .author,
    .buy {
        padding: 64px 0;
    }

    .turn-inner,
    .preview-inner,
    .author-inner {
        justify-content: center;
        text-align: center;
        gap: 32px;
    }

    .flag-row {
        justify-content: center;
    }

    .turn-99 {
        font-size: 120px;
        letter-spacing: -4px;
    }

    .inside-head {
        justify-content: center;
    }

    .inside-head h2,
    .inside-head p {
        max-width: none;
    }

    .inside-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .audience {
        justify-content: center;
        text-align: center;
    }

    .preview-stack {
        height: 420px;
        width: min(280px, 100%);
    }

    .preview-page {
        width: 230px;
        height: 370px;
        left: 22px;
    }

    .preview-page strong {
        font-size: 42px;
    }

    .preview-stack img {
        width: 210px;
        height: 330px;
    }

    .preview-copy {
        align-items: center;
    }

    .author-pic {
        margin-inline: auto;
    }

    .site-footer .wrap {
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rain,
    .drop {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}
