:root {
    --bg: #0f172a;
    --surface: #111f3a;
    --surface-strong: #162b4f;
    --text: #f8fafc;
    --muted: #cbd5e1;
    --accent: #38bdf8;
    --accent-dark: #0ea5e9;
    --border: rgba(148, 163, 184, 0.25);
    --radius: 1.25rem;
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 26%),
                linear-gradient(180deg, #06142c 0%, #0f172a 100%);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn {
    background: var(--accent);
    color: #03111f;
}

.btn:hover,
.btn:focus-visible {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn.secondary {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.18);
}

.home-button {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 100px;
    height: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--text);
    z-index: 10;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.home-button:hover,
.home-button:focus-visible {
    transform: translateY(-1px);
    background: rgba(8, 15, 30, 1);
}

.container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 5rem 0 3rem;
}

header h1 {
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

nav {
    margin: 2rem 0 3rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

nav a.ativo,
nav a:hover,
nav a:focus-visible {
    background: rgba(56, 189, 248, 0.18);
    color: var(--text);
}

main {
    display: grid;
    gap: 2.5rem;
}

.hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-content {
    max-width: 42rem;
}

.hero-title {
    margin: 0 0 1.2rem;
    font-size: clamp(2rem, 3vw, 3rem);
}

.hero p {
    margin: 0 0 1.75rem;
    color: var(--muted);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1.5rem;
    min-height: 18rem;
}

.hero-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1.5rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    padding: 1.75rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.card h3 {
    margin: 0 0 0.85rem;
    font-size: 1.3rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.image-center {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.image-center img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 1.5rem;
}

.curiosidade {
    max-width: 60rem;
    margin: 0 auto;
    padding: 1.5rem 1.75rem;
    border-radius: 1.5rem;
    background: rgba(56, 189, 248, 0.07);
    border: 1px solid rgba(56, 189, 248, 0.18);
    color: var(--text);
    line-height: 1.8;
}

footer {
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--muted);
    text-align: center;
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .cards-grid,
    .image-center {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding-top: 4rem;
    }

    .home-button {
        top: auto;
        bottom: 1rem;
        left: 1rem;
    }

    nav ul {
        flex-direction: column;
    }

    .hero {
        padding: 1.75rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .card,
    .curiosidade,
    footer {
        padding: 1.25rem;
    }
}
