:root {
    --bg: #111111;
    --surface: #1a1a1a;
    --surface-soft: #202020;
    --text: #ffffff;
    --text-muted: #c7c7c7;
    --accent: #e6232e;
    --radius: 14px;
    --container: 1100px;
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.25);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(230, 35, 46, 0.14), transparent 35%),
        radial-gradient(circle at 85% 20%, rgba(230, 35, 46, 0.09), transparent 28%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    opacity: 0.9;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(8px);
}

.navbar {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand {
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--text);
    font-size: 1.05rem;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-block;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
    background: var(--accent);
    color: var(--text);
    outline: none;
}

main {
    max-width: var(--container);
    margin: 0 auto;
    padding: 2.25rem 1.25rem 4rem;
}

.section {
    background: var(--surface);
    padding: 1.6rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.section + .section {
    margin-top: 1.2rem;
}

h1,
h2,
h3 {
    margin: 0 0 0.8rem;
    line-height: 1.2;
    font-weight: 800;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
    font-size: clamp(1.35rem, 3vw, 2rem);
}

p {
    margin: 0;
    color: var(--text-muted);
}

.hero {
    min-height: min(72vh, 620px);
    display: grid;
    place-items: center;
    text-align: center;
    background:
        linear-gradient(150deg, rgba(230, 35, 46, 0.18), rgba(26, 26, 26, 0.88)),
        var(--surface);
    border-radius: 18px;
    padding: clamp(2rem, 5vw, 4rem);
    box-shadow: var(--shadow-soft);
    animation: fade-up 0.7s ease both;
}

.hero p {
    max-width: 720px;
    margin: 0.9rem auto 0;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
}

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

.card {
    background: var(--surface-soft);
    padding: 1.2rem;
    border-radius: 12px;
}

.btn {
    display: inline-block;
    margin-top: 1.2rem;
    background: var(--accent);
    color: var(--text);
    font-weight: 700;
    padding: 0.78rem 1.2rem;
    border-radius: 10px;
}

.btn:hover {
    filter: brightness(1.05);
}

.page-title {
    text-align: center;
    margin-bottom: 1.15rem;
}

.viz-shell {
    width: 100%;
    min-height: 820px;
    border-radius: 12px;
    overflow: hidden;
    background: #0d0d0d;
}

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

.reveal {
    animation: fade-up 0.6s ease both;
}

.reveal-delay-1 {
    animation-delay: 0.1s;
}

.reveal-delay-2 {
    animation-delay: 0.2s;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .about-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-links a {
        background: var(--surface-soft);
    }

    main {
        padding-top: 1.6rem;
    }

    .viz-shell {
        min-height: 1200px;
    }
}
