:root {
  color-scheme: dark;
  --bg: #65d7ff;
  --bg-2: #9eeaff;
  --surface: rgba(16, 117, 145, .58);
  --surface-2: rgba(16, 92, 127, .72);
  --line: rgba(255, 255, 255, .34);
  --line-strong: rgba(197, 255, 93, .78);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .82);
  --green: #c5ff5d;
  --cyan: #e5fbff;
  --amber: #ffe169;
  --rose: #ff7bbd;
  --ink: #06100b;
  --shadow: 0 24px 80px rgba(0, 63, 86, .28);
  font-family: "Cascadia Mono", Consolas, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(197,255,93,.46), transparent 22%),
    radial-gradient(circle at 82% 8%, rgba(255,225,105,.42), transparent 24%),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(135deg, #62d8ff 0%, #76ddff 45%, #35baf0 100%);
  background-size: 64px 64px, 64px 64px, auto;
  animation: skyDrift 18s ease-in-out infinite alternate;
}

body.auth-open { overflow: hidden; }

a { color: inherit; }

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(62, 194, 237, .72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand img,
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 0 24px rgba(100, 241, 172, .18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.nav button,
.button,
.copy-button,
.tab-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, .055);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.nav a:hover,
.nav button:hover,
.button:hover,
.copy-button:hover,
.tab-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(100, 241, 172, .12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.button.primary,
.nav .install-link,
.tab-button.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--amber));
  color: var(--ink);
  box-shadow: 0 16px 44px rgba(100, 241, 172, .16);
}

.button.secondary {
  background: linear-gradient(135deg, rgba(115, 222, 242, .13), rgba(255, 123, 189, .10));
}

.button.danger {
  border-color: rgba(255, 123, 189, .45);
  color: #ffd7eb;
}

.account-chip {
  border-color: rgba(255, 211, 106, .38);
  color: #fff0bd;
}

.account-chip.good {
  border-color: rgba(100, 241, 172, .55);
  color: var(--green);
}

main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-stage {
  position: relative;
  min-height: min(760px, calc(100vh - 74px));
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(18, 129, 165, .18), rgba(0, 121, 160, .68) 58%),
    url("/assets/ClosedBit.png") right 8vw center / min(52vw, 650px) auto no-repeat;
  opacity: .95;
}

.hero-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  background: linear-gradient(180deg, transparent, rgba(53, 186, 240, .78));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0 78px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(54px, 10vw, 118px);
  line-height: .88;
  font-weight: 950;
}

.hero-content h1 {
  text-shadow: 0 20px 60px rgba(0, 0, 0, .42);
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: #ffffff;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.58;
  font-style: italic;
}

.hero-actions,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 42px;
  max-width: 980px;
}

.trust-row div,
.panel,
.card,
.code-card,
.sandbox-shell,
.doc-layout,
.metric-strip,
.install-panel,
.account-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--surface), rgba(8, 15, 11, .88));
  box-shadow: var(--shadow);
  animation: floatIn .55s ease both;
}

.trust-row div {
  padding: 16px;
  min-height: 92px;
}

.trust-row strong {
  display: block;
  font-size: 21px;
}

.trust-row span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.section {
  padding: 56px 0 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-head h2,
.section-head p {
  margin: 0;
}

.section-head h2 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
}

.section-head p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.55;
  font-style: italic;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.panel,
.install-panel,
.account-panel {
  padding: 18px;
}

.card h3,
.panel h3,
.install-panel h3,
.account-panel h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p,
.panel p,
.install-panel p,
.account-panel p,
.doc-copy p,
.small-copy {
  color: var(--muted);
  line-height: 1.55;
  font-style: italic;
}

@keyframes skyDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, center; }
  to { background-position: 40px 18px, -30px 24px, 18px 0, 0 18px, center; }
}

@keyframes floatIn {
  from { opacity: .82; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.install-panel {
  display: grid;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(100, 241, 172, .12), rgba(115, 222, 242, .08)),
    var(--surface);
}

.install-panel .button {
  width: fit-content;
}

.launch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.launch-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 123, 189, .10), rgba(115, 222, 242, .10)),
    rgba(8, 15, 11, .88);
  box-shadow: var(--shadow);
}

.launch-panel.good {
  background:
    linear-gradient(145deg, rgba(197, 255, 93, .18), rgba(115, 222, 242, .12)),
    rgba(8, 15, 11, .88);
}

.launch-panel h3 {
  margin: 0;
  color: var(--green);
  font-size: 24px;
}

.launch-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-style: italic;
}

.code-card.compact pre {
  max-height: 190px;
}

.metric-tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(16,117,145,.66), rgba(22,150,184,.50));
  box-shadow: var(--shadow);
  padding: 14px;
}

