/* =====================================================
   DeepChat AI - Coming Soon Page Styles
   Premium Light Theme with Antigravity-style Stars
   ===================================================== */

/* CSS Variables */
:root {
    /* Primary Colors */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;

    /* Accent Colors - Google-inspired */
    --accent-blue: #4285f4;
    --accent-red: #ea4335;
    --accent-yellow: #fbbc05;
    --accent-green: #34a853;
    --accent-purple: #a855f7;
    --accent-orange: #ff6d01;

    /* Background - Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.7);

    /* Text - Light Mode */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Borders */
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    --gradient-light-blue: radial-gradient(ellipse at center, rgba(66, 133, 244, 0.08) 0%, transparent 70%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Typography */
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

body[dir="ltr"] {
    font-family: var(--font-en);
}

/* Background Animation - Antigravity Style */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Light blue vignette effect */
.background-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at top left, rgba(66, 133, 244, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(52, 168, 83, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(66, 133, 244, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(66, 133, 244, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

/* Soft gradient orbs for light mode */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 25s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.3) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -8s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52, 168, 83, 0.2) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -16s;
    opacity: 0.3;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -20px) scale(1.02);
    }

    50% {
        transform: translate(-15px, 15px) scale(0.98);
    }

    75% {
        transform: translate(-20px, -15px) scale(1.01);
    }
}

/* Particles Container - Canvas will be inserted here */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100;
    display: flex;
    gap: 4px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

body[dir="ltr"] .language-toggle {
    left: auto;
    right: 24px;
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.lang-btn.active {
    color: white;
    background: var(--gradient-primary);
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 0 60px;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-icon {
    width: 64px;
    height: 64px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.logo-text {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-text {
    font-weight: 300;
    opacity: 0.8;
}

/* Hero Content */
.hero-content {
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: var(--gradient-glow);
    border: 1px solid var(--border-glow);
    border-radius: 50px;
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-600);
    letter-spacing: 1px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-500);
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
}

.hero-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 22px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Subscription Form */
.subscription-container {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.subscription-form {
    max-width: 500px;
    margin: 0 auto 16px;
}

.input-wrapper {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.input-wrapper:focus-within {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-glow);
}

.input-wrapper input {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    outline: none;
}

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

.submit-btn {
    padding: 16px 28px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

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

.subscription-note {
    font-size: 14px;
    color: var(--text-muted);
}

/* Success Message */
.success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    max-width: 400px;
    margin: 20px auto 0;
    animation: fadeInUp 0.5s ease-out;
}

.success-message.hidden {
    display: none;
}

.success-icon {
    width: 32px;
    height: 32px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition-normal);
    animation: fadeInUp 0.6s ease-out both;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Integration Section */
.integration-section {
    padding: 60px 0 80px;
}

.integrations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
}

.integration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition-normal);
}

.integration-item:hover {
    transform: translateY(-5px);
}

.integration-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.integration-icon svg {
    width: 36px;
    height: 36px;
}

.integration-icon.whatsapp {
    color: #25D366;
}

.integration-icon.messenger {
    color: #0084FF;
}

.integration-icon.instagram {
    color: #E4405F;
}

.integration-icon.telegram {
    color: #0088CC;
}

.integration-icon.website {
    color: var(--primary-500);
}

.integration-item:hover .integration-icon {
    border-color: currentColor;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1), 0 0 20px currentColor;
}

.integration-item span:last-child {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Dashboard Section */
.dashboard-section {
    padding: 60px 0 80px;
}

.dashboard-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
    margin: 40px 0;
}

.dashboard-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: var(--text-secondary);
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

/* Dashboard Preview */
.dashboard-preview {
    margin-top: 48px;
    perspective: 1000px;
}

.preview-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotateX(5deg);
    transition: var(--transition-normal);
}

.preview-window:hover {
    transform: rotateX(0deg);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.window-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.window-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.window-content {
    display: flex;
    min-height: 300px;
}

.sidebar-mock {
    width: 60px;
    background: rgba(0, 0, 0, 0.02);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-item {
    height: 36px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.sidebar-item.active {
    background: var(--gradient-primary);
}

.main-mock {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-cards {
    display: flex;
    gap: 16px;
}

.stat-card {
    flex: 1;
    height: 80px;
    background: var(--gradient-glow);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.chart-mock {
    flex: 1;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-height: 120px;
}

.table-mock {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.table-row {
    height: 20px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

/* Demo Section */
.demo-section {
    padding: 60px 0;
}

.demo-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.demo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.demo-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.demo-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.demo-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.demo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.demo-btn-icon {
    font-size: 22px;
}

.demo-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    text-align: center;
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
    margin-bottom: 24px;
}

.footer-content p {
    font-size: 16px;
    color: var(--text-secondary);
}

.copyright {
    font-size: 14px;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        padding: 40px 16px;
    }

    .hero-section {
        padding: 60px 0 40px;
    }

    .logo-container {
        flex-direction: column;
        gap: 12px;
    }

    .logo-text {
        font-size: 32px;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .submit-btn {
        width: 100%;
    }

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

    .integrations-grid {
        gap: 24px;
    }

    .integration-icon {
        width: 60px;
        height: 60px;
    }

    .dashboard-features {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
    }

    .window-content {
        flex-direction: column;
    }

    .sidebar-mock {
        width: 100%;
        flex-direction: row;
        padding: 12px;
    }

    .sidebar-item {
        height: 24px;
        flex: 1;
    }

    .stat-cards {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .language-toggle {
        top: 16px;
        left: 16px;
    }

    body[dir="ltr"] .language-toggle {
        right: 16px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}