/* CSS Reset and Variables */
:root {
    --text-color: #ffffff;
    --overlay-color: rgba(0, 0, 0, 0.45);
    --overlay-gradient: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.75) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: var(--text-color);
    overflow-x: hidden;
    /* Prevent scroll if content fits, but allow if screen is too small */
    overflow-y: auto;
}

/* Background Video Styling */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Shift the focal point to the very top to maximize hair visibility */
    object-position: center top;
    /* Scale up aggressively to ensure the video watermark at the bottom right is cropped out on tall mobile screens */
    transform: scale(1.18);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    background: var(--overlay-gradient);
    z-index: 1;
}

/* Cinematic vignette — darkens edges, spotlights center */
.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(
        ellipse 70% 60% at 50% 45%,
        transparent 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

/* Main Content Styling */
.content-wrapper {
    position: relative;
    z-index: 3;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    /* Push content down to make room for the model photo visible at the top */
    padding-bottom: 6rem;
}

.content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

/* ─── Brand Header (Logo + Tagline) ─── */
.brand-header {
    margin-bottom: clamp(6rem, 18vw, 14rem);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo — the source PNG has large built-in whitespace; we crop it visually */
.logo-wrapper {
    margin-bottom: 0.25rem;
    overflow: hidden;
    max-height: clamp(140px, 28vw, 240px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 100%;
    /* Increase relative width for mobile to dominate the screen more */
    max-width: min(1200px, 98vw);
    height: auto;
    /* Invert colors to make the black logo white on the dark premium background */
    filter: invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    /* Pull the actual text into view by offsetting the built-in whitespace */
    margin-top: -18%;
    margin-bottom: -35%;
}

.brand-tagline {
    font-family: 'Genora Sans', 'Inter', sans-serif;
    font-style: normal;
    transform: translateY(-8px);
    /* Significantly smaller on mobile so it is just subtext */
    font-size: clamp(0.7rem, 1.8vw, 1.1rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.15em;
}

/* ─── Email Capture Section ─── */
.email-capture {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 480px;
}

.capture-heading {
    font-family: 'Genora Sans', 'Inter', sans-serif;
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.capture-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ─── Glassmorphism Input ─── */
.input-wrapper {
    width: 100%;
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1.4rem;
    border: 1px solid rgba(196, 151, 70, 0.3);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.input-wrapper input:focus {
    border-color: rgba(232, 175, 72, 0.6);
    box-shadow: 0 0 16px rgba(232, 175, 72, 0.12);
}

/* ─── Gold Ring Submit Button (inspired by golden nav bar) ─── */
.submit-btn {
    position: relative;
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.submit-btn:hover {
    transform: scale(1.02);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Warm gold glow behind the ring */
.btn-glow {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: radial-gradient(ellipse at center, rgba(232, 175, 72, 0.15) 0%, transparent 70%);
    z-index: 0;
}

/* Spinning conic-gradient gold ring */
.btn-ring {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    overflow: hidden;
    z-index: 1;
}

.btn-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    /* 200% size, offset to spin from center */
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(from 0deg,
            #533517 0%,
            #c49746 12%,
            #feeaa5 22%,
            #ffffff 24%,
            #ffc0cb 25.5%,
            #feeaa5 27%,
            #c49746 37%,
            #533517 50%,
            #c49746 62%,
            #feeaa5 72%,
            #ffffff 74%,
            #aaddff 75.5%,
            #feeaa5 77%,
            #c49746 87%,
            #533517 100%);
    animation: spin-ring 4.5s linear infinite;
}

/* Inner plate covers the center — only 2px of gold ring visible */
.btn-ring::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 12px;
    background: rgba(20, 15, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@keyframes spin-ring {
    to {
        transform: rotate(360deg);
    }
}

/* Button text face */
.btn-face {
    position: relative;
    z-index: 2;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #feeaa5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Submitted state */
.submit-btn.submitted {
    pointer-events: none;
}

.submit-btn.submitted .btn-face {
    color: #fff;
    font-size: 1.3rem;
}

/* ─── Disclaimer (italic, matching design) ─── */
.capture-disclaimer {
    font-family: 'Genora Sans', 'Inter', sans-serif;
    font-style: normal;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
    line-height: 1.6;
    margin-top: 1.5rem;
}

/* ─── Button shimmer effect on submit ─── */
.submit-btn.shimmer-active .btn-ring::before {
    animation: spin-ring 1s linear infinite;
}

.submit-btn.shimmer-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(254, 234, 165, 0.3) 40%,
        rgba(254, 234, 165, 0.5) 50%,
        rgba(254, 234, 165, 0.3) 60%,
        transparent 100%
    );
    animation: shimmer-sweep 0.8s ease-out forwards;
    z-index: 3;
    border-radius: 14px;
}

@keyframes shimmer-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ─── Success Message — Grand Luxury Reveal ─── */
.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-message.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Confirmation text */
.success-text {
    font-family: 'Genora Sans', 'Inter', sans-serif;
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 300;
    color: #feeaa5;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.6s ease 0.5s, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.25) 0.5s;
    text-shadow: 0 0 15px rgba(232, 175, 72, 0.4);
    position: relative;
    z-index: 2;
}

.success-message.visible .success-text {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ─── Gold radial light burst ─── */
.success-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(254, 234, 165, 0.3) 0%,
        rgba(232, 175, 72, 0.1) 30%,
        transparent 60%
    );
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.success-message.visible .success-burst {
    animation: light-burst-flash 2.5s ease-out forwards 0.4s;
}

@keyframes light-burst-flash {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; filter: brightness(1.5); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; filter: brightness(1); }
}

/* ─── Floating gold particles ─── */
.gold-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #feeaa5;
    box-shadow: 0 0 6px #feeaa5, 0 0 12px #e8af48;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

.success-message.visible .gold-particle {
    animation: particle-explode 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.p1 { top: 60%; left: 50%; animation-delay: 0.4s !important; width: 6px; height: 6px; }
.p2 { top: 60%; left: 50%; animation-delay: 0.45s !important; }
.p3 { top: 60%; left: 50%; animation-delay: 0.4s !important; width: 4px; height: 4px; }
.p4 { top: 60%; left: 50%; animation-delay: 0.5s !important; width: 7px; height: 7px; }
.p5 { top: 60%; left: 50%; animation-delay: 0.45s !important; }
.p6 { top: 60%; left: 50%; animation-delay: 0.5s !important; width: 4px; height: 4px; }

.success-message.visible .p1 { animation-name: particle-blast-1; }
.success-message.visible .p2 { animation-name: particle-blast-2; }
.success-message.visible .p3 { animation-name: particle-blast-3; }
.success-message.visible .p4 { animation-name: particle-blast-4; }
.success-message.visible .p5 { animation-name: particle-blast-5; }
.success-message.visible .p6 { animation-name: particle-blast-6; }

@keyframes particle-blast-1 {
    0% { opacity: 0; transform: translate(0, 0) scale(0) rotate(0deg); }
    15% { opacity: 1; transform: translate(-60px, -80px) scale(1.5) rotate(45deg); filter: brightness(1.5); }
    80% { opacity: 0.8; transform: translate(-80px, -120px) scale(0.8) rotate(90deg); filter: brightness(1); }
    100% { opacity: 0; transform: translate(-100px, -140px) scale(0) rotate(120deg); }
}
@keyframes particle-blast-2 {
    0% { opacity: 0; transform: translate(0, 0) scale(0); }
    15% { opacity: 1; transform: translate(70px, -60px) scale(1.2); filter: brightness(1.5); }
    80% { opacity: 0.8; transform: translate(100px, -90px) scale(0.8); }
    100% { opacity: 0; transform: translate(120px, -110px) scale(0); }
}
@keyframes particle-blast-3 {
    0% { opacity: 0; transform: translate(0, 0) scale(0); }
    15% { opacity: 1; transform: translate(-70px, 30px) scale(1); filter: brightness(1.5); }
    80% { opacity: 0.8; transform: translate(-100px, 50px) scale(0.5); }
    100% { opacity: 0; transform: translate(-120px, 60px) scale(0); }
}
@keyframes particle-blast-4 {
    0% { opacity: 0; transform: translate(0, 0) scale(0); }
    15% { opacity: 1; transform: translate(80px, 40px) scale(1.8); filter: brightness(1.5); }
    80% { opacity: 0.8; transform: translate(110px, 60px) scale(1); }
    100% { opacity: 0; transform: translate(130px, 70px) scale(0); }
}
@keyframes particle-blast-5 {
    0% { opacity: 0; transform: translate(0, 0) scale(0); }
    15% { opacity: 1; transform: translate(-30px, -100px) scale(0.7); filter: brightness(1.5); }
    80% { opacity: 0.8; transform: translate(-40px, -140px) scale(0.4); }
    100% { opacity: 0; transform: translate(-50px, -170px) scale(0); }
}
@keyframes particle-blast-6 {
    0% { opacity: 0; transform: translate(0, 0) scale(0); }
    15% { opacity: 1; transform: translate(40px, -90px) scale(1.1); filter: brightness(1.5); }
    80% { opacity: 0.8; transform: translate(60px, -130px) scale(0.7); }
    100% { opacity: 0; transform: translate(70px, -160px) scale(0); }
}

/* ─── Footer ─── */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    text-align: center;
    padding: 1.5rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}

/* Premium Reveal Animations */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

body.page-loaded .fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.7s;
}

.delay-3 {
    transition-delay: 1.1s;
}

/* Responsive Adjustments */
/* Mobile-specific adjustments are handled by vw-based sizing above */