/* ============================================
   TaoVideo — Landing + Home
   🌌 AI Studio Dark Theme
   Inspired by: Runway ML, Pika Labs, Kling AI
   Gradient: Violet → Cyan
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ---- ROOT TOKENS ---- */
:root {
    --bg-main: #0a0e1a;
    --bg-surface: #0f1225;
    --bg-card: rgba(15, 18, 40, 0.75);
    --bg-card-solid: #131630;
    --bg-card-hover: #1a1e3d;
    --bg-glass: rgba(10, 14, 26, 0.85);
    --bg-glass-thick: rgba(10, 14, 26, 0.92);
    --bg-light: rgba(255, 255, 255, 0.04);

    --border-subtle: rgba(124, 58, 237, 0.1);
    --border-color: rgba(124, 58, 237, 0.12);
    --border-hover: rgba(124, 58, 237, 0.35);
    --input-border: rgba(124, 58, 237, 0.18);

    --text-primary: #e8eaf6;
    --text-secondary: #9ca3bf;
    --text-muted: #5a6080;

    /* AI gradient: Violet → Cyan */
    --violet: #7c3aed;
    --violet-light: #a78bfa;
    --cyan: #06b6d4;
    --cyan-light: #22d3ee;
    --pink: #ec4899;
    --emerald: #10b981;
    --amber: #f59e0b;

    --primary-rgb: 124, 58, 237;
    --primary: var(--violet);
    --primary-01: rgba(124, 58, 237, 0.1);
    --primary-02: rgba(124, 58, 237, 0.2);
    --danger-rgb: 239, 68, 68;
    --success-rgb: 16, 185, 129;
    --warning-rgb: 245, 158, 11;
    --info-rgb: 6, 182, 212;

    --gradient-ai: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    --gradient-ai-hover: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
    --gradient-warm: linear-gradient(135deg, #ec4899, #f59e0b);

    --card-bg: var(--bg-card);
    --card-border: var(--border-color);
    --card-radius: 1rem;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 8px 40px rgba(124, 58, 237, 0.15), 0 0 0 1px rgba(124, 58, 237, 0.2);
    --header-bg: var(--bg-glass-thick);
    --header-shadow: 0 1px 0 rgba(124, 58, 237, 0.08);

    --radius: 1rem;
    --radius-sm: 0.75rem;
    --radius-xs: 0.5rem;
    --font: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.landing-page {
    font-family: var(--font);
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100vw;
    /* Subtle ambient glow */
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.1), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(6, 182, 212, 0.05), transparent);
}

/* ======== HEADER ======== */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; font-size: 1.3rem; font-weight: 800;
    color: var(--text-primary);
}
.brand-logo .logo-img { height: 36px; width: auto; object-fit: contain; }

.header-nav { display: flex; align-items: center; gap: 8px; }

/* Header AI gradient button — AiDancing Neon Glow */
.header-neon-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; border-radius: 999px;
    font-family: var(--font); font-size: 13px; font-weight: 700;
    color: #fff !important; text-decoration: none; white-space: nowrap;
    cursor: pointer; border: none;
    background: linear-gradient(135deg, #6f7cff, #8f6bff, #4b5bff);
    background-size: 300% 300%;
    animation: gradientMove 6s ease infinite, pulseGlow 2.5s infinite;
    box-shadow: 0 0 12px rgba(111,124,255,0.6), 0 0 24px rgba(143,107,255,0.4);
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.header-neon-btn::before {
    content: ""; position: absolute;
    top: 0; left: -120%; width: 120%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: scanLight 3s infinite;
}
.header-neon-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 20px rgba(111,124,255,0.9), 0 0 40px rgba(143,107,255,0.8);
    color: #fff !important;
}

/* Header outline button */
.header-outline-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; border-radius: var(--radius-xs);
    font-family: var(--font); font-size: 13px; font-weight: 600;
    color: var(--text-secondary); text-decoration: none; white-space: nowrap;
    cursor: pointer; background: var(--bg-light);
    border: 1px solid var(--border-color); transition: var(--transition);
    position: relative; overflow: hidden;
}
.header-outline-btn::before {
    content: ""; position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.06), transparent);
    transition: left 0.5s ease;
}
.header-outline-btn:hover::before { left: 100%; }
.header-outline-btn:hover {
    color: var(--violet-light); border-color: var(--border-hover);
    background: var(--primary-01); transform: translateY(-1px);
}

