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

:root {
    --blue:        #1d4ed8;
    --blue-dark:   #1e3a8a;
    --blue-light:  #60a5fa;
    --blue-glow:   rgba(29,78,216,0.25);
    --navy:        #080f1e;
    --navy-mid:    #0d1b35;
    --white:       #ffffff;
    --gray-50:     #f8fafc;
    --gray-100:    #f1f5f9;
    --gray-200:    #e2e8f0;
    --gray-500:    #64748b;
    --gray-700:    #334155;
    --gray-900:    #0f172a;
    --text:        #0f172a;
    --text-muted:  #64748b;
    --radius:      14px;
    --radius-sm:   8px;
    --nav-h:       72px;
    --max-w:       1240px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.08); }

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.nav-logo span { color: var(--gray-900); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex: 1;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--blue);
    background: rgba(37,99,235,0.06);
}

.nav-links .has-drop > a::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-top: 1px;
    transition: transform 0.2s;
}
.nav-links .has-drop:hover > a::after { transform: rotate(180deg); }

.nav-drop {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: 0 24px 64px rgba(0,0,0,0.14);
    min-width: 220px;
    padding: 6px;
    list-style: none;
    /* bridge the gap so mouse can reach it */
    padding-top: 12px;
    margin-top: 0;
}
/* invisible bridge above dropdown */
.nav-drop::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}
.nav-links .has-drop:hover .nav-drop { display: block; }
.nav-drop li a {
    display: block;
    padding: 10px 16px;
    font-size: 0.875rem;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}
.nav-drop li a:hover { background: var(--gray-50); color: var(--blue); }

.nav-cta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: var(--blue);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}
.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 1.5px solid var(--gray-200);
}
.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}
.btn-white {
    background: var(--white);
    color: var(--blue);
}
.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-1px);
}
.btn-lg {
    padding: 14px 32px;
    font-size: 0.95rem;
}
.btn-ghost {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.5);
}
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
    background: none;
    border: none;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── PAGE BODY ── */
.page-body { padding-top: var(--nav-h); }

/* ── FOOTER ── */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 80px 24px 40px;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}
.footer-brand .footer-logo span { color: var(--blue-light); }
.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 280px;
}
.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.footer-socials a {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.footer-socials a:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}
.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* ── UTILITIES ── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-gray { background: var(--gray-50); }

.label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}
.section-dark .label { color: var(--blue-light); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.3px; }

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-white { color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .nav-links, .nav-cta .btn-outline { display: none; }
    .nav-toggle { display: flex; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

.nav-mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px 30px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    gap: 4px;
    align-items: flex-start;
}
.nav-mobile-open .nav-links .has-drop .nav-drop {
    position: static;
    box-shadow: none;
    border: none;
    display: block;
    padding-left: 16px;
}
