/* DanangCare brand colors - xanh dương + cam theo logo Da Nang Care */
:root {
    --primary: #1456C8;
    --primary-dark: #0E3F96;
    --secondary: #F5871F;
    --accent: #FFF3E4;
    --dark: #1A2332;
    --light: #F8FAFB;
    --gray: #6B7280;
    --white: #FFFFFF;
    /* Không dùng gradient nữa, giữ biến cho đồng bộ */
    --gradient-blue: var(--primary);
    --gradient-soft: #F3F7FD;
}

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

body {
    font-family: 'Lexend', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.serif {
    font-family: 'Lexend', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(11, 143, 172, 0.1);
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo img {
    height: 46px;
    width: auto;
    display: block;
}

.logo span {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}
.nav-toggle:hover {
    background: rgba(20, 86, 200, 0.08);
}
.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}
nav.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
nav.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
nav.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

.cta-nav {
    background: var(--gradient-blue);
    color: var(--white) !important;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-nav::after {
    display: none;
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(11, 143, 172, 0.3);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--gradient-soft);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: transparent;
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-50px, -50px) rotate(180deg);
    }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark);
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero h1 .highlight {
    color: var(--primary);
    font-family: 'Lexend', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
/*    font-style: italic;
*/}

.hero p {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    padding: 0.9rem 2.1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(20, 86, 200, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(20, 86, 200, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.7s both;
}

.stat {
    text-align: left;
}

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

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.3rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInRight 0.8s ease 0.4s both;
}

.hero-banner {
    position: relative;
    display: inline-block;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-banner-img {
    position: relative;
    line-height: 0;
}

.hero-banner-img img {
    display: block;
    max-height: 550px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    animation: floatCard 3s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating-card-1 {
    top: 18%;
    left: -40%;
    animation-delay: 0s;
}

.floating-card-2 {
    top: 52%;
    right: -40%;
    animation-delay: 1.5s;
}

.floating-card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-blue);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.floating-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.floating-card-desc {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    background: var(--white);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.8;
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
    gap: 2.5rem;
    justify-content: center;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 30px;
    border: 1px solid rgba(20, 86, 200, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(20, 86, 200, 0.15);
    border-color: var(--primary);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-blue);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-desc {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.feature-link:hover {
    gap: 1rem;
}

/* How It Works */
.how-it-works {
    padding: 4rem 2rem;
    background: var(--gradient-soft);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 600px;
    height: 600px;
    background: transparent;
    border-radius: 50%;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.step {
    text-align: center;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -1.5rem;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary) 0%, transparent 100%);
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 100px;
    height: 100px;
    background: var(--gradient-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 20px 40px rgba(20, 86, 200, 0.3);
    position: relative;
    z-index: 1;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.step-desc {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Benefits Section */
.benefits {
    padding: 8rem 2rem;
    background: var(--white);
}

.benefits-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.benefits-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.benefits-list {
    list-style: none;
    margin-top: 3rem;
}

.benefit-item {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(20, 86, 200, 0.05);
    transform: translateX(10px);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-blue);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.benefit-text p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.benefits-visual {
    position: relative;
}

.benefits-image {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(20, 86, 200, 0.2);
}

/* Testimonials */
.testimonials {
    padding: 4rem 2rem;
    background: var(--gradient-soft);
    position: relative;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    color: #FFC107;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--dark);
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h5 {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* CTA Section */
.cta-section {
    padding: 8rem 2rem;
    background: var(--gradient-blue);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: transparent;
    border-radius: 50%;
}

.cta-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-container h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-container p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.app-stores {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.app-stores a {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-stores a:hover {
    transform: translateY(-5px);
}

.store-badge {
    height: 60px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.app-stores a:hover .store-badge {
    opacity: 1;
}

/* Footer */
footer {
    background: #0B1120;
    color: var(--white);
    padding: 5rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: inherit;
}

.footer-links {
    align-self: flex-start;
}

.footer-support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
    margin-top: 1.25rem;
}

.footer-support-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: transparent;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
}

.footer-support-item:hover {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.9);
    color: var(--white);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== Tablet (≤ 1024px) ========== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero p {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 2rem;
        margin-top: 2rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .hero-banner-img img {
        max-height: 420px;
    }

    .floating-card-1,
    .floating-card-2 {
        display: none;
    }

    .features,
    .how-it-works,
    .testimonials {
        padding: 4rem 1.5rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-top: 3rem;
    }

    .step::after {
        display: none;
    }

    .step-number {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-section {
        padding: 4rem 1.5rem;
    }

    .cta-container h2 {
        font-size: 2.5rem;
    }

    .cta-container p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }

    footer {
        padding: 3rem 1.5rem 2rem;
    }
}

/* ========== Mobile (≤ 768px) ========== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(20, 86, 200, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    nav.nav-open .nav-links {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .cta-nav {
        justify-content: center;
        margin-top: 0.5rem;
        min-height: 48px;
    }

    .hero {
        margin-top: 72px;
        padding: 1.5rem 0 2.5rem;
    }

    .hero-container {
        padding: 1.5rem 1rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.45rem 1rem;
        margin-bottom: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1.25rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.7;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: 1rem 1.5rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .hero-banner-img img {
        max-height: 320px;
    }

    .features,
    .how-it-works,
    .testimonials {
        padding: 3rem 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .feature-title {
        font-size: 1.05rem;
    }

    .feature-desc {
        font-size: 0.9rem;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .step-number {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
    }

    .step-title {
        font-size: 1rem;
    }

    .step-desc {
        font-size: 0.9rem;
    }

    .testimonials-grid {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-container h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .cta-container p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .app-stores {
        flex-direction: column;
        align-items: center;
        margin-top: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-support-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-support-item {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }

    .footer-bottom p {
        line-height: 1.6;
    }

    .floating-card-1,
    .floating-card-2 {
        display: none;
    }
}

/* ========== Small mobile (≤ 480px) ========== */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo img {
        height: 32px;
    }

    .hero h1 {
        font-size: 1.65rem;
    }

    .hero-banner-img img {
        max-height: 260px;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .cta-container h2 {
        font-size: 1.5rem;
    }
}

/* Download QR Modal */
.download-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.download-modal-overlay.active {
    display: flex;
}

.download-modal {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.download-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.download-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--light);
    color: var(--gray);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.download-modal-close:hover {
    background: var(--accent);
    color: var(--primary);
}

.download-modal-images {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.download-modal-img {
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .download-modal-images {
        flex-direction: column;
    }

    .download-modal {
        padding: 1.5rem;
    }
}


/* ========== DanangCare ========== */
.hero.hero-home {
    padding-bottom: 90px;
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 90px;
    display: block;
    pointer-events: none;
}

.hero-wave .wave-back {
    fill: rgba(20, 86, 200, 0.1);
}

.hero-wave .wave-front {
    fill: var(--white);
}

.audience-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.audience-list {
    list-style: none;
    display: grid;
    gap: 0.7rem;
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.audience-list li {
    position: relative;
    padding-left: 1.6rem;
}

.audience-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .audience-card {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero.hero-home {
        padding-bottom: 60px;
    }

    .hero-wave {
        height: 50px;
    }
}

/* Đẩy thẻ nổi ra ngoài để không che màn hình điện thoại */
.hero-home .floating-card-1 {
    left: -56%;
}

.hero-home .floating-card-2 {
    right: -58%;
}

/* ============================================================
   DanangCare UI v2 — nền nhiều lớp, gradient theo màu logo
   ============================================================ */
:root {
    --sky: #56B4FF;
    --primary-deep: #0B2F7A;
    --gradient-brand: linear-gradient(135deg, #1456C8 0%, #2F7BEA 55%, #56B4FF 100%);
    --gradient-warm: linear-gradient(135deg, #FFA51F 0%, #F5871F 60%, #EE6C0E 100%);
    --dots-blue: radial-gradient(rgba(20, 86, 200, 0.16) 1.2px, transparent 1.2px);
    --dots-white: radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.2px);
}

/* ---------- Nút ---------- */
.cta-nav,
.btn-primary {
    background: var(--gradient-brand);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.85);
}

/* ---------- Hero ---------- */
.hero.hero-home {
    background:
        radial-gradient(900px 520px at 88% 6%, rgba(86, 180, 255, 0.42), transparent 62%),
        radial-gradient(700px 480px at -6% 96%, rgba(245, 135, 31, 0.18), transparent 60%),
        radial-gradient(640px 420px at 48% 112%, rgba(20, 86, 200, 0.16), transparent 65%),
        linear-gradient(180deg, #F5FAFF 0%, #E8F1FE 100%);
}

.hero.hero-home::before {
    top: -200px;
    right: -160px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.75), rgba(86, 180, 255, 0.3) 45%, transparent 70%);
}

.hero.hero-home::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--dots-blue);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(115deg, transparent 30%, #000 72%, transparent 100%);
    mask-image: linear-gradient(115deg, transparent 30%, #000 72%, transparent 100%);
    pointer-events: none;
}

.hero-wave {
    z-index: 1;
}

.hero-home .hero-badge {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(245, 135, 31, 0.3);
    box-shadow: 0 8px 24px rgba(245, 135, 31, 0.12);
}

.hero-home h1 .highlight {
    padding: 0.12em 0;
    background-image: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.hero-home .hero-stats {
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-home .stat {
    padding: 0.9rem 1.4rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(20, 86, 200, 0.12);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(20, 86, 200, 0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-home .stat-number {
    font-size: 1.7rem;
    line-height: 1.3;
    background-image: var(--gradient-brand);
}

.hero-home .stat-label {
    margin-top: 0;
    display: block;
}

/* Quầng sáng + vòng tròn sau điện thoại */
.hero-home .hero-banner::before,
.hero-home .hero-banner::after {
    content: '';
    position: absolute;
    top: 46%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.hero-home .hero-banner::before {
    width: 520px;
    height: 520px;
    background: radial-gradient(closest-side, rgba(47, 123, 234, 0.38), rgba(86, 180, 255, 0.2) 55%, transparent 100%);
}

.hero-home .hero-banner::after {
    width: 620px;
    height: 620px;
    border: 1.5px dashed rgba(20, 86, 200, 0.2);
}

.hero-home .floating-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 50px rgba(15, 50, 120, 0.16);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.floating-card-icon,
.feature-icon,
.author-avatar {
    background: var(--gradient-brand);
    box-shadow: 0 10px 22px rgba(20, 86, 200, 0.25);
}

.floating-card-2 .floating-card-icon,
.feature-card:nth-child(even) .feature-icon,
.audience-card:nth-child(2) .feature-icon {
    background: var(--gradient-warm);
    box-shadow: 0 10px 22px rgba(245, 135, 31, 0.28);
}

/* ---------- Tiêu đề section ---------- */
.section-badge {
    background: linear-gradient(135deg, #FFF3E4, #FFE3C2);
    border: 1px solid rgba(245, 135, 31, 0.22);
}

.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin: 1.1rem auto 0;
    border-radius: 4px;
    background: var(--gradient-warm);
}

/* ---------- Tính năng ---------- */
.features {
    background:
        radial-gradient(560px 380px at 0% 30%, rgba(245, 135, 31, 0.08), transparent 62%),
        radial-gradient(640px 420px at 100% 75%, rgba(86, 180, 255, 0.16), transparent 62%),
        linear-gradient(180deg, #FFFFFF 0%, #F6FAFF 100%);
}

.feature-card {
    border-radius: 24px;
    border-color: rgba(20, 86, 200, 0.1);
    box-shadow: 0 10px 30px rgba(15, 50, 120, 0.05);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(86, 180, 255, 0.2), transparent);
    z-index: 0;
    transition: transform 0.4s ease;
}

.feature-card:nth-child(even)::after {
    background: radial-gradient(closest-side, rgba(245, 135, 31, 0.16), transparent);
}

.feature-card:hover::after {
    transform: scale(1.5);
}

.feature-desc {
    margin-bottom: 0;
}

/* ---------- Cách sử dụng ---------- */
.how-it-works {
    background:
        radial-gradient(700px 420px at 100% 0%, rgba(86, 180, 255, 0.28), transparent 62%),
        radial-gradient(560px 380px at 0% 100%, rgba(245, 135, 31, 0.1), transparent 60%),
        linear-gradient(180deg, #EAF2FF 0%, #F4F8FF 100%);
}

.how-it-works::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background-image: var(--dots-blue);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
    mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.step {
    padding: 2.2rem 1.4rem 1.8rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(20, 86, 200, 0.1);
    border-radius: 24px;
    box-shadow: 0 14px 36px rgba(15, 50, 120, 0.08);
}

.step::after {
    top: 50%;
    right: -3rem;
    width: 3rem;
    background: repeating-linear-gradient(90deg, rgba(20, 86, 200, 0.45) 0 6px, transparent 6px 12px);
}

.step-number {
    width: 72px;
    height: 72px;
    font-size: 1.8rem;
    background: var(--gradient-brand);
    box-shadow: 0 0 0 8px rgba(20, 86, 200, 0.1), 0 14px 30px rgba(20, 86, 200, 0.3);
}

.step:nth-child(even) .step-number {
    background: var(--gradient-warm);
    box-shadow: 0 0 0 8px rgba(245, 135, 31, 0.12), 0 14px 30px rgba(245, 135, 31, 0.3);
}

/* ---------- Lợi ích ---------- */
.testimonials {
    background:
        radial-gradient(620px 420px at 100% 10%, rgba(86, 180, 255, 0.18), transparent 60%),
        radial-gradient(520px 380px at 0% 95%, rgba(245, 135, 31, 0.1), transparent 60%),
        #FFFFFF;
}

.audience-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(20, 86, 200, 0.1);
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(15, 50, 120, 0.07);
}

.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-brand);
}

.audience-card:nth-child(2)::before {
    background: var(--gradient-warm);
}

.audience-list li {
    padding-left: 2rem;
}

.audience-list li::before {
    top: 0.15em;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: rgba(20, 86, 200, 0.1);
    font-size: 0.75rem;
    line-height: 1.3rem;
    text-align: center;
}

/* ---------- CTA tải ứng dụng ---------- */
.cta-section {
    background:
        radial-gradient(700px 420px at 10% 0%, rgba(86, 180, 255, 0.6), transparent 60%),
        radial-gradient(640px 440px at 96% 100%, rgba(245, 135, 31, 0.5), transparent 62%),
        linear-gradient(135deg, #0B2F7A 0%, #1456C8 52%, #2F7BEA 100%);
}

.cta-section::before {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background-image: var(--dots-white);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(closest-side, transparent 35%, #000 100%);
    mask-image: radial-gradient(closest-side, transparent 35%, #000 100%);
}

/* Dãy núi cách điệu từ logo */
.cta-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath fill='white' fill-opacity='.07' d='M0 220 180 90l120 80L520 30l240 160 140-80 180 90 180-130 180 110v40Z'/%3E%3Cpath fill='white' fill-opacity='.06' d='m0 220 260-80 160 60 280-100 260 110 220-80 260 90Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
    pointer-events: none;
}

.cta-container {
    padding: 4rem 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(5, 20, 60, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.cta-container h2 {
    font-size: 2.9rem;
}

.cta-container p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
}

.cta-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    list-style: none;
}

.cta-chips li {
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 500;
}

.app-stores {
    margin-top: 2.2rem;
}

.app-stores a {
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(5, 20, 60, 0.28);
}

.store-badge {
    display: block;
}

/* ---------- Footer ---------- */
footer {
    position: relative;
    background: linear-gradient(180deg, #0A1A3F 0%, #060E24 100%);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1456C8, #56B4FF 50%, #F5871F);
}

/* ---------- Trang phụ ---------- */
.policy-page {
    background:
        radial-gradient(800px 480px at 100% 0%, rgba(86, 180, 255, 0.22), transparent 60%),
        radial-gradient(600px 420px at 0% 60%, rgba(245, 135, 31, 0.08), transparent 60%),
        #F3F7FD;
}

@media (max-width: 1024px) {
    .hero-home .hero-banner::before {
        width: 420px;
        height: 420px;
    }

    .hero-home .hero-banner::after {
        display: none;
    }

    .cta-container h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .hero-home .hero-stats {
        gap: 0.6rem;
    }

    .hero-home .stat {
        padding: 0.7rem 0.9rem;
        text-align: center;
    }

    .hero-home .stat-number {
        font-size: 1.3rem;
    }

    .hero-home .hero-banner::before {
        width: 340px;
        height: 340px;
    }

    .step {
        padding: 1.6rem 1.2rem 1.4rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .cta-container {
        padding: 2.4rem 1.2rem;
        border-radius: 24px;
    }

    .cta-container h2 {
        font-size: 1.6rem;
    }

    .cta-container p {
        font-size: 1rem;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.footer-brand img {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.footer-about a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

/* Màu chữ theo logo; xanh sáng hơn một bậc để đọc được trên nền tối */
.footer-brand .brand-blue {
    color: #4A8FFF;
}

.footer-brand .brand-orange {
    color: #F5871F;
}

/* ---------- Giải pháp (6 trụ cột) ---------- */
.solutions {
    padding-bottom: 3rem;
    background:
        radial-gradient(620px 400px at 100% 20%, rgba(86, 180, 255, 0.14), transparent 62%),
        #FFFFFF;
}

.solutions .feature-card .feature-icon {
    background: #E3ECFD;
    box-shadow: none;
}

.solutions .feature-card.solution-highlight {
    border-color: rgba(245, 135, 31, 0.35);
}

.solutions .feature-card.solution-highlight .feature-icon {
    background: #FDE9CC;
}

@media (max-width: 1200px) {
    .nav-links {
        gap: 1.6rem;
    }
}

@media (min-width: 1101px) {
    .solutions .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.75rem;
    }

    .solutions .feature-card {
        padding: 2rem;
    }
}

/* Hero: bộ ảnh các cơ sở y tế tại Đà Nẵng */
.hero-home .hero-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 560px;
}

.hero-home .hero-gallery::after {
    display: none;
}

.hero-gallery-item {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    background: #DCE8FA;
    border: 3px solid var(--white);
    box-shadow: 0 14px 34px rgba(11, 47, 122, 0.16);
}

.hero-gallery-main {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
}

.hero-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem 0.7rem 0.55rem;
    background: linear-gradient(to top, rgba(11, 47, 122, 0.85), transparent);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
}

.hero-gallery-main figcaption {
    padding: 2.4rem 1.1rem 0.9rem;
    font-size: 1.05rem;
    font-weight: 700;
}

@media (max-width: 480px) {
    .hero-home .hero-gallery {
        gap: 8px;
    }

    .hero-gallery-item {
        border-width: 2px;
        border-radius: 12px;
    }

    .hero-gallery-item figcaption {
        font-size: 0.62rem;
        padding: 1.2rem 0.4rem 0.4rem;
    }
}