/* ======== ANNOUNCEMENT BAR ======== */
.announce-bar {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 10px 24px;
    background: linear-gradient(90deg, rgba(124,58,237,0.08), rgba(6,182,212,0.06));
    border: 1px solid rgba(124,58,237,0.1); border-radius: 12px;
    margin: 12px 24px 0; font-size: 0.84rem; font-weight: 500; flex-wrap: wrap;
}
.announce-bar .bar-emoji { font-size: 1rem; }
.announce-bar .bar-text { color: var(--text-secondary); }
.announce-bar .bar-cta { color: var(--cyan-light); font-weight: 700; text-decoration: none; }
.announce-bar .bar-cta:hover { color: #fff; }

/* ======== NAV CARDS (GeminiGen Style) ======== */
.nav-cards-row {
    display: flex; align-items: stretch; gap: 14px;
    padding: 20px 24px 16px; overflow-x: auto; scrollbar-width: none;
}
.nav-cards-row::-webkit-scrollbar { display: none; }

.nav-card {
    position: relative; flex: 1; min-width: 160px; max-width: 220px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; padding: 22px 18px;
    background: rgba(20, 24, 40, 0.85);
    border: 1.5px solid rgba(255,255,255,0.06);
    border-radius: 14px; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden; user-select: none;
}
.nav-card__particles {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(1.5px 1.5px at 15% 25%, rgba(255,255,255,0.12), transparent),
        radial-gradient(1px 1px at 75% 35%, rgba(255,255,255,0.08), transparent),
        radial-gradient(1.5px 1.5px at 45% 75%, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 85% 80%, rgba(255,255,255,0.06), transparent),
        radial-gradient(1.5px 1.5px at 25% 60%, rgba(255,255,255,0.07), transparent),
        radial-gradient(1px 1px at 60% 15%, rgba(255,255,255,0.09), transparent);
}
.nav-card__icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5); transition: color 0.3s;
}
.nav-card__label {
    font-size: 0.82rem; font-weight: 600;
    color: rgba(255,255,255,0.5); text-align: center;
    transition: color 0.3s; line-height: 1.3;
}
.nav-card__badge-soon {
    position: absolute; top: 8px; right: 8px;
    padding: 2px 8px; border-radius: 6px;
    font-size: 0.58rem; font-weight: 700;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff; letter-spacing: 0.02em;
}
.nav-card:not(.nav-card--disabled):hover {
    border-color: rgba(34,197,94,0.3);
    background: rgba(20,24,40,0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(34,197,94,0.1);
}
.nav-card:not(.nav-card--disabled):hover .nav-card__icon { color: #22c55e; }
.nav-card:not(.nav-card--disabled):hover .nav-card__label { color: rgba(255,255,255,0.85); }
.nav-card--active {
    border-color: #22c55e !important;
    box-shadow: 0 0 20px rgba(34,197,94,0.15), inset 0 0 30px rgba(34,197,94,0.03);
}
.nav-card--active .nav-card__icon { color: #22c55e; }
.nav-card--active .nav-card__label { color: #fff; font-weight: 700; }
.nav-card--disabled { opacity: 0.55; cursor: not-allowed; }
.nav-card--disabled:hover { transform: none; box-shadow: none; }

/* ======== FILTER TABS ======== */
.filter-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 16px 24px; overflow-x: auto; scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: var(--card-radius);
    font-size: 0.82rem; font-weight: 500; color: var(--text-secondary);
    background: var(--bg-card); border: 1px solid var(--border-color);
    cursor: pointer; transition: var(--transition);
    white-space: nowrap; text-decoration: none; user-select: none;
    backdrop-filter: blur(8px);
    position: relative; overflow: hidden;
}
.filter-tab::before {
    content: ""; position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,0.06), transparent);
    transition: left 0.4s ease;
}
.filter-tab:hover::before { left: 100%; }
.filter-tab:hover {
    color: var(--violet-light); border-color: var(--border-hover);
    background: var(--primary-01);
    box-shadow: 0 0 16px rgba(124,58,237,0.1);
    transform: translateY(-1px);
}
.filter-tab.active {
    background: var(--gradient-ai); color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(124,58,237,0.35), 0 0 0 1px rgba(6,182,212,0.2);
    font-weight: 600;
    animation: filterPulse 2.5s ease-in-out infinite;
}
.filter-tab.active::before { display: none; }
@keyframes filterPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(124,58,237,0.3); }
    50% { box-shadow: 0 4px 24px rgba(124,58,237,0.5), 0 0 8px rgba(6,182,212,0.2); }
}
.filter-tab .ti { font-size: 0.9rem; }


