:root {
    color-scheme: dark;
    --bg: #090d12;
    --bg-soft: #101821;
    --surface: #151e28;
    --surface-2: #1c2733;
    --field: #f7fafc;
    --text: #eef3f8;
    --field-text: #101820;
    --muted: #aab6c4;
    --line: #2b3948;
    --accent: #f15a24;
    --accent-dark: #c74316;
    --focus: rgba(241, 90, 36, 0.38);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(241, 90, 36, 0.18), transparent 34rem),
        linear-gradient(180deg, #0c1118 0%, var(--bg) 44%, #070a0f 100%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.shell {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 64px;
}

.intro {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 16px 0 28px;
}

.intro.compact {
    padding-bottom: 8px;
}

.brand-logo {
    width: 112px;
    height: 112px;
    object-fit: contain;
    border-radius: 8px;
    background: #000;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    max-width: 860px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.02;
}

.intro p:last-child,
.success p {
    max-width: 820px;
    color: var(--muted);
    font-size: 18px;
}

.briefing-form,
.submission {
    background: rgba(21, 30, 40, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
}

.briefing-form {
    padding: 32px;
}

section {
    padding: 30px 0;
    border-top: 1px solid var(--line);
}

section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

h2 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.25;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

label {
    display: block;
    margin-bottom: 17px;
    color: #dbe5ef;
    font-weight: 750;
    line-height: 1.35;
}

fieldset {
    margin: 0 0 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}

.grid > fieldset {
    height: 100%;
}

legend {
    padding: 0 6px;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.35;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    border: 1px solid #354557;
    border-radius: 6px;
    background: var(--field);
    color: var(--field-text);
    font: inherit;
    font-weight: 500;
    padding: 12px 13px;
}

textarea {
    min-height: 118px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #6b7786;
}

input[type="checkbox"],
input[type="radio"] {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin-bottom: 15px;
}

.inline-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 15px;
}

.option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 30px;
    margin: 0;
    color: #d5dfeb;
    font-weight: 600;
    overflow-wrap: anywhere;
}

fieldset > .option + .option {
    margin-top: 8px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    outline: 3px solid var(--focus);
}

.hint {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0 24px;
    text-decoration: none;
}

button:hover,
.button-link:hover {
    background: var(--accent-dark);
}

.actions p,
.empty {
    margin: 0;
    color: var(--muted);
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
}

.success {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login {
    max-width: 460px;
}

.error {
    color: #ffb4a2;
}

.submission {
    margin: 18px 0;
    padding: 22px;
}

.submission h2 {
    margin-bottom: 10px;
}

summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 800;
}

@media (max-width: 820px) {
    .intro {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: left;
    }

    .brand-logo {
        width: 104px;
        height: 104px;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 20px, 1100px);
        padding-top: 18px;
    }

    .briefing-form {
        padding: 20px;
    }

    .grid,
    .actions {
        grid-template-columns: 1fr;
        display: grid;
    }

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

    fieldset {
        padding: 15px;
    }

    h1 {
        font-size: 38px;
    }
}
