@font-face {
    font-family: "Titillium Web";
    src: url("assets/fonts/TitilliumWeb-400.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Titillium Web";
    src: url("assets/fonts/TitilliumWeb-600.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Titillium Web";
    src: url("assets/fonts/TitilliumWeb-700.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --background: #202932;
    --surface: #28333d;
    --surface-strong: #303d49;
    --border: rgba(206, 212, 218, 0.2);
    --text: #f1f3f5;
    --muted: #b9c3cc;
    --brand: #5fa8e8;
    --brand-strong: #348bd5;
    --signal: #ff5b24;
    --error: #ff9a84;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--background);
}

body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 82% 42%, rgba(95, 168, 232, 0.14), transparent 31rem),
        radial-gradient(circle at 10% 15%, rgba(52, 139, 213, 0.09), transparent 28rem),
        var(--background);
    font-family: "Titillium Web", "Segoe UI", Arial, sans-serif;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.page-shell {
    display: grid;
    grid-template-columns: minmax(42rem, 1.18fr) minmax(27rem, 0.82fr);
    min-height: 100vh;
    min-height: 100svh;
}

.message-panel {
    display: flex;
    position: relative;
    z-index: 2;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 6rem);
}

.brand {
    display: block;
    width: min(28rem, 78vw);
    margin-bottom: clamp(2.5rem, 7vh, 5rem);
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.notice {
    position: relative;
    max-width: 46rem;
    padding-left: clamp(1.25rem, 2.5vw, 2rem);
    border-left: 4px solid var(--brand);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
    color: var(--brand);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 1rem rgba(255, 91, 36, 0.7);
    content: "";
}

h1 {
    max-width: none;
    margin: 0;
    font-size: clamp(2.55rem, 3.35vw, 3.9rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 0.98;
    white-space: nowrap;
}

.lead {
    max-width: 39rem;
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: clamp(1.08rem, 1.55vw, 1.3rem);
    line-height: 1.45;
}

.route-form {
    max-width: 43rem;
    margin-top: clamp(2rem, 5vh, 3rem);
}

.route-form label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
}

.domain-field {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) auto auto;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0.45rem;
    background: var(--surface);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.16);
}

.domain-field:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(95, 168, 232, 0.16);
}

.domain-field input {
    min-width: 0;
    padding: 0.9rem 0 0.9rem 1rem;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font: inherit;
    font-size: 1.15rem;
}

.domain-field input::placeholder {
    color: #8796a3;
}

.domain-field input[aria-invalid="true"] {
    background: rgba(255, 91, 36, 0.08);
}

.domain-field > span {
    align-self: center;
    padding-right: 1rem;
    color: var(--muted);
    font-size: 1.15rem;
    white-space: nowrap;
}

.domain-field button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.55rem;
    padding: 0.75rem 1.25rem;
    border: 0;
    color: #07131d;
    background: var(--brand);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.domain-field button:hover {
    background: #79b8ee;
}

.domain-field button:active {
    transform: translateY(1px);
}

.domain-field button:focus-visible {
    outline: 3px solid var(--text);
    outline-offset: -5px;
}

.form-hint,
.form-error {
    min-height: 1.4rem;
    margin: 0.45rem 0 0;
    font-size: 0.95rem;
}

.form-hint {
    color: #8f9da9;
}

.form-error {
    color: var(--error);
}

.support-note {
    max-width: 43rem;
    margin: clamp(2.25rem, 6vh, 4rem) 0 0;
    color: #8f9da9;
    font-size: 1rem;
}

.guide-panel {
    display: flex;
    position: relative;
    align-items: center;
    /*justify-content: center;*/
    min-height: 100%;
    overflow: hidden;
}

.signal-glow {
    position: absolute;
    top: 9%;
    right: 5%;
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    background: rgba(255, 91, 36, 0.12);
    filter: blur(3rem);
}

.controller {
    position: relative;
    z-index: 1;
    width: min(38rem, 65%);
    max-height: 72vh;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 2rem 2rem rgba(0, 0, 0, 0.3));
}

.direction-label {
    position: absolute;
    z-index: 2;
    top: 41%;
    margin: 0;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.25rem;
    color: var(--text);
    background: rgba(32, 41, 50, 0.82);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 600;
    backdrop-filter: blur(0.5rem);
}

.direction-left {
    left: 2%;
    transform: rotate(-3deg);
}

.direction-right {
    right: 2%;
    transform: rotate(3deg);
}

@media (max-width: 1080px) {
    .page-shell {
        grid-template-columns: 1fr;
    }

    .message-panel {
        min-height: 65svh;
        padding-bottom: 2rem;
    }

    .brand {
        margin-bottom: 2.5rem;
    }

    .guide-panel {
        min-height: 35rem;
    }

    .controller {
        width: min(30rem, 62%);
        max-height: 30rem;
    }
}

@media (max-width: 680px) {
    .message-panel {
        padding: 1.5rem 1.15rem 1.25rem;
    }

    .brand {
        width: min(22rem, 88vw);
        margin-bottom: 2rem;
    }

    .notice {
        padding-left: 1rem;
    }

    h1 {
        font-size: clamp(2.45rem, 13vw, 3.8rem);
        white-space: normal;
    }

    .domain-field {
        grid-template-columns: minmax(6rem, 1fr) auto;
    }

    .domain-field button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .guide-panel {
        min-height: 24rem;
    }

    .controller {
        width: 22rem;
        max-width: 82%;
        max-height: 22rem;
    }

    .direction-label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
