/* ----------------------------------------------------
   DEVA INTL - Luxury Olive & Cream Coming Soon System
---------------------------------------------------- */

:root {
    /* Fonts */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;

    /* Muted Organic Color Palette */
    --color-bg-olive: #4F5547; /* Primary Luxury Olive */
    --color-bg-olive-dark: #373B31; /* Deep Shadow Olive */
    --color-bg-olive-light: #5B6252; /* Highlight Olive */
    
    --color-cream: #ECE8E1; /* Warm Linen Cream */
    --color-cream-muted: rgba(236, 232, 225, 0.65);
    
    --color-gold: #BCA374; /* Warm Antique Gold */
    --color-gold-bright: #D3BE99;
    --color-gold-dark: #9F8559;
    
    --color-charcoal: #1F201C; /* Dark Slate for high contrast buttons/text */
    
    /* Layout Constants */
    --transition-smooth: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.25s ease;
    --border-radius: 4px; /* More angular, high-end architectural look */
}

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

html, body {
    width: 100%;
    height: 100%;
    font-family: var(--font-sans);
    background-color: var(--color-bg-olive);
    /* Rich, warm gradient to give depth without using background images */
    background: radial-gradient(circle at top, var(--color-bg-olive-light) 0%, var(--color-bg-olive-dark) 100%);
    color: var(--color-cream);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------
   Main Wrapper (Architectural Grid Layout)
---------------------------------------------------- */
.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

/* Header & Brand Logo */
.site-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.15));
    transition: var(--transition-smooth);
}

.brand-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.25));
}

/* ----------------------------------------------------
   Content Container & Card Layout
---------------------------------------------------- */
.content-container {
    width: 100%;
    max-width: 660px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1.4s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.glass-card {
    width: 100%;
    /* Very clean flat translucent container without heavy blur (matches clean mockups) */
    background: rgba(55, 59, 49, 0.35);
    border: 1px solid rgba(236, 232, 225, 0.12);
    border-radius: var(--border-radius);
    padding: 3.5rem 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}

.badge-container {
    margin-bottom: 1.5rem;
}

.premium-badge {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    border: 1px solid rgba(188, 163, 116, 0.35);
    padding: 0.45rem 1.4rem;
    border-radius: 50px;
    display: inline-block;
    background: rgba(188, 163, 116, 0.05);
    text-transform: uppercase;
}

.main-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1.25;
    color: var(--color-cream);
    margin-bottom: 1.25rem;
    letter-spacing: 0.03em;
}

.intro-text {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-cream-muted);
    max-width: 480px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.8;
}

/* ----------------------------------------------------
   Countdown Timer (Bespoke Fine Lines)
---------------------------------------------------- */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid rgba(236, 232, 225, 0.12);
    border-bottom: 1px solid rgba(236, 232, 225, 0.12);
    margin-bottom: 3rem;
    padding: 1.5rem 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Add architectural divider lines between countdown elements */
.countdown-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: rgba(236, 232, 225, 0.12);
}

.time-value {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 300;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.time-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-cream-muted);
    font-weight: 400;
}

/* ----------------------------------------------------
   Subscription Form (Sleek Input & Premium Gold CTA)
---------------------------------------------------- */
.form-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 52px;
}

.subscribe-form {
    width: 100%;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(236, 232, 225, 0.2);
    border-radius: var(--border-radius);
    padding: 3px;
    transition: var(--transition-smooth);
}

.input-group:focus-within {
    border-color: rgba(188, 163, 116, 0.6);
    box-shadow: 0 0 20px rgba(188, 163, 116, 0.1);
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-cream);
    font-size: 0.9rem;
    font-weight: 300;
    padding: 0.8rem 1.2rem;
    font-family: var(--font-sans);
}

.email-input::placeholder {
    color: rgba(236, 232, 225, 0.4);
    opacity: 1;
}

.submit-btn {
    background: var(--color-gold);
    color: var(--color-charcoal);
    border: none;
    outline: none;
    padding: 0.8rem 1.6rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    text-transform: uppercase;
}

.submit-btn:hover {
    background: var(--color-gold-bright);
    color: var(--color-charcoal);
    box-shadow: 0 4px 15px rgba(188, 163, 116, 0.25);
}

.submit-btn:hover .arrow-icon {
    transform: translateX(3px);
}

.arrow-icon {
    transition: var(--transition-fast);
}

.spinner-icon {
    animation: rotate 1s linear infinite;
}

.error-msg {
    color: #F28F8F;
    font-size: 0.8rem;
    margin-top: 0.75rem;
    text-align: left;
    padding-left: 1rem;
    letter-spacing: 0.02em;
    animation: fadeIn 0.3s ease;
}

/* Success State Screen */
.success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    animation: scaleIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.checkmark-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(188, 163, 116, 0.2);
}

.success-state h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-cream);
    margin-bottom: 0.6rem;
    letter-spacing: 0.05em;
}

.success-state p {
    font-size: 0.9rem;
    color: var(--color-cream-muted);
    font-weight: 300;
    max-width: 380px;
    line-height: 1.6;
}

/* ----------------------------------------------------
   Footer Section
---------------------------------------------------- */
.site-footer {
    width: 100%;
    max-width: 600px;
    text-align: center;
    margin-top: 3rem;
    animation: fadeInUp 1.6s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    color: var(--color-cream-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    border-radius: 50%;
    border: 1px solid rgba(236, 232, 225, 0.1);
    opacity: 0.75;
}

.footer-meta {
    font-size: 0.75rem;
    color: rgba(236, 232, 225, 0.35);
    font-weight: 300;
    letter-spacing: 0.08em;
}

.footer-meta p {
    margin-bottom: 0.3rem;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(188, 163, 116, 0.55);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* ----------------------------------------------------
   Toast Notifications
---------------------------------------------------- */
.toast {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-bg-olive-dark);
    border: 1px solid var(--color-gold);
    color: var(--color-cream);
    padding: 0.8rem 2.2rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ----------------------------------------------------
   Helpers & Keyframes
---------------------------------------------------- */
.hidden {
    display: none !important;
}

.input-error {
    border-color: #F28F8F !important;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

.opacity-25 { opacity: 0.25; }
.opacity-75 { opacity: 0.75; }

/* ----------------------------------------------------
   Responsive Layouts
---------------------------------------------------- */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 3rem 1.5rem;
    }
    
    .brand-logo {
        max-width: 220px;
    }

    .glass-card {
        padding: 2.5rem 2rem;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .time-value {
        font-size: 2.5rem;
    }

    .time-label {
        font-size: 0.6rem;
        letter-spacing: 0.18em;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }

    .glass-card {
        padding: 2.2rem 1.25rem;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 0;
    }

    .countdown-item:nth-child(2)::after {
        display: none; /* Hide middle divider in 2x2 grid */
    }

    .time-value {
        font-size: 2.5rem;
    }

    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0.75rem;
    }

    .email-input {
        width: 100%;
        background: rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(236, 232, 225, 0.2);
        padding: 1rem 1.2rem;
        border-radius: var(--border-radius);
    }
    
    .email-input:focus {
        border-color: rgba(188, 163, 116, 0.6);
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}
