/* ===========================
   busing.eu Landing Page
   Color palette derived from brand images:
   - Primary Blue:  #1a6ba0 (logo "B" letter)
   - Dark Blue:     #0d3b5e (deep teal)
   - Light Blue:    #e8f4fb
   - Accent Orange: #e8852e (gear icon)
   - Accent Green:  #3aaa5b (location pin)
   - Neutral Dark:  #1e293b
   - Neutral Light: #f8fafc
   =========================== */

:root {
    --blue-900: #0d2d4a;
    --blue-800: #0d3b5e;
    --blue-700: #145a85;
    --blue-600: #1a6ba0;
    --blue-500: #2281b8;
    --blue-400: #3a9fd4;
    --blue-100: #e0f0fa;
    --blue-50:  #f0f8ff;

    --orange-600: #d47520;
    --orange-500: #e8852e;
    --orange-400: #f0a04b;
    --orange-100: #fef3e2;

    --green-600: #2d8f4a;
    --green-500: #3aaa5b;
    --green-400: #4cc46f;
    --green-100: #e6f7ec;

    --red-500: #dc3545;
    --red-100: #fde8ea;

    --gray-900: #1e293b;
    --gray-800: #2d3a4e;
    --gray-700: #475569;
    --gray-600: #64748b;
    --gray-500: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50:  #f8fafc;
    --white:    #ffffff;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(13, 45, 74, 0.08), 0 4px 16px rgba(13, 45, 74, 0.06);
    --shadow-md: 0 4px 12px rgba(13, 45, 74, 0.1), 0 8px 32px rgba(13, 45, 74, 0.08);
    --shadow-lg: 0 8px 24px rgba(13, 45, 74, 0.12), 0 16px 48px rgba(13, 45, 74, 0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--gray-50);
}

/* ---- NAVIGATION ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--gray-200);
    box-shadow: 0 1px 8px rgba(13, 45, 74, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo { display: flex; align-items: center; }
.logo-img { height: 48px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: color var(--transition);
}

.nav-links a:hover { color: var(--blue-600); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Language switcher */
.lang-switcher {
    position: relative;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: var(--transition);
}

.lang-switcher-btn:hover {
    border-color: var(--blue-400);
    color: var(--blue-600);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 160px;
    z-index: 100;
    padding: 4px;
}

.lang-dropdown.open { display: block; }

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.88rem;
    color: var(--gray-700);
    border-radius: 4px;
    transition: background var(--transition);
}

.lang-option:hover {
    background: var(--blue-50);
    color: var(--blue-700);
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--radius);
}

.btn-xl {
    padding: 18px 48px;
    font-size: 1.15rem;
    border-radius: var(--radius);
}

.cta-main-btn {
    display: inline-block;
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: var(--white);
    box-shadow: 0 2px 8px rgba(26, 107, 160, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    box-shadow: 0 4px 16px rgba(26, 107, 160, 0.45);
    transform: translateY(-1px);
}

.btn-outline {
    border-color: var(--gray-300);
    color: var(--gray-700);
    background: var(--white);
}

.btn-outline:hover {
    border-color: var(--blue-600);
    color: var(--blue-600);
    background: var(--blue-50);
}

.btn-nav {
    background: var(--blue-600);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
}

.btn-nav:hover {
    background: var(--blue-700);
    color: var(--white) !important;
}

.btn-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
}

