:root {
    --bg: #050810;
    --bg-soft: #0a0f19;
    --surface: #0d1117;
    --surface-2: rgba(13, 17, 23, 0.86);
    --text: #e8eaf0;
    --muted: #a7b0c3;
    --accent: #00d4ff;
    --accent-2: #7b61ff;
    --border: rgba(0, 212, 255, 0.18);
    --border-strong: rgba(0, 212, 255, 0.36);
    --divider: rgba(0, 212, 255, 0.2);
    --shadow:
        0 0 0 1px rgba(0, 212, 255, 0.05), 0 18px 40px rgba(0, 0, 0, 0.45);
    --shadow-glow:
        0 0 0 1px rgba(0, 212, 255, 0.12), 0 0 24px rgba(0, 212, 255, 0.12),
        0 18px 40px rgba(0, 0, 0, 0.45);
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at top,
            rgba(123, 97, 255, 0.1),
            transparent 30%
        ),
        radial-gradient(
            circle at 20% 20%,
            rgba(0, 212, 255, 0.08),
            transparent 20%
        ),
        linear-gradient(180deg, #04070d 0%, #050810 45%, #060914 100%);
    color: var(--text);
    font-family: "Inter", system-ui, sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.06) 1px, transparent 1px),
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.14) 1px,
            transparent 1.5px
        );
    background-size:
        80px 80px,
        80px 80px,
        180px 180px;
    background-position:
        center center,
        center center,
        12px 24px;
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.12)
    );
    opacity: 0.28;
}

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

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

.site-shell,
.links-page {
    position: relative;
    z-index: 1;
}

.container {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at center,
            rgba(0, 212, 255, 0.12),
            transparent 28%
        ),
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size:
        auto,
        48px 48px,
        48px 48px;
    opacity: 0.9;
    animation: drift 18s linear infinite;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% 10% auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(123, 97, 255, 0.24),
        transparent 68%
    );
    filter: blur(18px);
}

.hero-content {
    position: relative;
    padding: 1rem 0 6rem;
    max-width: 860px;
}

.hero-kicker,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-kicker {
    margin-bottom: 1.25rem;
}

.hero h1,
.section h2,
.links-panel h1 {
    font-family: "Orbitron", sans-serif;
    letter-spacing: 0.02em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.9rem, 8vw, 5.8rem);
    line-height: 1.04;
    max-width: 13ch;
    text-wrap: balance;
}

.hero-subheadline {
    max-width: 650px;
    margin: 1.5rem 0 0;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--muted);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 2rem;
    padding: 0.95rem 1.3rem;
    border: 1px solid var(--border-strong);
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(0, 212, 255, 0.03);
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
    box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.05);
}

.cta-button:hover,
.cta-button:focus-visible {
    background: var(--accent);
    color: #03131a;
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.24);
}

.section {
    padding: 5rem 0;
}

.with-divider {
    position: relative;
}

.with-divider::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: min(var(--max-width), calc(100% - 2rem));
    border-top: 1px solid var(--divider);
}

.section h2 {
    margin: 0.7rem 0 0;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.card-grid,
.steps-grid,
.founder-grid {
    display: grid;
    gap: 1.2rem;
    margin-top: 2rem;
}

.three-up,
.steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.step-card,
.project-card,
.portrait-frame,
.links-panel,
.console-link {
    border: 1px solid var(--border);
    background: linear-gradient(
        180deg,
        rgba(13, 17, 23, 0.92),
        rgba(8, 12, 20, 0.96)
    );
    box-shadow: var(--shadow);
}

.info-card,
.step-card {
    padding: 1.4rem;
    transition:
        box-shadow 180ms ease,
        transform 180ms ease,
        border-color 180ms ease;
}

.info-card:hover,
.step-card:hover,
.project-card:hover,
.console-link:hover {
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 212, 255, 0.32);
    transform: translateY(-2px);
}

.info-card h3,
.project-card h3 {
    margin: 0 0 0.65rem;
    font-size: 1.15rem;
}

.info-card p,
.step-card p,
.project-card p,
.footer,
.founder-section p,
.links-subtitle {
    color: var(--muted);
}

.step-number {
    display: inline-flex;
    margin-bottom: 0.85rem;
    color: var(--accent);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
}

.project-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.35rem 1.4rem;
    transition:
        box-shadow 180ms ease,
        transform 180ms ease,
        border-color 180ms ease;
}

.project-link {
    white-space: nowrap;
    color: var(--accent);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.92rem;
}

.founder-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
}

.portrait-card {
    display: flex;
    justify-content: end;
}

.portrait-frame {
    position: relative;
    width: min(100%, 360px);
    min-height: 420px;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            rgba(0, 212, 255, 0.08),
            rgba(123, 97, 255, 0.06)
        ),
        rgba(13, 17, 23, 0.95);
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer {
    padding: 2rem 0 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    text-align: center;
}

.footer a:hover,
.footer a:focus-visible {
    color: var(--accent);
}

.footer-separator {
    color: var(--divider);
}

.links-body {
    min-height: 100svh;
}

.links-page {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.links-panel {
    width: min(100%, 540px);
    padding: 2rem;
    text-align: center;
}

.centered {
    justify-content: center;
}

.links-panel h1 {
    margin: 1rem 0 0.3rem;
    font-size: clamp(2rem, 6vw, 3rem);
}

.links-subtitle {
    margin: 0 0 1.6rem;
}

.links-stack {
    display: grid;
    gap: 0.9rem;
}

.console-link {
    display: block;
    padding: 1rem 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition:
        box-shadow 180ms ease,
        transform 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.console-link:hover,
.console-link:focus-visible {
    color: var(--accent);
}

@keyframes drift {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, 8px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 900px) {
    .three-up,
    .steps-grid,
    .founder-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .portrait-card {
        justify-content: start;
    }

    .hero {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .hero-content {
        padding: 1rem 0 4.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .links-panel {
        padding: 1.5rem;
    }
}
