/* 
   Premium Coupon/Affiliate Landing Page Theme 
   Design: Dark, Glassmorphism, Neon Accents
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #0a0a0f;
    --bg-mesh-1: #4f46e5; /* Indigo */
    --bg-mesh-2: #ec4899; /* Pink/Magenta */
    --bg-mesh-3: #10b981; /* Emerald/Neon Green - representing cash/savings */

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --accent-color: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.4);

    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Background Ambient Effects */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}

.glow-1 {
    top: -100px;
    left: -100px;
    background: var(--bg-mesh-1);
}

.glow-2 {
    bottom: -150px;
    right: -50px;
    background: var(--bg-mesh-2);
    animation-delay: -5s;
}

.glow-3 {
    top: 40%;
    left: 60%;
    width: 300px;
    height: 300px;
    background: var(--bg-mesh-3);
    opacity: 0.2;
    animation-delay: -2s;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Hero Section */
.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

.brand-pill {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px var(--accent-glow);
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text {
    background: linear-gradient(to right, #4f46e5, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Countdown Timer */
.countdown-box {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.number {
    font-size: 2.5rem;
    font-weight: 700;
    font-feature-settings: "tnum";
}

.label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Email Capture Form */
.form-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem;
    border-radius: 50px;
    display: flex;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    backdrop-filter: blur(10px);
    transition: 0.3s border-color;
}

.form-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 0 1.5rem;
    font-size: 1rem;
    outline: none;
}

.form-wrapper button {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s transform, 0.3s box-shadow;
}

.form-wrapper button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* Decorative 3D Cards */
.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.card-3d {
    position: absolute;
    width: 120px;
    height: 160px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: float-card 6s ease-in-out infinite;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.card-off {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-mesh-3); /* Green text for discounts */
}

/* Card Positioning */
.card-1 { top: 20%; left: 10%; transform: rotate(-15deg); }
.card-2 { top: 30%; right: 10%; transform: rotate(10deg); animation-delay: 1s; }
.card-3 { bottom: 20%; left: 15%; transform: scale(0.8) rotate(5deg); animation-delay: 2s; opacity: 0.6; }

/* Animations */
@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

@keyframes float-card {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--r, 0deg)); }
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .floating-cards { opacity: 0.3; }
    .card-1, .card-2, .card-3 { transform: scale(0.7); }
    .form-wrapper { flex-direction: column; background: transparent; border: none; padding: 0; gap: 1rem; border-radius: 0; backdrop-filter: none; }
    .form-wrapper input { background: var(--glass-bg); padding: 1rem; border-radius: 12px; border: 1px solid var(--glass-border); text-align: center; }
    .form-wrapper button { width: 100%; border-radius: 12px; }
}
