/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --accent-orange: #C63D0F; /* Orange button color */
    --form-bg: #111111;
    --font-sans: 'Lato', sans-serif;
    --font-display: 'Morganite', Impact, sans-serif; 
}

@font-face {
    font-family: 'Morganite';
    src: url('../assets/Morganite-Black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Morganite Thin Italic';
    src: url('../assets/Morganite-ThinItalic.ttf') format('truetype');
}
@font-face {
    font-family: 'Morganite Light Italic';
    src: url('../assets/Morganite-LightItalic.ttf') format('truetype');
}
@font-face {
    font-family: 'Morganite Medium Italic';
    src: url('../assets/Morganite-MediumItalic.ttf') format('truetype');
}
@font-face {
    font-family: 'Morganite Bold Italic';
    src: url('../assets/Morganite-BoldItalic.ttf') format('truetype');
}
@font-face {
    font-family: 'Morganite Black Italic';
    src: url('../assets/Morganite-BlackItalic.ttf') format('truetype');
}

.font-thin-italic { font-family: 'Morganite Thin Italic'; }
.font-light-italic { font-family: 'Morganite Light Italic'; }
.font-medium-italic { font-family: 'Morganite Medium Italic'; }
.font-bold-italic { font-family: 'Morganite Bold Italic'; }
.font-black-italic { font-family: 'Morganite Black Italic'; }

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Slight noise texture overlay */
.overlay-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Background image of the zipper and people */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/hero-desktop.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}
/* Dark gradient overlay to ensure text is readable on the left */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 5%;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.logo img {
    height: 35px;
    object-fit: contain;
    filter: invert(1); /* Invert black logo to white */
}

.header-right span {
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.hamburger-menu {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* Utility classes for responsive hiding */
.mobile-only {
    display: none;
}
.desktop-only {
    display: block;
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 100px 5% 40px 5%; /* Top padding for header, bottom padding before footer */
    pointer-events: none; /* Let clicks pass through empty areas */
}

/* All interactive elements need pointer-events restored */
.main-container > *, .header, .footer {
    pointer-events: auto;
}

/* Title Section */
.title-section {
    margin-top: 2rem;
    margin-bottom: auto; /* Push everything else down */
}

.peekaboo-container {
    display: inline-block;
    position: relative;
}

.title-peekaboo {
    font-size: 19vw;
    line-height: 0.8;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-primary);
    margin: 0;
    font-weight: normal;
    font-style: normal;
}

.subtitle {
    font-size: 0.75rem;
    letter-spacing: 4px;
    font-family: var(--font-sans);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    position: absolute;
    right: 4px; /* Counteract the 4px letter-spacing of the last exclamation mark */
    bottom: -15px;
}

/* Left Content Section */
.left-content {
    max-width: 450px;
    margin-top: 8rem;
}

.text-block h2 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.text-block p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Form Styling */
.form-block {
    margin-bottom: 2.5rem;
}

.waitlist-form {
    display: flex;
    align-items: center;
    background: var(--form-bg);
    border-radius: 50px;
    padding: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem;
}

.waitlist-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
}

.waitlist-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.waitlist-form button {
    background: var(--accent-orange);
    color: var(--text-primary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.waitlist-form button:hover {
    background: #e04a17;
    transform: scale(1.05);
}

/* Spam Disclaimer */
.spam-disclaimer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    font-size: 0.75rem;
    padding-left: 1rem;
}

.crest-icon {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    filter: invert(1); /* Invert black logo to white */
}

/* Divider */
.section-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0 0 2rem 0;
}

/* Social Block */
.social-block .follow-us {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px; /* Square borders for the new design */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity 0.3s ease, background 0.3s ease;
}

.social-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 2rem 5%;
    width: 100%;
    position: relative;
    z-index: 10;
    font-size: 0.75rem;
    opacity: 0.6;
}

.footer-right {
    display: flex;
    gap: 1.5rem;
}

.footer-right a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-right a:hover {
    opacity: 1;
}

/* ------------------------------------- */
/* Mobile Responsive Adjustments         */
/* ------------------------------------- */
@media (max-width: 768px) {
    .hero-bg {
        background-image: url('../assets/hero-mobile.png');
    }
    .desktop-only { display: none !important; }
    .mobile-only { display: flex; }

    .header {
        padding: 1.5rem 5%;
    }

    .mobile-top-text {
        position: absolute;
        top: 80px;
        width: 100%;
        text-align: center;
        z-index: 10;
        font-size: 0.75rem;
        letter-spacing: 1px;
        opacity: 0.8;
    }

    /* Change gradient to bottom up for mobile readability */
    .hero-bg::after {
        width: 100%;
        height: 60%;
        top: auto;
        bottom: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
    }

    .main-container {
        padding-top: 130px;
        padding-bottom: 40px; /* Adjusted space since footer is in flow */
    }

    .title-section {
        text-align: center;
        margin-top: 0;
    }

    .title-peekaboo {
        font-size: 26vw;
        transform-origin: center bottom;
    }

    .subtitle {
        font-size: 0.7rem;
        bottom: -5px; /* Adjust tuck for mobile font size */
    }

    .left-content {
        margin-top: 15rem;
        max-width: 100%;
    }

    .text-block h2 {
        font-size: 2rem;
    }

    .text-block p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .social-block .follow-us {
        font-size: 0.65rem;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-bottom: 1.5rem;
    }

    .footer-right {
        gap: 2rem;
        width: 100%;
        justify-content: flex-end; /* Align right on mobile */
        margin-top: -2rem; /* Pull up next to copyright if desired, or let it stack */
    }
}

/* ─── FORM SUCCESS STATE ─────────────────────────────────── */
.form-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-left: 0.5rem;
    animation: fadeIn 0.4s ease;
}

/* ─── LEGAL OVERLAYS ─────────────────────────────────────── */
.legal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.legal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.legal-panel {
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem 2.5rem 2.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.legal-overlay.active .legal-panel {
    transform: translateY(0);
}

.legal-panel::-webkit-scrollbar { width: 4px; }
.legal-panel::-webkit-scrollbar-track { background: transparent; }
.legal-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.legal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.legal-close:hover { opacity: 1; }

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.legal-date {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.legal-content h3 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin: 2rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
    font-size: 0.875rem;
    line-height: 1.8;
    opacity: 0.75;
    margin-bottom: 0.5rem;
}

.legal-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal-content a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.9;
}

.legal-content a:hover { opacity: 1; }

.legal-footer-note {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.75rem !important;
    opacity: 0.4 !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
