/* ═══════════════════════════════════════════
   Landing Page Styles (AI Pro - Deep Blue Neon)
   ═══════════════════════════════════════════ */

/* Global Light Overrides for Landing Body */
.landing-body { background-color: #f8fafc; color: #334155; }
.landing-body h1, .landing-body h2, .landing-body h3, .landing-body .landing-title, .landing-body .text-primary { color: #0f172a; }
.landing-body .text-secondary { color: #475569; }

/* Background Grids & Blobs */
.neo-background { position: fixed; inset: 0; z-index: -1; overflow: hidden; background-color: #f8fafc; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}
.blob-1 { position: absolute; top: -20%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%); border-radius: 50%; filter: blur(60px); }
.blob-2 { position: absolute; bottom: -20%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%); border-radius: 50%; filter: blur(60px); }

/* ── Navbar ── */
.landing-nav.glass-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.landing-nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-brand { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; color: #0f172a !important; font-family: var(--font-mono); }
.nav-brand svg { color: #2563eb; margin-right: 5px; }

/* ── Professional Buttons ── */
.btn-neon { background: #2563eb; color: white; border: none; box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -1px rgba(37, 99, 235, 0.1); transition: all 0.2s ease; padding: 10px 20px; border-radius: 8px; font-weight: 600; letter-spacing: 0.2px;}
.btn-neon:hover { background: #1d4ed8; box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3), 0 4px 6px -2px rgba(37, 99, 235, 0.15); color: white; transform: translateY(-1px); }
.btn-glass { background: #f1f5f9; border: 1px solid #e2e8f0; color: #334155; padding: 6px 12px; border-radius: 6px; font-weight: 600;}
.btn-glass:hover { background: #e2e8f0; color: #0f172a; }

/* ── Hero ── */
.hero-neo { padding: 160px 0 80px; position: relative; z-index: 10; }
.hero-badge-neo { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 99px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.hero-neo h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.2; margin-bottom: 24px; color: #0f172a; letter-spacing: -0.02em;}
.text-neon { color: #2563eb; text-shadow: none !important; }
.hero-subtitle-neo { font-size: 18px; color: #475569; line-height: 1.6; max-width: 600px; margin-bottom: 40px; font-weight: 400;}

/* Dashboard Matrix View */
.hero-visual-neo { font-weight: 500; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); transform: perspective(1000px) rotateY(-3deg) rotateX(2deg); transition: transform 0.4s ease; max-width: 100%; overflow-x: hidden;}
.hero-visual-neo:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }

/* Features */
.features-neo { padding: 100px 0; position: relative; z-index: 10; overflow: hidden; }
.feature-card-neo { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 32px; transition: all 0.3s ease; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.feature-card-neo:hover { border-color: #cbd5e1; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); transform: translateY(-4px); }
.feature-icon-neo { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; margin-bottom: 24px; background: #eff6ff; color: #2563eb; }
.feature-tags-neo span { display:inline-block; background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; padding: 4px 10px; border-radius: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-right: 4px; margin-bottom: 4px;}

/* CTA */
.cta-neo { background: linear-gradient(135deg, #1e3a8a, #2563eb) !important; border: none; box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.3); border-radius: 20px; padding: 48px;}
.cta-neo h2 { color: #ffffff !important; text-shadow: none !important;}
.cta-neo p { color: #bfdbfe !important; }

/* ── Neo Mobile Adjustments ── */
@media screen and (max-width: 768px) {
    .neo-background { display: none; } /* Tắt blob nặng trên mobile */
    .hero-neo { padding: 100px 0 40px; }
    .hero-neo h1 { font-size: 2.25rem; }
    .hero-subtitle-neo { font-size: 16px; }
    .hero-visual-neo { transform: none !important; padding: 16px; border-radius: 12px; }
    .features-neo { padding: 40px 0; }
    .cta-neo { padding: 30px 20px; }
    .nav-actions { display: none; } /* Ẩn menu nav actions trên mobile nếu chưa có hamburger */
    .preview-code { font-size: 12px; white-space: pre-wrap; word-break: break-all; }
}


/* ── Navbar ── */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: background var(--duration-normal) var(--ease-smooth);
}

.landing-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    color: var(--text-primary);
}

.nav-brand svg {
    color: var(--brand-500);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* ── Hero Section ── */
.hero {
    padding: 140px 0 var(--space-20);
    background: linear-gradient(180deg, var(--brand-50) 0%, var(--bg-page) 100%);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(76, 110, 245, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 16px;
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--brand-700);
    margin-bottom: var(--space-6);
    animation: fadeIn var(--duration-slow) var(--ease-out);
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: var(--space-5);
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-8);
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-color);
}

.hero-stat h3 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--brand-600);
}

.hero-stat p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* ── Hero Visual ── */
.hero-visual {
    position: relative;
}

.hero-card-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-6);
    animation: fadeInUp var(--duration-slow) var(--ease-out) 0.2s both;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--slate-300);
}
.preview-dot.green  { background: var(--success); }
.preview-dot.yellow { background: var(--warning); }

.preview-code {
    background: var(--slate-900);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--slate-300);
    line-height: 1.7;
    overflow: hidden;
}

.preview-code .key   { color: #93C5FD; }
.preview-code .str   { color: #86EFAC; }
.preview-code .num   { color: #FDE68A; }
.preview-code .punct { color: var(--slate-500); }

/* ── Features Section ── */
.features {
    padding: var(--space-24) 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-16);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
}

.feature-card {
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-50);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
    color: var(--brand-600);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.feature-tag {
    padding: 4px 12px;
    background: var(--slate-100);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--slate-600);
    font-weight: var(--font-medium);
}

/* ── CTA Section ── */
.cta-section {
    padding: var(--space-20) 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    border-radius: var(--radius-2xl);
    padding: var(--space-16) var(--space-12);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    border-radius: 50%;
}

.cta-card h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
    position: relative;
}

.cta-card p {
    font-size: var(--text-lg);
    opacity: 0.85;
    margin-bottom: var(--space-8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.btn-white {
    background: white;
    color: var(--brand-700);
    border: none;
    font-weight: var(--font-semibold);
    box-shadow: var(--shadow-lg);
}
.btn-white:hover {
    background: var(--slate-50);
    box-shadow: var(--shadow-xl);
}

/* ── Footer ── */
.site-footer {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--border-color);
}

.footer-links a:hover {
    color: var(--brand-600);
}

/* ═══════════════════════════════════════════
   Pricing Page
   ═══════════════════════════════════════════ */
.landing-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.landing-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-card);
    position: relative;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border: 2px solid var(--brand-500);
    box-shadow: var(--shadow-lg), 0 0 0 4px var(--brand-50);
}

.pricing-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-600);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    padding: 4px 16px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-4);
}

.pricing-badge.free       { background: var(--slate-100); color: var(--slate-600); }
.pricing-badge.starter    { background: var(--info-light); color: #1E40AF; }
.pricing-badge.pro        { background: var(--brand-50); color: var(--brand-700); }
.pricing-badge.enterprise { background: var(--warning-light); color: #92400E; }

.pricing-price {
    margin-bottom: var(--space-3);
}

.price-amount {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.price-unit {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.pricing-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6);
}

.pricing-features li {
    font-size: var(--text-sm);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--slate-50);
    color: var(--text-secondary);
}

.pricing-features li:last-child { border-bottom: none; }
.pricing-features li.dim { color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hero { padding: 100px 0 var(--space-12); }
    .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .hero-visual { display: none; }
    .hero-stats { gap: var(--space-6); }
    .nav-actions .btn-secondary { display: none; }
}

@media (max-width: 600px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.75rem; }
    .hero-subtitle { font-size: var(--text-base); }
    .hero-stats { flex-direction: column; gap: var(--space-4); }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .site-footer .container { flex-direction: column; gap: var(--space-4); text-align: center; }
}
