/* ============================================
   PrepSaarthi — Coming Soon Page Styles
   Premium dark theme with glassmorphism
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-strong: rgba(255, 255, 255, 0.08);

    --text-primary: #f1f5f9;
    --text-secondary: rgba(241, 245, 249, 0.65);
    --text-muted: rgba(241, 245, 249, 0.4);

    --accent-amber: #f59e0b;
    --accent-orange: #f97316;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;

    --gradient-brand: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #f97316 100%);
    --gradient-glow: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.08));

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-glow: 0 0 60px rgba(245, 158, 11, 0.1);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* --- Particle Canvas --- */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

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

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 18s ease-in-out infinite;
}

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

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

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* --- Container --- */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Navigation --- */
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 0;
    animation: fadeInDown 0.8s ease-out;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.5)); }
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* --- Hero Section --- */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
    gap: 32px;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-amber);
    backdrop-filter: blur(12px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-amber);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

/* Title */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-brand);
    border-radius: 2px;
    opacity: 0.4;
}

/* Subtitle */
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
    font-weight: 400;
}

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

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

.countdown-card {
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    min-width: 80px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.countdown-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
}

.countdown-card:hover {
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.05);
    transform: translateY(-2px);
}

.countdown-value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.countdown-separator {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 24px;
    animation: separatorBlink 1s step-end infinite;
}

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

/* --- Subscribe Section --- */
.subscribe-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 520px;
}

.subscribe-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.subscribe-form {
    display: flex;
    gap: 8px;
    width: 100%;
    padding: 6px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    backdrop-filter: blur(20px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-form:focus-within {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.05);
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
}

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

.input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    padding: 12px 0;
}

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

.btn-notify {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: var(--gradient-brand);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 130px;
}

.btn-notify::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.btn-notify:hover::before {
    left: 100%;
}

.btn-notify:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.25);
}

.btn-notify:active {
    transform: scale(0.98);
}

.subscribe-message {
    font-size: 0.85rem;
    min-height: 20px;
    transition: all 0.3s ease;
}

.subscribe-message.success {
    color: #34d399;
}

.subscribe-message.error {
    color: #f87171;
}

/* --- Features --- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 700px;
    margin-top: 8px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
    cursor: default;
}

.feature-card:hover {
    background: var(--surface-hover);
    border-color: rgba(245, 158, 11, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gradient-glow);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-md);
    color: var(--accent-amber);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* --- Footer --- */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 0;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-muted);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent-amber);
    border-color: rgba(245, 158, 11, 0.2);
    background: var(--gradient-glow);
    transform: translateY(-2px);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* --- Animations --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out both;
}

.animate-fade-in-delay-1 {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.animate-fade-in-delay-4 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.animate-fade-in-delay-5 {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero {
        gap: 24px;
        padding: 20px 0;
    }

    .countdown {
        gap: 8px;
    }

    .countdown-card {
        min-width: 60px;
        padding: 12px 14px;
    }

    .countdown-value {
        font-size: 1.6rem;
    }

    .countdown-separator {
        font-size: 1.4rem;
    }

    .features {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .subscribe-form {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 8px;
    }

    .input-wrapper {
        padding: 4px 12px;
    }

    .btn-notify {
        width: 100%;
        padding: 14px;
        border-radius: var(--radius-md);
    }
}

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

    .countdown-card {
        min-width: 52px;
        padding: 10px 10px;
    }

    .countdown-value {
        font-size: 1.3rem;
    }

    .brand-text {
        font-size: 1.25rem;
    }
}
