/*
  Layout concept: a dark instrument console. A quiet hero states who
  tends the networks; below it, three mounted panels (the apps) sit in
  a row like dials on a console, each with its own sigil, status light
  and a single action. One accent (aged bronze) used sparingly against
  a deep slate ground - classical materials, not a SaaS gradient.
*/
:root {
  --bg: #11141a;
  --bg-panel: #181c24;
  --bg-panel-hover: #1e232c;
  --fg: #eae6dc;
  --fg-muted: #9aa0ad;
  --fg-faint: #656c7a;
  --accent: #c79a56;
  --accent-dim: #8a6f41;
  --accent-ink: #1b1710;
  --border: #2a2f3a;
  --border-soft: #22262f;
  --ok: #7fae8a;
  --err: #d98c8c;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f2f0ea;
    --bg-panel: #ffffff;
    --bg-panel-hover: #fbf9f4;
    --fg: #221f1a;
    --fg-muted: #5d5a53;
    --fg-faint: #938f86;
    --accent: #9c7222;
    --accent-dim: #c79a56;
    --accent-ink: #fff8ea;
    --border: #ddd8cc;
    --border-soft: #e7e2d6;
    --ok: #3f7a52;
    --err: #a23f3f;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f2f0ea;
  --bg-panel: #ffffff;
  --bg-panel-hover: #fbf9f4;
  --fg: #221f1a;
  --fg-muted: #5d5a53;
  --fg-faint: #938f86;
  --accent: #9c7222;
  --accent-dim: #c79a56;
  --accent-ink: #fff8ea;
  --border: #ddd8cc;
  --border-soft: #e7e2d6;
  --ok: #3f7a52;
  --err: #a23f3f;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Manrope', system-ui, sans-serif;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 1040px; margin: 0 auto; padding-block: 56px 72px; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero { display: flex; flex-direction: column; gap: 22px; padding-bottom: 56px; border-bottom: 1px solid var(--border-soft); }
.hero-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.98;
  margin: 6px 0 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
.tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--fg-muted);
  max-width: 30ch;
}
.hero-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.hero-text { max-width: 62ch; min-width: 0; }
.hero-text p { font-size: 15.5px; line-height: 1.65; color: var(--fg-muted); margin: 0 0 12px; }
.hero-text strong { color: var(--fg); font-weight: 600; }
.networks { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; }
.network-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.btn {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dim); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; flex: none; }

/* ---------- Apps console ---------- */
.console { padding-top: 56px; }
.console-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.console-head h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.5rem; margin: 0; }

.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .panels { grid-template-columns: 1fr; } }

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0.6;
}
.panel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sigil {
  width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex: none;
}
.sigil svg { width: 19px; height: 19px; }
.status { display: flex; align-items: center; gap: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--fg-faint); letter-spacing: 0.04em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }

.panel-name { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.5rem; margin: 0; letter-spacing: -0.005em; }
.panel-epithet { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-top: -10px; }
.panel-desc { font-size: 14px; line-height: 1.55; color: var(--fg-muted); margin: 0; min-width: 0; }

.panel-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.panel-domain { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--fg-faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-link { font-size: 13px; font-weight: 600; color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; flex: none; }
.panel-link:hover { color: var(--accent); }
.panel-link svg { width: 12px; height: 12px; transition: transform .15s ease; }
.panel-link:hover svg { transform: translate(2px, -2px); }

/* ---------- Interest signup ---------- */
.signup {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 36px;
}
@media (max-width: 760px) { .signup { grid-template-columns: 1fr; } }
.signup-intro p { font-size: 14.5px; line-height: 1.6; color: var(--fg-muted); max-width: 42ch; }
.signup-intro h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.5rem; margin: 0 0 12px; }

form.signup-form { display: grid; gap: 14px; min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-faint); }
.field input, .field textarea {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--fg);
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 84px; font-family: 'Manrope', sans-serif; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .two-col { grid-template-columns: 1fr; } }

.network-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.network-check { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.network-check input { width: 17px; height: 17px; accent-color: var(--accent); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 12.5px; color: var(--fg-faint); margin: 2px 0 0; }
.form-error { font-size: 13px; color: var(--err); margin: 0; display: none; }
.form-error.visible { display: block; }
.confirm {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ok);
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-panel);
}
.confirm.visible { display: flex; }
.confirm svg { width: 16px; height: 16px; flex: none; }

footer {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--fg-faint);
}