.metric-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.metric-panel {
  overflow: auto;
}

.metric-panel table {
  width: 100%;
}

.library-source-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.library-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
}

.library-links .button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.metric-strip div {
  padding: 18px;
  background: rgba(255, 255, 255, .035);
}

.metric-strip strong {
  display: block;
  color: var(--amber);
  font-size: 26px;
}

.metric-strip span {
  color: var(--muted);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.route-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(100, 241, 172, .10), rgba(255, 123, 189, .08)),
    rgba(8, 15, 11, .88);
}

.route-card:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(115, 222, 242, .12), rgba(255, 211, 106, .08)),
    rgba(8, 15, 11, .88);
}

.route-card h3 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .95;
}

.route-card p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.55;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.code-card {
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
}

.code-head strong {
  color: var(--green);
}

.copy-button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

pre {
  margin: 0;
  overflow: auto;
  padding: 16px;
  background: rgba(0, 0, 0, .28);
}

code,
textarea.mono {
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
}

code {
  display: block;
  color: #eafff3;
  line-height: 1.55;
  white-space: pre;
}

.account-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 12px;
}

.account-panel {
  min-height: 100%;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(115, 222, 242, .26);
  color: var(--cyan);
  background: rgba(115, 222, 242, .08);
  font-size: 12px;
  font-weight: 900;
}

.pill.good {
  border-color: rgba(100, 241, 172, .42);
  color: var(--green);
  background: rgba(100, 241, 172, .10);
}

.form {
  display: grid;
  gap: 10px;
}

.form.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 6px;
  color: #c8e6d6;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(193, 255, 226, .18);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(0, 0, 0, .22);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(100, 241, 172, .12);
}

.notice {
  min-height: 22px;
  color: var(--amber);
  font-weight: 800;
}

.license-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(100, 241, 172, .32);
  border-radius: 8px;
  background: rgba(100, 241, 172, .08);
}

.license-card strong {
  color: var(--green);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(14px);
}

.auth-modal.open {
  display: flex;
}

.auth-dialog {
  width: calc(100vw - 36px);
  max-width: 980px;
  max-height: calc(100vh - 36px);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(340px, 1.08fr);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: #09100b;
  box-shadow: 0 30px 110px rgba(0, 0, 0, .55);
}

.auth-aside {
  min-width: 0;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(100, 241, 172, .14), rgba(115, 222, 242, .08)),
    #0c1710;
}

.auth-aside img {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .16);
}

.auth-aside h2 {
  margin: 18px 0 10px;
  font-size: 38px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.auth-aside p,
.auth-aside li {
  overflow-wrap: anywhere;
}

.auth-body {
  min-width: 0;
  padding: 28px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-pane {
  display: none;
}

.auth-pane.active {
  display: block;
}

.auth-close-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.sandbox-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  min-height: 620px;
  overflow: hidden;
}

.sandbox-editor,
.sandbox-output {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sandbox-editor {
  border-right: 1px solid var(--line);
}

.sandbox-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.sandbox-toolbar select {
  width: min(100%, 250px);
}

.sandbox-source {
  flex: 1;
  min-height: 420px;
  resize: none;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, .26);
  font-size: 14px;
  line-height: 1.55;
}

.sandbox-output pre {
  flex: 1;
  min-height: 160px;
  border-top: 1px solid var(--line);
}

.sandbox-status {
  padding: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.vm-screen {
  display: grid;
  grid-template-rows: auto minmax(92px, 1fr);
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(100, 241, 172, .08), rgba(115, 222, 242, .05)),
    rgba(0, 0, 0, .18);
}

#sandboxCanvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 1px solid rgba(193, 255, 226, .2);
  border-radius: 8px;
  background: #071018;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

#sandboxConsole {
  min-height: 92px;
  max-height: 160px;
  margin: 0;
  border: 1px solid rgba(193, 255, 226, .16);
  border-radius: 8px;
  background: rgba(0, 0, 0, .28);
  color: #eafff3;
}

.doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

.doc-nav {
  padding: 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}

.doc-nav a {
  display: block;
  padding: 10px 8px;
  border-radius: 8px;
  color: #d9f4e7;
  text-decoration: none;
}

.doc-nav a:hover {
  background: rgba(100, 241, 172, .10);
}

.doc-content {
  min-width: 0;
  padding: 18px;
}

.doc-copy {
  display: grid;
  gap: 12px;
}

.doc-copy h2 {
  margin: 0;
  font-size: 34px;
}

.callout {
  border: 1px solid rgba(255, 211, 106, .3);
  border-radius: 8px;
  padding: 14px;
  color: #fff0bd;
  background: rgba(255, 211, 106, .08);
}

