:root {
  color-scheme: dark;
  --bg: #0b0d0c;
  --surface: #121613;
  --surface-2: #171d19;
  --ink: #eef3ed;
  --muted: #9da89f;
  --line: #2b342d;
  --accent: #b7ff68;
  --accent-ink: #10150c;
  --max: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; }
a { color: inherit; }
.shell, main { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }
header.shell { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.brand span { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: .5rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
nav { display: flex; gap: .25rem; padding: .25rem; border: 1px solid var(--line); border-radius: 999px; }
nav a { padding: .35rem .8rem; color: var(--muted); text-decoration: none; border-radius: 999px; font-size: .9rem; }
nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.tenant { justify-self: end; color: var(--muted); font-size: .82rem; }
main { min-height: calc(100vh - 156px); outline: none; }
.hero { padding: clamp(5rem, 11vw, 9rem) 0 5rem; max-width: 900px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font: 700 .75rem/1.3 ui-monospace, monospace; }
h1, h2 { margin: 0; line-height: 1.02; letter-spacing: -.045em; }
h1 { max-width: 850px; font-size: clamp(3rem, 8vw, 6.7rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); }
.lede { max-width: 730px; margin: 2rem 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.actions { display: flex; align-items: center; gap: 1.2rem; }
.button, button { display: inline-flex; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-ink); padding: .78rem 1rem; font: 700 .92rem/1 inherit; text-decoration: none; cursor: pointer; }
.text-link { color: var(--muted); text-underline-offset: .3rem; }
.notice { margin: 0 0 2rem; padding: 1rem 1.2rem; border: 1px solid #577536; background: #121b0c; border-radius: 7px; }
.notice code { overflow-wrap: anywhere; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card { min-height: 310px; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.number { color: var(--muted); font: .8rem ui-monospace, monospace; }
.card h2 { margin: 5.5rem 0 1rem; }
.card p, .contact p, .prose p, .prose li { color: var(--muted); }
.flow, .contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; padding: 6rem 0; border-bottom: 1px solid var(--line); }
.flow code { display: block; padding: 1.5rem; border: 1px solid var(--line); border-radius: 7px; color: var(--accent); background: var(--surface); line-height: 2; overflow-wrap: anywhere; }
form { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; color: var(--muted); font-size: .86rem; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); padding: .8rem; font: inherit; }
input:focus, textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent), transparent 65%); }
form button { justify-self: start; }
.prose { max-width: 820px; padding: 7rem 0; }
.prose h1 { font-size: clamp(3rem, 7vw, 5.7rem); }
.prose h2 { margin-top: 4rem; }
.prose p, .prose li { font-size: 1.08rem; }
.error-page { max-width: 720px; padding: 8rem 0; }
.error-page h1 { font-size: clamp(3rem, 7vw, 5rem); }
.error-page .muted { color: var(--muted); font: .8rem ui-monospace, monospace; }
.auth-card { width: min(100%, 560px); margin-inline: auto; padding: clamp(4rem, 10vw, 8rem) 0; }
.auth-card h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.auth-card form { margin: 2rem 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.footer { padding: 1.7rem 0; color: var(--muted); font-size: .78rem; border-top: 1px solid var(--line); }
.progress { position: fixed; z-index: 20; left: 50%; top: 1rem; translate: -50% 0; padding: .45rem .75rem; border: 1px solid var(--accent); border-radius: 999px; background: var(--surface); color: var(--ink); font: 700 .78rem/1 ui-monospace, monospace; opacity: 0; visibility: hidden; transition: opacity .2s; }
[data-mikron-busy] .progress { opacity: 1; visibility: visible; }
[data-mikron-busy] main { opacity: .62; transition: opacity .15s; }
.form-status { color: var(--ink); font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.network { position: fixed; right: 1rem; bottom: 1rem; max-width: 360px; padding: 1rem; border: 1px solid #9a554b; border-radius: 7px; background: #2b1511; }

@media (max-width: 720px) {
  header.shell { grid-template-columns: 1fr auto; }
  header nav { order: 3; grid-column: 1 / -1; margin: .7rem 0; justify-self: center; }
  .tenant { display: none; }
  .grid, .flow, .contact { grid-template-columns: 1fr; }
  .card { min-height: 240px; }
  .card h2 { margin-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
