:root {
    --bg: #0d0f14;
    --fg: #e6e9ef;
    --muted: #8a93a3;
    --accent: #ff4d5e;
    --accent-2: #5b8cff;
    --line: #232936;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #000 url('/img/bg.png') no-repeat top center;
    background-size: 100% auto;
    color: var(--fg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 2rem;
    padding-top: clamp(3rem, 12vh, 8rem);
}

.logo {
    font-size: clamp(3rem, 11vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.logo .err { color: var(--accent); }

.logo .err::after {
    content: ';';
    color: var(--accent-2);
}

.tagline {
    margin-top: -1.25rem;
    color: var(--muted);
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}

.pitch {
    margin-top: -1rem;
    max-width: 30rem;
    color: var(--fg);
    font-size: 1.05rem;
}

.privacy {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: left;
    background: rgba(13, 15, 20, 0.72);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
}

.contact a {
    color: var(--fg);
    text-decoration: none;
    font-size: 1.25rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.contact a:hover { border-color: var(--accent); }

/* --- Contact form --- */
.contact-btn {
    font: inherit;
    font-weight: 600;
    color: var(--fg);
    background: rgba(13, 15, 20, 0.7);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.7rem 1.4rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-btn:hover {
    border-color: var(--accent);
    background: rgba(20, 24, 32, 0.8);
}

.form-wrap {
    width: 100%;
    max-width: 26rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

input,
textarea {
    width: 100%;
    font: inherit;
    color: var(--fg);
    background: rgba(13, 15, 20, 0.7);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

input::placeholder,
textarea::placeholder { color: var(--muted); }

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-2);
    background: rgba(20, 24, 32, 0.8);
}

textarea { resize: vertical; min-height: 7rem; }

button {
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: filter 0.2s ease;
}

button:hover { filter: brightness(1.1); }

button:disabled {
    background: var(--line);
    color: var(--muted);
    cursor: not-allowed;
    filter: none;
}

/* Honeypot — keep in the DOM but out of sight for humans. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.notice {
    margin-bottom: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.notice.ok {
    color: #c8f7d4;
    background: rgba(40, 180, 99, 0.15);
    border: 1px solid rgba(40, 180, 99, 0.4);
}

.notice.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.notice.err-msg {
    color: #ffd1d6;
    background: rgba(255, 77, 94, 0.12);
    border: 1px solid rgba(255, 77, 94, 0.4);
}

footer {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
}

/* --- Mobile / narrow screens --- */
@media (max-width: 600px) {
    /* Fill the viewport so the image stays present down the page, not a thin
       strip stuck at the top. Anchored top so the focal point stays visible. */
    body {
        background-size: cover;
        background-position: top center;
    }

    main {
        gap: 1.5rem;
        padding-top: 3rem;
    }
}
