﻿@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

:root {
    --display-font: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --body-font: "Cormorant Garamond", "Times New Roman", serif;
    --text: #f2f6ff;
    --muted: #c9d2e8;
    --accent: #f6cc6a;
    --accent-soft: #fde9b5;
    --bg-top: #090e1a;
    --panel: rgba(13, 18, 31, 0.9);
    --panel-soft: rgba(19, 26, 42, 0.78);
    --border: rgba(198, 214, 255, 0.26);
    --shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--text);
    background-color: var(--bg-top);
    background-image:
        radial-gradient(1100px 640px at 8% -10%, rgba(103, 150, 255, 0.22), transparent 65%),
        radial-gradient(1000px 680px at 92% -6%, rgba(247, 188, 105, 0.18), transparent 70%),
        linear-gradient(rgba(7, 12, 20, 0.8), rgba(7, 12, 20, 0.92)),
        image-set(
            url('images/bg-640.webp') type('image/webp') 1x,
            url('images/bg-640.jpg') type('image/jpeg') 1x,
            url('images/bg-1280.webp') type('image/webp') 2x,
            url('images/bg-1280.jpg') type('image/jpeg') 2x
        );
    background-size: auto, auto, auto, cover;
    background-position: center;
    background-repeat: no-repeat;
    line-height: 1.55;
}

h1,
h2,
h3,
h4,
.brand-mark {
    font-family: var(--display-font);
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.01em;
}

a {
    color: inherit;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(203, 216, 244, 0.2);
    background: rgba(8, 12, 22, 0.74);
    backdrop-filter: blur(11px);
}

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 14px 0;
}

