/* ====== GLOBAL RESET ====== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #fdfbfd;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ====== BACKGROUND VIDEO ====== */

#bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -4;
    filter: saturate(1.1) brightness(1.1);
}

/* Fade layer for smoother video transitions */

.video-fade {
    position: fixed;
    inset: 0;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    z-index: -2;
}

/* ====== THEME TINT OVERLAY (changes with data-theme) ====== */

.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -3;
    mix-blend-mode: screen;
}

/* base (default kaleidoscope) */
body[data-theme="base"] .bg-overlay {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 50%),
        radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.5), rgba(3, 3, 18, 0.88) 70%);
}

/* Theme: Aurora */
body[data-theme="aurora"] .bg-overlay {
    background:
        radial-gradient(circle at top left, rgba(255, 135, 235, 0.32), transparent 50%),
        radial-gradient(circle at bottom right, rgba(90, 200, 255, 0.32), rgba(5, 6, 26, 0.75) 70%);
}

/* Theme: Neon */
body[data-theme="neon"] .bg-overlay {
    background:
        radial-gradient(circle at top left, rgba(50, 255, 214, 0.38), transparent 55%),
        radial-gradient(circle at bottom right, rgba(8, 136, 255, 0.34), rgba(2, 4, 18, 0.80) 75%);
}

/* Theme: Sunset */
body[data-theme="sunset"] .bg-overlay {
    background:
        radial-gradient(circle at top left, rgba(255, 122, 60, 0.40), transparent 55%),
        radial-gradient(circle at bottom right, rgba(255, 15, 123, 0.38), rgba(10, 2, 14, 0.80) 75%);
}

/* Theme: Ocean */
body[data-theme="ocean"] .bg-overlay {
    background:
        radial-gradient(circle at top left, rgba(0, 242, 255, 0.38), transparent 55%),
        radial-gradient(circle at bottom right, rgba(0, 112, 255, 0.36), rgba(0, 3, 16, 0.80) 75%);
}

/* Dark veil for readability */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(3, 3, 12, 0.50),
        rgba(3, 3, 12, 0.68)
    );
    z-index: -1;
}

/* ====== HEADER ====== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 7vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    background: linear-gradient(to right, rgba(5, 5, 20, 0.85), rgba(5, 5, 20, 0.4));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 10;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-header nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.site-header nav a {
    text-decoration: none;
    color: #fdfbfd;
    position: relative;
    opacity: 0.8;
}

.site-header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff81f5, #7bf2ff);
    transition: width 0.25s ease;
}

.site-header nav a:hover {
    opacity: 1;
}

.site-header nav a:hover::after {
    width: 100%;
}

/* ====== GENERAL SECTION LAYOUT ====== */

main {
    margin-top: 80px; /* space for header */
}

.section {
    min-height: 100vh;
    padding: 80px 7vw;
    display: flex;
    align-items: center;
}

.section-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.section-heading {
    margin-bottom: 2.2rem;
}

.section-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    margin-bottom: 0.6rem;
}

.section-heading p {
    font-size: 0.98rem;
    opacity: 0.8;
}

/* ====== HERO ====== */

.hero {
    position: relative;
}

.hero-content {
    max-width: 700px;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: #a3f3ff;
    margin-bottom: 0.8rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.1rem;
    line-height: 1.1;
    margin-bottom: 1.1rem;
}

.hero-sub {
    font-size: 1rem;
    max-width: 520px;
    opacity: 0.9;
    margin-bottom: 1.6rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.8rem;
}

.btn {
    border-radius: 999px;
    padding: 0.7rem 1.6rem;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.btn.primary {
    background: radial-gradient(circle at top left, #ff81f5, #7bf2ff);
    color: #050514;
    box-shadow: 0 0 20px rgba(127, 243, 255, 0.35);
    font-weight: 600;
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 26px rgba(127, 243, 255, 0.5);
}

.scroll-hint {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* ====== COLOR SELECTOR SECTION ====== */

.selector {
    align-items: flex-start;
    padding-top: 110px;
    padding-bottom: 110px;
}

/* Hide palette radios */
input[name="palette"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Swatches row */

.swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.swatch {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    background: rgba(6, 7, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.swatch:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.14);
}

.swatch-dot {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: conic-gradient(from 180deg, #ff81f5, #7bf2ff, #ffdc7b, #ff81f5);
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.24);
}

.swatch-dot[data-colors="neon"] {
    background: conic-gradient(from 120deg, #32ffd6, #08f, #f0ff4d, #32ffd6);
}

.swatch-dot[data-colors="sunset"] {
    background: conic-gradient(from 160deg, #ff7a3c, #ff0f7b, #ffd45a, #ff7a3c);
}

.swatch-dot[data-colors="ocean"] {
    background: conic-gradient(from 190deg, #00f2ff, #0070ff, #0b132b, #00f2ff);
}

.swatch-text strong {
    font-size: 0.95rem;
}

.swatch-text small {
    display: block;
    font-size: 0.78rem;
    opacity: 0.75;
}

.tiny-note {
    margin-top: 0.9rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ====== CHECKOUT ====== */

.checkout {
    padding-top: 110px;
    padding-bottom: 110px;
}

.checkout-card {
    max-width: 540px;
    margin: 0 auto;
    padding: 2.3rem 2.1rem 2rem;
    border-radius: 32px;
    background: rgba(8, 9, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
}

.checkout-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.checkout-sub {
    font-size: 0.94rem;
    opacity: 0.78;
    margin-bottom: 1.5rem;
}

.checkout-summary {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.checkout-summary h3 {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.checkout-summary p {
    font-size: 0.92rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(255, 129, 245, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn.wide {
    width: 100%;
    justify-content: center;
}

.note {
    margin-top: 0.7rem;
    font-size: 0.78rem;
    opacity: 0.6;
}

/* ====== FOOTER ====== */

.site-footer {
    padding: 1rem 7vw 1.5rem;
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.6;
}

/* ====== RESPONSIVE ====== */

@media (max-width: 960px) {
    .checkout-summary {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .site-header nav {
        gap: 0.9rem;
        flex-wrap: wrap;
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .section {
        padding-inline: 5vw;
    }

    .checkout-card {
        padding-inline: 1.5rem;
    }

    .checkout-summary {
        grid-template-columns: 1fr;
    }
}
