/* ==========================================================================
   SMILEX DENTAL — DENTAL CLINIC TRANSFORMATION & SCALE-UP PLATFORM
   Domain: dental.smilex.vn
   Theme: Deep Medical Navy (#101F4C), Azure Blue (#1890E0), Brass Gold (#C08A2E)
   ========================================================================== */

:root {
    /* Color Tokens */
    --navy-dark: #0A1638;
    --navy-main: #101F4C;
    --navy-light: #21387C;
    --navy-card: rgba(33, 56, 124, 0.08);
    
    --azure-main: #1890E0;
    --azure-dark: #0F7AC4;
    --azure-soft: #E7F3FC;
    --azure-glow: rgba(24, 144, 224, 0.25);
    
    --brass-gold: #C08A2E;
    --brass-glow: rgba(192, 138, 46, 0.25);
    --emerald-green: #10B981;
    --rose-red: #E0574F;
    
    --paper-bg: #F2F5FB;
    --surface-white: #FFFFFF;
    --border-color: #DBE3F0;
    --border-subtle: rgba(219, 227, 240, 0.6);
    
    --text-primary: #101F4C;
    --text-secondary: #56617D;
    --text-muted: #8896B3;
    --text-white: #F8FAFC;
    
    /* Typography */
    --font-heading: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    /* Effects */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --shadow-sm: 0 4px 12px rgba(16, 31, 76, 0.06);
    --shadow-md: 0 14px 40px -18px rgba(16, 31, 76, 0.25);
    --shadow-lg: 0 30px 80px -30px rgba(16, 31, 76, 0.35);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--surface-white);
    color: var(--text-primary);
    font-family: var(--font-heading);
    line-height: 1.68;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.2;
}

.mono-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.text-azure { color: var(--azure-main); }
.text-gold { color: var(--brass-gold); }
.text-emerald { color: var(--emerald-green); }

/* Containers & Sections */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-dark {
    background-color: var(--navy-main);
    color: var(--text-white);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
    color: var(--text-white);
}

.section-paper {
    background-color: var(--paper-bg);
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--azure-dark);
    margin-bottom: 1rem;
}

.section-dark .eyebrow {
    color: #7FC4F0;
}

.eyebrow::before {
    content: "";
    width: 20px;
    height: 2px;
    background: var(--azure-main);
}

.section-title {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.section-dark .section-desc {
    color: #B9C7E4;
}

/* HEADER & NAVBAR */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--navy-main) 0%, var(--azure-main) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(24, 144, 224, 0.3);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy-main);
}

.logo-text span {
    color: var(--azure-main);
}

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

.nav-link {
    color: var(--navy-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--azure-main);
}

.header-ctas {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--azure-main);
    color: #FFFFFF;
    box-shadow: 0 8px 24px -6px rgba(24, 144, 224, 0.6);
}

.btn-primary:hover {
    background: var(--azure-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px rgba(24, 144, 224, 0.7);
}

.btn-navy {
    background: var(--navy-main);
    color: #FFFFFF;
    box-shadow: 0 8px 24px -6px rgba(16, 31, 76, 0.5);
}

.btn-navy:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--navy-main);
}

.btn-outline:hover {
    border-color: var(--azure-main);
    color: var(--azure-main);
    background: var(--azure-soft);
}

.section-dark .btn-outline {
    border-color: rgba(255, 255, 255, 0.25);
    color: #FFF;
}

.section-dark .btn-outline:hover {
    border-color: #FFF;
    background: rgba(255, 255, 255, 0.1);
}

/* HERO SECTION */
.hero-section {
    padding-top: 10rem;
    padding-bottom: 6rem;
    background: linear-gradient(180deg, #F8FAFC 0%, var(--paper-bg) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-title {
    font-size: 3.2rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--navy-main);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.2rem;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

/* Hero Cards Stack */
.hero-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.metric-card {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateX(6px);
    border-color: var(--azure-main);
}

.metric-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--azure-soft);
    color: var(--azure-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.metric-card-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy-main);
    line-height: 1.1;
}

.metric-card-lbl {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* PAIN POINTS SECTION */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pain-card {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pain-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rose-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pain-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pain-card:hover::after {
    transform: scaleX(1);
}

.pain-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(224, 87, 79, 0.1);
    color: var(--rose-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.pain-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.pain-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.pain-list {
    list-style: none;
}

.pain-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pain-item span {
    color: var(--rose-red);
    font-weight: 800;
}

/* 4 PILLARS SECTION */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pillar-card {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--azure-main);
}

.pillar-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--azure-main);
    margin-bottom: 1rem;
}

.pillar-card.gold .pillar-num {
    color: var(--brass-gold);
}

.pillar-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--navy-main);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.pillar-card.gold .pillar-icon {
    background: linear-gradient(135deg, var(--brass-gold) 0%, #8E6414 100%);
}

.pillar-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.pillar-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* SOLUTION TABS (DENTALX CLOUD SHOWCASE) */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #B9C7E4;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--surface-white);
    color: var(--navy-main);
    border-color: var(--surface-white);
}

.tab-panel {
    display: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.tab-panel.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.panel-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #FFF;
}

.panel-content p {
    color: #B9C7E4;
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
}

.panel-feature-list {
    list-style: none;
}

.panel-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #EAF0FB;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.panel-feature-item span {
    color: #7FC4F0;
    font-weight: 800;
}

/* ROADMAP TIMELINE */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.step-card {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    position: relative;
}

.step-code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--azure-main);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.step-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* MODAL FORM */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 56, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--surface-white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: var(--paper-bg);
    border: none;
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title {
    font-size: 1.8rem;
    color: var(--navy-main);
    margin-bottom: 0.5rem;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy-main);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--paper-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--navy-main);
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--azure-main);
    background: #FFF;
}

/* FOOTER */
.app-footer {
    background: var(--navy-dark);
    color: #B9C7E4;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand-desc {
    font-size: 0.92rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-col-title {
    color: #FFF;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

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

.footer-link-item {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.footer-link-item a {
    color: #B9C7E4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link-item a:hover {
    color: #FFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #788BB4;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-grid, .tab-panel.active {
        grid-template-columns: 1fr;
    }
    .pain-grid, .pillars-grid, .roadmap-grid, .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.3rem; }
    .pain-grid, .pillars-grid, .roadmap-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
}