/* ======== SERVICE CARDS GRID ======== */
.cards-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 16px; padding: 0 24px 24px;
}

.svc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden; transition: var(--transition);
    position: relative; cursor: pointer;
    display: flex; flex-direction: column;
    backdrop-filter: blur(8px);
}
.svc-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--card-shadow-hover);
}

.svc-card .card-top { padding: 16px 16px 0; }
.svc-card .card-title {
    font-size: 0.84rem; font-weight: 700; color: var(--text-primary);
    line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; min-height: 40px;
}

.svc-card .card-img {
    margin: 12px 16px 0; border-radius: var(--radius-sm);
    overflow: hidden; aspect-ratio: 16 / 10;
    position: relative; background: rgba(0,0,0,0.3);
}
.svc-card .card-img img, .svc-card .card-img video {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.svc-card:hover .card-img img, .svc-card:hover .card-img video {
    transform: scale(1.05);
}

.svc-card .card-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.4) 100%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.svc-card:hover .card-img::after { opacity: 1; }

/* Play icon — gradient circle */
.svc-card .card-img::before {
    content: '▶'; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8); z-index: 2;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--gradient-ai); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; opacity: 0; transition: all 0.25s; pointer-events: none;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
}
.svc-card .card-img:hover::before {
    opacity: 1; transform: translate(-50%, -50%) scale(1);
}

/* Tag badges */
.card-badge {
    position: absolute; top: 8px; left: 8px;
    padding: 3px 10px; border-radius: 6px;
    font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.04em; z-index: 2; text-transform: uppercase;
}
.badge-hot { background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; box-shadow: 0 0 10px rgba(239,68,68,0.3); }
.badge-new { background: var(--gradient-ai); color: #fff; box-shadow: 0 0 10px rgba(124,58,237,0.3); }
.badge-popular { background: linear-gradient(135deg, var(--pink), #f43f5e); color: #fff; box-shadow: 0 0 10px rgba(236,72,153,0.3); }

.svc-card .card-bottom {
    padding: 12px 16px 16px; flex: 1;
    display: flex; flex-direction: column;
}
.svc-card .card-desc {
    font-size: 0.75rem; color: var(--text-muted); line-height: 1.6;
    margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}

/* Card info strip — 3 pills + full-width CTA */
.card-info-strip {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(124,58,237,0.08);
}

.info-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    border-radius: 8px;
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.2px;
}

.info-pill i { font-size: 0.7rem; }

.info-pill.price {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.18);
    color: #34d399;
}
.info-pill.price small {
    font-size: 0.52rem;
    font-weight: 500;
    color: rgba(52,211,153,0.6);
    margin-left: 1px;
}

.info-pill.speed {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.18);
    color: #fbbf24;
}

.info-pill.warranty {
    background: rgba(6,182,212,0.1);
    border: 1px solid rgba(6,182,212,0.18);
    color: #22d3ee;
}

.svc-card .btn-create-css {
    width: 100%;
}


/* Card action button — AiDancing Neon Glow */
.svc-card .card-action-img { display: none; }
.svc-card .btn-create-css {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 10px 20px; border: none;
    border-radius: 999px; font-family: var(--font);
    font-size: 13px; font-weight: 700; color: #fff !important;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    background: linear-gradient(135deg, #6f7cff, #8f6bff, #4b5bff);
    background-size: 300% 300%;
    animation: gradientMove 6s ease infinite, pulseGlow 2.5s infinite;
    box-shadow: 0 0 12px rgba(111,124,255,0.6), 0 0 24px rgba(143,107,255,0.4);
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.svc-card .btn-create-css::before {
    content: ""; position: absolute;
    top: 0; left: -120%; width: 120%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: scanLight 3s infinite;
}
.svc-card .btn-create-css:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 20px rgba(111,124,255,0.9), 0 0 40px rgba(143,107,255,0.8);
    color: #fff !important;
}

