:root {
    color-scheme: dark;
    --ink: #f0f5ee;
    --muted: #9cac9f;
    --line: rgba(208, 239, 214, 0.14);
    --panel: rgba(17, 34, 26, 0.86);
    --panel-solid: #11221a;
    --canvas: #0b1510;
    --acid: #b9f227;
    --acid-dark: #78ad12;
    --mint: #74d89a;
    --danger: #ff9f8e;
    --display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --sans: "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--canvas);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    background:
        radial-gradient(circle at 86% 8%, rgba(103, 177, 64, 0.18), transparent 30rem),
        radial-gradient(circle at 8% 76%, rgba(26, 105, 68, 0.18), transparent 36rem),
        var(--canvas);
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(188, 227, 196, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(188, 227, 196, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(185, 242, 39, 0.52);
    outline-offset: 3px;
}

/* Control Center */
.control-body {
    background:
        radial-gradient(circle at 18% 0%, rgba(185, 242, 39, 0.1), transparent 29rem),
        radial-gradient(circle at 100% 38%, rgba(34, 130, 81, 0.16), transparent 34rem),
        #08110d;
}

.control-shell {
    width: min(1540px, calc(100% - 48px));
    margin: 0 auto;
}

.control-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    border-bottom: 1px solid var(--line);
}

.operator-state {
    display: flex;
    gap: 18px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}

.operator-state form {
    margin: 0;
}

.operator-state a {
    color: #dbe8dd;
    font-weight: 800;
    text-decoration: none;
}

.operator-state a:hover {
    color: var(--acid);
}

.operator-state button {
    padding: 9px 13px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.control-main {
    padding: 56px 0 90px;
}

.control-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.72fr);
    gap: 44px;
    align-items: end;
}

.control-intro h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(54px, 6vw, 92px);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.92;
}

