@font-face {
    font-family: 'Onest';
    src: url('fonts/Onest-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('fonts/Onest-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('fonts/Onest-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('fonts/Onest-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #11110E;
    --text-color: #ffffff;
    --accent-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Onest', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    /* Prevent horizontal scroll only */
    width: 100vw;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    pointer-events: none;
}

.logo img {
    height: 26px;
    width: auto;
    pointer-events: auto;
    filter: invert(1);
}

.menu {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    pointer-events: auto;
}

/* Main Scene */
.scene-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Central Content */
.hero-text {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
    pointer-events: none;
}

.hero-line {
    display: block;
    opacity: 0;
    filter: blur(12px);
    transform: translateY(30px);
    animation: heroReveal 1.2s ease-out forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.5s; }
.hero-line:nth-child(2) { animation-delay: 0.7s; }

.waitlist-btn {
    position: relative;
    z-index: 10;
    margin-top: 2rem;
    text-decoration: none;
    padding: 1rem 2.5rem;
    font-family: 'Onest', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    cursor: pointer;
    opacity: 0;
    animation: btnReveal 1.2s ease-out 1.1s forwards;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.waitlist-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

@keyframes heroReveal {
    to {
        opacity: 1;
        filter: blur(0px);
        transform: translateY(0);
    }
}

@keyframes btnReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text strong {
    font-weight: 600;
}

/* Floating Images */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    pointer-events: none;
}

.float-item {
    position: absolute;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.05);
    transition: filter 0.3s ease, opacity 0.8s ease, scale 0.8s ease;
    will-change: transform;
    opacity: 0;
    scale: 0.85;
}

.float-item.is-loaded {
    opacity: 1;
    scale: 1;
}

/* Initial positioning (can be overridden by inline styles or JS) */
/* This is a fallback if JS fails, but we usually position them absolutely */

/* Featured Collection */
.featured-section {
    position: relative;
    padding: 6rem 3rem 8rem;
    background-color: var(--bg-color);
    z-index: 10;
    text-align: center;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3rem;
    letter-spacing: 0.02em;
    color: var(--text-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #fff;
}

.card-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.card-arrow {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.card:hover .card-arrow {
    transform: translateX(5px);
}

/* Waitlist Section */
.waitlist-section {
    position: relative;
    padding: 4rem 3rem 30rem;
    background-color: var(--bg-color);
    z-index: 10;
    text-align: center;
}

.waitlist-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.4;
    margin-bottom: 1.5rem;
}

.waitlist-headline {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    margin-bottom: 0.8rem;
    text-transform: lowercase;
}

.waitlist-subline {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.4;
    margin-bottom: 2.5rem;
    text-transform: lowercase;
}

.waitlist-form {
    display: flex;
    max-width: 420px;
    margin: 0 auto;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 150ms ease;
}

.waitlist-form:focus-within {
    border-color: rgba(240, 237, 232, 0.25);
}

.waitlist-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-family: 'Onest', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: #fff;
    background: transparent;
    border: none;
    outline: none;
    text-transform: lowercase;
}

.waitlist-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    text-transform: lowercase;
}

.waitlist-submit {
    padding: 0.8rem 1.8rem;
    margin: 0.3rem 0.3rem 0.3rem 0;
    font-family: 'Onest', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #11110E;
    background: #e8e8e3;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: lowercase;
    transition: opacity 0.3s ease;
}

.waitlist-submit:hover {
    opacity: 0.85;
}

.waitlist-submit:disabled {
    opacity: 0.5;
    cursor: default;
}

.waitlist-privacy {
    font-size: 11px;
    font-weight: 300;
    color: #3A3835;
    margin-top: 12px;
    text-transform: lowercase;
}

.waitlist-privacy a {
    color: #3A3835;
    text-decoration: none;
    transition: color 0.3s ease;
}

.waitlist-privacy a:hover {
    color: #706C68;
}

.waitlist-message {
    font-size: 0.85rem;
    font-weight: 300;
    margin-top: 1.2rem;
    min-height: 1.2em;
    text-transform: lowercase;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.waitlist-message.visible {
    opacity: 1;
}

.waitlist-message.success {
    color: #7fbd7f;
}

.waitlist-message.error {
    color: rgba(255, 255, 255, 0.5);
}

/* Legal Pages */
.legal-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 8rem 2rem 6rem;
}

