:root {
  color-scheme: light;
  --ink: #10171d;
  --charcoal: #172129;
  --coal: #1e2a34;
  --paper: #fffaf1;
  --paper-strong: #ffffff;
  --paper-soft: #f5efe3;
  --line: #d8caba;
  --line-dark: #30414f;
  --text: #1d2a32;
  --text-soft: #52606a;
  --text-invert: #e7edf1;
  --muted-invert: #a8b4bd;
  --accent: #ffd833;
  --accent-strong: #ffb636;
  --brand: #ff473e;
  --brand-deep: #b34424;
  --teal: #2f6670;
  --teal-dark: #214b53;
  --mint: #68d391;
  --discord: #5865f2;
  --focus: #0f84ff;
  --radius: 8px;
  --shadow: 0 18px 54px rgba(16, 23, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(47, 102, 112, 0.035) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: 36px 36px;
  font-weight: 400;
  line-height: 1.62;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(255, 216, 51, 0.28);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

button {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 50;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  padding: 0.7rem 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 250, 241, 0.14);
  background: rgba(16, 23, 29, 0.94);
  color: var(--text-invert);
  backdrop-filter: blur(16px);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 38px rgba(16, 23, 29, 0.2);
}

.header-inner,
.page-shell,
.page-grid,
.legal-shell {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1.25rem;
  padding-block: 0.65rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand {
  gap: 0.75rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.22));
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.brand-name,
.brand-note {
  display: block;
  line-height: 1.15;
}

.brand-name {
  color: var(--text-invert);
  font-weight: 600;
}

.brand-name span,
.footer-brand strong {
  color: var(--accent);
}

.brand-note {
  margin-top: 0.12rem;
  color: var(--muted-invert);
  font-size: 0.82rem;
  font-weight: 450;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 6px;
  color: var(--muted-invert);
  padding: 0.55rem 0.75rem;
  font-size: 0.93rem;
  font-weight: 560;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.site-nav a:hover {
  background: rgba(255, 250, 241, 0.1);
  color: var(--text-invert);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 250, 241, 0.22);
  border-radius: 6px;
  background: transparent;
  color: var(--text-invert);
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
  transform: translateY(6px) rotate(90deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  opacity: 0;
}

.section-band {
  position: relative;
  padding-block: 5.5rem;
  scroll-margin-top: 88px;
}

.section-band-dark {
  overflow: hidden;
  color: var(--text-invert);
  background:
    repeating-linear-gradient(135deg, rgba(255, 216, 51, 0.025) 0 1px, transparent 1px 28px),
    linear-gradient(180deg, #10171d 0%, #172129 100%);
}

.section-band-paper {
  background: var(--paper-soft);
}

.section-band-contrast {
  color: var(--text-invert);
  background:
    linear-gradient(90deg, rgba(88, 101, 242, 0.1) 0 1px, transparent 1px 100%),
    var(--teal-dark);
  background-size: 34px 34px;
}

.section-band-legal {
  border-top: 1px solid var(--line);
  background: var(--paper-strong);
}

.hero-section {
  min-height: 660px;
  padding-block: 4.4rem 3.4rem;
}

.page-grid {
  display: grid;
  gap: 3rem;
}

.hero-grid {
  align-items: center;
  gap: 4rem;
}

.hero-copy {
  max-width: 650px;
}

.status-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pill {
  border: 1px solid rgba(255, 216, 51, 0.42);
  background: rgba(255, 216, 51, 0.1);
  color: var(--accent);
  padding: 0.32rem 0.7rem;
}

.eyebrow {
  color: var(--brand-deep);
}

.section-band-dark .eyebrow,
.section-band-contrast .eyebrow {
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  line-height: 1.14;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  font-size: 2.7rem;
  font-weight: 600;
}

h2 {
  font-size: 1.9rem;
  font-weight: 600;
}

h3 {
  font-size: 1.08rem;
  font-weight: 600;
}

p,
ul,
ol,
dl,
address {
  margin: 0;
}

p {
  max-width: 68ch;
}

.hero-lede,
.section-heading p,
.section-copy p,
.status-panel p,
.tech-panel p,
.legal-landing p {
  color: inherit;
  font-size: 1.08rem;
}

.hero-lede {
  margin-top: 1.25rem;
  color: var(--muted-invert);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--accent-strong);
  color: var(--ink);
}

.button-secondary {
  border-color: rgba(255, 250, 241, 0.26);
  background: rgba(255, 250, 241, 0.08);
  color: var(--text-invert);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: rgba(255, 216, 51, 0.52);
  background: rgba(255, 216, 51, 0.1);
  color: var(--accent);
}

.button-ghost {
  color: var(--muted-invert);
}

.hero-facts,
.check-list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}

.hero-facts {
  margin-top: 1.75rem;
  color: var(--muted-invert);
}

.hero-facts li,
.check-list li {
  position: relative;
  padding-left: 1.4rem;
}

.hero-facts li::before,
.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
  content: ">";
}

