:root {
    --gate-bg: #06101b;
    --gate-card: rgba(8, 18, 31, 0.84);
    --gate-card-strong: rgba(10, 22, 38, 0.92);
    --gate-card-border: rgba(255, 255, 255, 0.11);
    --gate-text: #f8fafc;
    --gate-muted: #b9c5d4;
    --gate-primary: #ff8a1f;
    --gate-primary-hover: #ff7510;
    --gate-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
    --gate-success-bg: rgba(36, 171, 109, 0.16);
    --gate-success-border: rgba(36, 171, 109, 0.34);
    --gate-danger-bg: rgba(194, 53, 78, 0.16);
    --gate-danger-border: rgba(194, 53, 78, 0.34);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--gate-text);
    background: var(--gate-bg);
}

body {
    min-height: 100vh;
}

a {
    color: #ffffff;
}

.gate-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 138, 31, 0.26), transparent 28%),
        linear-gradient(125deg, rgba(6, 16, 27, 0.94) 0%, rgba(6, 16, 27, 0.66) 42%, rgba(6, 16, 27, 0.94) 100%),
        url("/server-rack-4k.png") center center / cover no-repeat;
}

.gate-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 12, 21, 0.15), rgba(4, 12, 21, 0.38)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 108px);
    pointer-events: none;
}

.gate-layout {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: min(100% - 32px, 880px);
    margin: 0 auto;
    padding: 42px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    text-align: center;
}

.gate-hero {
    width: 100%;
    display: grid;
    gap: 18px;
    justify-items: center;
}

.gate-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 26px;
    background: rgba(7, 16, 29, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.gate-brand__eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    font-weight: 700;
    color: #ffd2aa;
}

.gate-brand img {
    width: min(360px, 72vw);
    display: block;
}

.gate-copy {
    max-width: 760px;
}

.gate-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    font-weight: 800;
    color: #ffd5ae;
    background: rgba(255, 138, 31, 0.15);
    border: 1px solid rgba(255, 138, 31, 0.36);
}

.gate-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.35rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.gate-lead {
    margin: 0 auto;
    max-width: 710px;
    color: var(--gate-muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.gate-card {
    width: min(100%, 720px);
    padding: 30px;
    border-radius: 32px;
    background: linear-gradient(180deg, var(--gate-card) 0%, var(--gate-card-strong) 100%);
    border: 1px solid var(--gate-card-border);
    backdrop-filter: blur(16px);
    box-shadow: var(--gate-shadow);
    text-align: left;
}

.gate-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.gate-card__eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 0.76rem;
    letter-spacing: 0.24em;
    font-weight: 800;
    color: #ffd6b0;
}

.gate-card h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
}

.gate-card__status {
    flex-shrink: 0;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    color: #fff3e7;
    background: rgba(255, 138, 31, 0.17);
    border: 1px solid rgba(255, 138, 31, 0.32);
}

.gate-card__text,
.gate-note {
    color: var(--gate-muted);
    line-height: 1.72;
}

.gate-card__text {
    margin: 14px 0 0;
}

.gate-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.gate-form label {
    display: grid;
    gap: 8px;
}

.gate-form label span {
    font-size: 0.92rem;
    font-weight: 700;
    color: #d8e2ee;
}

.gate-form input {
    width: 100%;
    padding: 17px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gate-form input:focus {
    border-color: rgba(255, 138, 31, 0.65);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.16);
}

.gate-form button {
    margin-top: 6px;
    border: 0;
    border-radius: 18px;
    padding: 17px 20px;
    font-size: 1rem;
    font-weight: 800;
    color: #07111d;
    cursor: pointer;
    background: linear-gradient(135deg, #ffa246 0%, var(--gate-primary) 48%, var(--gate-primary-hover) 100%);
    box-shadow: 0 18px 42px rgba(255, 138, 31, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.gate-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(255, 138, 31, 0.36);
    filter: brightness(1.03);
}

.gate-alert {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.gate-alert--success {
    background: var(--gate-success-bg);
    border: 1px solid var(--gate-success-border);
}

.gate-alert--error {
    background: var(--gate-danger-bg);
    border: 1px solid var(--gate-danger-border);
}

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

.gate-feature {
    padding: 16px 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.gate-feature strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.98rem;
}

.gate-feature span {
    display: block;
    color: var(--gate-muted);
    font-size: 0.93rem;
    line-height: 1.62;
}

.gate-note {
    margin: 18px 0 0;
    font-size: 0.93rem;
}

@media (max-width: 860px) {
    .gate-card__header {
        flex-direction: column;
        align-items: stretch;
    }

    .gate-card__status {
        align-self: flex-start;
    }

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

@media (max-width: 640px) {
    .gate-layout {
        width: min(100% - 20px, 100%);
        padding: 24px 0;
        gap: 18px;
    }

    .gate-copy h1 {
        font-size: 2.2rem;
    }

    .gate-lead {
        font-size: 0.98rem;
    }

    .gate-card {
        padding: 22px;
        border-radius: 26px;
    }
}

.console-shell {
    min-height: 100vh;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 138, 31, 0.14), transparent 24%),
        linear-gradient(180deg, #07111d 0%, #0a1626 100%);
}

.console-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-radius: 24px;
    background: rgba(8, 18, 31, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.console-topbar__brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.console-topbar__brand img {
    width: 150px;
    display: block;
}

.console-topbar__brand strong {
    display: block;
    font-size: 1.2rem;
}

.console-topbar__eyebrow,
.console-stage__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: #ffcf9f;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    font-weight: 800;
}

.console-topbar__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.console-topbar__pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 138, 31, 0.12);
    border: 1px solid rgba(255, 138, 31, 0.3);
    color: #fff4e8;
    font-size: 0.9rem;
    font-weight: 700;
}

.console-topbar__link,
.console-stage__mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.console-stage {
    margin-top: 18px;
    display: grid;
    gap: 18px;
}

.console-stage__info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 24px;
    background: rgba(8, 18, 31, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.console-stage__info h1 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.05;
}

.console-stage__info p {
    margin: 0;
    max-width: 880px;
    color: var(--gate-muted);
    line-height: 1.7;
}

.console-frame {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #02060d;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.35);
}

.console-frame iframe {
    display: block;
    width: 100%;
    min-height: calc(100vh - 230px);
    border: 0;
    background: #02060d;
}

@media (max-width: 960px) {
    .console-topbar,
    .console-stage__info {
        flex-direction: column;
        align-items: stretch;
    }

    .console-topbar__meta {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .console-shell {
        padding: 12px;
    }

    .console-topbar {
        padding: 16px;
        border-radius: 20px;
    }

    .console-topbar__brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .console-topbar__brand img {
        width: 128px;
    }

    .console-stage__info {
        padding: 18px;
        border-radius: 20px;
    }

    .console-frame {
        border-radius: 20px;
    }

    .console-frame iframe {
        min-height: calc(100vh - 290px);
    }
}
