:root {
    color-scheme: dark;
    --bg: #050008;
    --panel: #12051d;
    --panel-strong: #1b0730;
    --text: #f9f2ff;
    --muted: #d9b8ff;
    --violet: #c72fff;
    --violet-hot: #f05cff;
    --cyan: #6df7ff;
    --line: rgba(240, 92, 255, 0.48);
    --shadow: 0 0 28px rgba(199, 47, 255, 0.42);
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(circle at 74% 10%, rgba(199, 47, 255, 0.12), transparent 30rem),
        radial-gradient(circle at 18% 76%, rgba(109, 247, 255, 0.08), transparent 26rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.scanline-shell {
    min-height: 100vh;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 100% 5px;
}

.site-header,
.site-footer,
main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    width: 36px;
    height: 36px;
}

.brand-name {
    font-size: 1rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.site-nav a,
.button,
button {
    border: 1px solid var(--line);
    background: rgba(18, 5, 29, 0.82);
    color: var(--text);
    text-decoration: none;
    min-height: 42px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
    box-shadow: 0 0 0 rgba(199, 47, 255, 0);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.button:hover,
button:hover {
    border-color: var(--violet-hot);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.hero {
    padding: 108px 0 84px;
}

.hero-copy,
.page-intro,
.text-band {
    position: relative;
}

.page-intro,
.text-band {
    width: min(780px, 100%);
}

.eyebrow,
.card-kicker {
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 690px;
    margin-bottom: 20px;
    font-size: clamp(2.15rem, 4vw, 3.5rem);
    line-height: 1.06;
    letter-spacing: 0;
    text-shadow: 0 0 24px rgba(199, 47, 255, 0.38);
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.18;
}

.summary {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button.primary,
button {
    background: linear-gradient(135deg, rgba(199, 47, 255, 0.92), rgba(109, 247, 255, 0.18));
}

.signal-grid,
.service-list,
.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: 64px;
}

.signal-grid article,
.service-list article,
.choice-panel,
.offer-panel,
.app-listing,
.intake-form,
.text-band {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(27, 7, 48, 0.9), rgba(7, 1, 13, 0.84));
    padding: 22px;
    box-shadow: 0 0 16px rgba(199, 47, 255, 0.18);
}

.signal-grid p,
.service-list p,
.choice-panel p,
.offer-panel p,
.app-listing p,
.text-band p {
    color: var(--muted);
    line-height: 1.58;
}

.page-intro {
    padding: 70px 0 42px;
}

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

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

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: 64px;
}

.choice-panel {
    display: grid;
    align-content: start;
    min-height: 220px;
    color: var(--text);
    text-decoration: none;
}

.panel-link {
    align-self: end;
    color: var(--cyan);
    font-weight: 800;
}

.section-lede {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    padding: 18px 0;
}

.section-lede p {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.58;
}

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

.offer-panel {
    display: grid;
    gap: 12px;
    align-content: start;
}

.offer-panel .button {
    justify-self: start;
    margin-top: 4px;
}

.detail-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.5;
}

.action-row.compact {
    margin-top: 20px;
}

.text-band {
    margin-bottom: 64px;
}

.admin-list {
    display: grid;
    gap: 14px;
    padding-bottom: 64px;
}

.admin-row,
.admin-detail {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(27, 7, 48, 0.9), rgba(7, 1, 13, 0.84));
    padding: 22px;
    box-shadow: 0 0 16px rgba(199, 47, 255, 0.18);
}

.admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.26fr);
    gap: 18px;
    align-items: center;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 22px;
}

.detail-grid div {
    border: 1px solid rgba(217, 184, 255, 0.24);
    padding: 14px;
    background: rgba(7, 1, 13, 0.72);
}

.detail-grid dt {
    color: var(--cyan);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-grid dd {
    margin: 6px 0 0;
    color: var(--text);
}

.admin-notes {
    margin-bottom: 0;
}

.inline-action {
    display: contents;
}

.status-message {
    border: 1px solid rgba(109, 247, 255, 0.52);
    margin: 0 0 18px;
    padding: 14px 16px;
    color: var(--text);
    background: rgba(109, 247, 255, 0.1);
}

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

.honeypot-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.form-error {
    border: 1px solid var(--magenta);
    background: rgba(133, 19, 101, 0.26);
    color: var(--text);
    padding: 14px 16px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.full-span {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(217, 184, 255, 0.34);
    background: #07010d;
    color: var(--text);
    padding: 12px;
    font: inherit;
}

textarea {
    resize: vertical;
}

button {
    grid-column: 1 / -1;
    cursor: pointer;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding: 26px 0 36px;
    color: var(--muted);
}

.site-footer a {
    color: var(--cyan);
    font-weight: 800;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    white-space: nowrap;
}

.sitemap-list {
    display: grid;
    gap: 14px;
}

.sitemap-entry {
    display: block;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(27, 7, 48, 0.9), rgba(7, 1, 13, 0.84));
    padding: 20px;
    text-decoration: none;
}

.sitemap-entry:hover {
    border-color: var(--cyan);
}

.sitemap-entry h2,
.sitemap-entry p {
    margin: 0;
}

.sitemap-entry p {
    margin-top: 8px;
    color: var(--muted);
}

@media (max-width: 820px) {
    .site-header,
    .site-footer {
        display: block;
    }

    .site-nav {
        justify-content: flex-start;
        margin-top: 18px;
    }

    .signal-grid,
    .service-list,
    .choice-grid,
    .offer-grid,
    .admin-row,
    .detail-grid,
    .intake-form {
        grid-template-columns: 1fr;
    }

    .site-footer a {
        display: inline-block;
        margin-top: 10px;
    }

    .footer-links {
        display: block;
    }
}
