:root {
    --bg: #0c0f14;
    --bg-elev: #121722;
    --text: #e8ecf1;
    --muted: #9aa3b2;
    --accent: #5eead4;
    --accent-dim: #2dd4bf33;
    --danger: #f87171;
    --ok: #4ade80;
    --border: #1f2937;
    --radius: 12px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    font-family: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(1200px 600px at 10% -10%, #1a2332 0%, transparent 55%),
        radial-gradient(900px 500px at 90% 0%, #0f172a 0%, transparent 50%),
        var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: var(--accent);
}

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(12, 15, 20, 0.85);
    border-bottom: 1px solid var(--border);
}

.top__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.logo {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--text);
}

.subs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.subs__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.subs__btn:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.subs__btn:active {
    transform: translateY(1px);
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(70vh, 560px);
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 15, 20, 0.15) 0%, rgba(12, 15, 20, 0.75) 55%, rgba(12, 15, 20, 0.95) 100%);
    display: flex;
    align-items: flex-end;
}

.hero__content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem 2.5rem;
    width: 100%;
}

.hero__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.hero__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
}

.hero__lead {
    margin: 0;
    max-width: 36rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.panel {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow);
}

@media (min-width: 640px) {
    .panel {
        padding: 2rem 2rem;
    }
}

.panel__title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.panel__text {
    margin: 0 0 1.5rem;
    color: var(--muted);
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
}

.alert--ok {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #bbf7d0;
}

.alert--err {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.form {
    display: grid;
    gap: 1.1rem;
    max-width: 56rem;
}

@media (min-width: 768px) {
    .form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .field--wide {
        grid-column: 1 / -1;
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.field__label {
    font-size: 0.9rem;
    color: var(--muted);
}

.field__opt {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.82rem;
}

.field__input-wrap {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
    width: 100%;
}

.field__input--grow {
    flex: 1;
    min-width: 0;
    width: auto;
}

.field__input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #0c0f14;
    color: var(--text);
    font: inherit;
}

.pwd-peek {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    min-height: 2.65rem;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.pwd-peek:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pwd-peek:active {
    background: var(--accent-dim);
}

.pwd-peek__icon {
    display: block;
    pointer-events: none;
}

.field__textarea {
    min-height: 5.5rem;
    resize: vertical;
    line-height: 1.45;
}

.field__input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 0;
    border-color: transparent;
}

.field__input--ok {
    border-color: rgba(74, 222, 128, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.25);
}

.field__input--ok:focus {
    outline-color: rgba(74, 222, 128, 0.75);
}

.field__input--bad {
    border-color: rgba(248, 113, 113, 0.65) !important;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.3);
}

.field__input--bad:focus {
    outline-color: rgba(248, 113, 113, 0.85);
}

.hint {
    margin: -0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.btn {
    margin-top: 0.15rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #2dd4bf, #14b8a6);
    color: #042f2e;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s;
}

.btn:hover {
    filter: brightness(1.05);
}

.btn:active {
    transform: translateY(1px);
}

.foot {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem 2.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.foot p {
    margin: 0;
}