/* ======== PROFESSIONAL FOOTER ======== */
.pro-footer {
    margin-top: 32px;
    background: linear-gradient(180deg, rgba(10, 14, 30, 0.95), #070a16);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}
.pf-main {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px; padding: 48px 32px 32px;
    max-width: 1200px; margin: 0 auto;
}
.pf-col-brand {}
.pf-logo {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
}
.pf-logo-img { height: 32px; width: auto; }
.pf-brand-name {
    font-size: 1.3rem; font-weight: 800;
    background: var(--gradient-ai); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.pf-desc {
    font-size: 0.8rem; color: rgba(255,255,255,0.4);
    line-height: 1.7; margin-bottom: 16px;
}
.pf-contact {
    display: flex; flex-direction: column; gap: 8px;
}
.pf-contact div {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.78rem; color: rgba(255,255,255,0.5);
}
.pf-contact i { color: var(--violet-light); font-size: 0.85rem; }
.pf-heading {
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 1.5px; color: rgba(255,255,255,0.55);
    margin-bottom: 18px; text-transform: uppercase;
}
.pf-payments {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.pf-pay-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 0.78rem; color: rgba(255,255,255,0.5);
    transition: all .2s;
}
.pf-pay-item:hover {
    background: rgba(99,102,241,0.06);
    border-color: rgba(99,102,241,0.15);
}
.pf-pay-item i { color: var(--violet-light); }
.pf-socials {
    display: flex; flex-direction: column; gap: 8px;
}
.pf-social {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.82rem; color: rgba(255,255,255,0.5);
    text-decoration: none; padding: 6px 0;
    transition: color .2s;
}
.pf-social:hover { color: #fff; }
.pf-social i { font-size: 1rem; color: var(--violet-light); width: 20px; }

/* Cert badges */
.pf-certs {
    display: flex; justify-content: center; gap: 16px;
    padding: 20px 32px;
    border-top: 1px solid rgba(255,255,255,0.04);
    flex-wrap: wrap;
}
.pf-cert-badge {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    font-size: 0.72rem; font-weight: 600;
    color: rgba(255,255,255,0.4);
}
.pf-cert-badge i { color: #22c55e; font-size: 0.85rem; }

/* Bottom bar */
.pf-bottom {
    text-align: center; padding: 18px 32px;
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 0.72rem; color: rgba(255,255,255,0.25);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 1500px) { .cards-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
@media (max-width: 1280px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .cards-grid { grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px 16px; }
    .svc-card { border-radius: var(--radius-sm); }
    .svc-card .card-top { padding: 12px 12px 0; }
    .svc-card .card-title { font-size: 0.82rem; min-height: unset; }
    .svc-card .card-img { margin: 8px 12px 0; }
    .svc-card .card-bottom { padding: 8px 12px 12px; }
    .svc-card .card-desc { font-size: 0.7rem; margin-bottom: 8px; }
    .svc-card .btn-create-css { width: 100%; padding: 10px 16px; font-size: 12px; }
    .card-badge { font-size: 0.58rem; padding: 2px 8px; }
    .pro-footer .pf-main { grid-template-columns: 1fr; gap: 28px; padding: 32px 20px 24px; }
    .pf-payments { grid-template-columns: 1fr 1fr; }
    .pf-certs { gap: 8px; padding: 16px 16px; }
    .pf-cert-badge { padding: 6px 12px; font-size: 0.68rem; }
    .pf-bottom { padding: 14px 16px; }
    .landing-header { padding: 0 12px; height: 56px; }
    .brand-logo .logo-img { height: 28px; }
    .header-neon-btn, .header-outline-btn { padding: 7px 14px; font-size: 12px; }
    .filter-bar { padding: 10px 12px; gap: 6px; }
    .filter-tab { padding: 7px 14px; font-size: 0.76rem; }
    .nav-cards-row { padding: 14px 12px 10px; gap: 10px; }
    .nav-card { min-width: 130px; padding: 16px 12px; gap: 8px; border-radius: 12px; }
    .nav-card__icon { width: 36px; height: 36px; }
    .nav-card__icon svg { width: 26px; height: 26px; }
    .nav-card__label { font-size: 0.74rem; }
    .nav-card__badge-soon { font-size: 0.52rem; padding: 2px 6px; }
    .announce-bar { margin: 8px 12px 0; padding: 8px 12px; font-size: 0.78rem; }
    .landing-footer { padding: 16px 12px; }
}
@media (max-width: 480px) {
    .cards-grid { grid-template-columns: 1fr; }
    .svc-card .card-title { font-size: 0.92rem; font-weight: 800; }
    .svc-card .btn-create-css { font-size: 13px; padding: 12px 20px; }
}

/* ======== ANIMATIONS ======== */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.cards-grid.loaded .svc-card { animation: fadeSlideUp 0.4s ease forwards; opacity: 0; }
.cards-grid.loaded .svc-card:nth-child(1) { animation-delay: 0.03s; }
.cards-grid.loaded .svc-card:nth-child(2) { animation-delay: 0.06s; }
.cards-grid.loaded .svc-card:nth-child(3) { animation-delay: 0.09s; }
.cards-grid.loaded .svc-card:nth-child(4) { animation-delay: 0.12s; }
.cards-grid.loaded .svc-card:nth-child(5) { animation-delay: 0.15s; }
.cards-grid.loaded .svc-card:nth-child(6) { animation-delay: 0.18s; }
.cards-grid.loaded .svc-card:nth-child(7) { animation-delay: 0.21s; }
.cards-grid.loaded .svc-card:nth-child(8) { animation-delay: 0.24s; }
.cards-grid.loaded .svc-card:nth-child(9) { animation-delay: 0.27s; }
.cards-grid.loaded .svc-card:nth-child(10) { animation-delay: 0.30s; }

/* AiDancing Neon Glow Keyframes */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(111,124,255,0.6), 0 0 24px rgba(143,107,255,0.4); }
    50% { box-shadow: 0 0 20px rgba(111,124,255,0.9), 0 0 40px rgba(143,107,255,0.7); }
}
@keyframes scanLight {
    0% { left: -120%; }
    100% { left: 120%; }
}

/* ---- Video Modal ---- */
.video-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.25s ease;
}
.video-modal.open { opacity: 1; visibility: visible; }
.video-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
}
.video-modal-content {
    position: relative; width: 90%; max-width: 600px;
    border-radius: var(--card-radius); overflow: hidden;
    background: var(--bg-card-solid); border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(124,58,237,0.1);
    transform: scale(0.9) translateY(20px); transition: transform 0.3s ease;
}
.video-modal.open .video-modal-content { transform: scale(1) translateY(0); }
.video-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; background: var(--primary-01);
    border-bottom: 1px solid var(--border-color);
}
.video-modal-title { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.video-modal-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 18px; cursor: pointer; padding: 4px 8px;
    border-radius: 6px; transition: all 0.15s;
}
.video-modal-close:hover { background: var(--bg-light); color: #fff; }
.video-modal-content video { width: 100%; display: block; max-height: 70vh; background: #000; }

/* ============================================
   PRICING TABLE — Landing Page
   ============================================ */
.pricing-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 32px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(6,182,212,0.1));
    border: 1px solid rgba(124,58,237,0.2);
    color: var(--violet-light);
    margin-bottom: 14px;
}

.pricing-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

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

.pricing-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Table wrapper */
.pricing-table-wrap {
    background: rgba(15, 18, 40, 0.6);
    border: 1px solid rgba(124,58,237,0.12);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table thead th {
    padding: 14px 18px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    background: rgba(124,58,237,0.06);
    border-bottom: 1px solid rgba(124,58,237,0.1);
}

.pricing-table thead th.col-price,
.pricing-table thead th.col-action { text-align: center; }

.pricing-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.15s;
}

.pricing-table tbody tr:last-child { border-bottom: none; }
.pricing-table tbody tr:hover { background: rgba(124,58,237,0.04); }

.pricing-table td { padding: 12px 18px; vertical-align: middle; }

/* Name + badge */
.model-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.model-name { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }

.p-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.p-hot { background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; }
.p-new { background: var(--gradient-ai); color: #fff; }
.p-pop { background: linear-gradient(135deg, #ec4899, #f43f5e); color: #fff; }

/* Type pill */
.type-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-secondary);
}
.type-pill.video { color: #818cf8; border-color: rgba(129,140,248,0.2); background: rgba(129,140,248,0.08); }
.type-pill.anh { color: #22d3ee; border-color: rgba(34,211,238,0.2); background: rgba(34,211,238,0.08); }
.type-pill.am-thanh { color: #f59e0b; border-color: rgba(245,158,11,0.2); background: rgba(245,158,11,0.08); }
.type-pill.nhac { color: #ec4899; border-color: rgba(236,72,153,0.2); background: rgba(236,72,153,0.08); }
.type-pill.ban-hang { color: #10b981; border-color: rgba(16,185,129,0.2); background: rgba(16,185,129,0.08); }

/* Price */
.td-price { text-align: center; white-space: nowrap; }
.price-main { font-size: 0.95rem; font-weight: 800; color: #10b981; }
.price-unit { font-size: 0.68rem; color: var(--text-muted); font-weight: 500; margin-left: 2px; }

/* CTA button */
.td-action { text-align: center; }
.price-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    transition: all 0.2s;
    white-space: nowrap;
}
.price-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99,102,241,0.4);
}

/* Footer note */
.pricing-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
}
.pricing-footer-note i { color: var(--violet-light); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 768px) {
    .pricing-section { padding: 32px 12px 24px; }
    .pricing-title { font-size: 1.3rem; }
    .pricing-sub { font-size: 0.8rem; }

    .pricing-table thead { display: none; }
    .pricing-table, .pricing-table tbody, .pricing-table tr, .pricing-table td {
        display: block; width: 100%;
    }
    .pricing-table tbody tr {
        padding: 14px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    }
    .td-name { flex: 1 1 100%; order: 1; padding: 0 0 4px; }
    .td-type { flex: 0 0 auto; order: 2; padding: 0; }
    .td-price { flex: 1; order: 3; text-align: left; padding: 0; }
    .td-action { flex: 0 0 auto; order: 4; padding: 0; }
    .price-cta { padding: 6px 12px; font-size: 0.7rem; }
}

/* ═══════════════════════════════════════════
   SKELETON LOADING — Shimmer + Card/Table
   ═══════════════════════════════════════════ */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skel-shimmer {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.03) 0%,
        rgba(255,255,255,0.08) 40%,
        rgba(255,255,255,0.03) 70%
    );
    background-size: 400px 100%;
    animation: shimmer 1.8s ease-in-out infinite;
}

/* ── Skeleton Card (mirror .svc-card) ── */
.skel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    display: flex; flex-direction: column;
}
.skel-card .skel-card-top {
    padding: 16px 16px 0;
}
.skel-card .skel-title {
    height: 16px; border-radius: 6px;
    width: 80%;
}
.skel-card .skel-title-sm {
    height: 12px; border-radius: 5px;
    width: 50%; margin-top: 6px;
}
.skel-card .skel-thumb {
    margin: 12px 16px 0; border-radius: var(--radius-sm);
    aspect-ratio: 16 / 10;
}
.skel-card .skel-card-bottom {
    padding: 12px 16px 16px;
}
.skel-card .skel-desc {
    height: 12px; border-radius: 5px;
    width: 100%; margin-bottom: 8px;
}
.skel-card .skel-desc-short {
    height: 12px; border-radius: 5px;
    width: 65%; margin-bottom: 12px;
}
.skel-card .skel-pills {
    display: flex; gap: 6px;
    padding-top: 10px; margin-bottom: 10px;
    border-top: 1px solid rgba(124,58,237,0.08);
}
.skel-card .skel-pill {
    flex: 1; height: 28px; border-radius: 8px;
}
.skel-card .skel-btn {
    height: 40px; border-radius: 999px;
    width: 100%;
}

/* ── Reveal: real cards ẩn ban đầu, skeleton fade out ── */
.cards-grid.loaded .svc-card {
    animation: fadeSlideUp 0.4s ease forwards;
    opacity: 0;
}
.cards-grid.loaded .skel-card {
    display: none;
}

/* ── Video hover preview ── */
.card-img video.card-thumb-vid {
    position: absolute; inset: 0; z-index: 1;
    width: 100%; height: 100%; object-fit: cover;
    /* first frame visible, no playback until hover */
}
.card-img video.card-hover-vid {
    position: absolute; inset: 0; z-index: 3;
    width: 100%; height: 100%; object-fit: cover;
}
.card-img.loading-video .card-thumb,
.card-img.loading-video .card-thumb-vid {
    opacity: 0.3;
}
.card-img .card-thumb {
    transition: opacity 0.3s ease;
}
