/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* PP Editorial New - You'll need to add the actual font files or CDN link */
@font-face {
    font-family: 'PP Editorial New';
    src: url('https://fonts.cdnfonts.com/css/pp-editorial-new') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* PP Mondwest - Custom hover font */
@font-face {
    font-family: 'PP Mondwest';
    src: url('assets/PPMondwest-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

html {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}

body {
    font-family: 'Libre Baskerville', serif;
    color: white;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    touch-action: none;
    background: #2D2828;
}

/* Background with Gradients */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: -1;
}

/* Top Gradient */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.6) 0%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

/* Bottom Gradient */
.main-content::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.6) 0%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

/* Header */
.header {
    position: absolute;
    top: 32px;
    left: 32px;
    z-index: 10;
    animation: fadeIn 0.6s ease-out 0.6s forwards;
    opacity: 0;
}

.logo {
    height: 96px;
    width: auto;
}

/* Main Content */
.main-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 30vh;
    overflow: hidden;
    z-index: 1;
}

.content-container {
    text-align: center;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpSubtle {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.7;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Typography */
.heading {
    font-family: 'PP Editorial New', serif;
    font-size: 72px;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1;
    letter-spacing: 0.05em;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Individual letter styling */
.heading .letter {
    display: inline-block;
    font-family: 'PP Editorial New', serif;
    transition: font-family 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: pre;
}

.heading .letter.hover-font {
    font-family: 'PP Mondwest', serif;
}

.subheading {
    font-family: 'PP Editorial New', serif;
    font-size: 64px;
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1;
    letter-spacing: 0.05em;
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
    opacity: 0;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.subheading em {
    font-style: italic;
    font-weight: 200;
}

/* Individual letter styling for subheading */
.subheading .letter {
    display: inline-block;
    font-family: 'PP Editorial New', serif;
    transition: font-family 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: pre;
}

.subheading .letter.italic {
    font-style: italic;
    font-weight: 200;
}

.subheading .letter.hover-font {
    font-family: 'PP Mondwest', serif;
}

.description {
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    margin-bottom: 32px;
    opacity: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUpSubtle 0.6s ease-out 0.3s forwards;
    white-space: nowrap;
    text-align: center;
}

/* Email Form */
.email-form {
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 4px;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 0.45s forwards;
    opacity: 0;
}

.email-input {
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: #333;
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    flex: 1;
    outline: none;
    min-width: 0;
}

.email-input::placeholder {
    color: #999;
}

.email-input:focus {
    outline: none;
}

.submit-btn {
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    background: #1a1a1a;
    color: white;
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s fade;
    white-space: nowrap;
    flex-shrink: 0;
}

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

/* Unicorn Studio Animation */
.unicorn-animation {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1440px;
    height: 900px;
    max-width: 100vw;
    pointer-events: none;
    z-index: 2;
    animation: fadeIn 1.2s ease-out 0.5s forwards;
    opacity: 0;
}

/* Text Ribbon - Curved Path Scrolling */
.text-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
    animation: fadeIn 1s ease-out 1.8s forwards;
    opacity: 0;
}

.ribbon-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    fill: white;
    opacity: 0.75;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 24px;
    left: 32px;
    right: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    animation: fadeIn 0.6s ease-out 0.65s forwards;
    opacity: 0;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-link {
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.social-link:hover {
    opacity: 1;
}

.launching-soon {
    font-family: 'Libre Baskerville', serif;
    font-size: 14px;
    opacity: 0.7;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .unicorn-animation {
        width: 768px;
        height: 1024px;
        max-width: 100vw;
    }
}

/* Mobile adjustments */
@media (max-width: 575px) {
    .heading, .subheading {
        font-size: 36px;
    }

    .description {
        font-size: 12px;
        padding: 0 20px;
        white-space: normal;
        max-width: 90%;
        text-align: center;
    }

    .email-form {
        flex-direction: row;
        padding: 3px;
        margin: 0 20px;
        max-width: 90%;
    }

    .email-input {
        font-size: 12px;
        padding: 8px 16px;
    }

    .submit-btn {
        font-size: 12px;
        padding: 8px 16px;
    }

    .ribbon-text {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .unicorn-animation {
        width: 390px;
        height: 844px;
        max-width: 100vw;
    }

    .main-content {
        padding-bottom: 40vh;
    }

    .header {
        top: 16px;
        left: 16px;
    }

    .logo {
        height: 48px;
    }
}
