@font-face {
    font-family: 'VT323';
    src: url('VT323-Regular.ttf');
}

:root {
    --steel-dark: #16181d;
    --steel: #2a2f38;
    --steel-light: #8a919c;
    --ultron-red: #ff2a2a;
    --ultron-red-dim: #7a0f0f;
    --text: #e6e6e6;

    /* One spacing scale for the whole page. Every gap, margin and padding uses these. */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 40px;
    --space-6: 64px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--ultron-red-dim) var(--steel-dark);
}

body {
    margin: 0;
    background: var(--steel-dark);
    color: var(--text);
    font-family: 'VT323', monospace;
    font-size: 22px;
    line-height: 1.3;
}

/* Browsers give headings, paragraphs and lists their own uneven margins.
   Remove them, and space things explicitly with the scale above. */
h1, h2, h3, p, ol {
    margin: 0;
}

a {
    color: var(--ultron-red);
}

/* ---------- Navigation ---------- */

.nav {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: var(--steel);
    border-bottom: 2px solid var(--ultron-red-dim);
    z-index: 10;
}

.logo {
    color: var(--ultron-red);
    font-size: 30px;
    text-decoration: none;
    text-shadow: 0 0 8px var(--ultron-red-dim);
}

.nav nav {
    display: flex;
    gap: var(--space-4);
}

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

.nav nav a:hover {
    color: var(--ultron-red);
}

/* ---------- Sections and headings ---------- */

section {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-4);
}

h1, h2 {
    color: var(--ultron-red);
    text-shadow: 0 0 10px var(--ultron-red-dim);
    font-weight: normal;
}

h1 {
    font-size: 64px;
    line-height: 1;
}

h2 {
    font-size: 44px;
    border-bottom: 2px solid var(--steel);
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-5);
}

h3 {
    color: var(--ultron-red);
    font-size: 30px;
    font-weight: normal;
}

.small {
    font-size: 18px;
    color: var(--steel-light);
}

/* ---------- Buttons ---------- */

.button {
    display: inline-block;
    background: var(--ultron-red);
    color: var(--steel-dark);
    border: 2px solid var(--ultron-red);
    padding: var(--space-2) var(--space-4);
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 0 14px var(--ultron-red-dim), inset -3px -3px 0 rgba(0, 0, 0, 0.3);
}

.button:hover {
    background: transparent;
    color: var(--ultron-red);
}

/* ---------- Hero ---------- */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    min-height: 70vh;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
}

.pitch {
    font-size: 28px;
    color: var(--steel-light);
}

.hero-pet {
    flex-shrink: 0;
}

#hero-ultron {
    display: block;
    width: 210px;
    height: 210px;
    margin: 0 auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 6px rgba(255, 42, 42, 0.5));
    animation: hover-bob 2.4s ease-in-out infinite;
}

.bubble {
    position: relative;
    width: 260px;
    min-height: 70px;
    margin: 0 auto var(--space-4);
    padding: var(--space-2) var(--space-3);
    background: var(--steel-dark);
    border: 2px solid var(--ultron-red);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--ultron-red-dim);
    text-align: left;
}

.bubble::before,
.bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-color: transparent;
}

.bubble::before {
    bottom: -12px;
    border-width: 12px 10px 0;
    border-top-color: var(--ultron-red);
}

.bubble::after {
    bottom: -8px;
    border-width: 9px 7.5px 0;
    border-top-color: var(--steel-dark);
}

@keyframes hover-bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ---------- Features ----------
   Each feature is one framed stage with plain text under it.
   No card around the stage, so there is no box inside a box. */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-5) var(--space-4);
}

.feature {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.feature-art {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-2);
    background: var(--steel);
    border: 2px solid var(--steel-light);
    border-radius: 4px;
    overflow: hidden;
}

.feature:hover .feature-art {
    border-color: var(--ultron-red);
    box-shadow: 0 0 10px var(--ultron-red-dim);
}

.feature p {
    color: var(--steel-light);
}

.sprite {
    width: 90px;
    height: 90px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 4px rgba(255, 42, 42, 0.5));
    animation: hover-bob 2.4s ease-in-out infinite;
}

.fly-path {
    justify-content: flex-start;
    padding-left: var(--space-3);
}

.sprite.flying {
    animation: fly-across 6s ease-in-out infinite alternate;
}

@keyframes fly-across {
    from {
        transform: translate(0, 10px);
    }
    50% {
        transform: translate(80px, -15px);
    }
    to {
        transform: translate(200px, 5px);
    }
}

/* ---------- Download ---------- */

.downloads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--steel);
    border: 2px solid var(--steel-light);
    border-radius: 4px;
    text-align: center;
}

.download-card:target,
.download-card.yours {
    border-color: var(--ultron-red);
    box-shadow: 0 0 14px var(--ultron-red-dim);
}

.download-card h3 {
    color: var(--text);
    font-size: 32px;
}

.download-card .button {
    font-size: 24px;
}

.note {
    font-size: 18px;
    color: var(--steel-light);
}

/* ---------- Guide ---------- */

.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.steps li {
    counter-increment: step;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-height: 44px;
    padding-left: var(--space-6);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 30px;
    color: var(--steel-dark);
    background: var(--ultron-red);
    box-shadow: 0 0 10px var(--ultron-red-dim);
}

.steps h3 {
    line-height: 44px;
}

/* ---------- Make your own character ---------- */

.intro {
    color: var(--steel-light);
    margin-bottom: var(--space-5);
}

.tree {
    margin: var(--space-2) 0;
    padding: var(--space-3) var(--space-4);
    background: var(--steel);
    border-left: 4px solid var(--ultron-red-dim);
    overflow-x: auto;
    font-family: inherit;
    font-size: 20px;
    line-height: 1.2;
}

.tree code {
    padding: 0;
}

code {
    font-family: inherit;
    background: var(--steel);
    padding: 0 var(--space-2);
}

/* ---------- FAQ ---------- */

details {
    background: var(--steel);
    border-left: 4px solid var(--ultron-red-dim);
    padding: var(--space-3) var(--space-4);
}

details + details {
    margin-top: var(--space-3);
}

details[open] {
    border-left-color: var(--ultron-red);
}

summary {
    cursor: pointer;
    font-size: 26px;
}

summary:hover {
    color: var(--ultron-red);
}

details p {
    margin-top: var(--space-2);
    color: var(--steel-light);
}

/* ---------- Footer ---------- */

footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5) var(--space-4);
    text-align: center;
    color: var(--steel-light);
    border-top: 2px solid var(--steel);
}

/* ---------- Phones ---------- */

@media (max-width: 600px) {
    .nav {
        flex-direction: column;
        gap: var(--space-2);
    }

    .nav nav {
        gap: var(--space-3);
    }

    section {
        padding: var(--space-5) var(--space-3);
    }

    h1 {
        font-size: 44px;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        min-height: auto;
    }

    .hero-text {
        align-items: center;
    }
}