.clean-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.compact-hero {
  min-height: 520px;
}

.metric-strip.metric-strip-large strong {
  font-size: clamp(28px, 4vw, 46px);
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metrics-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--surface), rgba(8, 15, 11, .88));
  box-shadow: var(--shadow);
}

.metrics-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.metrics-table th,
.metrics-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(193, 255, 226, .11);
  text-align: left;
  vertical-align: top;
}

.metrics-table tr:last-child th,
.metrics-table tr:last-child td {
  border-bottom: 0;
}

.metrics-table th {
  color: #d9ffef;
  background: rgba(100, 241, 172, .07);
  font-size: 12px;
  text-transform: uppercase;
}

.metrics-table .win td:first-child {
  color: var(--green);
  font-weight: 950;
}

.metrics-table .fail td:first-child {
  color: var(--rose);
  font-weight: 950;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(1200px, calc(100% - 32px));
  margin: 56px auto 0;
  padding: 26px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* 2026-06 visual pass: cleaner than the old checkerboard, with Command Prompt-grade readability. */
:root {
  --cmd-font: Consolas, "Lucida Console", "Courier New", monospace;
  --outline: 0 1px 0 #003342, 1px 0 0 #003342, -1px 0 0 #003342, 0 -1px 0 #003342, 0 7px 28px rgba(0, 31, 43, .42);
}

body {
  font-family: var(--cmd-font);
  background:
    radial-gradient(circle at 12% 8%, rgba(197, 255, 93, .45), transparent 18%),
    radial-gradient(circle at 90% 12%, rgba(255, 225, 105, .30), transparent 22%),
    linear-gradient(160deg, #76ddff 0%, #45c7f2 42%, #1598c3 100%);
  background-size: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.08));
}

.site-header {
  background: rgba(7, 31, 42, .78);
  box-shadow: 0 10px 36px rgba(0, 44, 62, .22);
}

.brand,
.nav a,
.nav button,
.button,
.copy-button,
.tab-button,
h1,
h2,
h3,
.eyebrow,
.lead,
.trust-row strong,
.metric-strip strong {
  text-shadow: var(--outline);
}

.hero-stage {
  min-height: min(760px, calc(100vh - 68px));
}

.hero-stage::before {
  background:
    linear-gradient(90deg, rgba(7, 31, 42, .78), rgba(7, 31, 42, .36) 54%, rgba(7, 31, 42, .08)),
    url("/assets/ClosedBit.png") right 13vw center / min(26vw, 320px) auto no-repeat;
  opacity: 1;
}

.hero-stage::after {
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(69, 199, 242, .72));
}

.hero-content {
  padding-top: clamp(82px, 10vw, 132px);
}

.hero-content h1 {
  letter-spacing: 0;
  text-shadow:
    0 2px 0 #003342,
    2px 0 0 #003342,
    -2px 0 0 #003342,
    0 -2px 0 #003342,
    0 20px 64px rgba(0, 31, 43, .58);
}

.lead {
  max-width: 760px;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 700;
}

.trust-row div,
.panel,
.card,
.code-card,
.sandbox-shell,
.doc-layout,
.metric-strip,
.install-panel,
.account-panel,
.launch-panel,
.metrics-table,
.metric-tabs,
.route-card {
  background:
    linear-gradient(145deg, rgba(8, 24, 30, .88), rgba(3, 12, 16, .92)),
    rgba(8, 15, 11, .9);
  border-color: rgba(229, 251, 255, .34);
}

.card p,
.panel p,
.install-panel p,
.account-panel p,
.doc-copy p,
.small-copy,
.section-head p,
.route-card p,
.launch-panel p {
  color: rgba(255, 255, 255, .9);
}

.button.primary,
.nav .install-link,
.tab-button.active {
  color: #071018;
  text-shadow: none;
}

.nav .settings-link {
  border-color: rgba(197, 255, 93, .42);
  color: var(--green);
}

.reveal {
  opacity: .16;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(.45em);
  animation: wordRise .62s cubic-bezier(.2, .72, .22, 1) forwards;
  animation-delay: calc(var(--word-index, 0) * 38ms);
}

.engine-compare {
  display: grid;
  gap: 12px;
}

.engine-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.engine-panel[hidden] {
  display: none;
}

.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .66);
  backdrop-filter: blur(12px);
}

.settings-modal.open {
  display: flex;
}

.settings-dialog {
  width: min(720px, calc(100vw - 28px));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: #061017;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
}

.settings-head,
.settings-body,
.settings-actions {
  padding: 18px;
}

.settings-head,
.settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(229, 251, 255, .18);
}