.legal-page h1 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.legal-page .legal-date {
    font-size: 0.85rem;
    opacity: 0.4;
    margin-bottom: 2.5rem;
}

.legal-page .legal-intro {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.7;
    margin-bottom: 3rem;
}

.legal-page h2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
}

.legal-page h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

.legal-page p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.legal-page a {
    color: var(--text-color);
    opacity: 0.7;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-page a:hover {
    opacity: 1;
}

.legal-page .legal-address {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.7;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.legal-page .legal-note {
    font-size: 0.85rem;
    font-weight: 300;
    font-style: italic;
    opacity: 0.5;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 24px 44px;
    border-top: 0.5px solid #1e1e1c;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.08em;
    text-transform: lowercase;
}

.site-footer > :last-child {
    justify-content: flex-end;
}

.footer-divider {
    margin: 0 0.6rem;
    opacity: 0.3;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #706C68;
}

/* Mobile */
@media (max-width: 768px) {
    header {
        padding: 1.2rem 1.5rem;
    }

    .logo img {
        height: 20px;
    }

    .menu {
        font-size: 0.75rem;
    }

    .hero-text {
        font-size: 2rem;
        max-width: 90%;
    }

    .float-item,
    .float-item.is-loaded {
        scale: 0.45;
    }

    .float-item:nth-child(10),
    .float-item:nth-child(12) {
        display: none;
    }

    /* Mobile image positions from debug mode */
    .float-item:nth-child(1) {
        top: -4.9% !important;
        left: 45.1% !important;
        right: auto !important;
        bottom: auto !important;
    }

    .float-item:nth-child(2) {
        top: 6.4% !important;
        left: 82.4% !important;
        right: auto !important;
        bottom: auto !important;
    }

    .float-item:nth-child(3) {
        top: 60.6% !important;
        left: 14.9% !important;
        right: auto !important;
        bottom: auto !important;
    }

    .float-item:nth-child(4) {
        top: 70.0% !important;
        left: 33.1% !important;
        right: auto !important;
        bottom: auto !important;
    }

    .float-item:nth-child(5) {
        top: 7.5% !important;
        left: 41.9% !important;
        right: auto !important;
        bottom: auto !important;
        filter: blur(2px) brightness(0.5) !important;
    }

    .float-item:nth-child(6) {
        top: 42.4% !important;
        left: 65.6% !important;
        right: auto !important;
        bottom: auto !important;
    }

    .float-item:nth-child(7) {
        top: 80.1% !important;
        left: 40.0% !important;
        right: auto !important;
        bottom: auto !important;
    }

    .float-item:nth-child(8) {
        top: -2.5% !important;
        left: 2.9% !important;
        right: auto !important;
        bottom: auto !important;
        filter: blur(5px) brightness(0.2) !important;
        scale: 0.35 !important;
    }

    .float-item:nth-child(9) {
        top: 73.8% !important;
        left: -24.3% !important;
        right: auto !important;
        bottom: auto !important;
    }

    .float-item:nth-child(11) {
        top: 45.9% !important;
        left: -10.1% !important;
        right: auto !important;
        bottom: auto !important;
    }

    .float-item:nth-child(13) {
        top: 54.7% !important;
        left: 3.7% !important;
        right: auto !important;
        bottom: auto !important;
    }

    .float-item:nth-child(14) {
        top: 2.4% !important;
        left: -23.2% !important;
        right: auto !important;
        bottom: auto !important;
    }

    .float-item:nth-child(15) {
        top: 46.5% !important;
        left: 52.3% !important;
        right: auto !important;
        bottom: auto !important;
    }

    .float-item:nth-child(16) {
        top: 0% !important;
        left: 0% !important;
        right: auto !important;
        bottom: auto !important;
    }

    .waitlist-section {
        padding: 5rem 1.5rem;
    }

    .waitlist-headline {
        font-size: 1.4rem;
    }

    .waitlist-form {
        flex-direction: column;
        border-radius: 28px;
        gap: 0;
    }

    .waitlist-input {
        border-radius: 20px;
        padding: 1rem 1.2rem;
    }

    .waitlist-submit {
        margin: 0 0.3rem 0.3rem 0.3rem;
        border-radius: 22px;
    }

    .site-footer {
        font-size: 9px;
        padding: 20px 1.5rem;
    }
}