/* ============================================================
   Z-Folder — Main Stylesheet
   ============================================================ */

:root {
    --primary:       #2563eb;
    --primary-light: #eff6ff;
    --success:       #16a34a;
    --warning:       #d97706;
    --danger:        #dc2626;
    --info:          #0891b2;
    --purple:        #7c3aed;
    --text-dark:     #1e293b;
    --text-muted:    #64748b;
    --bg-light:      #f8fafc;
    --border:        #e2e8f0;
    --radius:        12px;
    --radius-lg:     20px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow:        0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:     0 10px 40px rgba(0,0,0,.12);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.65;
}

/* ---- Navbar ---- */
.navbar {
    border-bottom: 1px solid var(--border);
}
.navbar-brand span {
    color: var(--text-dark);
    letter-spacing: -.3px;
}
.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color .2s;
}
.nav-link:hover { color: var(--primary) !important; }

/* ---- Hero ---- */
.hero-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 50%, #f0f9ff 100%);
    padding-top: 80px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(37,99,235,.1);
    color: var(--primary);
    font-size: .85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: .3px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    letter-spacing: -.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 620px;
    line-height: 1.7;
}

/* Hero stats */
.hero-stats {
    padding: 28px 0 40px;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stat-label {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    align-self: center;
}

/* Hero wave */
.hero-wave {
    line-height: 0;
}
.hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ---- Section helpers ---- */
.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}
.section-tag-light {
    background: rgba(255,255,255,.15);
    color: #fff;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -.3px;
    margin-bottom: .5rem;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ---- Step cards ---- */
.step-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    transition: box-shadow .25s, transform .25s;
}
.step-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.step-number {
    position: absolute;
    top: -16px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: .85rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.step-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 16px;
    margin-top: 8px;
}
.step-card h5 {
    font-weight: 700;
    margin-bottom: 8px;
}

/* ---- Compare cards ---- */
.compare-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
}
.compare-card-header {
    padding: 16px 24px;
    font-weight: 700;
    font-size: 1rem;
}
.compare-bad .compare-card-header {
    background: #fef2f2;
    color: var(--danger);
    border-bottom: 1px solid #fecaca;
}
.compare-good .compare-card-header {
    background: #f0fdf4;
    color: var(--success);
    border-bottom: 1px solid #bbf7d0;
}
.compare-bad { border: 1px solid #fecaca; }
.compare-good { border: 1px solid #bbf7d0; }

.compare-list {
    list-style: none;
    padding: 20px 24px;
    margin: 0;
    background: #fff;
}
.compare-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: .95rem;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}
.compare-list li:last-child { border-bottom: none; }
.compare-list li i { margin-top: 3px; flex-shrink: 0; }

/* ---- Feature cards ---- */
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    height: 100%;
    transition: box-shadow .25s, transform .25s;
}
.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.feature-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.feature-card h5 {
    font-weight: 700;
    margin-bottom: 8px;
}

/* Soft backgrounds */
.bg-primary-soft { background: #eff6ff; }
.bg-success-soft { background: #f0fdf4; }
.bg-warning-soft { background: #fffbeb; }
.bg-info-soft    { background: #ecfeff; }
.bg-danger-soft  { background: #fef2f2; }
.bg-purple-soft  { background: #f5f3ff; }
.text-purple     { color: var(--purple) !important; }

/* ---- Business section ---- */
.business-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.business-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.business-list li > i {
    font-size: 1.4rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.business-list strong {
    display: block;
    margin-bottom: 2px;
    font-size: 1rem;
}

/* Business visual diagram */
.business-visual {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}
.bv-lines {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
.bv-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: #fff;
    width: 90px; height: 90px;
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37,99,235,.4);
    z-index: 2;
}
.bv-center span {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .5px;
    margin-top: 2px;
}
.bv-node {
    position: absolute;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    width: 72px; height: 72px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    box-shadow: var(--shadow);
    z-index: 2;
    transition: box-shadow .2s;
}
.bv-node:hover { box-shadow: var(--shadow-lg); }
.bv-node span {
    font-size: .65rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
}
.bv-node-1 { top: 10px;  left: 10px; }
.bv-node-2 { top: 10px;  right: 10px; }
.bv-node-3 { bottom: 10px; left: 10px; }
.bv-node-4 { bottom: 10px; right: 10px; }

/* ---- Security section ---- */
.security-section {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.security-section .section-title { color: var(--text-dark); }

.security-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    transition: box-shadow .25s, transform .25s;
}
.security-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.security-card h6 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* ---- Download section ---- */
.download-section {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}
.download-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    max-width: 560px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---- Footer ---- */
.footer {
    background: #fff;
    border-top: 1px solid var(--border);
}

/* ---- Buttons ---- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    border-radius: 8px;
    transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,.35) !important;
}
.btn-outline-secondary {
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-muted);
    border-color: var(--border);
}
.btn-outline-secondary:hover {
    background: var(--bg-light);
    color: var(--text-dark);
    border-color: #cbd5e1;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-section { padding-top: 48px; }
    .stat-divider { display: none; }
    .business-visual { width: 240px; height: 240px; }
    .bv-center { width: 72px; height: 72px; font-size: 1.3rem; }
    .bv-node { width: 58px; height: 58px; font-size: 1.1rem; }
    .download-box { padding: 36px 24px; }
}
