:root {
    /* Colors */
    --color-primary: #0A2540;
    --color-primary-light: #1A3A5E;
    --color-accent: #2962FF;
    --color-accent-hover: #1E4FCC;
    --color-bg-body: #F9FAFB;
    --color-bg-card: #FFFFFF;
    --color-text-main: #0A2540;
    --color-text-secondary: #64748B;
    --color-warning: #FF6D00;
    --color-warning-bg: #FFF5EB;
    --color-success: #00C853;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px;
    --grid-gap: 2rem;

    /* Effects */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-accent {
    color: var(--color-accent);
}

.text-center {
    text-align: center;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-primary);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.btn-secondary:hover {
    background-color: rgba(41, 98, 255, 0.05);
}

/* Navigation */
.navbar {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(180deg, #F9FAFB 0%, #EFF6FF 100%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badges {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #DBEAFE;
    color: var(--color-accent);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Services Grid */
.section {
    padding: var(--section-padding) 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--grid-gap);
    margin-top: 3rem;
}

.card {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid #E2E8F0;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: #EFF6FF;
    color: var(--color-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Knowledge base cards */
.knowledge-card__inner {
    min-height: 100%;
}

.knowledge-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.knowledge-card__category {
    margin-bottom: 0;
    letter-spacing: 0.04em;
}

.knowledge-card__year {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #E8F0FF;
    color: var(--color-accent);
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.knowledge-card__title {
    margin-top: 0.75rem !important;
    margin-bottom: 0 !important;
    min-height: 4.2rem;
    font-size: 1.125rem;
    line-height: 1.35;
}

.knowledge-card__title-link {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
    text-wrap: balance;
    text-decoration: none;
    color: inherit;
}

/* Fallback for the initial render before JS formats knowledge cards. */
.article-card .card h3 {
    margin-top: 0.75rem !important;
    margin-bottom: 0 !important;
    min-height: 4.2rem;
    font-size: 1.125rem !important;
    line-height: 1.35;
}

.article-card .card h3 a {
    display: block;
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
    text-wrap: balance;
}

.knowledge-card__excerpt {
    margin-top: 0.9rem !important;
}

.knowledge-chip-row {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.knowledge-chip-row::-webkit-scrollbar {
    height: 8px;
}

.knowledge-chip-row::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

/* Human-in-the-Loop Process */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    background: var(--color-bg-body);
    padding: 0 1rem;
}

.step-circle {
    width: 64px;
    height: 64px;
    background: white;
    border: 2px solid var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.process-line {
    position: absolute;
    top: 32px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #E2E8F0;
    z-index: 1;
}

.human-approval {
    border-color: var(--color-success);
    color: var(--color-success);
}

.success-icon {
    color: var(--color-success);
}

/* Compliance Banner */
.compliance-banner {
    background: var(--color-warning-bg);
    border-left: 4px solid var(--color-warning);
    padding: 1.5rem;
    border-radius: 4px;
    margin: 2rem 0;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--color-primary);
    color: white;
    padding: 4rem 0;
    margin-top: 4rem;
}

footer h3,
footer p {
    color: #CBD5E1;
}

footer h3 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links li {
    list-style: none;
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .knowledge-chip-row {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.35rem;
        -webkit-overflow-scrolling: touch;
    }

    .knowledge-chip-row > * {
        flex: 0 0 auto;
    }

    .knowledge-card__title {
        min-height: 3.7rem;
    }

    .knowledge-card__title-link {
        font-size: 1rem;
    }

    .article-card .card h3 {
        min-height: 3.7rem;
        font-size: 1rem !important;
    }

    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .process-line {
        display: none;
    }

    /* Sticky Mobile CTA */
    .mobile-sticky-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .sticky-btn {
        flex: 1;
        padding: 1rem;
        text-align: center;
        font-weight: 700;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

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

    .sticky-btn-wa {
        background: #25D366;
        color: white;
    }

    /* WhatsApp Green */
}

@media (min-width: 769px) {
    .mobile-sticky-bar {
        display: none;
    }
}