.settings-actions {
  border-top: 1px solid rgba(229, 251, 255, .18);
  border-bottom: 0;
}

.settings-body {
  display: grid;
  gap: 12px;
}

.setting-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(229, 251, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}

.setting-row input {
  width: 22px;
  min-height: 22px;
  margin-top: 2px;
}

.setting-row strong {
  display: block;
  color: var(--green);
}

.setting-row span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-style: italic;
}

body.cmd-theme {
  --bg: #000;
  --surface: #050505;
  --surface-2: #0b0b0b;
  --line: rgba(192, 192, 192, .42);
  --line-strong: #c0c0c0;
  --text: #f2f2f2;
  --muted: #c0c0c0;
  --green: #00ff00;
  --amber: #ffff00;
  --cyan: #ffffff;
  --outline: none;
  background: #000;
  animation: none;
}

body.cmd-theme::before,
body.cmd-theme .hero-stage::after {
  display: none;
}

body.cmd-theme .hero-stage::before {
  background: #000;
}

body.cmd-theme .site-header,
body.cmd-theme .trust-row div,
body.cmd-theme .panel,
body.cmd-theme .card,
body.cmd-theme .code-card,
body.cmd-theme .sandbox-shell,
body.cmd-theme .doc-layout,
body.cmd-theme .metric-strip,
body.cmd-theme .install-panel,
body.cmd-theme .account-panel,
body.cmd-theme .launch-panel,
body.cmd-theme .metrics-table,
body.cmd-theme .metric-tabs,
body.cmd-theme .route-card,
body.cmd-theme .settings-dialog {
  background: #000;
  border-color: #c0c0c0;
  box-shadow: none;
}

body.cmd-theme .button.primary,
body.cmd-theme .nav .install-link,
body.cmd-theme .tab-button.active {
  color: #000;
  background: #c0c0c0;
}

body.cmd-theme .button.secondary,
body.cmd-theme .nav a,
body.cmd-theme .nav button,
body.cmd-theme .copy-button,
body.cmd-theme .tab-button {
  background: #000;
  border-color: #c0c0c0;
  color: #f2f2f2;
}

body.cmd-theme .eyebrow,
body.cmd-theme .brand,
body.cmd-theme .account-chip.good,
body.cmd-theme .code-head strong,
body.cmd-theme .metric-strip strong {
  color: #00ff00;
}

body.reduce-motion,
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}

body.no-outline .brand,
body.no-outline .nav a,
body.no-outline .nav button,
body.no-outline .button,
body.no-outline .copy-button,
body.no-outline .tab-button,
body.no-outline h1,
body.no-outline h2,
body.no-outline h3,
body.no-outline .eyebrow,
body.no-outline .lead,
body.no-outline .trust-row strong,
body.no-outline .metric-strip strong {
  text-shadow: none;
}

@keyframes wordRise {
  to { opacity: 1; transform: translateY(0); }
}

/* Luxury product pass: darker, calmer, and less like a development note. */
body {
  background:
    radial-gradient(circle at 78% 18%, rgba(119, 255, 219, .24), transparent 28%),
    radial-gradient(circle at 18% 32%, rgba(197, 255, 93, .11), transparent 24%),
    linear-gradient(145deg, #07131a 0%, #0d3a46 48%, #44bfd8 100%);
}

body::before {
  opacity: .18;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .10) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 96px 96px;
}

.hero-stage::before {
  background:
    linear-gradient(90deg, rgba(3, 14, 20, .92), rgba(8, 45, 55, .66) 52%, rgba(60, 197, 220, .08)),
    url("/assets/ClosedBit.png") right 12vw center / min(24vw, 300px) auto no-repeat;
}

.hero-stage {
  border-bottom-color: rgba(229, 251, 255, .28);
}

.hero-stage::after {
  background: linear-gradient(180deg, transparent, rgba(19, 157, 187, .35));
}

.site-header {
  background: rgba(4, 21, 29, .92);
}

.trust-row div,
.panel,
.card,
.code-card,
.sandbox-shell,
.doc-layout,
.metric-strip,
.install-panel,
.account-panel,
.launch-panel,
.metrics-table,
.metric-tabs,
.route-card {
  background:
    linear-gradient(145deg, rgba(7, 20, 27, .96), rgba(2, 8, 12, .94));
  border-color: rgba(199, 248, 255, .18);
  box-shadow: 0 28px 80px rgba(0, 19, 28, .34);
}

.reveal {
  opacity: .82;
  transform: translateY(8px);
}

.word-reveal {
  opacity: 1;
  transform: none;
  animation: none;
}

