@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;600;700;800&display=swap");

:root {
    --bg: #f8f7f3;
    --paper: #ffffff;
    --ink: #111111;
    --muted: #2f2f2f;
    --line: #1a1a1a;
    --line-soft: #c6c6c6;
    --shadow: 5px 5px 0 #1a1a1a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #fdfcf8 0%, #f3f2ed 100%);
    color: var(--ink);
    font-family: "Press Start 2P", "Courier New", monospace;
    padding: 30px 22px 46px;
}

.page {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 54px;
    align-items: start;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.logo {
    width: clamp(180px, 24vw, 330px);
    image-rendering: pixelated;
    display: block;
}

.pixel-title {
    margin: 18px 0 0;
    max-width: 520px;
    font-family: "Press Start 2P", "Courier New", monospace;
    font-size: clamp(26px, 4.7vw, 56px);
    line-height: 1.17;
    letter-spacing: -0.03em;
}

.lead {
    max-width: 560px;
    margin: 6px 0 0;
    font-size: clamp(13px, 1.3vw, 22px);
    line-height: 2.05;
    color: var(--muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 2px;
}

.button-group {
    position: relative;
    display: inline-flex;
}

.support-donut {
    position: absolute;
    top: -28px;
    left: 14px;
    width: 118px;
    image-rendering: pixelated;
    pointer-events: none;
    z-index: 2;
}

.pixel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 66px;
    padding: 0 24px;
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    border: 2px solid var(--line);
    box-shadow: var(--shadow);
    font-family: "Press Start 2P", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.4;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.pixel-button:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 #1a1a1a;
}

.bot-note {
    margin: 2px 0 0;
    font-size: clamp(14px, 1.2vw, 22px);
    color: #353535;
    font-weight: 700;
}

.path-note {
    margin: 8px 0 0;
    max-width: 560px;
    color: #5a5a5a;
    font-size: clamp(11px, 1vw, 14px);
    line-height: 1.9;
    font-weight: 700;
}

.aside {
    position: relative;
    min-height: 540px;
    padding-top: 190px;
}

.quick-start {
    max-width: 380px;
    margin-left: auto;
    padding-right: 190px;
}

.quick-start h2 {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.18;
    font-weight: 900;
}

.quick-start p {
    margin: 20px 0 0;
    max-width: 320px;
    font-size: clamp(16px, 1.55vw, 24px);
    line-height: 1.75;
    color: var(--muted);
    font-weight: 600;
}

.hero-character {
    position: absolute;
    right: 10px;
    bottom: 24px;
    width: min(210px, 38vw);
    image-rendering: pixelated;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 42px;
}

.feature {
    position: relative;
    min-height: 188px;
    padding: 24px 20px;
    background: var(--paper);
    border: 2px solid var(--line-soft);
    border-radius: 18px;
}

.feature h3 {
    margin: 0;
    font-size: clamp(20px, 1.8vw, 30px);
    line-height: 1.15;
    font-weight: 900;
}

.feature p {
    max-width: 230px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: clamp(12px, 1.05vw, 17px);
    line-height: 1.85;
    font-weight: 600;
}

.feature img {
    position: absolute;
    image-rendering: pixelated;
}

.messages {
    display: grid;
    gap: 12px;
    margin: 0 0 28px;
}

.message {
    padding: 16px 18px;
    background: #ffffff;
    border: 2px solid var(--line);
    box-shadow: var(--shadow);
    font-size: 12px;
    line-height: 1.85;
}

.message.error {
    background: #fff0eb;
}

.message.success {
    background: #f3ffe9;
}

.auth-panel {
    margin-top: 12px;
    max-width: 560px;
    padding: 20px 22px;
    background: #ffffff;
    border: 2px solid var(--line);
    box-shadow: var(--shadow);
}

.auth-panel h3 {
    margin: 0;
    font-size: clamp(18px, 1.8vw, 24px);
    line-height: 1.5;
}

.auth-panel p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: clamp(12px, 1vw, 15px);
    line-height: 1.9;
    font-weight: 600;
}

.signup-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.signup-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    font-weight: 700;
}

.signup-field input {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border: 2px solid var(--line);
    background: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.signup-submit {
    width: 100%;
    cursor: pointer;
}

.feature-left img {
    right: 12px;
    bottom: -8px;
    width: 132px;
}

.feature-middle img {
    top: -40px;
    left: 50%;
    width: 92px;
    transform: translateX(-50%);
}

.feature-right img {
    right: -2px;
    bottom: -10px;
    width: 128px;
}

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

    .aside {
        min-height: 340px;
        padding-top: 0;
    }

    .quick-start {
        margin-left: 0;
        padding-right: 150px;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    body {
        padding: 18px 14px 28px;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button-group {
        width: 100%;
    }

    .pixel-button {
        width: 100%;
        font-size: 12px;
        min-height: 58px;
    }

    .support-donut {
        width: 92px;
        top: -18px;
        left: 12px;
    }

    .quick-start {
        padding-right: 120px;
    }

    .hero-character {
        width: 92px;
        right: 12px;
        bottom: 12px;
    }

    .feature {
        min-height: 172px;
    }

    .feature-left img {
        width: 78px;
        right: 10px;
        bottom: 4px;
    }

    .feature-middle img {
        width: 58px;
        top: -10px;
    }

    .feature-right img {
        width: 76px;
        right: 8px;
        bottom: 2px;
    }

}
