:root {
    color-scheme: light;
    --blue: #1769e0;
    --blue-dark: #0d428f;
    --cyan: #dff6ff;
    --ink: #102033;
    --muted: #5f7188;
    --line: #d9e6f5;
    --paper: #f7fbff;
    --white: #ffffff;
    --green: #15a06a;
    --amber: #fff1c9;
    --red: #a83f39;
    --shadow: 0 24px 70px rgba(16, 32, 51, .14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper);
}

button,
input {
    font: inherit;
}

.site-topbar {
    position: fixed;
    z-index: 10;
    inset: 0 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(20px, 5vw, 76px);
    color: var(--white);
    background: linear-gradient(180deg, rgba(7, 20, 36, .72), rgba(7, 20, 36, .08));
}

.brand,
.site-topbar nav {
    display: inline-flex;
    align-items: center;
}

.brand {
    gap: 11px;
    color: inherit;
    font-weight: 900;
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--blue);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.site-topbar nav {
    gap: clamp(12px, 3vw, 26px);
    color: rgba(255, 255, 255, .88);
    font-weight: 750;
    font-size: .93rem;
}

.site-topbar a {
    color: inherit;
    text-decoration: none;
}

.landing-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        linear-gradient(90deg, rgba(6, 20, 36, .94) 0%, rgba(6, 20, 36, .78) 43%, rgba(6, 20, 36, .18) 100%),
        url("../../images/surveydxf/feature.jpg") center / cover no-repeat;
}

.hero {
    width: min(1160px, 100%);
    min-height: min(680px, calc(100vh - 56px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 42px;
}

.hero-copy {
    color: var(--white);
}

.eyebrow {
    margin: 0 0 14px;
    color: #cce6ff;
    font-size: .86rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(52px, 8vw, 96px);
    line-height: 1;
    letter-spacing: 0;
}

.summary {
    max-width: 620px;
    margin: 22px 0 0;
    color: #e7eeeb;
    font-size: 18px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.primary-link,
.secondary-link,
button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 9px 13px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
}

.primary-link,
button {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 16px 34px rgba(23, 105, 224, .28);
}

.secondary-link {
    border-color: rgba(255, 255, 255, .34);
    color: var(--white);
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
}

.auth-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.auth-panel h2 {
    margin: 0 0 8px;
    font-size: 22px;
    letter-spacing: 0;
}

#authStatus {
    min-height: 42px;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.45;
}

#authStatus.error {
    color: var(--red);
}

#authStatus.success {
    color: var(--green);
}

label {
    display: grid;
    gap: 5px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 9px 10px;
    color: var(--ink);
    background: var(--paper);
}

input:focus {
    border-color: var(--blue);
    outline: none;
    background: var(--white);
}

.code-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: end;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .landing-shell {
        place-items: start center;
        padding: 18px;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 26px;
    }

    h1 {
        font-size: 38px;
    }

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