.premium-tabs .engine-tab-buttons {
  padding: 12px;
  border: 1px solid rgba(199, 248, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

body.cmd-theme {
  font-family: Consolas, "Lucida Console", "Courier New", monospace;
  background: #000;
}

body.cmd-theme .hero-content::before {
  content: "ClosedBit Console\\A\\A C:\\\\ClosedBit> open portal\\A > loading product shell...";
  display: block;
  white-space: pre;
  margin-bottom: 22px;
  color: #c0c0c0;
  font-size: 18px;
  line-height: 1.25;
}

body.cmd-theme .hero-content h1,
body.cmd-theme .section-head h2 {
  color: #f2f2f2;
  text-shadow: none;
}

body.cmd-theme .lead,
body.cmd-theme p,
body.cmd-theme td,
body.cmd-theme th,
body.cmd-theme code {
  color: #c0c0c0;
  text-shadow: none;
}

body.cmd-theme .hero-stage,
body.cmd-theme .section {
  background: #000;
}

body.cmd-theme .brand img {
  filter: grayscale(1);
}

@media (max-width: 920px) {
  .site-header,
  footer,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-stage::before {
    background:
      linear-gradient(180deg, rgba(7, 11, 8, .32), rgba(7, 11, 8, .92)),
      url("/assets/ClosedBit.png") center 30px / min(78vw, 430px) auto no-repeat;
  }

  .hero-content {
    padding-top: min(64vw, 360px);
  }

  .trust-row,
  .card-grid,
  .card-grid.four,
  .reason-grid,
  .install-grid,
  .launch-grid,
  .route-grid,
  .code-grid,
  .account-section,
  .metric-strip,
  .sandbox-shell,
  .doc-layout,
  .auth-dialog {
    grid-template-columns: 1fr;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    overflow: auto;
  }

  .auth-aside,
  .auth-body {
    padding: 22px;
  }

  .auth-aside h2 {
    font-size: 30px;
    line-height: 1.08;
  }

  .auth-close-row .button {
    width: 100%;
    white-space: normal;
  }

  .auth-body .form .button {
    width: 100%;
  }

  .sandbox-editor,
  .doc-nav {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .form.two {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(48px, 16vw, 76px);
  }

  .hero-stage::before {
    background:
      linear-gradient(180deg, rgba(7, 31, 42, .82), rgba(7, 31, 42, .64)),
      url("/assets/ClosedBit.png") center 30px / min(62vw, 320px) auto no-repeat;
  }

  .launch-grid {
    grid-template-columns: 1fr;
  }
}

/* Product polish override: one smooth gradient, stronger motion, terminal mode that behaves like a prompt. */
:root {
  --cmd-font: Consolas, "Lucida Console", "Courier New", monospace;
  --outline: 0 1px 0 #002f3d, 1px 0 0 #002f3d, -1px 0 0 #002f3d, 0 -1px 0 #002f3d, 0 8px 28px rgba(0, 28, 38, .50);
}

html {
  font-size: 17px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--cmd-font);
  font-size: 1rem;
  line-height: 1.45;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(205, 255, 112, .22), transparent 26%),
    radial-gradient(circle at 18% 22%, rgba(105, 239, 255, .20), transparent 24%),
    linear-gradient(135deg, #06141b 0%, #0a3440 42%, #28bde3 100%);
  background-attachment: fixed;
  animation: gradientFlow 12s ease-in-out infinite alternate;
}

body::before {
  display: none;
}

.hero-stage::before {
  background:
    linear-gradient(90deg, rgba(3, 13, 20, .94), rgba(8, 45, 55, .70) 52%, rgba(40, 189, 227, .10)),
    url("/assets/ClosedBit.png") right 12vw center / min(24vw, 300px) auto no-repeat;
}

.hero-stage::after {
  background: linear-gradient(180deg, transparent, rgba(40, 189, 227, .24));
}

.lead,
.section-head p,
.card p,
.panel p,
.install-panel p,
.account-panel p,
.doc-copy p,
.small-copy,
.route-card p,
.launch-panel p,
.metrics-table td,
footer {
  text-shadow: 0 1px 0 rgba(0, 47, 61, .72), 0 6px 24px rgba(0, 28, 38, .34);
}

.hero-content > * {
  animation: heroLift .75s cubic-bezier(.2, .75, .16, 1) both;
}

.hero-content > *:nth-child(2) { animation-delay: .07s; }
.hero-content > *:nth-child(3) { animation-delay: .14s; }
.hero-content > *:nth-child(4) { animation-delay: .21s; }
.hero-content > *:nth-child(5) { animation-delay: .28s; }

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(.985);
  transition: opacity .62s ease, transform .62s cubic-bezier(.2, .75, .16, 1), filter .62s ease;
  filter: blur(8px);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(.85em) rotateX(-18deg);
  animation: wordPop .7s cubic-bezier(.16, .9, .22, 1) forwards;
  animation-delay: calc(var(--word-index, 0) * 58ms);
}

.button,
.tab-button,
.copy-button,
.nav a,
.nav button {
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.button:hover,
.tab-button:hover,
.copy-button:hover,
.nav a:hover,
.nav button:hover {
  box-shadow: 0 0 0 3px rgba(197, 255, 93, .10), 0 14px 36px rgba(0, 29, 41, .28);
}

body.cmd-theme {
  background: #000;
  color: #c0c0c0;
  animation: none;
}

body.cmd-theme .hero-content::before {
  content: "ClosedBit Console\\A\\A C:\\\\ClosedBit> open portal\\A > loading product shell...";
  display: block;
  white-space: pre;
  margin-bottom: 22px;
  color: #c0c0c0;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.32;
  text-shadow: none;
}

body.cmd-theme .hero-content h1 {
  display: inline-block;
  max-width: none;
  width: 9ch;
  overflow: hidden;
  white-space: nowrap;
  border-right: .16em solid #c0c0c0;
  animation: terminalType 1.05s steps(9, end) .12s both, caretBlink .72s step-end infinite;
}

body.cmd-theme .lead::before,
body.cmd-theme .section-head h2::before,
body.cmd-theme .card h3::before,
body.cmd-theme .panel h3::before,
body.cmd-theme .install-panel h3::before,
body.cmd-theme .metrics-table th:first-child::before {
  content: "> ";
  color: #00ff00;
}

body.cmd-theme .brand img {
  filter: none;
}

body.cmd-theme .hero-content > * {
  animation: none;
}

body.cmd-theme .hero-stage::before {
  background: #000;
}

body.cmd-theme .lead,
body.cmd-theme .section-head p,
body.cmd-theme .card p,
body.cmd-theme .panel p,
body.cmd-theme .install-panel p,
body.cmd-theme .account-panel p,
body.cmd-theme .doc-copy p,
body.cmd-theme .small-copy,
body.cmd-theme .route-card p,
body.cmd-theme .launch-panel p,
body.cmd-theme .metrics-table td,
body.cmd-theme footer {
  text-shadow: none;
}

@keyframes gradientFlow {
  from { background-position: 0 0, 0 0, center; }
  to { background-position: 36px 18px, -28px 24px, center; }
}

@keyframes heroLift {
  from { opacity: 0; transform: translateY(28px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes wordPop {
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

@keyframes terminalType {
  from { width: 0; }
  to { width: 9ch; }
}

@keyframes caretBlink {
  50% { border-color: transparent; }
}

@media (max-width: 700px) {
  html {
    font-size: 18px;
  }

  body {
    line-height: 1.5;
  }

  .site-header {
    padding: 12px;
    width: 100%;
    overflow: hidden;
  }

  .nav {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
    padding-bottom: 4px;
  }

  .nav a,
  .nav button {
    flex: 1 1 auto;
  }

  .nav a,
  .nav button,
  .button,
  .copy-button,
  .tab-button {
    min-height: 44px;
    padding: 10px 12px;
    font-size: .88rem;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-actions,
  .actions {
    width: 100%;
    align-items: stretch;
  }

  .hero-actions .button,
  .actions .button {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  p,
  span,
  code,
  td,
  th {
    overflow-wrap: anywhere;
  }

  .hero-content {
    width: min(100% - 24px, 680px);
    padding: 260px 0 54px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 54px);
  }

  .hero-stage {
    align-items: flex-start;
    min-height: auto;
  }

  .hero-stage::before {
    background:
      linear-gradient(180deg, rgba(3, 13, 20, .94), rgba(8, 45, 55, .70) 58%, rgba(40, 189, 227, .10)),
      url("/assets/ClosedBit.png") center 76px / min(54vw, 210px) auto no-repeat;
  }

  .trust-row div,
  .card,
  .panel,
  .install-panel,
  .account-panel,
  .launch-panel {
    padding: 16px;
  }
}

/* Final publish override: the page uses one continuous canvas so section joins do not draw seams. */
:root {
  --closedbit-page-gradient:
    radial-gradient(circle at 86% 12%, rgba(205, 255, 112, .20), transparent 25%),
    radial-gradient(circle at 18% 22%, rgba(105, 239, 255, .18), transparent 24%),
    linear-gradient(180deg, #06141b 0%, #08313c 46%, #139dbb 72%, #27bde1 100%);
}

body:not(.cmd-theme) {
  background: var(--closedbit-page-gradient) fixed !important;
}

body:not(.cmd-theme) .hero-stage,
body:not(.cmd-theme) .section {
  background: transparent !important;
}

body:not(.cmd-theme) .hero-stage {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body:not(.cmd-theme) .hero-stage::after {
  display: none !important;
}

body:not(.cmd-theme) .hero-stage::before {
  background: url("/assets/ClosedBit.png") right 12vw center / min(24vw, 300px) auto no-repeat !important;
  opacity: .92;
}

body:not(.cmd-theme) main {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

/* 2026-06-12 polish pass: keep the portal smooth, readable, and un-clipped. */
html {
  scroll-behavior: smooth;
}

body:not(.cmd-theme) {
  background:
    radial-gradient(circle at 80% 12%, rgba(197, 255, 93, .18), transparent 24%),
    radial-gradient(circle at 18% 18%, rgba(101, 239, 224, .22), transparent 28%),
    linear-gradient(180deg, #041016 0%, #062530 36%, #0c6f82 64%, #23bfe6 100%) fixed !important;
}

body:not(.cmd-theme) .section,
body:not(.cmd-theme) .hero-stage {
  border: 0 !important;
  box-shadow: none !important;
}

.site-header,
.nav,
.metric-tab-buttons,
.engine-tab-buttons,
.tabs {
  overflow: visible !important;
}

.nav a,
.nav button,
.tab-button,
.button {
  white-space: nowrap;
  min-width: max-content;
  text-overflow: clip;
}

.button,
.nav a,
.nav button,
.tab-button,
.copy-button,
.card,
.panel,
.install-panel,
.route-card,
.launch-panel {
  transition:
    transform .22s cubic-bezier(.2, .9, .18, 1),
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease,
    filter .22s ease;
}

.button:hover,
.nav a:hover,
.nav button:hover,
.tab-button:hover,
.copy-button:hover {
  transform: translateY(-2px) scale(1.015);
}

.card:hover,
.panel:hover,
.install-panel:hover,
.route-card:hover,
.launch-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 68px rgba(0, 16, 24, .28), 0 0 0 1px rgba(197, 255, 93, .14) inset;
}

.reveal {
  transition-duration: .82s;
  transform: translateY(44px) scale(.975);
}

.word-reveal {
  animation-duration: .82s;
  animation-delay: calc(var(--word-index, 0) * 76ms);
}

body.cmd-theme {
  font-family: Consolas, "Lucida Console", "Courier New", monospace !important;
}

body.cmd-theme .nav {
  gap: 8px;
  flex-wrap: wrap;
}

body.cmd-theme .nav a,
body.cmd-theme .nav button,
body.cmd-theme .tab-button,
body.cmd-theme .button {
  width: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
  padding-inline: 14px !important;
  font-family: Consolas, "Lucida Console", "Courier New", monospace !important;
}

body.cmd-theme .hero-content::before {
  animation: terminalLines 1.2s steps(3, end) both;
}

body.cmd-theme .hero-content h1 {
  width: auto !important;
  max-width: 100% !important;
  overflow: visible !important;
  animation: terminalTextReveal .9s steps(18, end) both, caretBlink .72s step-end infinite !important;
  clip-path: inset(0 0 0 0);
}

@keyframes terminalLines {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes terminalTextReveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@media (max-width: 700px) {
  .nav a,
  .nav button,
  .tab-button,
  .button {
    min-width: 0;
    white-space: normal;
    font-size: 1rem;
  }

  body.cmd-theme .nav a,
  body.cmd-theme .nav button,
  body.cmd-theme .tab-button,
  body.cmd-theme .button {
    min-width: max-content !important;
    white-space: nowrap !important;
    font-size: 1rem !important;
  }
}

/* Final CPM guardrail: no gradients, no side seams, no cropped hero text. */
body.cmd-theme,
body.cmd-theme main,
body.cmd-theme .hero-stage,
body.cmd-theme .section {
  background: #000 !important;
  background-image: none !important;
  color: #c0c0c0 !important;
}

body.cmd-theme::before,
body.cmd-theme::after,
body.cmd-theme .hero-stage::before,
body.cmd-theme .hero-stage::after,
body.cmd-theme main::before,
body.cmd-theme main::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.cmd-theme .hero-content {
  width: min(100% - 32px, 980px) !important;
  padding-top: clamp(118px, 16vh, 190px) !important;
  padding-bottom: 80px !important;
}

body.cmd-theme .hero-content::before {
  content: "ClosedBit Console\A\A C:\\ClosedBit> open portal\A > loading product shell...\A > ready." !important;
  display: block !important;
  white-space: pre !important;
  margin-bottom: 22px !important;
  color: #c0c0c0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font: 18px/1.28 Consolas, "Lucida Console", "Courier New", monospace !important;
  animation: terminalLines 1.05s steps(4, end) both !important;
}

body.cmd-theme .hero-content h1,
body.cmd-theme h1,
body.cmd-theme h2,
body.cmd-theme h3 {
  width: auto !important;
  max-width: none !important;
  overflow: visible !important;
  white-space: normal !important;
  color: #f2f2f2 !important;
  text-shadow: none !important;
  border-right: 0 !important;
  animation: none !important;
  clip-path: none !important;
}

body.cmd-theme .hero-content h1::before,
body.cmd-theme .section-head h2::before,
body.cmd-theme .card h3::before,
body.cmd-theme .panel h3::before,
body.cmd-theme .install-panel h3::before {
  content: "> " !important;
  color: #00ff00 !important;
}

body.cmd-theme .site-header,
body.cmd-theme footer,
body.cmd-theme .trust-row div,
body.cmd-theme .panel,
body.cmd-theme .card,
body.cmd-theme .code-card,
body.cmd-theme .sandbox-shell,
body.cmd-theme .doc-layout,
body.cmd-theme .metric-strip,
body.cmd-theme .install-panel,
body.cmd-theme .account-panel,
body.cmd-theme .launch-panel,
body.cmd-theme .metrics-table,
body.cmd-theme .metric-tabs,
body.cmd-theme .route-card,
body.cmd-theme .settings-dialog,
body.cmd-theme .auth-dialog {
  background: #000 !important;
  background-image: none !important;
  border-color: #c0c0c0 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.cmd-theme .button,
body.cmd-theme .nav a,
body.cmd-theme .nav button,
body.cmd-theme .copy-button,
body.cmd-theme .tab-button {
  background: #000 !important;
  border: 1px solid #c0c0c0 !important;
  color: #f2f2f2 !important;
  box-shadow: none !important;
  transform: none !important;
  min-width: max-content !important;
  white-space: nowrap !important;
}

body.cmd-theme .button.primary,
body.cmd-theme .nav .install-link,
body.cmd-theme .tab-button.active {
  background: #c0c0c0 !important;
  color: #000 !important;
}

body.cmd-theme .brand img {
  filter: none !important;
  background: #c0c0c0 !important;
  border-radius: 3px !important;
}

body.cmd-theme .lead,
body.cmd-theme p,
body.cmd-theme span,
body.cmd-theme li,
body.cmd-theme td,
body.cmd-theme th,
body.cmd-theme code,
body.cmd-theme pre {
  color: #c0c0c0 !important;
  text-shadow: none !important;
}

body.cmd-theme .eyebrow,
body.cmd-theme .brand,
body.cmd-theme .account-chip.good,
body.cmd-theme strong {
  color: #00ff00 !important;
}

body.cmd-theme .reveal,
body.cmd-theme .word-reveal {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

@media (max-width: 700px) {
  body.cmd-theme .hero-content {
    padding-top: 116px !important;
    width: calc(100vw - 24px) !important;
  }

  body.cmd-theme .hero-content::before {
    font-size: 15px !important;
    overflow-x: auto !important;
  }

  body.cmd-theme .nav {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
  }
}

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 94, 94, .5);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 94, 94, .14), rgba(6, 16, 23, .92));
}

.danger-zone strong {
  display: block;
  color: #ffb3b3;
}

.danger-zone span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 230, 230, .86);
  font-style: italic;
}

.button.danger {
  border-color: rgba(255, 94, 94, .82);
  background: #ff5e5e;
  color: #160305;
  text-shadow: none;
}

.button.danger:hover {
  background: #ff7b7b;
}

body.cmd-theme .danger-zone {
  background: #000 !important;
  border-color: #ff0000 !important;
  box-shadow: none !important;
}

body.cmd-theme .button.danger {
  background: #000 !important;
  border-color: #ff0000 !important;
  color: #ff8080 !important;
}

body.cmd-theme .danger-zone strong {
  color: #ff8080 !important;
}

body.cmd-theme .hero-content h1.cmd-typing {
  display: inline-block !important;
  width: var(--cmd-type-ch, 11ch) !important;
  max-width: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  border-right: .14em solid #c0c0c0 !important;
  animation: cbPromptTyping 1.15s steps(24, end) both, caretBlink .72s step-end infinite !important;
  clip-path: none !important;
}

@keyframes cbPromptTyping {
  from { width: 0; }
  to { width: var(--cmd-type-ch, 11ch); }
}

body.cmd-theme.reduce-motion .hero-content h1.cmd-typing {
  width: auto !important;
  overflow: visible !important;
  border-right: 0 !important;
  animation: none !important;
}

@media (max-width: 700px) {
  .danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .danger-zone .button {
    width: 100%;
  }
}
