:root {
    --bg: #09111f;
    --bg-soft: #111d33;
    --panel: rgba(10, 18, 34, 0.78);
    --panel-strong: #132543;
    --line: rgba(163, 190, 255, 0.18);
    --text: #f5f7fb;
    --muted: #b0bdd6;
    --accent: #77d0ff;
    --accent-strong: #3ca6ff;
    --accent-warm: #ffd166;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "IBM Plex Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(65, 140, 255, 0.2), transparent 32%),
        radial-gradient(circle at top right, rgba(255, 209, 102, 0.14), transparent 22%),
        linear-gradient(180deg, #07101d 0%, #0a1528 48%, #08101c 100%);
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(7, 14, 27, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.brand {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.08em;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 0.8rem 0.9rem;
    border-radius: 999px;
}

.site-nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.site-nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

main,
.site-footer {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.hero,
.section,
.site-footer {
    padding: 4.5rem 0;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.25rem;
    align-items: center;
}

.eyebrow {
    margin: 0 0 0.9rem;
    color: var(--accent-warm);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
}

h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.04;
    max-width: 17ch;
}

.hero-text,
.about-grid p,
.card p,
.project-copy p,
.roadmap-step p,
.site-footer h2 {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
}

.hero-text {
    max-width: 62ch;
    margin: 1.5rem 0 0;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible,
.project-card:hover,
.project-card:focus-visible,
.card:hover,
.roadmap-step:hover {
    transform: translateY(-4px);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #04111f;
}

.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.hero-metrics {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.hero-metrics li,
.portrait-card,
.signal-card,
.card,
.project-card,
.roadmap-step,
.site-footer {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-metrics li {
    border-radius: 1.25rem;
    padding: 1.2rem;
}

.hero-metrics strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.hero-metrics span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.hero-visual {
    position: relative;
    display: grid;
    gap: 1.2rem;
}

.portrait-card {
    border-radius: 2rem;
    overflow: hidden;
    max-width: 420px;
    justify-self: end;
}

.portrait-card img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.signal-card {
    max-width: 320px;
    justify-self: start;
    margin-top: -4rem;
    margin-left: 1rem;
    border-radius: 1.5rem;
    padding: 1.4rem;
}

.signal-label,
.project-type {
    margin: 0 0 0.55rem;
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.signal-value {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
}

.signal-note {
    margin: 0.8rem 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-heading {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.section-heading h2 {
    max-width: 24ch;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.16;
}

.about-grid,
.focus-grid,
.project-grid,
.roadmap-grid {
    display: grid;
    gap: 1.25rem;
}

.about-grid {
    grid-template-columns: repeat(2, 1fr);
}

.focus-grid {
    grid-template-columns: repeat(4, 1fr);
}

.card,
.roadmap-step {
    border-radius: 1.5rem;
    padding: 1.15rem;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    color: #06111f;
    background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent) 100%);
}

.card h3,
.project-copy h3,
.roadmap-step h3 {
    margin-bottom: 0.6rem;
    font-size: 1.08rem;
}

.project-grid {
    grid-template-columns: repeat(2, 1fr);
}

.project-card {
    display: grid;
    gap: 0;
    border-radius: 1.6rem;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-copy {
    padding: 1.1rem;
}

.project-card-planned {
    display: flex;
    align-items: center;
    min-height: 100%;
    background:
        linear-gradient(145deg, rgba(60, 166, 255, 0.16), rgba(255, 209, 102, 0.08)),
        var(--panel);
}

.roadmap-section {
    padding-bottom: 5.5rem;
}

.roadmap-grid {
    grid-template-columns: repeat(4, 1fr);
}

.collab-panel {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    border-radius: 1.75rem;
    padding: 1.35rem;
}

.collab-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.collab-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.collab-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.95rem;
}

.roadmap-step span {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--accent-warm);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2.5rem;
    border-radius: 2rem;
}

.footer-copy {
    flex: 1 1 420px;
    padding: 0.35rem 0.5rem 0.35rem 0.15rem;
}

.site-footer h2 {
    max-width: 26ch;
    margin: 0 0 0.35rem;
}

.social-links {
    flex: 1 1 320px;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.85rem;
    align-content: center;
    justify-content: flex-end;
    padding: 0.35rem 0.15rem 0.35rem 0.5rem;
}

.social-links a {
    text-decoration: none;
    color: var(--text);
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.scroll-top {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 20;
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(7, 14, 27, 0.88);
    color: var(--text);
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 920px) {
    .hero,
    .about-grid,
    .focus-grid,
    .project-grid,
    .roadmap-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .portrait-card {
        justify-self: stretch;
        max-width: none;
    }

    .portrait-card img {
        min-height: 360px;
    }

    .signal-card {
        margin: -3rem 0 0;
        justify-self: stretch;
        max-width: none;
    }

    .site-footer {
        display: grid;
       
    }

    .footer-copy,
    .social-links {
        padding: 0;
        margin: 0;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding: 1rem;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        border-radius: 1.25rem;
        background: rgba(9, 17, 31, 0.96);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    h1 {
        max-width: 100%;
    }

    .section-heading h2 {
        max-width: 100%;
    }

    .hero,
    .section,
    .site-footer {
        padding: 3rem 0;
    }

    .portrait-card {
        max-width: 280px;
        justify-self: center;
    }

    .portrait-card img {
        min-height: 280px;
        aspect-ratio: 1 / 1.1;
    }

    main,
    .site-footer {
        width: min(1120px, calc(100% - 1rem));
    }

    .footer-copy,
    .social-links {
        padding: 7px;
        margin: 0;
    }
}
