:root {
    --primary: #FF4757;
    --primary-glow: rgba(255, 71, 87, 0.4);
    --secondary: #2F3542;
    --accent: #FF6B81;
    --text: #1E272E;
    --text-light: #576574;
    --bg: #FFFFFF;
    --bg-alt: #F8F9FA;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo,
.btn-top,
.btn-main,
.badge {
    font-family: 'Be Vietnam Pro', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation --- */
.navbar {
    height: 72px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.7rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--secondary);
    letter-spacing: -1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 32px;
    width: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-top {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* --- Hero Section --- */
.hero {
    padding: 140px 0 80px;
    background: radial-gradient(circle at 100% 0%, #FFF5F6 0%, #FFFFFF 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    filter: blur(100px);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.3;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #FFEDED;
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.download-group {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.store-link {
    transition: var(--transition);
}

.store-link img {
    height: 48px;
    border-radius: 8px;
}

.store-link:hover {
    transform: translateY(-4px) scale(1.02);
}

.btn-apk {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-apk:hover {
    background: #000;
    transform: translateY(-4px);
}

/* --- Coming Soon States --- */
.coming-soon {
    position: relative;
    cursor: default;
    opacity: 0.8;
    filter: grayscale(0.5);
    pointer-events: none;
}

.coming-soon::after {
    content: 'Sắp cập bến';
    position: absolute;
    top: -12px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 10px var(--primary-glow);
    animation: bounceDown 2s infinite;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.05);
    border: 2px dashed #ddd;
    border-radius: 12px;
    color: var(--text-light);
    font-weight: 600;
    animation: pulseBorder 2s infinite;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes pulseBorder {
    0% {
        border-color: #ddd;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }

    50% {
        border-color: var(--primary);
        box-shadow: 0 0 15px var(--primary-glow);
    }

    100% {
        border-color: #ddd;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* --- Phone Mockup --- */
.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 300px;
    height: 620px;
    background: #000;
    border-radius: 45px;
    padding: 12px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.3);
    border: 8px solid #F1F2F6;
    position: relative;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: var(--transition);
}

.phone-mockup:hover {
    transform: rotateY(0) rotateX(0);
}

.screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 35px;
    overflow: hidden;
    position: relative;
}

.app-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.app-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.app-overlay p {
    font-size: 0.8rem;
    opacity: 0.8;
}

.mock-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

/* --- Features Section --- */
.section {
    padding: 100px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    padding: 40px;
    background: #FFFFFF;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow);
    border-color: var(--primary-glow);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    transition: var(--transition);
}

.icon-box.blue {
    background: #EBF7FF;
    color: #00A8FF;
}

.icon-box.orange {
    background: #FFF4EB;
    color: #FF9F43;
}

.icon-box.green {
    background: #EBFFF0;
    color: #20BF6B;
}

.card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* --- Topup Section --- */
.bg-light {
    background: var(--bg-alt);
}

.topup-card {
    background: linear-gradient(135deg, var(--secondary), #000);
    border-radius: 32px;
    color: white;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}

.topup-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.2;
}

.topup-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.topup-content {
    max-width: 500px;
}

.topup-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.btn-main {
    padding: 16px 40px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-main:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.topup-img i {
    font-size: 180px;
    opacity: 0.15;
}

/* --- Floating Download (Mobile ONLY) --- */
.floating-download {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: var(--primary);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.4);
    animation: slideUp 0.5s ease-out;
}

/* --- Footer --- */
.footer {
    padding: 80px 0;
    background: #fdfdfd;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 2rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* --- Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .download-group {
        justify-content: center;
    }

    .phone-mockup {
        transform: none;
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .topup-inner {
        flex-direction: column;
        text-align: center;
    }

    .topup-content h2 {
        font-size: 2rem;
    }

    .nav-links a:not(.btn-top) {
        display: none;
    }

    .floating-download {
        display: block;
        /* Show on mobile */
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 120px 0 60px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .phone-mockup {
        width: 260px;
        height: 540px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}