﻿@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: #f3f7ff;
    --muted: #ccd6ec;
    --accent: #f2c26a;
    --accent-soft: #f8e2b6;
    --border: rgba(202, 217, 249, 0.28);
    --panel: rgba(11, 17, 29, 0.92);
    --panel-soft: rgba(15, 23, 38, 0.88);
    --shadow-lg: 0 24px 62px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--text);
    background-color: #090f1b;
    background-image:
        radial-gradient(1200px 700px at 8% -14%, rgba(101, 142, 244, 0.23), transparent 68%),
        radial-gradient(900px 640px at 92% -8%, rgba(246, 193, 111, 0.17), transparent 72%),
        linear-gradient(rgba(8, 13, 23, 0.8), rgba(8, 13, 23, 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 {
    margin: 0;
    font-family: var(--display-font);
    font-weight: 700;
    letter-spacing: 0.01em;
}

a {
    color: inherit;
}

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

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(200, 214, 245, 0.2);
    background: rgba(7, 11, 21, 0.76);
    backdrop-filter: blur(12px);
}

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

.brand-mark {
    font-size: clamp(1.46rem, 1.2rem + 1.14vw, 2.06rem);
}

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

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

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

main {
    padding: 0 0 14px;
}

.hero {
    padding: 64px 0 38px;
}

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

.hero-text,
.hero-assembly {
    border-radius: 24px;
    border: 1px solid var(--border);
    background: linear-gradient(152deg, rgba(15, 23, 38, 0.94), rgba(11, 17, 29, 0.88));
    box-shadow: var(--shadow-lg);
}

.hero-text {
    padding: clamp(20px, 3vw, 34px);
}

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

.hero-text h2 {
    font-size: clamp(2.05rem, 1.2rem + 3.4vw, 3.6rem);
    line-height: 1.02;
}

.hero-text p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: clamp(1.04rem, 0.95rem + 0.65vw, 1.3rem);
}

