* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #0a0e1a;
  color: #e8ecf3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a { color: #6ea8fe; text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #131826;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
}

header {
  padding: 18px 32px;
  border-bottom: 1px solid #1a2030;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
header .title { display: flex; gap: 14px; align-items: baseline; }
header h1 { margin: 0; font-size: 20px; font-weight: 600; }
header .host {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #6b7589;
}
header .meta {
  display: flex;
  gap: 18px;
  color: #6b7589;
  font-size: 12px;
}
header .meta b { color: #e8ecf3; font-weight: 500; }
header .meta .ts { font-family: ui-monospace, monospace; }

section {
  padding: 20px 32px 24px;
  border-bottom: 1px solid #1a2030;
}
section h2 {
  margin: 0 0 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7589;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.card {
  background: #131826;
  border: 1px solid #1a2030;
  border-radius: 6px;
  padding: 12px 14px;
}
.card .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7589;
  margin-bottom: 6px;
  font-weight: 600;
}
.card .value {
  font-size: 22px;
  font-weight: 600;
  font-feature-settings: "tnum";
}
.card .value .unit {
  font-size: 14px;
  color: #6b7589;
  margin-left: 2px;
}
.card .sub {
  font-size: 11px;
  color: #6b7589;
  margin-top: 4px;
  font-family: ui-monospace, monospace;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  text-align: left;
  padding: 7px 12px;
  border-bottom: 1px solid #1a2030;
  vertical-align: top;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7589;
  font-weight: 600;
}
th.num, td.num {
  text-align: right;
  font-family: ui-monospace, monospace;
  font-feature-settings: "tnum";
}
td b { font-weight: 600; }
.path {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #6b7589;
}
td .path { display: block; margin-top: 2px; }
.dim { color: #3a4255; padding: 0 4px; }

.badge {
  display: inline-block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 3px;
  background: #1a2030;
  color: #6b7589;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 4px;
}
.badge.source-db      { background: #11321b; color: #5dd882; }
.badge.source-env     { background: #3a2e0d; color: #f0b85a; }
.badge.source-default { background: #1a2540; color: #6ea8fe; }
.badge.gh-set         { background: #2a2440; color: #b89bf6; }

.optional {
  color: #6b7589;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.path.ok   { color: #4f9a6a; }
.path.warn { color: #ef4444; }

details.new-project {
  margin: 0 0 16px;
  background: #131826;
  border: 1px solid #1a2030;
  border-radius: 6px;
  padding: 0;
}
details.new-project summary {
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6ea8fe;
  user-select: none;
}
details.new-project[open] summary { border-bottom: 1px solid #1a2030; }
details.new-project form {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  align-items: end;
}
details.new-project label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7589;
  font-weight: 600;
}
details.new-project label.check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: #e8ecf3;
  font-size: 13px;
}
details.new-project input[type="text"],
details.new-project input[type="password"] {
  margin-top: 6px;
  padding: 7px 10px;
  border: 1px solid #1a2030;
  background: #0a0e1a;
  color: #e8ecf3;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  font-feature-settings: "tnum";
}
details.new-project input:focus {
  outline: none;
  border-color: #6ea8fe;
}
details.new-project button {
  padding: 8px 16px;
  background: #6ea8fe;
  color: #0a0e1a;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
details.new-project button:hover { background: #8bb9fe; }
details.new-project .hint {
  grid-column: 1 / -1;
  font-size: 11px;
  color: #6b7589;
  margin: 4px 0 0;
}

.stack-group {
  margin-bottom: 18px;
  border: 1px solid #1a2030;
  border-radius: 6px;
  overflow: hidden;
}
.stack-group.platform { border-color: #2a3552; }
.stack-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 14px;
  background: #131826;
  border-bottom: 1px solid #1a2030;
  flex-wrap: wrap;
  gap: 12px;
}
.stack-group.platform .stack-header { background: #142035; }
.stack-name {
  font-weight: 600;
  font-size: 13px;
  color: #e8ecf3;
  font-family: ui-monospace, monospace;
}
.stack-networks {
  font-size: 11px;
  color: #6b7589;
}
.stack-networks code {
  background: transparent;
  padding: 0;
  font-size: 11px;
  color: #8a96ad;
}
.stack-group table { font-size: 12.5px; }
.stack-group th, .stack-group td { padding: 6px 14px; }
.stack-group tr:last-child td { border-bottom: none; }

td.actions { width: 1%; padding-right: 12px; }
.row-action {
  position: relative;
}
.row-action summary {
  cursor: pointer;
  list-style: none;
  padding: 4px 8px;
  font-weight: 700;
  color: #6b7589;
  border-radius: 4px;
  user-select: none;
}
.row-action summary::-webkit-details-marker { display: none; }
.row-action summary:hover { color: #e8ecf3; background: #1a2030; }
.row-action[open] summary { color: #e8ecf3; background: #1a2030; }
.row-action-body {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 280px;
  background: #131826;
  border: 1px solid #1a2030;
  border-radius: 6px;
  padding: 10px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.row-action-body form { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.row-action-body form.rotate input {
  flex: 1; min-width: 140px;
  padding: 5px 8px;
  background: #0a0e1a;
  border: 1px solid #1a2030;
  color: #e8ecf3;
  border-radius: 3px;
  font-size: 12px;
  font-family: inherit;
}
.row-action-body button {
  padding: 5px 10px;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
}
.row-action-body form.rotate button { background: #6ea8fe; color: #0a0e1a; }
.row-action-body form.delete button { background: #2a1818; color: #ef4444; border: 1px solid #4a2222; width: 100%; }
.row-action-body form.delete-wipe button { background: #ef4444; color: #fff; width: 100%; }

tr.status-running { color: #e8ecf3; }
tr.status-running td:nth-child(3) { color: #5dd882; }
tr.status-exited { color: #6b7589; }
tr.status-exited td:nth-child(3) { color: #ef4444; }
tr.status-error td:nth-child(3) { color: #ef4444; }

.health-healthy { color: #5dd882; }
.health-unhealthy { color: #ef4444; }
.health-starting { color: #f0b85a; }

.empty {
  color: #6b7589;
  font-style: italic;
  padding: 8px 0;
}

footer {
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6b7589;
}

/* ── /admin ────────────────────────────────────────────────────── */

.banner {
  margin: 0 32px 0;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid;
}
.banner.ok  { background: #11321b; border-color: #1f5a32; color: #b6f0c8; }
.banner.err { background: #3a1818; border-color: #6a2828; color: #ffb4b4; }
.warn { color: #f0b85a; }

.admin-form {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-form fieldset {
  border: 1px solid #1a2030;
  border-radius: 6px;
  background: #131826;
  padding: 12px 16px 14px;
  margin: 0;
}
.admin-form legend {
  padding: 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7589;
  font-weight: 600;
}
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7589;
  font-weight: 600;
}
.admin-form label.check {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: #6b7589;
  font-size: 12px;
  margin-top: 6px;
  white-space: nowrap;
}
.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form input[type="email"],
.admin-form input[type="number"],
.admin-form input[type="url"],
.admin-form select {
  padding: 7px 10px;
  border: 1px solid #1a2030;
  background: #0a0e1a;
  color: #e8ecf3;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  font-feature-settings: "tnum";
}
.admin-form input:focus,
.admin-form select:focus {
  outline: none;
  border-color: #6ea8fe;
}
.admin-form .settings-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 8px 0;
  border-bottom: 1px dashed #1a2030;
}
.admin-form .settings-row:last-child { border-bottom: none; }
.admin-form .form-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.admin-form button {
  padding: 8px 18px;
  background: #6ea8fe;
  color: #0a0e1a;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.admin-form button:hover { background: #8bb9fe; }
.admin-form .hint {
  grid-column: 1 / -1;
  font-size: 11px;
  color: #6b7589;
  margin: 0;
}
.admin-form .badge {
  margin-left: 6px;
}

/* Section sub-heading inside /admin (e.g. "Recent access requests"). */
.admin-subhead {
  margin: 24px 0 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7589;
  font-weight: 600;
}

/* Compact "X requests" log under the email section. */
.access-log {
  max-width: 760px;
  font-size: 12.5px;
}
.access-log th, .access-log td {
  padding: 6px 10px;
}
.access-log td .path { display: inline; }

.status-pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.status-pill.status-ok   { background: #11321b; color: #b6f0c8; }
.status-pill.status-fail { background: #3a1818; color: #ffb4b4; }

/* When .warn class is set on a hint paragraph, give it a soft amber tint. */
.hint.warn,
.admin-form .hint.warn {
  color: #f0b85a;
  background: rgba(76, 50, 14, 0.4);
  border: 1px solid #5d4d2c;
  padding: 8px 12px;
  border-radius: 6px;
}

/* Ports column (containers section) + Apps column (projects section) */
td.ports,
td.apps {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.6;
}
.port {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  margin: 1px 3px 1px 0;
  white-space: nowrap;
}
.port.pub {
  background: #1c2c1f;
  color: #a4d8a4;
  border: 1px solid #2a4a2c;
}
.port.int {
  background: #1a1f2c;
  color: #6b7589;
  border: 1px solid #252b3a;
}
.port .arrow {
  margin: 0 2px;
  color: #6b7589;
}
.app-row {
  margin-bottom: 4px;
  white-space: nowrap;
}
.app-row:last-child { margin-bottom: 0; }
.app-name {
  display: inline-block;
  margin-right: 6px;
  color: #b8c1d6;
  font-weight: 600;
}

/* Domain pills next to a published-port pill (clickable). */
.domain {
  display: inline-block;
  padding: 1px 6px;
  margin: 1px 3px 1px 0;
  border-radius: 3px;
  background: #1c2438;
  color: #8ab4f8;
  border: 1px solid #2a3550;
  text-decoration: none;
  font-size: 11px;
  white-space: nowrap;
}
.domain:hover {
  background: #243152;
  text-decoration: underline;
}
.port-row { line-height: 1.7; }
.port-row + .port-row { margin-top: 2px; }

/* ─── Login page ─────────────────────────────────────────────────────
   Layered radial gradients on a near-black canvas, a card with a soft
   blue glow + monogram tile so the page reads as branded rather than
   default-browser-dialog. */

body.login-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(110, 168, 254, 0.06), transparent 60%),
    radial-gradient(1000px 800px at 85% 100%, rgba(184, 155, 246, 0.05), transparent 60%),
    #06090f;
}

.login-shell {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.login-card {
  width: 100%;
  background:
    linear-gradient(180deg, rgba(28, 36, 56, 0.55), rgba(19, 24, 38, 0.85));
  border: 1px solid #20283e;
  border-radius: 14px;
  padding: 36px 36px 28px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(110, 168, 254, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  position: relative;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: radial-gradient(120px 60px at 50% 0%, rgba(110, 168, 254, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.login-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  font-weight: 700;
  color: #0a0e1a;
  background: linear-gradient(135deg, #6ea8fe, #b89bf6);
  border-radius: 10px;
  box-shadow:
    0 6px 20px rgba(110, 168, 254, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  letter-spacing: -0.02em;
}

.login-brand-text h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #e8ecf3;
}

.login-brand-text p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6b7589;
  letter-spacing: 0.02em;
}

.login-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(76, 24, 32, 0.6);
  border: 1px solid #5d2229;
  color: #f5a3aa;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
}
.login-error svg { flex-shrink: 0; }

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7589;
  font-weight: 600;
}

.login-field input[type="text"],
.login-field input[type="password"] {
  padding: 11px 14px;
  border: 1px solid #20283e;
  background: rgba(10, 14, 26, 0.7);
  color: #e8ecf3;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.login-field input:hover { border-color: #2a3552; }
.login-field input:focus {
  outline: none;
  border-color: #6ea8fe;
  background: rgba(10, 14, 26, 0.95);
  box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.18);
}
.login-field input:-webkit-autofill {
  -webkit-text-fill-color: #e8ecf3;
  -webkit-box-shadow: 0 0 0 1000px rgba(10, 14, 26, 0.95) inset;
  caret-color: #e8ecf3;
}

.login-submit {
  margin-top: 10px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #7eb3ff, #5e9cf3);
  color: #06090f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 120ms ease, transform 120ms ease;
  box-shadow:
    0 8px 22px rgba(110, 168, 254, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.login-submit:hover { filter: brightness(1.06); }
.login-submit:active { transform: translateY(1px); }
.login-submit svg { transition: transform 160ms ease; }
.login-submit:hover svg { transform: translateX(2px); }

.login-hint {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid #1a2030;
  font-size: 11.5px;
  color: #6b7589;
  line-height: 1.55;
}
.login-hint code {
  font-size: 11px;
  padding: 1px 5px;
  background: #0e1422;
  border: 1px solid #1a2030;
  color: #8a96ad;
}

.login-footer {
  font-size: 11px;
  color: #4a5266;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Logout button styled as a header link, not a chunky form button. */
.logout-form { display: inline; margin: 0; }
.logout-form .link-button {
  background: none;
  border: none;
  color: #6ea8fe;
  font: inherit;
  font-size: 12px;
  padding: 0;
  cursor: pointer;
}
.logout-form .link-button:hover { text-decoration: underline; }

/* Container tables: pin each column to the same width across all stack groups
   so the columns line up vertically when you scan from one stack to the next.
   Without table-layout:fixed each table sizes columns to its own content. */
.stack-group table { table-layout: fixed; width: 100%; }
.stack-group th:nth-child(1), .stack-group td:nth-child(1) { width: 13%; }  /* Service */
.stack-group th:nth-child(2), .stack-group td:nth-child(2) { width: 21%; }  /* Name */
.stack-group th:nth-child(3), .stack-group td:nth-child(3) { width: 16%; }  /* Image */
.stack-group th:nth-child(4), .stack-group td:nth-child(4) { width: 8%;  }  /* Status */
.stack-group th:nth-child(5), .stack-group td:nth-child(5) { width: 8%;  }  /* Health */
.stack-group th:nth-child(6), .stack-group td:nth-child(6) { width: 22%; }  /* Ports */
.stack-group th:nth-child(7), .stack-group td:nth-child(7) { width: 12%; }  /* Started */
.stack-group td { word-break: break-word; overflow-wrap: anywhere; }

/* ─── Inbox (Roundcube iframe wrapper) ─────────────────────────────
   Full-viewport iframe filling the area below the dashboard header.
   No padding around the iframe so Roundcube's own UI claims every
   pixel; the dashboard header stays as the wrapping context. */

body.inbox-body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.inbox-body header {
  flex: 0 0 auto;
}
.inbox-frame {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #06090f;
  /* Fall-back for older browsers that don't honour flex on iframes */
  min-height: calc(100vh - 64px);
}

/* ─── Landing page (public /) ────────────────────────────────────────
   Same gradient canvas + monogram tile as the login page so the two
   feel like the same product. Hero + 3 numbered steps + 2 meta cards
   + minimal header/footer. Single-column on mobile, multi-column
   above 720 px. */

body.landing-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(110, 168, 254, 0.06), transparent 60%),
    radial-gradient(1000px 800px at 85% 100%, rgba(184, 155, 246, 0.05), transparent 60%),
    #06090f;
  color: #e8ecf3;
}

.landing-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 32px 48px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 24px;
  border-bottom: 1px solid #131826;
  margin-bottom: 56px;
}
.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.landing-brand .login-mark {
  width: 32px;
  height: 32px;
  font-size: 14px;
  border-radius: 8px;
  box-shadow:
    0 4px 12px rgba(110, 168, 254, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.landing-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e8ecf3;
  background: rgba(110, 168, 254, 0.08);
  border: 1px solid rgba(110, 168, 254, 0.2);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.landing-nav-cta:hover {
  background: rgba(110, 168, 254, 0.16);
  border-color: rgba(110, 168, 254, 0.4);
  text-decoration: none;
}

.landing-main { flex: 1; }

.landing-hero {
  max-width: 720px;
  margin: 0 auto 80px;
  text-align: center;
}
.landing-eyebrow {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6ea8fe;
  background: rgba(110, 168, 254, 0.08);
  border: 1px solid rgba(110, 168, 254, 0.18);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 24px;
  font-weight: 600;
}
.landing-hero h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 20px;
  background: linear-gradient(180deg, #ffffff 0%, #b1bccd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.landing-lead {
  font-size: 17px;
  line-height: 1.6;
  color: #b1bccd;
  margin: 0 0 32px;
}

.landing-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.landing-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #6ea8fe, #b89bf6);
  color: #0a0e1a;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: -0.005em;
  box-shadow:
    0 8px 24px rgba(110, 168, 254, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.landing-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(110, 168, 254, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-decoration: none;
}
.landing-cta-secondary {
  display: inline-flex;
  align-items: center;
  color: #e8ecf3;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(110, 168, 254, 0.35);
  background: rgba(110, 168, 254, 0.08);
  cursor: pointer;
  letter-spacing: -0.005em;
}
.landing-cta-secondary:hover {
  background: rgba(110, 168, 254, 0.16);
  border-color: rgba(110, 168, 254, 0.55);
  text-decoration: none;
}

.landing-cta-tertiary {
  display: inline-flex;
  align-items: center;
  color: #b1bccd;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.landing-cta-tertiary:hover {
  color: #e8ecf3;
  text-decoration: none;
  border-color: #2a3552;
}

/* Banner above the CTAs after a Request-Access submission. */
.landing-banner {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  border: 1px solid;
  text-align: left;
}
.landing-banner--ok {
  background: rgba(17, 50, 27, 0.55);
  border-color: #1f5a32;
  color: #b6f0c8;
}
.landing-banner--err {
  background: rgba(58, 24, 24, 0.55);
  border-color: #6a2828;
  color: #ffb4b4;
}

/* ── Request Access modal (<dialog>) ───────────────────────────── */
.landing-dialog {
  border: 1px solid #2a3552;
  background: linear-gradient(180deg, rgba(28, 36, 56, 0.95), rgba(19, 24, 38, 0.98));
  color: #e8ecf3;
  border-radius: 14px;
  padding: 0;
  width: min(92vw, 460px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
}
.landing-dialog::backdrop {
  background: rgba(6, 9, 15, 0.7);
  backdrop-filter: blur(3px);
}
.landing-dialog-form {
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.landing-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}
.landing-dialog-head h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.landing-dialog-close {
  background: transparent;
  border: 0;
  color: #6b7589;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.landing-dialog-close:hover { background: #131826; color: #e8ecf3; }
.landing-dialog-lead {
  margin: -4px 0 4px;
  font-size: 13px;
  color: #8b95a8;
  line-height: 1.55;
}
.landing-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7589;
  font-weight: 600;
}
.landing-field input,
.landing-field textarea {
  padding: 9px 12px;
  border: 1px solid #2a3552;
  background: #0a0e1a;
  color: #e8ecf3;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  resize: vertical;
}
.landing-field input:focus,
.landing-field textarea:focus {
  outline: none;
  border-color: #6ea8fe;
}
.landing-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.landing-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.landing-dialog-actions .landing-cta-primary,
.landing-dialog-actions .landing-cta-tertiary {
  font-size: 13px;
  padding: 10px 16px;
}

.landing-warning {
  margin: 28px auto 0;
  max-width: 600px;
  background: rgba(76, 50, 14, 0.45);
  border: 1px solid #5d4d2c;
  color: #f0c878;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
}
.landing-warning code {
  background: rgba(0, 0, 0, 0.25);
  color: #f5dba0;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
}

.landing-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7589;
  font-weight: 600;
  text-align: center;
  margin: 0 0 28px;
}

.landing-steps { margin-bottom: 72px; }
.landing-steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.landing-step {
  background: linear-gradient(180deg, rgba(28, 36, 56, 0.55), rgba(19, 24, 38, 0.85));
  border: 1px solid #20283e;
  border-radius: 14px;
  padding: 28px 24px 24px;
  position: relative;
}
.landing-step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(110, 168, 254, 0.12);
  border: 1px solid rgba(110, 168, 254, 0.3);
  color: #6ea8fe;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.landing-step h3 {
  font-size: 17px;
  margin: 0 0 10px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.landing-step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #b1bccd;
}

.landing-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}
.landing-meta-card {
  background: rgba(19, 24, 38, 0.6);
  border: 1px solid #1a2030;
  border-radius: 12px;
  padding: 22px 24px;
}
.landing-meta-card h3 {
  font-size: 14px;
  margin: 0 0 8px;
  color: #ffffff;
  font-weight: 600;
}
.landing-meta-card p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #8b95a8;
}
.landing-meta-link {
  font-size: 13px;
  color: #6ea8fe;
  font-weight: 600;
  text-decoration: none;
}
.landing-meta-link:hover { text-decoration: underline; }

.landing-footer {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid #131826;
  text-align: center;
  font-size: 12px;
  color: #4a5266;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .landing-shell { padding: 20px 18px 32px; }
  .landing-header { margin-bottom: 36px; }
  .landing-hero { margin-bottom: 56px; }
  .landing-hero h1 { font-size: 32px; }
  .landing-lead { font-size: 15px; }
  .landing-cta-primary,
  .landing-cta-secondary,
  .landing-cta-tertiary { padding: 11px 18px; font-size: 13.5px; }
  .landing-cta-row { flex-direction: column; align-items: stretch; }
  .landing-cta-primary,
  .landing-cta-secondary,
  .landing-cta-tertiary { justify-content: center; }
  .landing-steps-grid { grid-template-columns: 1fr; }
  .landing-meta { grid-template-columns: 1fr; }
  .landing-dialog { width: calc(100vw - 24px); border-radius: 12px; }
}
