:root {
    --primary: #004aad;
    --secondary: #00a8e8;
    --dark: #0f172a;
    --muted: #64748b;
    --bg: #f4f7fb;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 10% auto auto 55%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.25), transparent 60%);
    filter: blur(5px);
    z-index: -1;
}

section,
.hero {
    scroll-margin-top: 120px;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    --reveal-delay: 0.15s;
}

.delay-2 {
    --reveal-delay: 0.3s;
}

.delay-3 {
    --reveal-delay: 0.45s;
}

.delay-4 {
    --reveal-delay: 0.6s;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 0.8rem 5vw;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--secondary);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
}

.hero {
    min-height: 80vh;
    padding: 6rem 5vw 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.95), rgba(0, 168, 232, 0.9)),
                url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1600&q=80') center/cover;
    color: white;
}

.metrics {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.metric {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.metric-label {
    font-size: 0.95rem;
    color: var(--muted);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 540px;
    margin-bottom: 1.5rem;
}

.cta {
    display: inline-flex;
    gap: 0.75rem;
}

.btn {
    border: none;
    padding: 0.95rem 1.75rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    border: 1px solid white;
    color: white;
    background: transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

section {
    padding: 4rem 5vw;
}

.section-title {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.15);
}

.objectives-list li {
    margin-bottom: 0.75rem;
    color: var(--muted);
}

.objectives-list strong {
    color: var(--primary);
}

.services {
    background: white;
}

.services .card h3 {
    margin-bottom: 0.5rem;
}

.alliances {
    background: var(--bg);
    text-align: center;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.pill {
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 74, 173, 0.25);
    color: var(--primary);
    font-weight: 600;
    background: white;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.timeline {
    border-left: 3px solid var(--secondary);
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}

.timeline-step {
    margin-bottom: 1.5rem;
    padding: 0.25rem 0 0.25rem 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

.timeline-step h4 {
    margin-bottom: 0.35rem;
    color: var(--primary);
}

.timeline-step:hover {
    transform: translateX(6px);
}

.contact {
    background: var(--dark);
    color: white;
    border-radius: 24px;
    padding: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
textarea {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:hover,
textarea:hover,
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 14px 30px rgba(0, 74, 173, 0.2);
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 2rem 5vw 3rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.floating-cta {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 20px 35px rgba(0, 74, 173, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 45px rgba(0, 74, 173, 0.4);
}

@media (max-width: 640px) {
    nav ul {
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .hero {
        text-align: center;
    }

    .cta {
        justify-content: center;
    }

    .contact {
        padding: 2rem;
    }

    .floating-cta {
        right: 1rem;
        bottom: 1.5rem;
        font-size: 0.9rem;
    }
}
