/* --- Design System & CSS Variables --- */
:root {
    --bg-gradient: linear-gradient(135deg, #110d1a 0%, #1c152a 50%, #291a3c 100%);
    
    /* Pastel Purple Tones */
    --pastel-purple-light: #E8DFF5;
    --pastel-purple-mid: #D3C3F0;
    --pastel-purple-dark: #B6A6D3;
    
    /* Sparkle / Glow Colors */
    --accent-glow: #FAD0C4;
    --accent-sparkle: #FFF275;
    --text-light: #F3E8EE;
    --text-muted: #BFAECF;
    --text-dark: #1f1a26;
    
    /* Font Families */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(220, 214, 247, 0.08);
}

/* --- Base Styles & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor to use custom premium cursor */
}

body {
    font-family: var(--font-sans);
    background: var(--bg-gradient);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Canvas overlay for particle sparkles */
.sparkle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Custom Premium Cursor */
.custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-sparkle);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.custom-cursor-glow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(220, 214, 247, 0.3);
    background: rgba(220, 214, 247, 0.02);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease-out, background-color 0.3s, border-color 0.3s;
}

/* Expand cursor on hoverable elements */
.hovering .custom-cursor {
    transform: translate(-50%, -50%) scale(1.5);
    background: var(--accent-glow);
}

.hovering .custom-cursor-glow {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(250, 208, 196, 0.1);
    border-color: var(--accent-glow);
}

/* --- Ambient Light Orbs --- */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--pastel-purple-mid) 0%, transparent 70%);
    top: -10%;
    left: 10%;
    animation: floatOrb 25s infinite alternate ease-in-out;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8062D6 0%, transparent 70%);
    bottom: -10%;
    right: 5%;
    animation: floatOrb 30s infinite alternate-reverse ease-in-out;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: 40%;
    right: 40%;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -40px) scale(1.2); }
}

/* --- Main Layout --- */
.app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 5% 1.5rem;
    z-index: 2;
    position: relative;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    margin: auto 0;
}

/* --- Typography & Branding --- */
.logo-header {
    margin-bottom: 2rem;
    text-align: left;
}

.brand-logo {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: 0.6em;
    color: var(--pastel-purple-light);
    text-shadow: 0 0 15px rgba(232, 223, 245, 0.2);
    margin-bottom: 0.3rem;
}

.brand-subtext {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.95em;
    color: var(--text-muted);
    padding-left: 0.3em;
}

/* --- Glass Card (Left Container) --- */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

/* Neon glow border effect */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(232, 223, 245, 0.08), transparent);
    transform: rotate(30deg);
    pointer-events: none;
    animation: cardShimmer 8s infinite linear;
}

@keyframes cardShimmer {
    0% { transform: translate(-30%, -30%) rotate(30deg); }
    100% { transform: translate(30%, 30%) rotate(30deg); }
}

/* Badge styling */
.badge-container {
    margin-bottom: 1.5rem;
}

.glowing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(220, 214, 247, 0.06);
    border: 1px solid rgba(220, 214, 247, 0.15);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--pastel-purple-light);
    box-shadow: 0 0 15px rgba(220, 214, 247, 0.1);
}

.icon-sparkle {
    width: 14px;
    height: 14px;
    color: var(--accent-sparkle);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2) rotate(15deg); }
}

/* Headings & Text */
.main-heading {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 300;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(90deg, var(--pastel-purple-light) 0%, var(--accent-glow) 50%, var(--pastel-purple-mid) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientShift 6s infinite alternate;
}

@keyframes textGradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.intro-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* --- Countdown Display --- */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(7, auto);
    align-items: center;
    justify-content: start;
    gap: 1rem;
    margin-bottom: 3rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    min-width: 80px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.countdown-item .number {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--pastel-purple-light);
    letter-spacing: 0.02em;
    text-shadow: 0 0 10px rgba(220, 214, 247, 0.2);
}

.countdown-item .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-top: 0.4rem;
    font-weight: 500;
}

