/* ============================================
   THOLA.AI — Coming Soon Page
   Premium Design System
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --color-bg: #09090f;
    --color-bg-subtle: #0f0f1a;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.06);
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(255, 255, 255, 0.12);
    --color-text-primary: #f1f0f5;
    --color-text-secondary: #8b8a97;
    --color-text-muted: #5a5966;
    --color-accent-1: #a78bfa;
    --color-accent-2: #818cf8;
    --color-accent-3: #6366f1;
    --color-accent-4: #4f46e5;
    --color-success: #34d399;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ---------- Animated Background ---------- */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
    pointer-events: none;
}

#particleCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ---------- Floating Orbs ---------- */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.12);
    top: -15%;
    right: -10%;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.1);
    bottom: -10%;
    left: -10%;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(167, 139, 250, 0.08);
    top: 40%;
    left: 50%;
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, 40px) scale(1.1); }
    66% { transform: translate(30px, -30px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -40px) scale(1.05); }
    66% { transform: translate(-40px, 30px) scale(0.9); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-80px, -60px) scale(1.15); }
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(9, 9, 15, 0.6);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
    padding: 14px 40px;
    background: rgba(9, 9, 15, 0.85);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    display: flex;
    align-items: center;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.3)); }
    50% { filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.5)); }
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.logo-dot {
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-cta {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-primary);
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.25);
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent-3), var(--color-accent-1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.nav-cta:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.nav-cta:hover::before {
    opacity: 0.15;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 120px 24px 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    margin-bottom: 32px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent-1);
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent-1);
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--color-text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-accent-1) 0%, var(--color-accent-2) 40%, var(--color-accent-3) 70%, var(--color-accent-4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 6s ease-in-out infinite;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin-bottom: 48px;
    font-weight: 400;
}

/* ---------- Countdown Timer ---------- */
.countdown {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.countdown-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--color-text-primary);
    min-width: 80px;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    letter-spacing: -0.02em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.countdown-value::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent-2);
    margin-bottom: 24px;
    animation: separatorBlink 1.2s ease-in-out infinite;
}

@keyframes separatorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* ---------- Waitlist Form ---------- */
.waitlist-form {
    width: 100%;
    max-width: 520px;
}

.form-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 6px;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
}

.form-wrapper:focus-within {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

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

.submit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-accent-3), var(--color-accent-4));
    color: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}

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

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

.btn-text, .btn-icon {
    position: relative;
    z-index: 1;
}

.btn-icon {
    display: flex;
    transition: transform 0.3s var(--ease-spring);
}

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

.form-note {
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ---------- Success Message ---------- */
.success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    animation: successFadeIn 0.6s var(--ease-out-expo);
}

.success-message.show {
    display: flex;
}

.success-icon {
    margin-bottom: 8px;
    animation: successBounce 0.6s var(--ease-spring);
}

@keyframes successBounce {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

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

.success-message h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-success);
}

.success-message p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    max-width: 380px;
}

/* ---------- Features ---------- */
.features {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.feature-card {
    padding: 32px 28px;
    border-radius: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    border-color: var(--color-border-hover);
    background: var(--color-surface-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
    color: var(--color-accent-1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    transform: scale(1.05);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text-primary);
}

.feature-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* ---------- Footer ---------- */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid var(--color-border);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
}

.footer-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-accent-2);
    transition: width 0.3s var(--ease-out-expo);
}

.footer-link:hover {
    color: var(--color-accent-1);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* ---------- Animations ---------- */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: animateIn 0.8s var(--ease-out-expo) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

@keyframes animateIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .nav {
        padding: 16px 20px;
    }

    .countdown {
        gap: 6px;
    }

    .countdown-value {
        min-width: 60px;
        padding: 12px 14px;
        font-size: 1.6rem;
    }

    .countdown-separator {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .email-input {
        width: 100%;
        text-align: center;
    }

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

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .countdown-value {
        min-width: 50px;
        padding: 10px 10px;
        font-size: 1.3rem;
        border-radius: 12px;
    }

    .countdown-label {
        font-size: 0.65rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: white;
}