.hero-profile {
  position: relative;
  display: grid;
  min-height: 470px;
  align-items: center;
  margin: 0;
}

.discord-preview {
  position: relative;
  width: min(100%, 470px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 8px;
  background: #1e1f22;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

.discord-preview::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(140deg, rgba(88, 101, 242, 0.22), transparent 34%),
    linear-gradient(320deg, rgba(255, 216, 51, 0.16), transparent 38%);
  content: "";
}

.discord-titlebar,
.discord-shell {
  position: relative;
  z-index: 1;
}

.discord-titlebar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(17, 18, 20, 0.86);
  padding-inline: 0.85rem;
}

.discord-titlebar span {
  width: 0.64rem;
  height: 0.64rem;
  border-radius: 999px;
  background: #80848e;
}

.discord-titlebar span:first-child {
  background: var(--brand);
}

.discord-titlebar span:nth-child(2) {
  background: var(--accent-strong);
}

.discord-titlebar span:nth-child(3) {
  background: var(--mint);
}

.discord-titlebar strong {
  margin-left: auto;
  color: #b5bac1;
  font-size: 0.76rem;
  font-weight: 600;
}

.discord-shell {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 420px;
}

.discord-rail {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.75rem;
  background: #1a1b1e;
  padding-block: 1.1rem;
}

.rail-dot {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #313338;
}

.rail-dot.is-active {
  position: relative;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 42%, var(--accent) 0 16%, transparent 17%),
    var(--discord);
}

.rail-dot.is-active::before {
  position: absolute;
  top: 10px;
  left: -12px;
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: var(--paper-strong);
  content: "";
}

.discord-main {
  min-width: 0;
  background: #313338;
  padding: 0.9rem;
}

.discord-channel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 34px;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  color: #f2f3f5;
  line-height: 1.2;
}

.discord-channel span {
  font-size: 0.9rem;
  font-weight: 650;
}

.discord-channel small {
  color: #949ba4;
  font-size: 0.72rem;
  font-weight: 550;
}

.bot-profile-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: #232428;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.profile-banner {
  height: 92px;
  background:
    linear-gradient(135deg, rgba(255, 216, 51, 0.92), rgba(255, 71, 62, 0.88)),
    var(--brand);
}

.profile-body {
  position: relative;
  padding: 3.8rem 1rem 1rem;
}

.profile-avatar-wrap {
  position: absolute;
  top: -54px;
  left: 1rem;
  display: block;
  width: 110px;
  height: 110px;
  border: 6px solid #232428;
  border-radius: 50%;
  background: #313338;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.26));
}

.profile-avatar-wrap::after {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 22px;
  height: 22px;
  border: 5px solid #232428;
  border-radius: 50%;
  background: #23a55a;
  content: "";
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #313338;
  clip-path: circle(50% at 50% 50%);
  object-fit: contain;
}

.profile-heading {
  display: grid;
  gap: 0.12rem;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  white-space: nowrap;
}

.profile-heading h2 {
  color: #f2f3f5;
  font-size: 1.35rem;
  font-weight: 700;
}

.profile-heading p {
  color: #b5bac1;
  font-size: 0.86rem;
}

.bot-tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 1.05rem;
  border-radius: 4px;
  background: var(--discord);
  color: #ffffff;
  padding: 0.12rem 0.32rem;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.2;
}

.profile-status {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.48rem;
  row-gap: 0.1rem;
  align-items: center;
  margin-top: 0.92rem;
  border-radius: 8px;
  background: #1e1f22;
  color: #f2f3f5;
  padding: 0.72rem;
}

.profile-status span {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 216, 51, 0.1);
}