.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.97rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-button.primary {
    color: #171717;
    background: linear-gradient(135deg, #f0bc60, #ffdf98);
    box-shadow: 0 10px 22px rgba(243, 189, 84, 0.28);
}

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

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

.hero-assembly {
    --assemble: 0;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.assembly-piece {
    position: absolute;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: linear-gradient(160deg, rgba(240, 246, 255, 0.24), rgba(150, 177, 236, 0.07));
    backdrop-filter: blur(4px);
    transform: translate(
        calc(var(--x0) + (var(--x1) - var(--x0)) * var(--assemble)),
        calc(var(--y0) + (var(--y1) - var(--y0)) * var(--assemble))
    ) rotate(calc(var(--r0) + (var(--r1) - var(--r0)) * var(--assemble)));
}

.piece-1 {
    width: 132px;
    height: 92px;
    --x0: -164px;
    --y0: -136px;
    --x1: 44px;
    --y1: 70px;
    --r0: -32deg;
    --r1: -4deg;
}

.piece-2 {
    width: 114px;
    height: 118px;
    --x0: 380px;
    --y0: -118px;
    --x1: 248px;
    --y1: 54px;
    --r0: 28deg;
    --r1: 5deg;
}

.piece-3 {
    width: 146px;
    height: 88px;
    --x0: -184px;
    --y0: 404px;
    --x1: 56px;
    --y1: 246px;
    --r0: 22deg;
    --r1: -3deg;
}

.piece-4 {
    width: 126px;
    height: 106px;
    --x0: 364px;
    --y0: 392px;
    --x1: 248px;
    --y1: 232px;
    --r0: -22deg;
    --r1: 4deg;
}

.assembly-core {
    position: absolute;
    inset: 50%;
    width: 56%;
    height: 50%;
    transform: translate(-50%, -50%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: linear-gradient(160deg, rgba(11, 17, 30, 0.96), rgba(14, 22, 36, 0.82));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px;
}

.assembly-core p {
    margin: 0;
    font-size: 1.02rem;
    color: #f2f7ff;
}

.assembly-core span {
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--muted);
}

.kinetic-section,
.pricing-section,
.content-section {
    padding: 16px 0;
}

.kinetic-section .container,
.pricing-section .container,
.content-section .container,
footer .container {
    border-radius: 24px;
    border: 1px solid var(--border);
    background: linear-gradient(152deg, var(--panel), var(--panel-soft));
    box-shadow: var(--shadow-lg);
    padding: clamp(20px, 3vw, 38px);
}

.kinetic-section.alt .container {
    background: linear-gradient(152deg, rgba(18, 23, 36, 0.94), rgba(12, 18, 30, 0.9));
}

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

.section-head h2 {
    font-size: clamp(1.76rem, 1.3rem + 1.9vw, 2.62rem);
    line-height: 1.06;
}

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

.kinetic-card,
.kinetic-media {
    border-radius: 18px;
    border: 1px solid rgba(208, 221, 251, 0.3);
    padding: clamp(16px, 2vw, 22px);
    background: rgba(8, 13, 24, 0.96);
    box-shadow: var(--shadow-md);
}

.kinetic-card {
    min-height: 188px;
}

.block-label,
.media-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.82rem;
    color: var(--accent-soft);
}

.kinetic-card h3 {
    margin: 8px 0 10px;
    font-size: clamp(1.52rem, 1.24rem + 0.94vw, 2.1rem);
}

.kinetic-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.media-frame {
    margin-top: 10px;
    min-height: 156px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.32);
    background: linear-gradient(145deg, rgba(16, 28, 48, 0.86), rgba(9, 14, 25, 0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px;
}

.media-frame p {
    margin: 0;
    color: #d8e1f6;
    font-size: 1rem;
}

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

.pricing-card {
    position: relative;
    text-align: center;
    border-radius: 18px;
    border: 1px solid rgba(206, 220, 248, 0.26);
    background: linear-gradient(150deg, rgba(12, 18, 32, 0.95), rgba(9, 14, 26, 0.9));
    box-shadow: var(--shadow-md);
    padding: 24px 18px;
}

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

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

.price span {
    display: block;
    margin-top: 5px;
    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, #f0bd61, #ffe09a);
    box-shadow: 0 10px 20px rgba(240, 189, 96, 0.28);
}

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

.pricing-card.best-value {
    border-color: rgba(242, 194, 106, 0.88);
    background: linear-gradient(150deg, rgba(49, 36, 9, 0.8), rgba(15, 12, 8, 0.92));
}

.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;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.motion-in {
    --entry-x: 0px;
    --parallax-y: 0px;
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(var(--entry-x), 34px, 0);
    transition: opacity 0.78s ease, filter 0.78s ease, transform 0.78s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.motion-in.revealed {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, var(--parallax-y), 0);
}

.from-left {
    --entry-x: -124px;
}

.from-right {
    --entry-x: 124px;
}

.checkout-main {
    padding: 30px 0 52px;
}

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

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

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

.plan-option {
    width: 100%;
    text-align: left;
    border-radius: 14px;
    border: 1px solid rgba(207, 220, 248, 0.25);
    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(242, 194, 106, 0.9);
    background: rgba(242, 194, 106, 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-radius: 14px;
    border: 1px solid rgba(207, 220, 248, 0.25);
    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: #f4d69d;
}

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

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

footer {
    padding: 12px 0 32px;
}

footer .container {
    text-align: center;
    background: linear-gradient(152deg, rgba(10, 16, 28, 0.94), rgba(8, 13, 22, 0.9));
}

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 700px at 8% -14%, rgba(101, 142, 244, 0.23), transparent 68%),
            radial-gradient(980px 680px at 92% -8%, rgba(246, 193, 111, 0.17), transparent 72%),
            linear-gradient(rgba(8, 13, 23, 0.8), rgba(8, 13, 23, 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
            );
    }

    .kinetic-row {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        align-items: stretch;
    }

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

    .kinetic-row.reverse .kinetic-media {
        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(1460px 780px at 8% -14%, rgba(101, 142, 244, 0.23), transparent 68%),
            radial-gradient(1200px 760px at 92% -8%, rgba(246, 193, 111, 0.17), transparent 72%),
            linear-gradient(rgba(8, 13, 23, 0.78), rgba(8, 13, 23, 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: 50px;
    }

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

    .hero-assembly {
        aspect-ratio: 4 / 3;
    }
}

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

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

    .hero {
        padding: 42px 0 24px;
    }

    .hero-text,
    .hero-assembly,
    .kinetic-section .container,
    .pricing-section .container,
    .content-section .container,
    footer .container {
        border-radius: 18px;
    }

    .from-left {
        --entry-x: -52px;
    }

    .from-right {
        --entry-x: 52px;
    }
}
