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

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c1810;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background: linear-gradient(135deg, #f5f1e8 0%, #e8ddd4 50%, #d4c4a8 100%);
}

body.loaded {
    opacity: 1;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.hero-background {
    position: relative;
    width: 50%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    object-position: center 25%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 241, 232, 0.3) 0%, rgba(212, 196, 168, 0.2) 50%, rgba(139, 69, 19, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    width: 50%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #f5f1e8 0%, #e8ddd4 50%, #d4c4a8 100%);
    text-align: center;
    color: #2c1810;
    box-sizing: border-box;
}

/* Logo */
.logo-container {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.logo {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Main Content */
.main-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: calc(100vh - 3rem);
    gap: 1rem;
}

/* Content Sections */
.content-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.content-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.content-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    flex-shrink: 0;
}

.headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #8b4513;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tagline {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #6b4423;
    font-style: italic;
}

/* Countdown Timer */
.countdown-container {
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 12px;
    padding: 1rem 0.8rem;
    min-width: 80px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.15);
}

.time-unit:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(139, 69, 19, 0.5);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.25);
}

.time-value {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
    color: #8b4513;
}

.time-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    color: #6b4423;
}

/* Launch Message */
.launch-message {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(139, 69, 19, 0.3);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.15);
}

.launch-message h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: #8b4513;
}

.launch-message p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Email Form */
.email-form {
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    color: #2c1810;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:invalid {
    border-color: rgba(139, 69, 19, 0.3);
    box-shadow: none;
}

.form-group input::placeholder {
    color: rgba(44, 24, 16, 0.6);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(139, 69, 19, 0.6);
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #8b4513 0%, #6b4423 100%);
    border: none;
    border-radius: 12px;
    color: #f5f1e8;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-disclaimer {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    opacity: 0.7;
    text-align: center;
}

/* Error Message */
.error-message {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    animation: slideInDown 0.5s ease-out;
}

.error-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #dc2626;
    font-weight: 500;
}

/* Success Message */
.success-message {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    animation: slideInDown 0.5s ease-out;
}

.success-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #4ade80;
    font-weight: 500;
}

/* Footer */
.footer {
    background: rgba(139, 69, 19, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    color: #2c1810;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
    opacity: 1;
    visibility: visible;
    padding: 0.5rem 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(139, 69, 19, 0.8);
    border-radius: 50%;
    color: #f5f1e8;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #8b4513;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
}

.footer-text {
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;
    margin: 0;
    color: #6b4423;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        min-height: auto;
        height: auto;
        overflow: visible;
    }
    
    .hero-background {
        width: 100%;
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-image {
        object-position: center center;
        object-fit: contain;
    }
    
    .hero-content {
        width: 100%;
        padding: 2rem 1rem;
        background: #f8f4f0;
    }
    
    .countdown-timer {
        gap: 0.8rem;
        margin: 2rem 0;
    }
    
    .time-unit {
        min-width: 70px;
        padding: 1rem 0.5rem;
    }
    
    .time-value {
        font-size: 1.6rem;
    }
    
    .time-label {
        font-size: 0.75rem;
    }
    
    .social-links {
        gap: 1rem;
        margin: 1.5rem 0 1rem 0;
        padding: 0.5rem 0;
    }
    
    .content-bottom {
        gap: 0.8rem;
        padding: 1rem 0;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
.social-link svg {
    width: 28px;
    height: 28px;
}
    
    .form-group input {
        padding: 0.8rem 1rem;
    }
    
    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-background {
        height: 65vh;
        min-height: 450px;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
        background: #f8f4f0;
    }
    
    .countdown-timer {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .time-unit {
        min-width: 60px;
        padding: 0.8rem 0.3rem;
    }
    
    .time-value {
        font-size: 1.4rem;
    }
    
    .time-label {
        font-size: 0.7rem;
    }
    
    .headline {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .tagline {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 2rem;
    }
    
    .form-group input {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 0.8rem;
        margin: 1rem 0 0.5rem 0;
        padding: 0.5rem 0;
    }
    
    .content-bottom {
        gap: 0.6rem;
        padding: 0.8rem 0;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link svg {
        width: 22px;
        height: 22px;
    }
    
    .footer-text {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.form-group input:focus,
.submit-btn:focus,
.social-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .time-unit {
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    .form-group input {
        border-color: rgba(255, 255, 255, 0.5);
    }
}