.profile-status strong {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

.profile-status small {
  grid-column: 2;
  color: #949ba4;
  font-size: 0.76rem;
  line-height: 1.25;
}

.profile-about {
  margin-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.92rem;
}

.profile-about span {
  display: block;
  color: #f2f3f5;
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
}

.profile-about p {
  margin-top: 0.35rem;
  color: #dbdee1;
  font-size: 0.86rem;
  line-height: 1.45;
}

.profile-notice {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 0.9rem;
  border: 1px solid rgba(255, 216, 51, 0.3);
  border-radius: 999px;
  background: rgba(255, 216, 51, 0.1);
  color: var(--accent);
  padding: 0.25rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.discord-message {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  margin-top: 0.82rem;
  color: #b5bac1;
  font-size: 0.78rem;
}

.message-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 45%, var(--accent) 0 24%, transparent 25%),
    #5865f2;
}

.split-grid,
.control-grid,
.legal-landing {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
}

.section-kicker h2 {
  color: var(--text);
}

.section-copy {
  display: grid;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.25rem;
}

.section-heading h2 {
  color: var(--text);
}

.section-heading p {
  margin-top: 1rem;
  color: var(--text-soft);
}

.section-heading-invert h2,
.section-heading-invert p {
  color: var(--text-invert);
}

.section-heading-invert p {
  color: rgba(231, 237, 241, 0.78);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1rem;
}

.feature-card {
  min-width: 0;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  padding: 1.25rem;
  box-shadow: 0 12px 36px rgba(16, 23, 29, 0.08);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.feature-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.4rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--accent);
  font-weight: 600;
}

.feature-card h3 {
  color: var(--text);
}

.feature-card p {
  margin-top: 0.75rem;
  color: var(--text-soft);
}

code {
  border-radius: 4px;
  background: rgba(47, 102, 112, 0.12);
  color: var(--teal-dark);
  padding: 0.08rem 0.28rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.architecture-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: stretch;
}

.architecture-node {
  min-width: 0;
  border: 1px solid rgba(255, 250, 241, 0.22);
  border-top-width: 4px;
  border-radius: var(--radius);
  background: rgba(16, 23, 29, 0.4);
  padding: 1.1rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.architecture-node strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--text-invert);
  line-height: 1.25;
}

.architecture-node p {
  margin-top: 0.65rem;
  color: rgba(231, 237, 241, 0.72);
  font-size: 0.93rem;
}

.node-label {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.12);
  color: var(--accent);
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.node-discord {
  border-top-color: var(--discord);
}

.node-bot {
  border-top-color: var(--brand);
}

.node-admin {
  border-top-color: var(--accent);
}

.node-runtime {
  border-top-color: var(--mint);
}

.architecture-connector {
  display: none;
}

.control-list {
  display: grid;
  gap: 1rem;
}

.control-list div,
.status-panel,
.tech-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  padding: 1.25rem;
  box-shadow: 0 12px 34px rgba(16, 23, 29, 0.08);
}

.control-list h3 {
  color: var(--text);
}

.control-list p {
  margin-top: 0.55rem;
  color: var(--text-soft);
}

.status-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: 1rem;
  align-items: start;
}

.status-panel h2,
.tech-panel h2 {
  color: var(--text);
}

.status-panel p,
.tech-panel p {
  margin-top: 1rem;
  color: var(--text-soft);
}

.check-list {
  margin-top: 1.25rem;
  color: var(--text-soft);
}

.check-list li::before {
  color: var(--teal);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.tech-grid span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--text);
  padding: 0.42rem 0.6rem;
  text-align: center;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

.legal-landing h2,
.legal-landing p {
  color: var(--text);
}

.legal-landing p {
  margin-top: 0.75rem;
  color: var(--text-soft);
}

.legal-card-list {
  display: grid;
  gap: 0.75rem;
}

.legal-card-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  padding: 1rem;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.legal-card-list a:hover {
  border-color: var(--teal);
  background: var(--paper-strong);
  transform: translateY(-2px);
}

.legal-card-list span {
  font-size: 1.08rem;
  font-weight: 600;
}

