:root {
  color-scheme: dark;
  --bg: #030405;
  --panel: #0b0f12;
  --panel-2: #10161a;
  --text: #edf7f1;
  --muted: #93a49f;
  --line: rgba(155, 213, 196, 0.22);
  --line-strong: rgba(70, 255, 154, 0.42);
  --green: #46ff9a;
  --cyan: #9bd5c4;
  --amber: #e2b25b;
  --red: #ff526b;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(70, 255, 154, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 255, 154, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% -20%, rgba(155, 213, 196, 0.12), transparent 34rem),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto;
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input {
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--green);
  color: #031007;
  font-weight: 850;
  cursor: pointer;
}

button.secondary {
  border: 1px solid var(--line);
  background: rgba(155, 213, 196, 0.08);
  color: var(--text);
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

code,
pre,
input {
  font-family: var(--mono);
}

pre {
  min-height: 220px;
  max-height: 520px;
  margin: 0;
  overflow: auto;
  border: 1px solid rgba(155, 213, 196, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: #050708;
  color: #dff8ed;
  white-space: pre-wrap;
  word-break: break-word;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.hero {
  display: grid;
  min-height: 62vh;
  align-content: center;
  gap: 48px;
}

.topbar,
.hero-grid,
.grid,
.proof-grid,
.actions,
.checks,
.status-panel dl {
  display: grid;
  gap: 14px;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--green);
  font-family: var(--mono);
}

.secondary-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.58fr);
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lede,
.note {
  color: var(--muted);
}

.lede {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 1.06rem;
}

.panel,
.status-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 22, 26, 0.94), rgba(11, 15, 18, 0.94));
  padding: 18px;
}

.status-panel dl {
  margin: 18px 0 0;
}

.status-panel div {
  display: grid;
  gap: 3px;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

dd {
  margin: 0;
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  width: max-content;
  border-radius: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--amber);
  font-weight: 850;
}

.pill.allow {
  border-color: rgba(70, 255, 154, 0.42);
  color: var(--green);
}

.pill.deny {
  border-color: rgba(255, 82, 107, 0.42);
  color: var(--red);
}

.controls,
.proof-panel {
  margin-bottom: 14px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 780;
}

input[type="text"],
input:not([type]) {
  width: 100%;
}

input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #050708;
  color: var(--text);
}

.actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.proof-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: end;
}

.checks {
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.checks label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.checks input {
  min-height: auto;
  width: 16px;
  height: 16px;
}

.proof-panel button {
  margin-top: 14px;
}

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

@media (max-width: 760px) {
  .hero-grid,
  .grid,
  .proof-grid,
  .actions {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }
}
