/* ==================== ROOT & VARIABLES ==================== */
:root {
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-hover: rgba(255, 255, 255, 0.85);
    --text-primary: #1a1d2e;
    --text-secondary: rgba(26, 29, 46, 0.55);
    --text-muted: rgba(26, 29, 46, 0.35);
    --accent-cyan: #0891b2;
    --accent-purple: #7c3aed;
    --accent-emerald: #059669;
    --accent-amber: #d97706;
    --accent-pink: #db2777;
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    --gradient-glow: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    --gradient-soft: linear-gradient(135deg, #e0e7ff, #f0e6ff, #fce7f3);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 8px 32px rgba(99, 102, 241, 0.08);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.12);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(139, 92, 246, 0.2);
    color: #1a1d2e;
}

/* ==================== PARTICLE CANVAS ==================== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==================== ANIMATED ORBS ==================== */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent 70%);
    bottom: -15%;
    left: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.07), transparent 70%);
    top: 40%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(30px, 40px) scale(1.02); }
}

/* ==================== MAIN WRAPPER ==================== */
.main-wrapper {
    position: relative;
    z-index: 1;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    padding-top: 40px;
    padding-bottom: 60px;
}

.hero-content {
    padding-right: 40px;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 14px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-purple);
    margin-bottom: 28px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-emerald);
    border-radius: 50%;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(5, 150, 105, 0.25);
    animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.6); opacity: 0; }
}

/* Hero Title */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-glow);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

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

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 540px;
    font-weight: 400;
}

/* ==================== SUBSCRIBE FORM ==================== */
.subscribe-container {
    max-width: 500px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    padding: 5px 5px 5px 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.input-wrapper:focus-within {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08), var(--shadow-glow);
}

.input-icon {
    color: var(--text-muted);
    font-size: 16px;
    flex-shrink: 0;
}

.glass-input {
    background: transparent !important;
    border: none !important;
    color: var(--text-primary) !important;
    padding: 12px 14px !important;
    font-size: 14px;
    font-family: var(--font-primary);
    box-shadow: none !important;
}

.glass-input::placeholder {
    color: var(--text-muted);
}

.btn-glow {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glow:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
    color: #fff;
}

.btn-glow:hover::before {
    opacity: 1;
}

.btn-icon {
    transition: transform 0.3s ease;
}

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

.subscribe-note {
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.subscribe-note i {
    color: var(--accent-emerald);
}

/* Success Message */
.success-glass {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.15);
    border-radius: var(--radius-md);
    color: var(--accent-emerald);
    font-size: 14px;
    font-weight: 500;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-glass i {
    font-size: 22px;
}

@keyframes successPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ==================== FEATURE CARDS ==================== */
.feature-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 40px;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: default;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: var(--glass-hover);
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: var(--shadow-card);
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6366f1;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrap {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
    background: rgba(99, 102, 241, 0.12);
}

.icon-purple {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.12);
    color: var(--accent-purple);
}

.feature-card:hover .icon-purple {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
    background: rgba(139, 92, 246, 0.12);
}

.icon-emerald {
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.12);
    color: var(--accent-emerald);
}

.feature-card:hover .icon-emerald {
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.15);
    background: rgba(5, 150, 105, 0.12);
}

.icon-amber {
    background: rgba(217, 119, 6, 0.08);
    border-color: rgba(217, 119, 6, 0.12);
    color: var(--accent-amber);
}

.feature-card:hover .icon-amber {
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.15);
    background: rgba(217, 119, 6, 0.12);
}

.feature-card h5 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ==================== PROGRESS SECTION ==================== */
.progress-section {
    padding: 20px 0 60px;
}

.progress-card {
    padding: 32px 40px;
}

.progress-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.progress-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 0;
}

.progress-bar-wrapper {
    padding-top: 10px;
}

.progress-track {
    width: 100%;
    height: 10px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 100px;
    transition: width 0.3s ease;
    position: relative;
    width: 0%;
}

.progress-glow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    filter: blur(8px);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
}

.progress-percent {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-milestone {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==================== FOOTER ==================== */
.glass-footer {
    background: rgba(248, 249, 252, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    padding: 24px 0;
}

.footer-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.1);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-purple);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
}

/* ==================== ANIMATIONS ==================== */
.animate-el {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-el.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for elements */
.hero-content .animate-el:nth-child(1) { transition-delay: 0.1s; }
.hero-content .animate-el:nth-child(2) { transition-delay: 0.2s; }
.hero-content .animate-el:nth-child(3) { transition-delay: 0.35s; }
.hero-content .animate-el:nth-child(4) { transition-delay: 0.5s; }
.hero-content .animate-el:nth-child(5) { transition-delay: 0.65s; }

.feature-stack .animate-el:nth-child(1) { transition-delay: 0.3s; }
.feature-stack .animate-el:nth-child(2) { transition-delay: 0.45s; }
.feature-stack .animate-el:nth-child(3) { transition-delay: 0.6s; }
.feature-stack .animate-el:nth-child(4) { transition-delay: 0.75s; }

/* ==================== CONFETTI ==================== */
.confetti-piece {
    position: fixed;
    top: -10px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    z-index: 1000;
    animation: confettiFall linear forwards;
    pointer-events: none;
}

.confetti-piece:nth-child(odd) {
    width: 6px;
    height: 14px;
    border-radius: 4px;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotateZ(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateZ(720deg) scale(0);
        opacity: 0;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991.98px) {
    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .subscribe-container {
        margin-left: auto;
        margin-right: auto;
    }

    .status-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .success-message {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .input-wrapper {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 8px;
        gap: 8px;
    }

    .input-icon {
        display: none;
    }

    .glass-input {
        text-align: center;
    }

    .btn-glow {
        width: 100%;
        justify-content: center;
        border-radius: var(--radius-sm);
    }

    .progress-card {
        padding: 24px 20px;
    }

    .progress-title {
        margin-bottom: 8px;
    }

    .progress-subtitle {
        margin-bottom: 16px;
    }

    .hero-section {
        padding-top: 20px;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.4);
}