.legal-card-list small {
  color: var(--text-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.legal-shell {
  padding-block: 3.5rem 4.75rem;
}

.legal-document {
  max-width: 920px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.legal-document > :not(.legal-tabs) {
  margin-inline: auto;
  max-width: 760px;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
  padding: 0 0 1rem;
}

.legal-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  padding: 0.45rem 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.legal-tabs a:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.legal-tabs a[aria-current="page"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--accent);
}

.legal-document h1 {
  max-width: none;
  color: var(--text);
  font-size: 2.35rem;
}

.legal-intro,
.legal-document p,
.legal-document li,
.legal-document address {
  color: var(--text-soft);
}

.legal-intro {
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

.metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.metadata div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: 0.85rem;
}

.metadata dt {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.metadata dd {
  margin: 0.2rem 0 0;
  color: var(--text);
  font-weight: 600;
}

.legal-document section {
  margin-top: 2.5rem;
}

.legal-document h2 {
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
  color: var(--text);
  font-size: 1.45rem;
}

.legal-document h3 {
  margin-top: 1.35rem;
  color: var(--teal-dark);
}

.legal-document p,
.legal-document ul,
.legal-document ol,
.legal-document address {
  margin-top: 0.85rem;
}

.legal-document ul,
.legal-document ol {
  padding-left: 1.35rem;
}

.legal-document li + li {
  margin-top: 0.38rem;
}

.legal-document address {
  font-style: normal;
}

.site-footer {
  border-top: 1px solid rgba(255, 250, 241, 0.13);
  background: var(--ink);
  color: var(--muted-invert);
  padding-block: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
  gap: 1.5rem;
}

.footer-brand {
  gap: 0.55rem;
  color: var(--text-invert);
  font-weight: 600;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
}

.site-footer p {
  margin-top: 0.6rem;
  max-width: 62ch;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--accent);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  color: var(--text-invert);
  font-weight: 600;
  text-decoration: none;
}

.site-footer nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.88fr);
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .legal-document {
    padding: 1.4rem 2rem 2.5rem;
  }
}

@media (min-width: 1100px) {
  .hero-section {
    min-height: 660px;
  }

  h1 {
    font-size: 3.75rem;
  }
}