.control-intro > div:first-child > p:last-child {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.safety-card {
    padding: 22px;
    background: linear-gradient(140deg, rgba(21, 49, 34, 0.95), rgba(12, 27, 19, 0.94));
    border: 1px solid rgba(185, 242, 39, 0.22);
    border-radius: 24px 24px 24px 7px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.safety-card--stopped {
    background: linear-gradient(140deg, rgba(72, 29, 24, 0.96), rgba(34, 16, 15, 0.96));
    border-color: rgba(255, 159, 142, 0.42);
}

.safety-card__state {
    display: block;
    margin-bottom: 13px;
    color: var(--acid);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.safety-card--stopped .safety-card__state {
    color: var(--danger);
}

.safety-card p {
    margin: 0 0 18px;
    color: #e9f1e9;
    line-height: 1.55;
}

.kill-form label {
    display: block;
    margin-bottom: 9px;
    color: #d5dfd7;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.kill-form > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.kill-form input,
.login-form input,
.decision-form textarea {
    min-width: 0;
    color: var(--ink);
    background: rgba(4, 12, 8, 0.72);
    border: 1px solid rgba(202, 231, 207, 0.18);
    border-radius: 12px;
}

.kill-form input {
    padding: 12px 14px;
}

.control-button {
    padding: 12px 16px;
    color: #112018;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: var(--acid);
    border: 0;
    border-radius: 11px;
}

.control-button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.control-button--danger,
.control-button--reject {
    color: #2c0f0b;
    background: var(--danger);
}

.control-button--quiet {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
}

.control-button--approve {
    color: #102018;
    background: var(--acid);
}

.control-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 54px 0 26px;
    background: rgba(12, 25, 18, 0.7);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}

.control-metrics article {
    display: grid;
    gap: 7px;
    min-height: 144px;
    padding: 24px;
    border-right: 1px solid var(--line);
}

.control-metrics article:last-child {
    border-right: 0;
}

.control-metrics span,
.control-metrics small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.control-metrics strong {
    align-self: center;
    color: var(--acid);
    font-family: var(--display);
    font-size: 43px;
    font-weight: 500;
}

.control-section {
    margin-top: 26px;
    padding: clamp(24px, 3vw, 42px);
    background: rgba(14, 29, 21, 0.83);
    border: 1px solid var(--line);
    border-radius: 28px 28px 28px 9px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
}

.control-section__heading {
    display: flex;
    gap: 40px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.control-section__heading .eyebrow {
    margin-bottom: 14px;
}

.control-section__heading h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.control-section__heading > p {
    max-width: 470px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: right;
}

.approval-list {
    display: grid;
    gap: 18px;
}

.approval-card {
    padding: 24px;
    background: linear-gradient(145deg, rgba(24, 47, 34, 0.92), rgba(11, 25, 17, 0.9));
    border: 1px solid rgba(204, 233, 210, 0.14);
    border-radius: 20px 20px 20px 6px;
}

.approval-card > header {
    display: flex;
    gap: 24px;
    align-items: start;
    justify-content: space-between;
}

.approval-card h3 {
    margin: 10px 0 0;
    font-family: var(--display);
    font-size: 30px;
    font-weight: 500;
}

.risk-badge,
.run-status {
    display: inline-flex;
    padding: 5px 8px;
    color: #dce8de;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.risk-badge--financial,
.risk-badge--external_write {
    color: #ffc2b7;
    border-color: rgba(255, 159, 142, 0.35);
}

.approval-expiry {
    color: var(--muted);
    font-size: 11px;
}

.approval-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 22px 0 0;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.approval-facts div {
    min-width: 0;
    padding: 14px;
    background: #0f2017;
}

.approval-facts dt,
.approval-facts dd {
    margin: 0;
}

.approval-facts dt,
.approval-payload span,
.envelope-hash span,
.decision-form label {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.approval-facts dd {
    margin-top: 7px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.approval-payload {
    margin-top: 16px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.approval-payload summary {
    padding: 15px 0;
    color: #d7e3d9;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.approval-payload__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-bottom: 16px;
}

.approval-payload pre {
    max-height: 280px;
    margin: 7px 0 0;
    padding: 14px;
    overflow: auto;
    color: #c8d8cb;
    font-size: 11px;
    line-height: 1.5;
    background: rgba(2, 8, 5, 0.7);
    border-radius: 10px;
}

.envelope-hash {
    display: grid;
    gap: 7px;
    margin-top: 16px;
}

.envelope-hash code {
    overflow: hidden;
    color: #8dcda3;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.decision-form {
    margin-top: 18px;
}

.decision-form label {
    display: flex;
    justify-content: space-between;
}

.decision-form label small {
    font-size: inherit;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.decision-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 12px 14px;
    resize: vertical;
}

.decision-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.control-section--compact {
    min-width: 0;
}

.budget-list,
.run-list {
    display: grid;
    gap: 11px;
}

.budget-list article,
.run-list article {
    padding: 15px;
    background: rgba(4, 14, 8, 0.42);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.budget-list article > div:first-child {
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.budget-list article > div span,
.budget-list p,
.run-list small {
    color: var(--muted);
    font-size: 10px;
}

.budget-bar {
    width: 100%;
    height: 7px;
    margin-top: 13px;
    overflow: hidden;
    appearance: none;
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    border-radius: 999px;
}

.budget-bar::-webkit-progress-bar {
    background: rgba(255, 255, 255, 0.06);
}

.budget-bar::-webkit-progress-value {
    background: linear-gradient(90deg, var(--acid-dark), var(--acid));
    border-radius: 999px;
}

.budget-bar::-moz-progress-bar {
    background: linear-gradient(90deg, var(--acid-dark), var(--acid));
    border-radius: 999px;
}

.budget-list p {
    margin: 7px 0 0;
}

.run-list article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
}

.run-list article > div {
    display: grid;
    gap: 5px;
}

.run-status--completed,
.run-status--ready {
    color: var(--acid);
    border-color: rgba(185, 242, 39, 0.28);
}

.run-status--failed,
.run-status--policy_blocked,
.run-status--budget_blocked,
.run-status--stopped {
    color: var(--danger);
    border-color: rgba(255, 159, 142, 0.3);
}

.empty-state {
    padding: 42px;
    text-align: center;
    background: rgba(3, 12, 7, 0.38);
    border: 1px dashed rgba(201, 231, 207, 0.18);
    border-radius: 16px;
}

.empty-state p {
    margin: 9px 0 0;
    color: var(--muted);
}

.empty-state--small {
    padding: 26px;
}

.control-alert {
    margin-bottom: 14px;
    padding: 13px 16px;
    color: #dff0e2;
    background: rgba(37, 100, 59, 0.28);
    border: 1px solid rgba(116, 216, 154, 0.3);
    border-radius: 11px;
}

.control-alert--error {
    color: #ffd1c9;
    background: rgba(112, 38, 28, 0.3);
    border-color: rgba(255, 159, 142, 0.34);
}

.login-shell {
    display: grid;
    min-height: 100vh;
    padding: 28px;
    place-items: center;
}

.login-card {
    width: min(100%, 520px);
    padding: clamp(26px, 5vw, 48px);
    background: linear-gradient(145deg, rgba(19, 39, 28, 0.97), rgba(8, 20, 13, 0.98));
    border: 1px solid rgba(199, 230, 205, 0.17);
    border-radius: 32px 32px 32px 10px;
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.45);
}

.login-copy {
    margin: 60px 0 30px;
}

.login-copy .eyebrow {
    margin-bottom: 16px;
}

.login-copy h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(46px, 9vw, 68px);
    font-weight: 500;
    letter-spacing: -0.05em;
}

.login-copy > p:last-child {
    margin: 17px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 9px;
}

.login-form label {
    margin-top: 8px;
    color: #d4dfd6;
    font-size: 11px;
    font-weight: 800;
}

.login-form input {
    width: 100%;
    padding: 14px 15px;
}

.control-login-button {
    width: 100%;
    margin-top: 16px;
}

.login-footnote {
    margin: 22px 0 0;
    color: #829387;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

.install-shell {
    display: grid;
    min-height: 100vh;
    padding: 38px;
    place-items: center;
}

.install-card {
    width: min(100%, 1040px);
    padding: clamp(24px, 5vw, 58px);
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(185, 242, 39, 0.13), transparent 29rem),
        linear-gradient(145deg, rgba(19, 39, 28, 0.98), rgba(8, 20, 13, 0.99));
    border: 1px solid rgba(199, 230, 205, 0.17);
    border-radius: 34px 34px 34px 10px;
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.45);
}

.install-header {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.install-private,
.platform-label {
    color: var(--acid);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.install-private {
    padding: 8px 11px;
    border: 1px solid rgba(185, 242, 39, 0.24);
    border-radius: 999px;
}

.install-copy {
    max-width: 820px;
    margin: 74px 0 36px;
}

.install-copy .eyebrow {
    margin-bottom: 17px;
}

.install-copy h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(48px, 7vw, 82px);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.install-copy > p:last-child {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.install-platforms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.install-platforms article {
    padding: clamp(20px, 3vw, 31px);
    background: rgba(4, 14, 8, 0.48);
    border: 1px solid var(--line);
    border-radius: 19px 19px 19px 6px;
}

.install-platforms h2 {
    margin: 12px 0 17px;
    font-family: var(--display);
    font-size: 29px;
    font-weight: 500;
}

.install-platforms ol {
    margin: 0;
    padding-left: 22px;
    color: #b9c8bc;
    line-height: 1.75;
}

.install-platforms li + li {
    margin-top: 7px;
}

.install-notice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: baseline;
    margin: 18px 0;
    padding: 17px 19px;
    color: #dfe9e1;
    background: rgba(116, 216, 154, 0.07);
    border: 1px solid rgba(116, 216, 154, 0.17);
    border-radius: 13px;
}

.install-notice strong {
    color: var(--mint);
    white-space: nowrap;
}

.install-notice p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.install-open {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    text-decoration: none;
}

@media (max-width: 900px) {
    .control-shell {
        width: min(100% - 28px, 1540px);
    }

    .control-intro,
    .control-grid {
        grid-template-columns: 1fr;
    }

    .control-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .control-metrics article:nth-child(2) {
        border-right: 0;
    }

    .control-metrics article:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .approval-facts {
        grid-template-columns: 1fr 1fr;
    }

    .install-platforms {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .control-header {
        min-height: 76px;
    }

    .operator-state > span {
        display: none;
    }

    .operator-state {
        gap: 11px;
    }

    .control-main {
        padding: 40px 0 68px;
    }

    .control-intro {
        gap: 30px;
    }

    .control-intro h1 {
        font-size: 52px;
    }

    .kill-form > div {
        grid-template-columns: 1fr;
    }

    .control-metrics article {
        min-height: 118px;
        padding: 18px;
    }

    .control-metrics strong {
        font-size: 34px;
    }

    .control-section {
        padding: 20px 16px;
        border-radius: 21px 21px 21px 7px;
    }

    .control-section__heading {
        display: block;
    }

    .control-section__heading > p {
        margin-top: 16px;
        text-align: left;
    }

    .approval-card {
        padding: 17px;
    }

    .approval-card > header {
        display: block;
    }

    .approval-expiry {
        display: block;
        margin-top: 12px;
    }

    .approval-facts,
    .approval-payload__grid {
        grid-template-columns: 1fr;
    }

    .decision-actions {
        display: grid;
    }

    .decision-actions .control-button {
        width: 100%;
    }

    .login-shell {
        padding: 14px;
    }

    .login-card {
        padding: 27px 20px;
        border-radius: 24px 24px 24px 7px;
    }

    .login-copy {
        margin-top: 48px;
    }

    .install-shell {
        padding: 14px;
    }

    .install-card {
        padding: 24px 18px;
        border-radius: 24px 24px 24px 7px;
    }

    .install-header {
        align-items: flex-start;
    }

    .install-header .brand-copy small,
    .install-private {
        display: none;
    }

    .install-copy {
        margin: 54px 0 28px;
    }

    .install-copy h1 {
        font-size: 49px;
    }

    .install-notice {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .install-notice strong {
        white-space: normal;
    }

    .install-open {
        justify-content: center;
        width: 100%;
    }
}

.site-frame {
    width: min(1460px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 98px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    gap: 13px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #102018;
    font-size: 21px;
    font-weight: 900;
    background: var(--acid);
    border-radius: 14px 14px 14px 4px;
    box-shadow: 0 0 36px rgba(185, 242, 39, 0.17);
}

.brand-copy {
    display: grid;
    line-height: 1;
}

.brand-copy strong {
    font-size: 15px;
    letter-spacing: 0.02em;
}

.brand-copy small {
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.beta-state {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    color: #c9d5cb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.beta-state__pulse {
    width: 8px;
    height: 8px;
    background: var(--acid);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(185, 242, 39, 0.09);
    animation: pulse 2.6s ease-out infinite;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    gap: clamp(54px, 8vw, 128px);
    align-items: center;
    min-height: 720px;
    padding: 76px 0 88px;
}

.eyebrow {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 0 28px;
    color: #acc0b0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow span {
    color: var(--acid);
}

.hero h1 {
    max-width: 680px;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(64px, 7vw, 112px);
    font-weight: 500;
    letter-spacing: -0.065em;
    line-height: 0.84;
}

.hero h1 em {
    color: var(--acid);
    font-weight: inherit;
}

.hero-lead {
    max-width: 610px;
    margin: 38px 0 0;
    color: #b8c6ba;
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.65;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 11px 24px;
    margin-top: 46px;
    color: #869b8c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.trust-strip span::before {
    margin-right: 9px;
    color: var(--mint);
    content: "+";
}

.intake-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(25px, 3vw, 46px);
    background:
        linear-gradient(145deg, rgba(33, 61, 45, 0.82), rgba(12, 26, 19, 0.97)),
        var(--panel-solid);
    border: 1px solid rgba(183, 230, 191, 0.22);
    border-radius: 34px 34px 34px 8px;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.26);
}

.intake-panel::after {
    position: absolute;
    top: -90px;
    right: -70px;
    width: 230px;
    height: 230px;
    content: "";
    pointer-events: none;
    background: rgba(185, 242, 39, 0.11);
    border-radius: 50%;
    filter: blur(60px);
}

.intake-panel__heading {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
}

.panel-index,
.secure-label,
.result-kicker {
    color: var(--acid);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.intake-panel__heading h2 {
    margin: 8px 0 0;
    font-family: var(--display);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 500;
    letter-spacing: -0.035em;
}

.secure-label {
    padding: 9px 11px;
    color: #a9b8ad;
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.intake-form {
    position: relative;
    z-index: 1;
}

.intake-form > label {
    display: block;
    margin-bottom: 11px;
    color: #d9e4db;
    font-size: 12px;
    font-weight: 800;
}

.intake-form textarea {
    display: block;
    width: 100%;
    min-height: 168px;
    max-height: 320px;
    resize: none;
    padding: 21px 22px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.65;
    background: rgba(5, 14, 9, 0.56);
    border: 1px solid rgba(197, 229, 203, 0.18);
    border-radius: 18px 18px 18px 5px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.intake-form textarea::placeholder {
    color: #738378;
}

.intake-form textarea:focus {
    border-color: rgba(185, 242, 39, 0.52);
    box-shadow: 0 0 0 5px rgba(185, 242, 39, 0.07);
}

.prompt-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.prompt-examples button {
    padding: 8px 11px;
    color: #9eb0a2;
    font-size: 10px;
    font-weight: 700;
    background: rgba(156, 201, 166, 0.06);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.prompt-examples button:hover {
    color: var(--ink);
    background: rgba(185, 242, 39, 0.09);
    border-color: rgba(185, 242, 39, 0.28);
}

.form-footer {
    display: flex;
    gap: 16px;
    align-items: end;
    justify-content: space-between;
    margin-top: 24px;
}

.market-field {
    display: grid;
    gap: 7px;
}

.market-field span {
    color: #85978a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.market-field select {
    min-width: 160px;
    padding: 12px 38px 12px 13px;
    color: #dce8df;
    background-color: rgba(4, 13, 8, 0.44);
    border: 1px solid var(--line);
    border-radius: 11px;
}

.submit-button {
    display: inline-flex;
    gap: 34px;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 18px 0 22px;
    color: #102018;
    font-size: 12px;
    font-weight: 900;
    background: var(--acid);
    border: 0;
    border-radius: 15px 15px 15px 4px;
    box-shadow: 0 13px 34px rgba(128, 181, 23, 0.15);
    transition: transform 160ms ease, background 160ms ease;
}

.submit-button:hover {
    background: #c7ff3c;
    transform: translateY(-2px);
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.58;
    transform: none;
}

.submit-button svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.form-status {
    min-height: 20px;
    margin: 14px 0 -8px;
    color: var(--muted);
    font-size: 11px;
}

.form-status[data-state="error"] {
    color: var(--danger);
}

.form-status[data-state="success"] {
    color: var(--acid);
}

.intake-result {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    padding: 18px 20px;
    background: rgba(185, 242, 39, 0.07);
    border: 1px solid rgba(185, 242, 39, 0.22);
    border-radius: 14px 14px 14px 4px;
}

.intake-result strong {
    display: block;
    margin-top: 8px;
    font-family: monospace;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.intake-result p {
    margin: 8px 0 0;
    color: #aab8ad;
    font-size: 12px;
}

.workflow {
    padding: 92px 0 108px;
    border-top: 1px solid var(--line);
}

.section-heading {
    display: flex;
    gap: 30px;
    align-items: end;
    justify-content: space-between;
}

.section-heading .eyebrow {
    margin-bottom: 0;
}

.section-heading h2 {
    max-width: 630px;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(43px, 5vw, 72px);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 60px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.workflow-grid li {
    min-height: 250px;
    padding: 28px 26px 32px;
    border-right: 1px solid var(--line);
}

.workflow-grid li:first-child {
    padding-left: 0;
}

.workflow-grid li:last-child {
    padding-right: 0;
    border-right: 0;
}

.step-number {
    color: var(--acid);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.workflow-grid h3 {
    margin: 60px 0 13px;
    font-family: var(--display);
    font-size: 30px;
    font-weight: 500;
}

.workflow-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    padding: 29px 0 42px;
    color: #728277;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    border-top: 1px solid var(--line);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(185, 242, 39, 0.08); }
    50% { box-shadow: 0 0 0 10px rgba(185, 242, 39, 0); }
}

@media (max-width: 1050px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 58px;
        padding-top: 68px;
    }

    .hero-copy {
        max-width: 780px;
    }

    .intake-panel {
        width: min(820px, 100%);
    }

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

    .workflow-grid li:nth-child(2) {
        border-right: 0;
    }

    .workflow-grid li:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .workflow-grid li:nth-child(3) {
        padding-left: 0;
    }
}

@media (max-width: 640px) {
    .site-frame {
        width: min(100% - 28px, 1460px);
    }

    .site-header {
        min-height: 78px;
    }

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

    .brand-copy small {
        display: none;
    }

    .beta-state {
        font-size: 8px;
    }

    .hero {
        min-height: 0;
        padding: 54px 0 68px;
    }

    .hero h1 {
        font-size: clamp(54px, 17vw, 78px);
    }

    .hero-lead {
        margin-top: 28px;
        font-size: 16px;
    }

    .trust-strip {
        display: grid;
        margin-top: 34px;
    }

    .intake-panel {
        padding: 23px 18px 24px;
        border-radius: 23px 23px 23px 7px;
    }

    .intake-panel__heading {
        display: block;
    }

    .secure-label {
        display: inline-block;
        margin-top: 14px;
    }

    .intake-form textarea {
        min-height: 190px;
        padding: 17px;
        font-size: 16px;
    }

    .form-footer {
        display: grid;
        grid-template-columns: 1fr;
    }

    .market-field select,
    .submit-button {
        width: 100%;
    }

    .section-heading {
        display: block;
    }

    .section-heading h2 {
        margin-top: 25px;
    }

    .workflow {
        padding: 72px 0;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
        margin-top: 42px;
    }

    .workflow-grid li,
    .workflow-grid li:first-child,
    .workflow-grid li:nth-child(3),
    .workflow-grid li:last-child {
        min-height: auto;
        padding: 24px 0 27px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .workflow-grid li:last-child {
        border-bottom: 0;
    }

    .workflow-grid h3 {
        margin-top: 25px;
    }

    .site-footer {
        display: grid;
        gap: 8px;
        line-height: 1.5;
    }
}

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