.brand-mark {
    font-size: clamp(1.42rem, 1.15rem + 1.2vw, 2.1rem);
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

nav a {
    text-decoration: none;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #eff4ff;
    transition: border-color 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

nav a:hover,
nav a:focus-visible {
    border-color: rgba(255, 255, 255, 0.34);
    color: var(--accent);
    transform: translateY(-1px);
}

main {
    padding-bottom: 12px;
}

.hero {
    padding: 68px 0 44px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    align-items: center;
    gap: 28px;
}

.hero-copy {
    background: linear-gradient(150deg, rgba(14, 21, 35, 0.8), rgba(9, 12, 21, 0.64));
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: clamp(20px, 3vw, 34px);
}

.eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    color: var(--accent-soft);
}

.hero-copy h2 {
    font-size: clamp(2rem, 1.22rem + 3.1vw, 3.45rem);
    line-height: 1.05;
}

.hero-copy p {
    margin: 16px 0 0;
    font-size: clamp(1.05rem, 0.96rem + 0.6vw, 1.3rem);
    color: var(--muted);
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-button.primary {
    color: #161616;
    background: linear-gradient(135deg, #f5c45f, #ffd97f);
    box-shadow: 0 10px 24px rgba(243, 189, 84, 0.3);
}

.action-button.ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.action-button:hover,
.action-button:focus-visible {
    transform: translateY(-1px);
}

.assemble-wrap {
    display: grid;
    gap: 10px;
}

.assemble-stage {
    --hero-progress: 0;
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: radial-gradient(circle at 48% 40%, rgba(67, 96, 163, 0.45), rgba(7, 10, 18, 0.96));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.assemble-piece {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.24), rgba(165, 182, 225, 0.08));
    backdrop-filter: blur(4px);
    transform: translate(
        calc(var(--tx-start) + (var(--tx-end) - var(--tx-start)) * var(--hero-progress)),
        calc(var(--ty-start) + (var(--ty-end) - var(--ty-start)) * var(--hero-progress))
    ) rotate(calc(var(--r-start) + (var(--r-end) - var(--r-start)) * var(--hero-progress)));
    transition: transform 0.14s linear;
}

.piece-a {
    width: 130px;
    height: 98px;
    --tx-start: -160px;
    --ty-start: -116px;
    --tx-end: 42px;
    --ty-end: 70px;
    --r-start: -30deg;
    --r-end: -4deg;
}

.piece-b {
    width: 116px;
    height: 120px;
    --tx-start: 360px;
    --ty-start: -126px;
    --tx-end: 250px;
    --ty-end: 62px;
    --r-start: 26deg;
    --r-end: 6deg;
}

.piece-c {
    width: 144px;
    height: 88px;
    --tx-start: -172px;
    --ty-start: 392px;
    --tx-end: 58px;
    --ty-end: 244px;
    --r-start: 18deg;
    --r-end: -3deg;
}

.piece-d {
    width: 122px;
    height: 108px;
    --tx-start: 356px;
    --ty-start: 374px;
    --tx-end: 246px;
    --ty-end: 236px;
    --r-start: -24deg;
    --r-end: 3deg;
}

.assemble-core {
    position: absolute;
    inset: 50%;
    width: 56%;
    height: 52%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px;
    background: linear-gradient(160deg, rgba(9, 12, 22, 0.95), rgba(13, 19, 32, 0.72));
}

.assemble-core p {
    margin: 0;
    font-size: 1.04rem;
    color: #f2f6ff;
}

.assemble-core small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.86rem;
}

.assemble-note {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.story-section,
.pricing-section {
    padding: 18px 0;
}

.story-section .container,
.pricing-section .container,
footer .container,
.checkout-shell .container {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(155deg, var(--panel), rgba(8, 12, 21, 0.75));
    box-shadow: var(--shadow);
    padding: clamp(20px, 3.2vw, 40px);
}

.story-section.alt .container {
    background: linear-gradient(155deg, rgba(17, 23, 37, 0.88), rgba(12, 17, 30, 0.82));
}

.section-head {
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: clamp(1.68rem, 1.25rem + 1.8vw, 2.56rem);
    line-height: 1.08;
}

.story-row {
    --drift: 0px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 18px;
}

.story-card,
.media-slot {
    border: 1px solid rgba(208, 219, 244, 0.24);
    border-radius: 18px;
    background: rgba(10, 14, 24, 0.86);
    backdrop-filter: blur(8px);
    padding: 18px;
}

.story-card {
    transform: translateY(var(--drift));
    transition: transform 0.16s linear;
}

.media-slot {
    min-height: 188px;
    display: grid;
    align-content: center;
    gap: 8px;
    transform: translateY(calc(var(--drift) * -0.9));
    transition: transform 0.16s linear;
    background: linear-gradient(145deg, rgba(18, 26, 40, 0.86), rgba(8, 12, 22, 0.82));
}

.story-tag,
.media-title {
    margin: 0;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-soft);
}

.story-card h3 {
    margin: 8px 0 10px;
    font-size: clamp(1.45rem, 1.24rem + 0.8vw, 2rem);
}

.story-card p,
.media-slot p {
    margin: 0;
    font-size: 1.08rem;
    color: var(--muted);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 18px;
}

.pricing-card {
    position: relative;
    text-align: center;
    border: 1px solid rgba(211, 223, 247, 0.24);
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(13, 20, 34, 0.92), rgba(9, 13, 23, 0.88));
    padding: 24px 18px;
}

.pricing-card h3 {
    font-size: 1.6rem;
}

.price {
    margin: 12px 0 18px;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--accent);
}

.price span {
    display: block;
    margin-top: 6px;
    font-size: 0.92rem;
    color: var(--muted);
}

.pricing-cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    color: #171717;
    background: linear-gradient(135deg, #f4c35d, #ffde8f);
    box-shadow: 0 10px 22px rgba(242, 188, 76, 0.26);
}

.pay-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.pricing-card.best-value {
    border-color: rgba(245, 198, 88, 0.9);
    background: linear-gradient(150deg, rgba(46, 35, 9, 0.78), rgba(15, 12, 8, 0.9));
}

.best-value-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    padding: 4px 12px;
    background: var(--accent);
    color: #111;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scroll-reveal {
    opacity: 0;
    filter: blur(7px);
    transform: translate3d(var(--enter-x, 0px), 30px, 0) scale(0.985);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
}

.scroll-reveal.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

.from-left {
    --enter-x: -108px;
}

.from-right {
    --enter-x: 108px;
}

.checkout-main {
    padding: 34px 0 56px;
}

