:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --text-dark: #0F172A;
    --text-muted: #64748B;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #EDEFF3;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity .4s ease;
}

body.page-loaded {
    opacity: 1;
}

/* HEADER */

.header {
    padding: 14px 20px;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1000;
}

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

.logo {
    height: 34px;
}

/* BUTTON */

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: .3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59,130,246,0.35);
}

/* ================= GLOBAL FOOTER LAYOUT ================= */

.footer {
    background: #0F172A;
    color: #CBD5E1;
    padding: 40px 20px;
}

.footer a {
    color: #CBD5E1;
    text-decoration: none;
}

.footer-grid {
    display: flex;
    flex-direction: column; /* mobile default */
    gap: 20px;
    text-align: center;
}

/* DESKTOP */
@media (min-width: 1024px) {

    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        max-width: 1200px;
        margin: 0 auto;
        text-align: left;
    }

    .footer-grid > div:last-child {
        text-align: right; /* copyright aligned right */
    }

}

/* ================= SCROLL ANIMATION ================= */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= UNIVERSAL CONTENT CARD ================= */

.content-card {
    background: #ffffff;
    border-radius: 18px;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px rgba(59,130,246,0.08);
    padding: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease;
}

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

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    font-weight: 800;
    margin: 50px 0 40px 0;
}

@media (min-width:1024px) {

    .page-title {
        font-size: 42px;
    }

    .content-card {
        padding: 40px;
    }

    .content-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(59,130,246,0.15);
    }
}

/* Improve text rhythm inside content cards */

.content-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 20px;
}

.content-card p {
    margin-bottom: 18px;
    line-height: 1.8;
    color: var(--text-muted);
}

.content-card ul {
    margin: 15px 0 20px 20px;
    line-height: 1.8;
    color: var(--text-muted);
}

.content-card li {
    margin-bottom: 8px;
}

.page-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}
/* ================= FOOTER ================= */

.footer {
    background: #0f172a;
    color: #ffffff;
    padding: 60px 20px 30px 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-column a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.3s ease;
}

.footer-column a:hover {
    color: #3B82F6;
}

.footer-tagline {
    color: #94a3b8;
    line-height: 1.6;
    max-width: 260px;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    font-size: 14px;
    color: #64748b;
}

/* Desktop Layout */
@media (min-width: 768px) {

    .footer-inner {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

}