/* ---- HERO ---- */
.hero {
    position: relative;
    background: linear-gradient(165deg, var(--blue-900) 0%, var(--blue-800) 40%, var(--blue-700) 100%);
    padding: 140px 0 120px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(232, 133, 46, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(58, 170, 91, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(232, 133, 46, 0.2);
    color: var(--orange-400);
    border: 1px solid rgba(232, 133, 46, 0.3);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--orange-400), var(--orange-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat { text-align: center; }

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 540px;
    width: 100%;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 2;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ---- SECTION HEADERS ---- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: var(--blue-100);
    color: var(--blue-600);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ---- FEATURES GRID ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--blue-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-fleet    { background: var(--blue-100);   color: var(--blue-600); }
.icon-calendar { background: var(--green-100);  color: var(--green-600); }
.icon-shield   { background: var(--orange-100); color: var(--orange-600); }
.icon-inspect  { background: var(--red-100);    color: var(--red-500); }
.icon-wrench   { background: var(--orange-100); color: var(--orange-500); }
.icon-dashboard { background: var(--blue-100);  color: var(--blue-600); }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ---- SPLIT CONTENT ---- */
.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-content.reverse .split-visual { order: -1; }

.split-text .section-badge { margin-bottom: 12px; }

.split-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.25;
}

.split-text > p {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 28px;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.check-list li svg {
    flex-shrink: 0;
    color: var(--green-500);
    margin-top: 2px;
}

.check-list li span {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.check-list li strong {
    color: var(--gray-900);
}

/* ---- VISUAL CARDS (DEMOS) ---- */
.visual-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

/* Vehicle demo */
.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.vehicle-type-badge {
    background: var(--blue-100);
    color: var(--blue-700);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
}

.vehicle-status {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
}

.vehicle-status.active {
    background: var(--green-100);
    color: var(--green-600);
}

.vehicle-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.vehicle-reg {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.vehicle-specs {
    display: flex;
    gap: 32px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.spec { display: flex; flex-direction: column; }
.spec-label { font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }
.spec-value { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }

.vehicle-equipment {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.equip-tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Calendar demo */
.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cal-month {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.cal-nav { display: flex; gap: 8px; }

.cal-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    background: var(--white);
    color: var(--gray-600);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 16px;
}

.cal-day-name {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray-500);
    padding: 4px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cal-day {
    text-align: center;
    padding: 8px 4px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-700);
}

.cal-day.empty { visibility: hidden; }

.cal-day.available {
    background: var(--green-100);
    color: var(--green-600);
    font-weight: 600;
}

.cal-day.booked {
    background: var(--blue-100);
    color: var(--blue-700);
    font-weight: 600;
}

.cal-day.service {
    background: var(--orange-100);
    color: var(--orange-600);
    font-weight: 600;
}

.cal-day.today {
    outline: 2px solid var(--blue-600);
    outline-offset: -2px;
}

.cal-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--gray-600);
    font-weight: 500;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.legend-dot.available { background: var(--green-500); }
.legend-dot.booked    { background: var(--blue-600); }
.legend-dot.service   { background: var(--orange-500); }

/* ---- COMPLIANCE ---- */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.compliance-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
}

.compliance-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.compliance-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.compliance-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.compliance-card p {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 20px;
}

.compliance-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--orange-100);
    color: var(--orange-600);
    font-size: 0.82rem;
    font-weight: 600;
}

.compliance-alert svg { flex-shrink: 0; }

/* ---- DASHBOARD DEMO ---- */
.dashboard-demo {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.dash-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    transition: var(--transition);
}

.dash-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.dash-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-icon.warning { background: var(--orange-100); color: var(--orange-500); }
.dash-icon.danger  { background: var(--red-100);    color: var(--red-500); }
.dash-icon.success { background: var(--green-100);  color: var(--green-500); }
.dash-icon.info    { background: var(--blue-100);   color: var(--blue-600); }
.dash-icon.primary { background: var(--blue-100);   color: var(--blue-700); }

.dash-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
}

.dash-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ---- LANGUAGES ---- */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.lang-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.lang-card:hover {
    border-color: var(--blue-400);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.lang-flag {
    width: 48px;
    height: 36px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.lang-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* ---- SECURITY ---- */
.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.security-item {
    text-align: center;
    padding: 28px 20px;
}

.security-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue-100);
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.security-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.security-item p {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ---- BLOG ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.blog-grid .blog-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 14px);
    justify-self: center;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
    overflow: hidden;
}

.blog-card:hover {
    border-color: var(--blue-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.blog-card-inner {
    padding: 32px 28px;
}

.blog-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.blog-cat-fleet      { background: var(--blue-100);   color: var(--blue-700); }
.blog-cat-compliance { background: var(--red-100);    color: var(--red-500); }
.blog-cat-insurance  { background: var(--orange-100); color: var(--orange-600); }
.blog-cat-costs      { background: var(--green-100);  color: var(--green-600); }
.blog-cat-technology { background: var(--blue-100);   color: var(--blue-600); }
.blog-cat-safety    { background: #fef3c7;            color: #92400e; }
.blog-cat-planning  { background: #ede9fe;            color: #5b21b6; }

.blog-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.4;
}

.blog-content {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.blog-content p {
    margin-bottom: 12px;
}

.blog-content p:last-child {
    margin-bottom: 0;
}

.blog-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 12px;
}

.blog-content ul li {
    margin-bottom: 6px;
}

.blog-content strong {
    color: var(--gray-800);
}

.blog-card:nth-child(1) { transition-delay: 0s; }
.blog-card:nth-child(2) { transition-delay: 0.08s; }
.blog-card:nth-child(3) { transition-delay: 0.16s; }
.blog-card:nth-child(4) { transition-delay: 0.24s; }
.blog-card:nth-child(5) { transition-delay: 0.32s; }

a.blog-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-summary {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-read-more {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--blue-600);
    transition: color var(--transition);
}

a.blog-card:hover .blog-read-more {
    color: var(--blue-800);
}

.blog-listing-section {
    padding-top: 120px;
}

/* ---- ARTICLE PAGE ---- */
.article-page {
    padding: 120px 0 80px;
}

.article-page .container {
    max-width: 780px;
}

.blog-back-link {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--blue-600);
    text-decoration: none;
    margin-bottom: 32px;
    transition: color var(--transition);
}

.blog-back-link:hover {
    color: var(--blue-800);
}

.blog-back-bottom {
    margin-top: 48px;
    margin-bottom: 0;
}

.article-hero {
    margin-bottom: 40px;
}

.article-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.3;
    margin-top: 16px;
}

.article-body {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 36px;
    margin-bottom: 16px;
}

.article-body ul, .article-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body strong {
    color: var(--gray-800);
}

@media (max-width: 768px) {
    .article-hero h1 { font-size: 1.6rem; }
    .article-page { padding: 100px 0 60px; }
    .blog-listing-section { padding-top: 100px; }
}

/* ---- CTA SECTION ---- */
.cta-section {
    background: linear-gradient(165deg, var(--blue-900) 0%, var(--blue-800) 50%, var(--blue-700) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 133, 46, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-logo {
    width: 140px;
    height: auto;
    margin: 0 auto 32px;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 36px;
}

.cta-form {
    margin-bottom: 24px;
}

.cta-input-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto;
}

.cta-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.cta-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.cta-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.cta-msg {
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    min-height: 1.4em;
}

.msg-success { color: #4cc46f; }
.msg-error   { color: #f87171; }

.cta-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-divider::before,
.cta-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.cta-divider span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.contact-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: var(--font);
}

.contact-form .btn {
    align-self: center;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--gray-900);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    max-width: 280px;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-links a:hover { color: rgba(255, 255, 255, 0.9); }

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ---- ANIMATIONS ---- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.08s; }
.feature-card:nth-child(3) { transition-delay: 0.16s; }
.feature-card:nth-child(4) { transition-delay: 0.24s; }
.feature-card:nth-child(5) { transition-delay: 0.32s; }
.feature-card:nth-child(6) { transition-delay: 0.4s; }

.compliance-card:nth-child(1) { transition-delay: 0s; }
.compliance-card:nth-child(2) { transition-delay: 0.1s; }
.compliance-card:nth-child(3) { transition-delay: 0.2s; }

.dash-card:nth-child(1) { transition-delay: 0s; }
.dash-card:nth-child(2) { transition-delay: 0.06s; }
.dash-card:nth-child(3) { transition-delay: 0.12s; }
.dash-card:nth-child(4) { transition-delay: 0.18s; }
.dash-card:nth-child(5) { transition-delay: 0.24s; }

.lang-card:nth-child(1) { transition-delay: 0s; }
.lang-card:nth-child(2) { transition-delay: 0.05s; }
.lang-card:nth-child(3) { transition-delay: 0.1s; }
.lang-card:nth-child(4) { transition-delay: 0.15s; }
.lang-card:nth-child(5) { transition-delay: 0.2s; }
.lang-card:nth-child(6) { transition-delay: 0.25s; }
.lang-card:nth-child(7) { transition-delay: 0.3s; }
.lang-card:nth-child(8) { transition-delay: 0.35s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.6rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .compliance-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-demo { grid-template-columns: repeat(3, 1fr); }
    .security-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid .blog-card:last-child:nth-child(odd) { max-width: 100%; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 72px 0; }

    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
    }

    .nav-links.active { display: flex; }

    .hero { padding: 110px 0 100px; }
    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-image { order: -1; }
    .hero-image img { max-width: 400px; }
    .hero-stats { gap: 20px; }
    .stat-number { font-size: 1.4rem; }

    .split-content { grid-template-columns: 1fr; gap: 40px; }
    .split-content.reverse .split-visual { order: 0; }

    .features-grid { grid-template-columns: 1fr; }
    .compliance-grid { grid-template-columns: 1fr; }
    .dashboard-demo { grid-template-columns: repeat(2, 1fr); }
    .languages-grid { grid-template-columns: repeat(2, 1fr); }
    .security-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-grid .blog-card:last-child:nth-child(odd) { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .section-header h2 { font-size: 1.7rem; }
    .split-text h2 { font-size: 1.6rem; }
    .cta-content h2 { font-size: 1.7rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; }
    .hero-stats { flex-wrap: wrap; justify-content: center; }
    .dashboard-demo { grid-template-columns: 1fr; }
    .languages-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-input-group { flex-direction: column; }
}