.checkout-intro {
    margin: 0;
    font-size: 1.1rem;
    color: var(--muted);
}

.checkout-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.plan-picker {
    display: grid;
    gap: 10px;
}

.plan-option {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(213, 224, 248, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    padding: 12px 14px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.plan-option:hover,
.plan-option:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.42);
}

.plan-option.active {
    border-color: rgba(245, 198, 88, 0.9);
    background: rgba(245, 198, 88, 0.14);
}

.plan-name {
    display: block;
    font-weight: 700;
    font-size: 1.02rem;
}

.plan-amount {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.paypal-panel {
    border: 1px solid rgba(213, 224, 248, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 14px;
}

.checkout-selection {
    margin: 0;
    font-size: 1.04rem;
}

#paypal-button-slot {
    margin-top: 12px;
    min-height: 148px;
}

.checkout-hint,
.checkout-lock,
.checkout-status {
    margin: 10px 0 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.checkout-lock {
    color: #f5d79f;
}

.checkout-status.success {
    color: #9cecbc;
}

.checkout-status.error {
    color: #ffb9b9;
}

footer {
    padding: 12px 0 32px;
}

footer .container {
    text-align: center;
    background: rgba(8, 12, 22, 0.78);
}

footer p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 1rem;
}

footer p:last-child {
    margin-bottom: 0;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
    text-decoration: underline;
}

.fine-print {
    font-size: 0.92rem;
}

@media (min-width: 760px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-card.best-value {
        grid-column: span 2;
        max-width: 560px;
        margin: 0 auto;
    }

    .checkout-grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        gap: 18px;
    }
}

@media (min-width: 900px) {
    body {
        background-image:
            radial-gradient(1200px 680px at 8% -10%, rgba(103, 150, 255, 0.22), transparent 65%),
            radial-gradient(1000px 700px at 92% -6%, rgba(247, 188, 105, 0.18), transparent 70%),
            linear-gradient(rgba(7, 12, 20, 0.8), rgba(7, 12, 20, 0.92)),
            image-set(
                url('images/bg-960.webp') type('image/webp') 1x,
                url('images/bg-960.jpg') type('image/jpeg') 1x,
                url('images/bg-1600.webp') type('image/webp') 2x,
                url('images/bg-1600.jpg') type('image/jpeg') 2x
            );
    }

    .story-row {
        grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
        align-items: stretch;
    }

    .story-row.reverse .story-card {
        order: 2;
    }

    .story-row.reverse .media-slot {
        order: 1;
    }
}

@media (min-width: 1120px) {
    .pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pricing-card.best-value {
        grid-column: auto;
        max-width: none;
        transform: scale(1.05);
    }
}

@media (min-width: 1400px) {
    body {
        background-image:
            radial-gradient(1440px 760px at 8% -10%, rgba(103, 150, 255, 0.22), transparent 65%),
            radial-gradient(1180px 780px at 92% -6%, rgba(247, 188, 105, 0.18), transparent 70%),
            linear-gradient(rgba(7, 12, 20, 0.78), rgba(7, 12, 20, 0.9)),
            image-set(
                url('images/bg-1600.webp') type('image/webp') 1x,
                url('images/bg-1600.jpg') type('image/jpeg') 1x,
                url('images/bg-2048.webp') type('image/webp') 2x,
                url('images/bg-2048.jpg') type('image/jpeg') 2x
            );
    }
}

@media (max-width: 980px) {
    .hero {
        padding-top: 52px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .assemble-stage {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 760px) {
    .header-content {
        justify-content: center;
        text-align: center;
    }

    nav {
        justify-content: center;
        width: 100%;
    }

    .hero {
        padding: 44px 0 28px;
    }

    .story-section .container,
    .pricing-section .container,
    .checkout-shell .container,
    footer .container,
    .hero-copy,
    .assemble-stage {
        border-radius: 18px;
    }

    .scroll-reveal {
        transform: translate3d(var(--enter-x, 0px), 22px, 0) scale(0.99);
    }

    .from-left {
        --enter-x: -48px;
    }

    .from-right {
        --enter-x: 48px;
    }
}
