/* ═══════════════════════════════════════════
   VuiTV MCP — Landing Page Styles
   Dark mode, glassmorphism, premium design
   ═══════════════════════════════════════════ */

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

:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: rgba(22, 22, 32, 0.7);
    --bg-card-hover: rgba(30, 30, 45, 0.8);

    --text-primary: #e8e8f0;
    --text-secondary: #9898b0;
    --text-muted: #606078;

    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.3);

    --gradient-1: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --gradient-2: linear-gradient(135deg, #00d2ff, #6c5ce7);
    --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(108, 92, 231, 0.15), transparent 70%);

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(108, 92, 231, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.2);

    /* Layout */
    --max-width: 1200px;
    --section-padding: 100px 0;

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.3s var(--ease-out);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #fff;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--accent-light);
}

.hidden {
    display: none !important;
}

/* ── NAV ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: glow-float 8s ease-in-out infinite;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(108, 92, 231, 0.12);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(0, 210, 255, 0.08);
    bottom: -100px;
    right: -100px;
    animation-delay: 4s;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

@keyframes glow-float {

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

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fadeInDown 0.8s var(--ease-out);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #00d26a;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

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

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s var(--ease-out) 0.1s both;
}

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

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInDown 0.8s var(--ease-out) 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s var(--ease-out) 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: fadeInDown 0.8s var(--ease-out) 0.4s both;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
    color: #fff;
}

.btn-ghost {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    color: #fff;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    font-size: 1.1em;
}

/* ── SECTIONS ── */
.section {
    padding: var(--section-padding);
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ── TOOLS GRID ── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
    cursor: default;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.tool-card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.tool-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tool-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.tool-card-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(108, 92, 231, 0.15);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--accent-light);
    font-weight: 600;
}

.tools-coming-soon {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ── STEPS ── */
.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    max-width: 300px;
    flex: 1;
    min-width: 240px;
    position: relative;
    transition: all var(--transition);
}

.step-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.step-icon {
    font-size: 2.5rem;
    margin: 12px 0 16px;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 60px;
    color: var(--text-muted);
}

/* ── REGISTER FORM ── */
.register-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.required {
    color: #ff6b6b;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.register-result,
.register-error {
    text-align: center;
    padding: 20px;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.register-result h3,
.register-error h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.register-result p,
.register-error p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ── FAQ ── */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--accent-light);
}

.faq-arrow {
    font-size: 1.2rem;
    transition: transform var(--transition);
    color: var(--text-muted);
}

.faq-item.open .faq-arrow {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out);
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

.faq-answer p,
.faq-answer ol {
    padding-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-answer ol {
    padding-left: 20px;
}

.faq-answer code {
    background: rgba(108, 92, 231, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--accent-light);
}

/* ── FOOTER ── */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-brand p {
    width: 100%;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ── PRICING CARDS ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 740px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card .pricing-features {
    flex: 1;
}

.pricing-card .btn {
    margin-top: auto;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.pricing-card-premium {
    border-color: rgba(108, 92, 231, 0.4);
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.08) 0%, rgba(22, 22, 32, 0.7) 100%);
    box-shadow: 0 0 40px rgba(108, 92, 231, 0.15);
}

.pricing-card-premium:hover {
    border-color: var(--accent);
    box-shadow: 0 0 60px rgba(108, 92, 231, 0.25);
}

.pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient-1);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.pricing-badge {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 8px;
}

.pricing-price {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li.disabled {
    color: var(--text-muted);
    opacity: 0.5;
}

/* ── TOOL CARD TIERS ── */
.tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    gap: 8px;
}

.tool-card-premium {
    opacity: 0.7;
    border-style: dashed;
}

.tool-card-premium:hover {
    opacity: 1;
}

.tool-premium-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    background: rgba(255, 200, 50, 0.15);
    color: #ffc832;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.tool-free-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    background: rgba(0, 210, 106, 0.15);
    color: #00d26a;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

/* ── UPGRADE UI ── */
.device-id-display {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.device-id-display code {
    background: rgba(108, 92, 231, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent-light);
    font-size: 0.85em;
}

.upgrade-prompt {
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px 0;
}

.upgrade-prompt p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.upgrade-result {
    text-align: center;
    padding: 20px;
}

.upgrade-result h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.payment-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 20px 0;
    text-align: left;
}

.payment-info p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.confirmation-code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    padding: 20px;
    margin: 12px 0;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.15em;
    user-select: all;
}

.payment-note {
    font-size: 0.85rem !important;
    color: #ffc832 !important;
    text-align: center;
}

.upgrade-status {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 16px 0;
}

.vietqr-container {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.vietqr-image {
    max-width: 280px;
    width: 100%;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    margin: 0 auto;
}

.vietqr-hint {
    font-size: 0.85rem;
    color: #00d26a;
    margin-top: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-menu-btn {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .section {
        padding: 60px 0;
    }

    .step-connector {
        display: none;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-card {
        max-width: 100%;
    }

    .register-card {
        padding: 28px 20px;
    }

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

    .pricing-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .confirmation-code {
        font-size: 1.8rem;
    }
}