.countdown-separator {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--text-muted);
    opacity: 0.5;
    animation: blinkColon 1s infinite alternate;
}

@keyframes blinkColon {
    0% { opacity: 0.2; }
    100% { opacity: 0.7; }
}

/* --- Newsletter Form --- */
.newsletter-form {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: color 0.3s;
}

.newsletter-form input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(220, 214, 247, 0.12);
    border-radius: 16px;
    padding: 1.1rem 1rem 1.1rem 3rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(191, 174, 207, 0.45);
}

.newsletter-form input:focus {
    border-color: var(--pastel-purple-mid);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(211, 195, 240, 0.15);
}

.input-border-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    pointer-events: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.newsletter-form input:focus ~ .input-border-glow {
    border-color: var(--accent-glow);
    box-shadow: 0 0 20px rgba(250, 208, 196, 0.15);
}

.submit-btn {
    background: linear-gradient(135deg, var(--pastel-purple-mid) 0%, var(--accent-glow) 100%);
    border: none;
    border-radius: 16px;
    padding: 0 2rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(211, 195, 240, 0.25);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 208, 196, 0.4);
    background: linear-gradient(135deg, var(--pastel-purple-light) 0%, #fff 100%);
}

.btn-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

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

/* Success Message Container */
.success-message {
    display: none;
    align-items: center;
    gap: 0.8rem;
    background: rgba(220, 214, 247, 0.05);
    border: 1px solid rgba(220, 214, 247, 0.2);
    border-radius: 16px;
    padding: 1.2rem;
    margin-top: 1.5rem;
    animation: fadeInSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-icon {
    color: var(--accent-sparkle);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.success-message p {
    font-size: 0.85rem;
    color: var(--pastel-purple-light);
    line-height: 1.5;
}

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

/* --- Right Side: Teaser Silhouettes --- */
.teaser-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
}

.silhouette-container {
    position: relative;
    width: 380px;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.silhouette-container .ambient-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(211, 195, 240, 0.25) 0%, transparent 70%);
    top: 20%;
    left: 15%;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
}

/* Floating circles behind bottles */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(220, 214, 247, 0.1);
    background: rgba(220, 214, 247, 0.01);
    backdrop-filter: blur(3px);
    z-index: 0;
}

.circle-1 {
    width: 140px;
    height: 140px;
    top: 10%;
    right: 5%;
    animation: floatCircle 8s infinite alternate ease-in-out;
}

.circle-2 {
    width: 90px;
    height: 90px;
    bottom: 25%;
    left: 0;
    animation: floatCircle 10s infinite alternate-reverse ease-in-out;
}

@keyframes floatCircle {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(15deg); }
}

/* Product Silhouettes Styling */
.product-teaser {
    position: absolute;
    bottom: 0;
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropper-bottle {
    width: 140px;
    left: 15%;
    transform: translateY(0) rotate(-4deg);
    animation: driftDropper 6s infinite alternate ease-in-out;
}

.essence-bottle {
    width: 150px;
    right: 12%;
    bottom: -10px;
    transform: translateY(0) rotate(5deg);
    animation: driftEssence 7s infinite alternate ease-in-out;
}

@keyframes driftDropper {
    0% { transform: translateY(0) rotate(-4deg); }
    100% { transform: translateY(-10px) rotate(-2deg); }
}

@keyframes driftEssence {
    0% { transform: translateY(0) rotate(5deg); }
    100% { transform: translateY(-8px) rotate(3deg); }
}

/* SVGs inside silhouettes */
.bottle-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    transition: filter 0.4s;
}

.bottle-frame {
    transition: stroke 0.4s, stroke-width 0.4s, fill 0.5s;
}

.essence-core, .bottle-liquid {
    transition: opacity 0.5s, fill 0.5s;
}

/* Product tag overlays */
.product-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
    background: rgba(30, 22, 45, 0.85);
    border: 1px solid rgba(220, 214, 247, 0.2);
    border-radius: 20px;
    padding: 0.4rem 0.9rem;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--pastel-purple-light);
    white-space: nowrap;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: -1;
}

