:root {
    color-scheme: dark;
    --ink: #f8fff8;
    --muted: #a7b8aa;
    --panel: rgba(9, 22, 15, 0.94);
    --line: #315b40;
    --signal: #75ff83;
    --danger: #ff758f;
    --berry: #e94268;
    --shadow: rgba(0, 0, 0, 0.45);
    background: #030906;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(rgba(3, 9, 6, 0.9), rgba(3, 9, 6, 0.98)),
        repeating-linear-gradient(0deg, transparent 0, transparent 28px, rgba(117, 255, 131, 0.035) 29px);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    line-height: 1.55;
}

button,
input { font: inherit; }

button {
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--signal);
    border-radius: 3px;
    color: #031207;
    background: var(--signal);
    font-weight: 800;
    cursor: pointer;
}

button:hover:not(:disabled),
button:focus-visible:not(:disabled) {
    color: var(--ink);
    background: #143620;
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

button:disabled {
    color: #718076;
    border-color: #3b4a40;
    background: #18201a;
    cursor: not-allowed;
}

code,
pre { font-family: inherit; }

.strawbs-shell {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 5rem;
}

.strawbs-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 18px 60px var(--shadow);
}

.strawbs-hero img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border: 1px solid var(--berry);
}

.strawbs-kicker {
    margin: 0 0 0.7rem;
    color: var(--signal);
    letter-spacing: 0.12em;
    font-weight: 800;
}

h1,
h2,
h3 {
    line-height: 1.15;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.2rem, 7vw, 5.4rem);
    letter-spacing: -0.06em;
}

h2 { color: var(--signal); }

.strawbs-lead {
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.05rem;
}

.strawbs-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.4rem;
}

.strawbs-badges span {
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--berry);
    border-radius: 999px;
    color: #ffdbe3;
    background: rgba(233, 66, 104, 0.12);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.strawbs-panel {
    margin-top: 1.25rem;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 12px 35px var(--shadow);
}

.strawbs-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.strawbs-facts div {
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid var(--line);
    background: #07120b;
}

.strawbs-facts dt {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.strawbs-facts dd {
    margin: 0.25rem 0 0;
    overflow-wrap: anywhere;
}

.strawbs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1rem 0;
}

button.strawbs-secondary {
    color: var(--signal);
    background: transparent;
}

.strawbs-mission {
    border-color: var(--berry);
    background:
        linear-gradient(135deg, rgba(233, 66, 104, 0.1), transparent 55%),
        var(--panel);
}

.strawbs-credential {
    max-width: 42rem;
    margin: 1.25rem 0;
    padding: 1rem;
    border: 1px solid var(--line);
    background: #06100a;
}

.strawbs-credential label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--ink);
    font-weight: 800;
    text-transform: uppercase;
}

.strawbs-credential input {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--signal);
    border-radius: 3px;
    color: var(--ink);
    background: #020704;
}

.strawbs-credential input:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.strawbs-credential input:disabled {
    border-color: #3b4a40;
    color: #718076;
    background: #18201a;
}

.strawbs-credential p {
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.strawbs-roadmap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.strawbs-roadmap li {
    padding: 0.85rem;
    border: 1px solid var(--line);
    color: var(--muted);
    background: #06100a;
    text-transform: uppercase;
}

.strawbs-roadmap li span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.72rem;
}

.strawbs-roadmap li.is-live {
    border-color: var(--signal);
    color: var(--ink);
    box-shadow: inset 0 -3px 0 var(--signal);
}

.strawbs-receipts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.strawbs-receipt {
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid var(--line);
    background: #06100a;
}

.strawbs-receipt strong,
.strawbs-receipt code {
    display: block;
}

.strawbs-receipt strong {
    margin-bottom: 0.25rem;
    color: var(--signal);
}

.strawbs-receipt code {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.strawbs-details summary {
    color: var(--muted);
    cursor: pointer;
}

.strawbs-agent-directive {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.strawbs-status {
    padding-left: 0.75rem;
    border-left: 3px solid var(--signal);
    color: var(--muted);
    overflow-wrap: anywhere;
}

.strawbs-status[data-kind="error"] { border-color: var(--danger); color: #ffb3c2; }
.strawbs-status[data-kind="ok"] { color: #c4ffca; }

.strawbs-claim {
    padding: 1rem;
    border: 1px solid var(--line);
    background: #06100a;
}

.strawbs-claim h3 {
    margin-top: 0;
    color: #ff8da6;
}

.strawbs-lanes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.strawbs-lore { grid-column: 1 / -1; color: #ffd7df; }

.strawbs-lane {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    background: #06100a;
}

.strawbs-lane h3 { margin-top: 0; color: #ff8da6; }

.strawbs-small {
    color: var(--muted);
    font-size: 0.82rem;
}

.strawbs-cipher,
.strawbs-plaintext {
    display: block;
    padding: 0.8rem;
    border: 1px solid #294533;
    color: #d6ffda;
    background: #020704;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.strawbs-notice {
    display: block;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--berry);
    color: #ffdbe3;
    background: #250b13;
}

.strawbs-notice input {
    width: 1.15rem;
    height: 1.15rem;
    vertical-align: text-bottom;
    accent-color: var(--signal);
}

.strawbs-json {
    width: 100%;
    max-height: 34rem;
    margin: 1rem 0 0;
    padding: 1rem;
    border: 1px solid #294533;
    color: #bfffc6;
    background: #010402;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
}

[hidden] { display: none !important; }

@media (max-width: 800px) {
    .strawbs-hero,
    .strawbs-lanes,
    .strawbs-facts,
    .strawbs-roadmap,
    .strawbs-receipts { grid-template-columns: 1fr; }
    .strawbs-hero { padding: 1rem; }
    .strawbs-shell { width: min(100% - 1rem, 1160px); }
}

@media (prefers-reduced-motion: no-preference) {
    button { transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease; }
}
