/* ============================================
   KARATEPRO LANDING PAGE — CSS
   Modern Blue & White Sport Tech Theme
   ============================================ */

/* --- Design Tokens --- */
:root {
    --color-primary: #0052D4;
    --color-primary-light: #4364F7;
    --color-primary-lighter: #6FB1FC;
    --color-accent: #00B4D8;
    --color-dark: #0A1628;
    --color-dark-2: #132038;
    --color-text: #1E293B;
    --color-text-muted: #64748B;
    --color-white: #FFFFFF;
    --color-bg: #F0F6FF;
    --color-bg-alt: #E8F0FE;
    --color-border: rgba(0, 82, 212, 0.1);
    --color-glass: rgba(255, 255, 255, 0.7);
    --color-glass-border: rgba(255, 255, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, #0052D4, #4364F7, #6FB1FC);
    --gradient-hero: linear-gradient(160deg, #0A1628 0%, #0D2347 40%, #133A6E 70%, #1A5296 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,246,255,0.9));
    --shadow-sm: 0 2px 8px rgba(0, 82, 212, 0.08);
    --shadow-md: 0 8px 32px rgba(0, 82, 212, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 82, 212, 0.16);
    --shadow-xl: 0 24px 64px rgba(0, 82, 212, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Typography Utilities --- */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-top: 0.1em;
    display: inline-block;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-white);
    transition: var(--transition);
}

.navbar.scrolled .nav-logo {
    color: var(--color-primary);
}

.nav-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition);
}

.footer-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: block;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.12);
}

.navbar.scrolled .nav-link {
    color: var(--color-text-muted);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--color-primary);
    background: rgba(0, 82, 212, 0.08);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--color-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding: 100px 0 60px;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    top: -200px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--color-accent);
    bottom: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--color-primary-light);
    top: 50%;
    left: 50%;
    animation: float 10s ease-in-out infinite;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero .gradient-text {
    background: linear-gradient(135deg, #6FB1FC, #00B4D8, #4364F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    line-height: 1.8;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-white);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* --- Laptop Mockup (CSS) --- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.laptop-mockup {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.laptop-screen {
    background: #1a1a2e;
    border-radius: 12px 12px 0 0;
    border: 2px solid #333;
    border-bottom: none;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0, 82, 212, 0.3);
    position: relative;
}

.laptop-base {
    height: 14px;
    background: linear-gradient(to bottom, #888, #aaa);
    border-radius: 0 0 6px 6px;
    position: relative;
}

.laptop-base::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 120px;
    height: 4px;
    background: #999;
    border-radius: 0 0 4px 4px;
}

/* --- Product Screenshot Slider --- */
.slider-track {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.slide-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    max-width: none;
}

.slide-ui {
    display: flex;
    width: 100%;
    height: 100%;
    background: #f8fafc;
}

