/* ===== LANDING PAGE STYLES ===== */
:root {
    --landing-bg: #0f172a;
    --landing-bg-light: #1e293b;
    --landing-surface: #1e293b;
    --landing-surface-hover: #334155;
    --landing-border: rgba(148, 163, 184, 0.15);
    --landing-text: #f1f5f9;
    --landing-text-dim: #94a3b8;
    --landing-accent: #3b82f6;
    --landing-accent-light: #60a5fa;
    --landing-accent-glow: rgba(59, 130, 246, 0.25);
    --landing-gradient-1: #3b82f6;
    --landing-gradient-2: #8b5cf6;
    --landing-gradient-3: #06b6d4;
    --landing-success: #10b981;
    --landing-warning: #f59e0b;
}

body.landing-page {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    background: var(--landing-bg);
    color: var(--landing-text);
    overflow-x: hidden;
}

body.landing-page .header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--landing-border);
    box-shadow: none;
}

body.landing-page .footer {
    background: var(--landing-bg);
    border-top: 1px solid var(--landing-border);
    color: var(--landing-text-dim);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    padding: 80px 24px 60px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--landing-accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--landing-accent-light);
    margin-bottom: 28px;
    animation: fadeInDown 0.6s ease-out;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--landing-success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    animation: fadeInUp 0.7s ease-out;
}

.hero-title-gradient {
    background: linear-gradient(135deg, var(--landing-gradient-1), var(--landing-gradient-2), var(--landing-gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--landing-text-dim);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out;
}

/* === ANIMATED PLATE IN HERO === */
.hero-plate-showcase {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 0.9s ease-out;
}

.hero-plate-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--landing-border);
    border-radius: 12px;
    padding: 16px 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: default;
}

.hero-plate-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--landing-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

/* === STATS SECTION === */
.landing-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out;
}

.landing-stat-card {
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.landing-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--landing-gradient-1), var(--landing-gradient-2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.landing-stat-card:hover {
    border-color: var(--landing-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.1);
}

.landing-stat-card:hover::before {
    opacity: 1;
}

.landing-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--landing-accent-light), var(--landing-gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.landing-stat-label {
    font-size: 0.85rem;
    color: var(--landing-text-dim);
    margin-top: 6px;
    font-weight: 500;
}

/* === FEATURES SECTION === */
.features-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.features-section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.features-section-desc {
    text-align: center;
    color: var(--landing-text-dim);
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-icon.blue {
    background: rgba(59, 130, 246, 0.15);
}

.feature-icon.purple {
    background: rgba(139, 92, 246, 0.15);
}

.feature-icon.cyan {
    background: rgba(6, 182, 212, 0.15);
}

.feature-icon.green {
    background: rgba(16, 185, 129, 0.15);
}

.feature-icon.amber {
    background: rgba(245, 158, 11, 0.15);
}

.feature-icon.rose {
    background: rgba(244, 63, 94, 0.15);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--landing-text-dim);
    line-height: 1.6;
}

/* === COUNTRIES SECTION === */
.countries-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.countries-section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.countries-section-desc {
    text-align: center;
    color: var(--landing-text-dim);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

.landing-countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.country-card {
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-radius: 16px;
    padding: 28px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    color: var(--landing-text);
    position: relative;
    overflow: hidden;
}

.country-card::after {
    content: '→';
    position: absolute;
    right: 24px;
    top: 28px;
    font-size: 1.3rem;
    color: var(--landing-text-dim);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-8px);
}

.country-card:hover {
    border-color: var(--landing-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.country-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.country-card-flag {
    font-size: 2.8rem;
    line-height: 1;
}

.country-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.country-card-desc {
    font-size: 0.9rem;
    color: var(--landing-text-dim);
    line-height: 1.5;
}

.country-card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.country-badge {
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.1);
    color: var(--landing-accent-light);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.country-badge.code-badge {
    background: rgba(148, 163, 184, 0.1);
    color: var(--landing-text-dim);
    border-color: rgba(148, 163, 184, 0.2);
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 600;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === CTA SECTION === */
.cta-section {
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 24px;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}

.cta-desc {
    color: var(--landing-text-dim);
    font-size: 1rem;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--landing-gradient-1), var(--landing-gradient-2));
    color: #fff;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    position: relative;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

/* === SCROLLBAR === */
body.landing-page::-webkit-scrollbar {
    width: 8px;
}

body.landing-page::-webkit-scrollbar-track {
    background: var(--landing-bg);
}

body.landing-page::-webkit-scrollbar-thumb {
    background: var(--landing-surface-hover);
    border-radius: 4px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero {
        padding: 60px 16px 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .landing-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .landing-stat-number {
        font-size: 1.6rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .landing-countries-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 32px 20px;
    }

    .cta-title {
        font-size: 1.3rem;
    }

    .features-section-title,
    .countries-section-title {
        font-size: 1.4rem;
    }

    .hero-plate-showcase {
        gap: 10px;
    }

    .hero-plate-item {
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .landing-stats {
        grid-template-columns: 1fr 1fr;
    }

    .landing-stat-card {
        padding: 18px 14px;
    }

    .landing-stat-number {
        font-size: 1.4rem;
    }
}

/* ===== LIGHT THEME FOR LANDING ===== */
body.landing-page.landing-light {
    background: #f8fafc;
    color: #1e293b;
}

body.landing-page.landing-light .header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

body.landing-page.landing-light .header-logo {
    color: #1e293b;
}

body.landing-page.landing-light .hero-title {
    color: #0f172a;
}

body.landing-page.landing-light .hero-subtitle {
    color: #64748b;
}

body.landing-page.landing-light .hero-badge {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

body.landing-page.landing-light .hero::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

body.landing-page.landing-light .hero::after {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}

body.landing-page.landing-light .hero-plate-item {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.landing-page.landing-light .hero-plate-item:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
}

body.landing-page.landing-light .landing-stat-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.landing-page.landing-light .landing-stat-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

body.landing-page.landing-light .landing-stat-label {
    color: #64748b;
}

body.landing-page.landing-light .feature-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.landing-page.landing-light .feature-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

body.landing-page.landing-light .feature-desc {
    color: #64748b;
}

body.landing-page.landing-light .features-section-desc,
body.landing-page.landing-light .countries-section-desc {
    color: #64748b;
}

body.landing-page.landing-light .country-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.landing-page.landing-light .country-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.landing-page.landing-light .country-card-desc {
    color: #64748b;
}

body.landing-page.landing-light .country-badge {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
}

body.landing-page.landing-light .country-badge.code-badge {
    background: rgba(100, 116, 139, 0.08);
    color: #64748b;
    border-color: rgba(100, 116, 139, 0.15);
}

body.landing-page.landing-light .cta-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(139, 92, 246, 0.06));
    border-color: rgba(59, 130, 246, 0.15);
}

body.landing-page.landing-light .cta-desc {
    color: #64748b;
}

body.landing-page.landing-light .footer {
    background: #f1f5f9;
    border-top-color: rgba(0, 0, 0, 0.08);
    color: #64748b;
}

body.landing-page.landing-light .footer-link {
    color: #3b82f6;
}

body.landing-page.landing-light .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
}

body.landing-page.landing-light .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.landing-page.landing-light .random-plate-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: #64748b;
}

body.landing-page.landing-light .random-plate-btn:hover {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.3);
    color: #1e293b;
}

body.landing-page.landing-light .lang-btn {
    color: #1e293b;
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.04);
}