:root {
    color-scheme: dark;
    --bg: #09111a;
    --panel: rgba(10, 21, 35, 0.9);
    --text: #eff7ff;
    --muted: #99b2c8;
    --accent: #70f0ff;
    --accent-strong: #1b9fca;
    --line: rgba(126, 170, 204, 0.22);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    padding: 28px;
    background:
        radial-gradient(circle at 20% 18%, rgba(70, 167, 255, 0.22), transparent 24%),
        radial-gradient(circle at 82% 14%, rgba(53, 219, 198, 0.18), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(13, 74, 127, 0.3), transparent 32%),
        linear-gradient(180deg, #08111b, #050b12 58%, #07131f);
    color: var(--text);
    font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

.landing-shell {
    min-height: calc(100vh - 56px);
    display: grid;
    place-items: center;
}

.hero-panel {
    width: min(100%, 720px);
    padding: clamp(20px, 4vw, 36px) 0;
}

.hero-copy {
    width: fit-content;
    margin-inline: auto;
    margin-bottom: 42px;
    text-align: left;
}

.hero-subtitle {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
}

.brand {
    margin: 0;
    font-size: clamp(72px, 16vw, 148px);
    line-height: 0.9;
    letter-spacing: -0.06em;
    font-weight: 800;
    text-shadow: 0 0 28px rgba(112, 240, 255, 0.12);
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 14px;
}

input {
    width: 100%;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid rgba(101, 142, 175, 0.38);
    background: rgba(7, 16, 27, 0.92);
    color: var(--text);
}

input:focus,
button:focus {
    outline: 2px solid rgba(112, 240, 255, 0.42);
    outline-offset: 2px;
}

button {
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 700;
    color: #04111a;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.mode-grid,
.sub-actions {
    display: grid;
    gap: 12px;
}

.mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-card {
    display: grid;
    gap: 16px;
    padding: 6px 0 0;
    width: min(100%, 420px);
    margin: 0 auto;
}

.flow-card label {
    margin-bottom: 4px;
    font-size: 18px;
    color: var(--text);
}

.secondary {
    color: var(--text);
    background: rgba(20, 37, 56, 0.94);
    border: 1px solid rgba(122, 159, 190, 0.24);
}

.ghost {
    color: var(--muted);
    background: transparent;
    border: 1px solid rgba(122, 159, 190, 0.18);
}

.developer-block {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 20;
    display: grid;
    justify-items: end;
    gap: 12px;
}

.developer-toggle {
    width: auto;
    min-width: 208px;
    min-height: 48px;
    padding-inline: 18px;
    backdrop-filter: blur(10px);
}

.developer-panel {
    width: min(540px, calc(100vw - 32px));
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(122, 159, 190, 0.2);
    background: rgba(6, 14, 23, 0.9);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.developer-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 16px;
    padding: 10px 0;
    color: var(--muted);
}

.developer-row + .developer-row {
    border-top: 1px solid rgba(122, 159, 190, 0.12);
}

.developer-row strong {
    color: var(--text);
    text-align: left;
    overflow-wrap: anywhere;
}

.developer-hint {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.hidden { display: none !important; }

@media (max-width: 680px) {
    body {
        padding: 16px;
    }

    .mode-grid {
        grid-template-columns: 1fr;
    }

    .developer-block {
        top: 16px;
        right: 16px;
        left: 16px;
        justify-items: stretch;
    }

    .developer-toggle {
        width: 100%;
    }

    .developer-row {
        grid-template-columns: 1fr;
    }

    .developer-row strong {
        text-align: left;
    }
}
