:root {
    --bg-dark: #020203; /* Deep Cinema Black */
    --bg-base: #050506;
    --bg-card: rgba(255, 255, 255, 0.08); /* Better Glassmorphism Contrast */
    --border-glass: rgba(255, 255, 255, 0.08); /* Hairline */
    --text-main: oklch(95% 0.01 250);
    --text-muted: oklch(70% 0.02 250);
    --primary: oklch(60% 0.15 250);
    --primary-hover: oklch(50% 0.15 250);
    --accent: oklch(65% 0.2 300);
    --gradient-yt: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-glow: linear-gradient(135deg, var(--primary) 0%, oklch(70% 0.25 330) 100%);
    --accent-glow: rgba(59, 130, 246, 0.25);
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: #020203; /* Fix overscroll white flash */
    overscroll-behavior-y: none; /* Disable rubber-banding bounce */
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(180deg, #0a0a0f 0%, #020203 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Blobs for depth */
@keyframes blob-oscillation {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.08;
    animation: blob-oscillation 15s infinite alternate var(--easing);
}
.blob-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary);
}
.blob-2 {
    top: 300px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: var(--accent);
    animation-delay: -5s;
}
.blob-3 {
    bottom: 100px;
    left: 20%;
    width: 600px;
    height: 600px;
    background: var(--primary);
    animation-delay: -10s;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    padding: 15px 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo i {
    color: var(--primary);
    font-size: 32px;
}
.logo span {
    color: var(--primary);
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--easing);
    cursor: pointer;
    border: none;
}
.btn:active {
    transform: scale(0.97);
}
.btn-primary {
    background: var(--gradient-yt);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--accent-glow);
}
.btn-secondary {
    background: var(--bg-card);
    color: white;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.btn-full {
    width: 100%;
    margin-top: 24px;
}

.hero {
    padding-top: 140px;
    padding-bottom: 60px;
    position: relative;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content {
    text-align: left;
}
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 24px;
    letter-spacing: -1px;
    line-height: 1.15;
}
.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.hero-cta {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-video {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 9/16;
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.hero-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}
.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
}
.video-placeholder i {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 16px;
    opacity: 0.8;
}
.video-placeholder h3 {
    margin-bottom: 8px;
    font-size: 20px;
}
.video-placeholder p {
    color: var(--text-muted);
    font-size: 14px;
}
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.showcase-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s var(--easing);
}
.showcase-item:hover {
    transform: translateY(-10px);
}
.showcase-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing), border-color 0.3s var(--easing);
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Layout Utilities */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 40px;
    margin-bottom: 16px;
}
.section-title p {
    color: var(--text-muted);
    font-size: 18px;
}
section {
    padding: 60px 0;
}
.grid {
    display: grid;
    gap: 30px;
}

/* Reviews */
.reviews-grid {
    grid-template-columns: repeat(3, 1fr);
}
.review-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.reviewer-info h4 {
    font-size: 18px;
    margin-bottom: 4px;
}
.reviewer-info p {
    font-size: 14px;
    color: var(--text-muted);
}
.review-rating {
    display: flex;
    gap: 2px;
}
.review-rating i {
    font-size: 16px;
}
.review-text {
    font-style: italic;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Features */
.features-grid {
    grid-template-columns: repeat(3, 1fr);
}
.feature-card .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.feature-card .icon-box i {
    font-size: 32px;
    color: var(--primary);
}
.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Steps */
.steps-grid {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}
.step-item {
    position: relative;
}
.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-yt);
    color: white;
    font-size: 32px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}
.step-item h3 {
    margin-bottom: 12px;
}
.step-item p {
    color: var(--text-muted);
}

/* Pricing */
.pricing {
    position: relative;
}
.pricing-card {
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}
.pricing-card::before {
    content: "Được Yêu Thích Nhất";
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 40px;
    transform: rotate(45deg);
}
.pricing-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 30px;
}
.pricing-header h3 {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 16px;
}
.pricing-header .price {
    font-size: 56px;
    font-weight: 800;
    color: white;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.pricing-header .price span {
    font-size: 24px;
    margin-top: 10px;
    color: var(--primary);
}
.pricing-features {
    list-style: none;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
}
.pricing-features i {
    color: #10b981;
    font-size: 20px;
}
.small-text {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    padding: 24px;
    cursor: pointer;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question h3 {
    font-size: 18px;
    font-weight: 500;
}
.faq-question i {
    transition: transform 0.3s;
}
.faq-answer {
    color: var(--text-muted);
}
.faq-answer p {
    padding-top: 16px;
}
details[open] .faq-question i {
    transform: rotate(180deg);
}

details::details-content {
    transition: display 0.3s, content-visibility 0.3s;
    transition-behavior: allow-discrete;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 60px 0 30px;
    background: rgba(0,0,0,0.5);
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
}
.footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-links h4, .footer-contact h4 {
    margin-bottom: 8px;
}
.footer-links a, .footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links a:hover, .footer-contact a:hover {
    color: var(--primary);
}
.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding-top: 30px;
    border-top: 1px solid var(--border-glass);
}

/* Animations */
@keyframes slide-up-fade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .fade-in-up {
    opacity: 0;
    animation: slide-up-fade 0.8s ease forwards;
}

section:not(.hero) .fade-in-up {
    opacity: 0;
    animation: slide-up-fade linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
}

.hero .delay-1 { animation-delay: 0.2s; }
.hero .delay-2 { animation-delay: 0.4s; }

/* Premium Pricing Card */
.premium-card {
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
    overflow: hidden;
}
.premium-badge {
    position: absolute;
    top: 25px;
    right: -40px;
    background: var(--gradient-yt);
    color: white;
    padding: 5px 40px;
    font-size: 14px;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 5px 15px rgba(213, 24, 93, 0.3);
}
.premium-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}
.premium-subtitle {
    font-size: 16px;
    color: var(--gray-light);
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .navbar .header-btn { display: none !important; }
}

