/* ========== TYPE TOKENS ========== */
:root {
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --weight-regular:  400;
    --weight-medium:   500;
    --weight-semibold: 600;
    --weight-bold:     700;
}

/* ========== EASING TOKENS ========== */
:root {
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    background: #0b0f1c;
    color: #c4c9d6;
    line-height: 1.75;
    overflow-x: hidden;
    font-kerning: normal;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ========== SKIP LINK ========== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: #2b5c87;
    color: #fff;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: top 0.2s;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

/* ========== UTILITIES ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.text-center { text-align: center; }
.gradient-text {
    background: linear-gradient(135deg, #4a9eed, #2b5c87, #6bb8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(43, 92, 135, 0.25);
    color: #93ccff;
    border: 1px solid rgba(43, 92, 135, 0.3);
    margin-bottom: 20px;
}
h1, h2, h3, h4 { color: #fff; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); font-weight: var(--weight-semibold); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: var(--weight-semibold); letter-spacing: -0.01em; margin-bottom: 20px; }
h3 { font-size: var(--text-xl); font-weight: var(--weight-semibold); margin-bottom: 12px; }
h4 { font-weight: var(--weight-semibold); }
.subtitle { font-size: var(--text-lg); color: #9ba3b9; max-width: 640px; margin: 0 auto; line-height: 1.8; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.25s var(--ease-out-quart);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, #2b5c87, #3a7bc8);
    color: #fff;
    box-shadow: 0 4px 24px rgba(43, 92, 135, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px rgba(43, 92, 135, 0.6), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px) scale(1.02);
}
.btn-large { padding: 18px 40px; font-size: 1.1rem; border-radius: 14px; }
.btn svg { width: 20px; height: 20px; }
.btn:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #6bb8ff;
    outline-offset: 2px;
}
.btn:focus-visible {
    outline: 3px solid #6bb8ff;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(107, 184, 255, 0.25);
}

/* ========== NAV ========== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s var(--ease-out-quart);
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
}
nav.scrolled {
    background: rgba(10, 14, 26, 0.92);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img, .nav-logo svg { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #9ba3b9;
    transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #6bb8ff; font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .btn { padding: 10px 24px; font-size: 0.9rem; border-radius: 10px; }
.mobile-toggle { display: none; background: none; color: #fff; font-size: 1.5rem; padding: 4px 8px; }

/* ========== FOOTER ========== */
footer {
    background: #080b15;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 80px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand img, .footer-brand svg { height: 32px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: #8b92a8; max-width: 280px; line-height: 1.7; }
.footer-col h3 { font-size: var(--text-xs); color: #9ba3b9; font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col a { display: block; color: #8b92a8; font-size: 0.9rem; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: #6bb8ff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #8b92a8;
}

/* ========== CTA SECTION (shared: about, contact) ========== */
.cta-section {
    background: linear-gradient(180deg, #0a0e1a, #0d1222);
    padding: 60px 0 120px;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(43, 92, 135, 0.12) 0%, transparent 70%);
}
.cta-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.cta-box h2 { margin-bottom: 16px; }
.cta-box .subtitle { margin-bottom: 40px; }

/* ========== FADE-IN ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out-quart), transform 0.6s var(--ease-out-quart);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in.visible:nth-child(2) { transition-delay: 80ms; }
.fade-in.visible:nth-child(3) { transition-delay: 160ms; }
.fade-in.visible:nth-child(4) { transition-delay: 240ms; }

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in { opacity: 1; transform: none; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .container { padding: 0 16px; }
    .nav-links { display: none; }
    .nav-links.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px 24px;
        gap: 12px;
        z-index: 999;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav-cta .btn-secondary { display: none; }
    .mobile-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
}
