/* ============================================================
   SUEDETRADES — publishing wing landing page
   Aesthetic: black / blue (#0066FF) / white · sleek, modern, minimal
   ============================================================ */

:root {
    --bg:            #000000;
    --line:          rgba(255, 255, 255, 0.10);
    --line-soft:     rgba(255, 255, 255, 0.06);
    --white:         #ffffff;
    --muted:         rgba(255, 255, 255, 0.54);
    --faint:         rgba(255, 255, 255, 0.32);
    --ghost:         rgba(255, 255, 255, 0.18);
    --blue:          #0066ff;
    --blue-bright:   #3b82f6;
    --blue-glow:     rgba(0, 102, 255, 0.40);
    --ok:            #22d39a;
    --warn:          #ffb020;

    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --pad: clamp(14px, 2.2vw, 26px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-display);
    min-height: 100svh;
    padding: var(--pad);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* faint blue atmosphere, off to the corners */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 50% at 12% 18%, rgba(0, 102, 255, 0.06) 0%, transparent 60%),
        radial-gradient(55% 45% at 92% 90%, rgba(0, 102, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* ---- Frame: the instrument panel ---- */
.frame {
    border: 1px solid var(--line);
    min-height: calc(100svh - 2 * var(--pad));
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: minmax(0, 1fr); /* clamp width so the marquee can't blow out the layout */
    position: relative;
}

/* ---- Title bar ---- */
.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(14px, 1.8vw, 20px) clamp(16px, 2.4vw, 30px);
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--font-mono);
}

.wordmark {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--white);
}

.wordmark__dot { color: var(--blue); margin-left: 0.15em; }

.bar__handle {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.bar__handle:hover,
.bar__handle:focus-visible { color: var(--blue-bright); }

/* ---- Stage: the message ---- */
.stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(28px, 6vw, 76px) clamp(20px, 5vw, 80px);
    gap: clamp(18px, 2.4vw, 26px);
}

.headline {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.9rem, 4.2vw, 3.1rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: min(44ch, 100%);
    overflow-wrap: break-word;
    color: var(--white);
}

/* ---- Signup ---- */
.signup { margin-top: clamp(8px, 1vw, 14px); max-width: 30rem; }

.signup__row {
    display: flex;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.signup__row:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 1px var(--blue), 0 0 28px -6px var(--blue-glow);
}

.signup__input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    padding: 1rem 1.1rem;
}

.signup__input::placeholder { color: var(--ghost); }

.signup__btn {
    flex: none;
    background: var(--blue);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 0 1.6rem;
    transition: background 0.2s ease, transform 0.05s ease;
}

.signup__btn:hover { background: var(--blue-bright); }
.signup__btn:active { transform: translateY(1px); }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.signup__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.signup__note {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--faint);
    margin-top: 0.85rem;
    min-height: 1em;
    transition: color 0.2s ease;
}

.signup__note--ok   { color: var(--ok); }
.signup__note--warn { color: var(--warn); }

.signup.is-done .signup__row { opacity: 0.45; pointer-events: none; }

/* ---- Footer: legal ---- */
.foot { border-top: 1px solid var(--line-soft); min-width: 0; }

.legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(12px, 1.6vw, 18px) clamp(16px, 2.4vw, 30px);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}

/* ---- Entrance ---- */
.headline, .signup {
    animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.headline { animation-delay: 0.05s; }
.signup   { animation-delay: 0.16s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 560px) {
    .bar__handle { display: none; }
    .signup__row { flex-direction: column; }
    .signup__input { border-bottom: 1px solid var(--line); }
    .signup__btn { padding: 0.85rem 1.6rem; }
    .legal { flex-direction: column; align-items: flex-start; gap: 0.45rem; }
    .headline { font-size: clamp(1.6rem, 6.4vw, 2.1rem); }
    .headline br { display: none; }
}

/* ---- Accessibility ---- */
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .headline, .signup { animation: none !important; opacity: 1; transform: none; }
}