@media (max-width: 768px) {
    .hero { padding-top: 100px; padding-bottom: 40px; }
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .hero-content { text-align: center; }
    .hero h1 { font-size: 32px; margin-bottom: 16px; }
    .hero h1 br { display: none; }
    .hero p { font-size: 16px; margin-bottom: 24px !important; }
    .hero-cta { flex-direction: column; justify-content: center; gap: 12px; margin-bottom: 24px; }
    .hero-cta .btn { width: 100%; }
    .steps-grid { grid-template-columns: 1fr; }
    justify-content: center;
    align-items: flex-start;
}
.pricing-header .price span {
    font-size: 24px;
    margin-top: 10px;
    color: var(--primary);
}
.pricing-features {
    list-style: none;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
}
.pricing-features i {
    color: #10b981;
    font-size: 20px;
}
.small-text {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    padding: 24px;
    cursor: pointer;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question h3 {
    font-size: 18px;
    font-weight: 500;
}
.faq-question i {
    transition: transform 0.3s;
}
.faq-answer {
    color: var(--text-muted);
}
.faq-answer p {
    padding-top: 16px;
}
details[open] .faq-question i {
    transform: rotate(180deg);
}

details::details-content {
    transition: display 0.3s, content-visibility 0.3s;
    transition-behavior: allow-discrete;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 60px 0 30px;
    background: rgba(0,0,0,0.5);
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
}
.footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-links h4, .footer-contact h4 {
    margin-bottom: 8px;
}
.footer-links a, .footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links a:hover, .footer-contact a:hover {
    color: var(--primary);
}
.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding-top: 30px;
    border-top: 1px solid var(--border-glass);
}

/* Animations */
@keyframes slide-up-fade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .fade-in-up {
    opacity: 0;
    animation: slide-up-fade 0.8s ease forwards;
}

section:not(.hero) .fade-in-up {
    opacity: 0;
    animation: slide-up-fade linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
}

.hero .delay-1 { animation-delay: 0.2s; }
.hero .delay-2 { animation-delay: 0.4s; }

/* Premium Pricing Card */
.premium-card {
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
    overflow: hidden;
}
.premium-badge {
    position: absolute;
    top: 25px;
    right: -40px;
    background: var(--gradient-yt);
    color: white;
    padding: 5px 40px;
    font-size: 14px;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 5px 15px rgba(213, 24, 93, 0.3);
}
.premium-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}
.premium-subtitle {
    font-size: 16px;
    color: var(--gray-light);
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .navbar .header-btn { display: none !important; }
}

@media (max-width: 768px) {
    .hero { padding-top: 100px; padding-bottom: 40px; }
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .hero-content { text-align: center; }
    .hero h1 { font-size: 32px; margin-bottom: 16px; }
    .hero h1 br { display: none; }
    .hero p { font-size: 16px; margin-bottom: 24px !important; }
    .hero-cta { flex-direction: column; justify-content: center; gap: 12px; margin-bottom: 24px; }
    .hero-cta .btn { width: 100%; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .showcase-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .blob { display: none; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--easing);
    z-index: 99;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--gradient-yt);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* Floating Chat Buttons */
.floating-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 9999;
}
.chat-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
    animation: bounceChat 3s infinite;
}
.chat-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
    animation: none;
}
.zalo-btn {
    background-color: #0068FF;
}
.fb-btn {
    background-color: #0A7CFF;
}
@keyframes bounceChat {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}
@media (max-width: 768px) {
    .floating-chat {
        bottom: 80px; /* Nâng cao lên tránh bị che bởi thanh công cụ trình duyệt */
        right: 16px;
        z-index: 999999 !important;
        display: flex !important;
    }
    .chat-btn {
        width: 48px;
        height: 48px;
        font-size: 24px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    }
    .zalo-btn span {
        font-size: 11px !important;
    }
}