/* Hover interactions for product teasers */
.product-teaser:hover {
    z-index: 10;
    transform: scale(1.08) translateY(-15px) rotate(0deg) !important;
}

.product-teaser:hover .bottle-svg {
    filter: drop-shadow(0 20px 40px rgba(182, 166, 211, 0.25));
}

.product-teaser:hover .bottle-frame {
    stroke: var(--accent-glow);
    stroke-width: 2.5px;
    fill: rgba(255, 255, 255, 0.08);
}

.product-teaser:hover .essence-core {
    opacity: 0.85;
    fill: rgba(250, 208, 196, 0.5);
}

.product-teaser:hover .bottle-liquid {
    opacity: 0.9;
    fill: url(#fluidGradient);
}

.product-teaser:hover .product-tag {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(-10px);
}

.product-teaser:hover .product-glow {
    opacity: 0.4;
}

/* Decorative sparkle star sprites */
.sparkle-sprite {
    position: absolute;
    color: var(--accent-sparkle);
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
    z-index: 3;
}

.sprite-1 { top: 25%; left: 15%; animation: pulseOpacity 3s infinite alternate 0.5s; }
.sprite-2 { top: 45%; right: 10%; animation: pulseOpacity 4s infinite alternate; }
.sprite-3 { bottom: 30%; left: 45%; animation: pulseOpacity 5.2s infinite alternate 1s; }

@keyframes pulseOpacity {
    0% { opacity: 0.1; transform: scale(0.8); }
    100% { opacity: 0.6; transform: scale(1.2) rotate(45deg); }
}

.silhouette-container:hover .sparkle-sprite {
    opacity: 0.8;
}

/* --- Footer --- */
.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(220, 214, 247, 0.05);
    padding-top: 1.5rem;
    z-index: 2;
    position: relative;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link i {
    width: 16px;
    height: 16px;
}

.social-link:hover {
    color: var(--accent-glow);
    background: rgba(220, 214, 247, 0.08);
    border-color: var(--accent-glow);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(250, 208, 196, 0.15);
}

.copyright {
    font-size: 0.75rem;
    color: rgba(191, 174, 207, 0.5);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* --- Responsive Adaptations --- */
@media (max-width: 1024px) {
    .grid-layout {
        gap: 3rem;
    }
    
    .main-heading {
        font-size: 2.8rem;
    }
    
    .glass-card {
        padding: 2.5rem;
    }
    
    .silhouette-container {
        width: 320px;
        height: 360px;
    }
    
    .dropper-bottle {
        width: 120px;
    }
    
    .essence-bottle {
        width: 130px;
    }
}

@media (max-width: 860px) {
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .teaser-section {
        order: -1; /* Move silhouette image above content on tablet/mobile */
        padding: 2rem 0;
    }
    
    .logo-header {
        text-align: center;
    }
    
    .brand-logo {
        font-size: 2rem;
    }
    
    .brand-subtext {
        font-size: 0.7rem;
    }
    
    .glass-card {
        margin: 0 auto;
        max-width: 580px;
    }
    
    .countdown-container {
        justify-content: center;
    }
    
    .app-footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 1.5rem 1.2rem;
    }
    
    .glass-card {
        padding: 1.8rem 1.2rem;
        border-radius: 20px;
    }
    
    .main-heading {
        font-size: 2.1rem;
    }
    
    .intro-text {
        font-size: 0.85rem;
        margin-bottom: 2rem;
    }
    
    .countdown-container {
        gap: 0.4rem;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 0.6rem 0.3rem;
    }
    
    .countdown-item .number {
        font-size: 1.6rem;
    }
    
    .countdown-item .label {
        font-size: 0.55rem;
    }
    
    .countdown-separator {
        font-size: 1.3rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .submit-btn {
        padding: 1.1rem;
        justify-content: center;
    }
}

/* Hide Custom Cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor, .custom-cursor-glow {
        display: none !important;
    }
    * {
        cursor: auto !important;
    }
}