@media (max-width: 980px) {
  .split-grid,
  .control-grid,
  .legal-landing,
  .status-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-enhanced .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
    align-items: stretch;
    justify-content: start;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .site-nav[hidden] {
    display: none;
  }

  .site-nav a {
    width: 100%;
    justify-content: center;
    border: 1px solid rgba(255, 250, 241, 0.12);
    background: rgba(255, 250, 241, 0.05);
  }

  .section-band {
    padding-block: 4rem;
  }

  .hero-section {
    min-height: 0;
    padding-block: 1.55rem 1.1rem;
  }

  .hero-grid {
    gap: 1.55rem;
  }

  h1 {
    font-size: 2.55rem;
    max-width: 18ch;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1.15rem;
  }

  .button {
    width: auto;
    min-height: 44px;
    padding: 0.62rem 0.7rem;
    font-size: 0.92rem;
  }

  .button-ghost {
    grid-column: 1 / -1;
  }

  .hero-profile {
    min-height: 0;
    margin-top: 0.95rem;
  }

  .discord-preview {
    width: min(100%, 400px);
  }

  .discord-shell {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 360px;
  }

  .discord-rail {
    gap: 0.58rem;
    padding-block: 0.85rem;
  }

  .rail-dot {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .rail-dot.is-active::before {
    top: 8px;
    left: -9px;
    height: 15px;
  }

  .discord-main {
    padding: 0.7rem;
  }

  .discord-channel {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.14rem;
    min-height: 0;
    padding-bottom: 0.62rem;
  }

  .profile-banner {
    height: 74px;
  }

  .profile-body {
    padding: 3.1rem 0.82rem 0.85rem;
  }

  .profile-avatar-wrap {
    top: -45px;
    left: 0.82rem;
    width: 90px;
    height: 90px;
    border-width: 5px;
  }

  .profile-avatar-wrap::after {
    right: 1px;
    bottom: 1px;
    width: 19px;
    height: 19px;
    border-width: 4px;
  }

  .profile-heading h2 {
    font-size: 1.15rem;
  }

  .profile-about p,
  .discord-message {
    font-size: 0.78rem;
  }

  .hero-facts {
    display: none;
  }

  .architecture-map,
  .metadata,
  .legal-card-list a {
    grid-template-columns: 1fr;
  }

  .legal-card-list small {
    margin-top: 0.3rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (min-width: 760px) and (max-width: 980px) {
  .hero-section {
    min-height: 0;
    padding-block: 3rem 2.6rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.74fr);
    gap: 1.6rem;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-profile {
    min-height: 380px;
  }

  .discord-preview {
    width: min(100%, 370px);
  }

  .discord-shell {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 372px;
  }

  .discord-main {
    padding: 0.75rem;
  }

  .profile-banner {
    height: 82px;
  }

  .profile-avatar-wrap {
    width: 96px;
    height: 96px;
  }
}

@media (min-width: 981px) and (max-width: 1099px) {
  .hero-section {
    min-height: 0;
    padding-block: 4rem 3.25rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
    gap: 2rem;
  }

  h1 {
    font-size: 2.95rem;
  }

  .hero-profile {
    min-height: 410px;
  }

  .discord-preview {
    width: min(100%, 420px);
  }

  .hero-facts {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-inner,
  .page-shell,
  .page-grid,
  .legal-shell,
  .footer-inner {
    width: min(100% - 1rem, 1180px);
  }

  .brand-note {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  h1 {
    max-width: 17ch;
    font-size: 1.68rem;
  }

  .hero-lede,
  .section-heading p,
  .section-copy p,
  .status-panel p,
  .tech-panel p {
    font-size: 1rem;
  }

  .hero-lede {
    line-height: 1.5;
  }

  .hero-profile {
    margin-top: 0.75rem;
  }

  .discord-titlebar {
    min-height: 34px;
    padding-inline: 0.65rem;
  }

  .discord-titlebar span {
    width: 0.5rem;
    height: 0.5rem;
  }

  .discord-shell {
    min-height: 276px;
  }

  .discord-channel {
    margin-bottom: 0.52rem;
    padding-bottom: 0.46rem;
  }

  .profile-status {
    margin-top: 0.62rem;
    padding: 0.5rem;
  }

  .profile-about {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
  }

  .profile-about p {
    display: none;
  }

  .profile-notice {
    min-height: 26px;
    margin-top: 0.52rem;
    padding: 0.2rem 0.52rem;
    font-size: 0.68rem;
  }

  .discord-message {
    display: none;
  }

  .feature-card,
  .control-list div,
  .status-panel,
  .tech-panel {
    padding: 1rem;
  }

  .legal-document {
    padding: 0.75rem;
  }

  .legal-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .legal-tabs a {
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .hero-section {
    padding-block: 1.5rem;
  }

  .discord-titlebar strong {
    display: none;
  }

  .discord-shell {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 266px;
  }

  .discord-main {
    padding: 0.58rem;
  }

  .discord-channel span {
    font-size: 0.8rem;
  }

  .discord-channel small {
    font-size: 0.68rem;
  }

  .rail-dot {
    width: 26px;
    height: 26px;
    border-radius: 9px;
  }

  .profile-banner {
    height: 66px;
  }

  .profile-body {
    padding: 2.9rem 0.68rem 0.74rem;
  }

  .profile-avatar-wrap {
    top: -39px;
    left: 0.68rem;
    width: 78px;
    height: 78px;
    border-width: 4px;
  }

  .profile-avatar-wrap::after {
    width: 17px;
    height: 17px;
    border-width: 4px;
  }

  .profile-heading h2 {
    font-size: 1.04rem;
  }

  .profile-about {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }

  .profile-about p,
  .discord-message {
    font-size: 0.72rem;
  }

  .hero-lede {
    font-size: 0.96rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    color-scheme: light;
    --ink: #ffffff;
    --charcoal: #ffffff;
    --coal: #ffffff;
    --paper: #ffffff;
    --paper-strong: #ffffff;
    --paper-soft: #ffffff;
    --line: #bbbbbb;
    --line-dark: #bbbbbb;
    --text: #000000;
    --text-soft: #222222;
    --text-invert: #000000;
    --muted-invert: #333333;
    --accent: #000000;
    --accent-strong: #000000;
    --brand: #000000;
    --brand-deep: #000000;
    --teal: #000000;
    --teal-dark: #000000;
    --mint: #000000;
    --discord: #000000;
    --focus: #000000;
    --shadow: none;
  }

  html,
  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }

  .skip-link,
  .site-nav,
  .nav-toggle,
  .brand-mark,
  .footer-brand img,
  .hero-profile,
  .hero-actions,
  .legal-tabs {
    display: none;
  }

  .site-header {
    position: static;
    border-bottom: 1px solid #bbbbbb;
    background: #ffffff;
    color: #000000;
    box-shadow: none;
  }

  .header-inner,
  .page-shell,
  .page-grid,
  .legal-shell,
  .footer-inner {
    width: 100%;
    padding: 0;
  }

  .section-band,
  .hero-section,
  .legal-shell {
    padding-block: 0.35in;
  }

  .legal-document,
  .feature-card,
  .control-list div,
  .status-panel,
  .tech-panel {
    border: 0;
    box-shadow: none;
  }

  .site-footer {
    border-top: 1px solid #bbbbbb;
    background: #ffffff;
    color: #000000;
  }

  a {
    color: #000000;
  }

  h2,
  h3 {
    break-after: avoid;
  }
}