.slide-sidebar {
    width: 42px;
    min-width: 42px;
    background: linear-gradient(180deg, #0052D4, #4364F7);
    padding: 8px 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.ss-logo {
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
    margin-bottom: 6px;
}

.ss-nav {
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.ss-nav.active {
    background: rgba(255,255,255,0.3);
}

.slide-main {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.slide-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4px;
    border-bottom: 1px solid #e2e8f0;
}

.slide-label {
    font-size: 8px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.02em;
}

.ss-dots {
    display: flex;
    gap: 3px;
}

.ss-dots span {
    width: 5px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 50%;
}

/* --- Slide 1: Dashboard Stats & Chart --- */
.ss-stat-row {
    display: flex;
    gap: 4px;
}

.ss-stat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border-radius: 4px;
}

.ss-stat.blue { background: #dbeafe; }
.ss-stat.cyan { background: #cffafe; }
.ss-stat.green { background: #d1fae5; }

.ss-stat-icon {
    font-size: 7px;
    color: #0052D4;
}

.ss-stat.cyan .ss-stat-icon { color: #0891b2; }
.ss-stat.green .ss-stat-icon { color: #059669; }

.ss-stat-info small {
    display: block;
    font-size: 5px;
    color: #64748b;
}

.ss-stat-info strong {
    font-size: 9px;
    color: #1e293b;
}

.ss-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 4px;
}

.ss-chart .ss-bar {
    flex: 1;
    background: linear-gradient(180deg, #4364F7, #6FB1FC);
    border-radius: 2px 2px 0 0;
    min-height: 4px;
    animation: barGrow 2s ease-out forwards;
}

@keyframes barGrow {
    from { transform: scaleY(0); transform-origin: bottom; }
    to { transform: scaleY(1); transform-origin: bottom; }
}

/* --- Slide 2: VĐV Table --- */
.ss-btn-add {
    width: 16px;
    height: 16px;
    background: #0052D4;
    color: white;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6px;
}

.ss-table {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ss-thead {
    display: grid;
    grid-template-columns: 24px 1fr 1fr 40px;
    gap: 4px;
    padding: 4px;
    background: #e2e8f0;
    border-radius: 3px;
    font-size: 5px;
    font-weight: 700;
    color: #475569;
}

.ss-trow {
    display: grid;
    grid-template-columns: 24px 1fr 1fr 40px;
    gap: 4px;
    padding: 4px;
    background: #f8fafc;
    border-radius: 3px;
    font-size: 5px;
    color: #64748b;
    align-items: center;
}

.ss-trow:nth-child(odd) { background: #f1f5f9; }

.ss-name {
    width: 80%;
    height: 5px;
    background: #cbd5e1;
    border-radius: 2px;
    display: block;
}

.ss-club {
    width: 60%;
    height: 5px;
    background: #dbeafe;
    border-radius: 2px;
    display: block;
}

.ss-tag {
    background: #dbeafe;
    color: #2563eb;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 5px;
    font-weight: 600;
    text-align: center;
}

/* --- Slide 3: Draw --- */
.ss-btn-draw {
    font-size: 5px;
    font-weight: 700;
    padding: 2px 6px;
    background: #0052D4;
    color: white;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.ss-btn-draw i { font-size: 5px; }

.ss-draw-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.ss-pool {
    background: #f1f5f9;
    border-radius: 4px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ss-pool-title {
    font-size: 6px;
    font-weight: 700;
    color: #0052D4;
}

.ss-athlete {
    height: 10px;
    background: linear-gradient(90deg, #dbeafe 60%, #bfdbfe 100%);
    border-radius: 3px;
}

/* --- Slide 4: Bracket --- */
.ss-bracket {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 4px;
}

.ss-round {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.ss-match {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ss-p {
    width: 60px;
    height: 10px;
    border-radius: 2px;
}

.ss-p.aka { background: #fee2e2; border-left: 2px solid #ef4444; }
.ss-p.ao { background: #dbeafe; border-left: 2px solid #2563eb; }
.ss-p.win { background: #fecaca; border-left: 2px solid #dc2626; box-shadow: 0 0 4px rgba(239,68,68,0.3); }

.ss-trophy {
    font-size: 14px;
    color: #f59e0b;
}

/* --- Slide 5: Results --- */
.ss-result-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ss-result-card {
    padding: 5px;
    background: #f8fafc;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.ss-vs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.ss-fighter {
    font-size: 6px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 2px;
}

.ss-fighter.aka { background: #fee2e2; color: #dc2626; }
.ss-fighter.ao { background: #dbeafe; color: #2563eb; }

.ss-score {
    font-size: 8px;
    font-weight: 800;
    color: #1e293b;
}

.ss-result-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.ss-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f97316);
    border-radius: 2px;
}

.ss-bar-fill.ao-fill {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

/* --- Slide 6: Export Sigma --- */
.ss-export-preview {
    flex: 1;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.ss-doc {
    flex: 1;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ss-doc-header {
    height: 8px;
    background: #0052D4;
    border-radius: 2px;
    margin-bottom: 4px;
}

.ss-doc-line {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
}

.ss-doc-line.w80 { width: 80%; }
.ss-doc-line.w60 { width: 60%; }
.ss-doc-line.w90 { width: 90%; }
.ss-doc-line.w70 { width: 70%; }
.ss-doc-line.w50 { width: 50%; }

.ss-export-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ss-export-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    font-size: 5px;
    font-weight: 700;
    color: white;
    background: #dc2626;
    border-radius: 3px;
}

.ss-export-btn:last-child {
    background: #16a34a;
}

/* --- Floating Cards --- */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-dark);
    backdrop-filter: blur(10px);
    z-index: 3;
    animation: floatCard 4s ease-in-out infinite;
}

.floating-card i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.fc-1 {
    top: 20%;
    right: -15px;
    animation-delay: 0s;
}

.fc-2 {
    bottom: 25%;
    left: -10px;
    animation-delay: 2s;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 82, 212, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 82, 212, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Button colors in non-hero sections */
.pricing .btn-outline,
.download .btn-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.pricing .btn-outline:hover {
    background: rgba(0, 82, 212, 0.06);
    color: var(--color-primary);
}

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

.download .btn-primary {
    color: var(--color-white);
    border-color: transparent;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
}

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

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(0, 82, 212, 0.08);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features {
    background: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 24px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 82, 212, 0.2);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.icon-blue { background: #dbeafe; color: #2563eb; }
.icon-indigo { background: #e0e7ff; color: #4f46e5; }
.icon-purple { background: #ede9fe; color: #7c3aed; }
.icon-cyan { background: #cffafe; color: #0891b2; }
.icon-teal { background: #ccfbf1; color: #0d9488; }
.icon-green { background: #d1fae5; color: #059669; }
.icon-orange { background: #ffedd5; color: #ea580c; }
.icon-rose { background: #ffe4e6; color: #e11d48; }

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================
   MATCH MANAGEMENT
   ============================================ */
.match-management {
    background: var(--color-bg);
}

.match-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.match-feature-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-30px);
}

.match-feature-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.match-feature-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 82, 212, 0.15);
}

.match-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-size: 1.3rem;
}

.match-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-dark);
}

.match-info p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ============================================
   EXPORT SECTION
   ============================================ */
.export-section {
    background: var(--color-white);
}

.export-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.export-card {
    text-align: center;
    padding: 40px 28px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.export-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.export-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    background: var(--color-white);
}

.export-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-size: 1.6rem;
}

.export-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.export-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ============================================
   WORKFLOW
   ============================================ */
.workflow {
    background: var(--gradient-hero);
    color: var(--color-white);
}

.workflow .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
}

.workflow .section-header h2 {
    color: var(--color-white);
}

.workflow .section-header p {
    color: rgba(255, 255, 255, 0.6);
}

.workflow-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
}

.workflow-step {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    flex: 1;
    max-width: 240px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.workflow-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.workflow-step:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.step-number {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(111, 177, 252, 0.5), rgba(0, 180, 216, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.step-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    color: var(--color-accent);
}

.workflow-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.workflow-step p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.workflow-connector {
    display: flex;
    align-items: center;
    padding-top: 80px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
}

/* ============================================
   DOWNLOAD
   ============================================ */
.download {
    background: var(--color-bg);
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 640px;
    margin: 0 auto;
}

.download-card {
    text-align: center;
    padding: 40px 32px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

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

.download-icon .fa-windows {
    color: #0078D6;
}

.download-icon .fa-apple {
    color: #333;
}

.download-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.download-ext {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.download-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
    background: var(--color-white);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 820px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    padding: 40px 32px;
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    background: var(--gradient-hero);
    border-color: transparent;
    color: var(--color-white);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    padding: 6px 40px;
    background: linear-gradient(135deg, #00B4D8, #4364F7);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: rotate(35deg);
}

.pricing-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
}

.pricing-card.featured .pricing-header {
    border-color: rgba(255, 255, 255, 0.15);
}

.pricing-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: rgba(0, 82, 212, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    color: var(--color-primary);
}

.pricing-card.featured .pricing-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
}

.pricing-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-dark);
}

.pricing-card.featured .pricing-header h3 {
    color: var(--color-white);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.price-amount {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--color-primary);
}

.pricing-card.featured .price-amount {
    color: var(--color-accent);
}

.price-currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.pricing-card.featured .price-currency {
    color: rgba(255, 255, 255, 0.6);
}

.pricing-period {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.pricing-card.featured .pricing-period {
    color: rgba(255, 255, 255, 0.5);
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--color-text);
}

.pricing-card.featured .pricing-features li {
    color: rgba(255, 255, 255, 0.85);
}

.pricing-features i {
    color: #10b981;
    font-size: 0.95rem;
}

.pricing-card.featured .pricing-features i {
    color: var(--color-accent);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--color-bg);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 640px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    text-decoration: none;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 82, 212, 0.2);
}

.contact-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.4rem;
}

.zalo-icon {
    background: #e3f2fd;
    color: #0068FF;
}

.email-icon {
    background: #fef3c7;
    color: #d97706;
}

.contact-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.contact-info p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    white-space: nowrap;
}

.contact-arrow {
    margin-left: auto;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    transition: var(--transition);
}

.contact-card:hover .contact-arrow {
    color: var(--color-primary);
    transform: translateX(4px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-dark);
    padding: 32px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-white);
}

.footer-logo i {
    color: var(--color-accent);
}

.footer-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   QR POPUP
   ============================================ */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    max-width: 480px;
    width: 100%;
    padding: 40px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
}

.popup-overlay.active .popup-content {
    transform: translateY(0) scale(1);
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--color-bg);
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.popup-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

.popup-header {
    text-align: center;
    margin-bottom: 28px;
}

.popup-header i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.popup-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-dark);
}

.qr-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    width: 200px;
    height: 200px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qr-code-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.qr-code-visual {
    text-align: center;
    color: var(--color-text-muted);
}

.qr-code-visual i {
    font-size: 3rem;
    margin-bottom: 8px;
    color: var(--color-primary-light);
}

.qr-code-visual p {
    font-size: 0.85rem;
    font-weight: 500;
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-package {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
}

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

.package-name {
    font-weight: 700;
    color: var(--color-dark);
}

.package-price {
    margin-left: auto;
    font-weight: 800;
    color: var(--color-primary);
}

.payment-detail {
    padding: 16px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
}

.detail-label {
    display: block;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.detail-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-value code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.copy-btn:hover {
    color: var(--color-primary);
    background: rgba(0, 82, 212, 0.08);
}

.payment-note {
    display: flex;
    gap: 10px;
    padding: 16px;
    background: #f0fdf4;
    border-radius: var(--radius-sm);
    border: 1px solid #bbf7d0;
}

.payment-note i {
    color: #16a34a;
    margin-top: 2px;
}

.payment-note p {
    font-size: 0.85rem;
    color: #166534;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.4rem;
    }

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

    .workflow-steps {
        flex-wrap: wrap;
        gap: 20px;
    }

    .workflow-connector {
        display: none;
    }

    .workflow-step {
        flex: 0 0 calc(50% - 10px);
        max-width: none;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--color-white);
        padding: 80px 24px 24px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        color: var(--color-text);
        padding: 12px 18px;
        font-size: 1rem;
    }

    .nav-link:hover {
        background: rgba(0, 82, 212, 0.08);
        color: var(--color-primary);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

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

    .hero-description {
        margin: 0 auto 32px;
    }

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

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

    .hero-visual {
        order: -1;
    }

    .laptop-mockup {
        max-width: 400px;
    }

    .floating-card {
        display: none;
    }

    .section {
        padding: 70px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

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

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

    .download-cards {
        grid-template-columns: 1fr;
    }

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

    .contact-cards {
        grid-template-columns: 1fr;
    }

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

    .popup-content {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero {
        padding: 80px 0 40px;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 16px;
    }

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

    .workflow-step {
        flex: 0 0 100%;
    }

    .match-feature-card {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Scroll animations helper --- */
.feature-card,
.match-feature-card,
.export-card,
.workflow-step {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Nav toggle animation */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
