:root {
  --bg: #000000;
  --fg: #f5f5f5;
  --muted: #96969c;
  --body: #b8b8bc;
  --cream: #f3efe8;
  --line: rgba(255, 255, 255, 0.1);
  --panel: #0c0c0d;
  --accent: #fb383f;
  --accent-hover: #e33339;
  --on: #0a0a0a;
  --ok: #4ade80;
  --header: 60px;
  --measure: min(1184px, calc(100% - 48px));
  --font: "Geist", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color-scheme: dark;
}
::selection { background: var(--accent); color: var(--on); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; text-wrap: balance; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  background: var(--fg);
  color: var(--on);
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.f-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px 16px;
  background: #140808;
  color: #ffe4e4;
  font-size: 13px;
  text-align: center;
}
.f-banner button {
  border: 0;
  background: transparent;
  color: #ffe4e4;
  font: inherit;
  cursor: pointer;
  min-height: 32px;
}
html.banner-off .f-banner { display: none; }

.site-header:has(.pill) {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 24px 16px 0;
}
.f-banner:not([hidden]) + .site-header { top: 40px; }
.pill {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 768px);
  padding: 12px 24px;
  border-radius: 999px;
  background: #fff;
  color: #111112;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-family: Geist, ui-sans-serif, sans-serif;
}
.brand, .site-actions { position: relative; z-index: 70; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-right: 24px;
  color: #111112;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: 16px;
}
.brand img { width: 32px; height: 32px; }
.rule { display: none; }
.pill .site-nav {
  display: flex;
  position: static;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 32px;
  flex: 1;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.pill .site-nav a {
  min-height: 0;
  display: inline;
  padding: 0;
  text-decoration: none;
  color: #111112;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0;
  background: transparent;
  transition: color 180ms var(--ease);
}
.pill .site-nav a:hover,
.pill .site-nav a[aria-current="page"] { color: #52525b; background: transparent; }
.site-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.pill, .pill a, .pill button, .pill span { font-size: 14px; }
.pill .btn-primary {
  background: #111112;
  color: #fff;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 20px;
  font-weight: 500;
}
.pill .btn-primary:hover { background: #27272a; }
.f-menu {
  display: none;
  background: transparent;
  color: #111112;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 40px;
  padding: 0 4px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); }

body:not(:has(.bands)) .hero {
  min-height: 0;
  display: block;
  padding: 12px 0 72px;
  text-align: left;
}
.hero {
  position: relative;
  min-height: calc(100svh - 88px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 112px;
  overflow: hidden;
}
.bands {
  position: fixed;
  inset: 0;
  height: 100svh;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(0, 0, 0, 0) 1px,
    rgba(0, 0, 0, 0) 35px,
    rgba(255, 255, 255, 0.035) 76px,
    rgba(0, 0, 0, 0) 77px
  );
  mask-image: linear-gradient(to bottom, #000 45%, transparent 92%);
}
main, .site-footer { position: relative; z-index: 1; }
.site-header { z-index: 15; }
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.05em;
}
body:has(.bands) h1 {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.06em;
}
h1 .dot, .brand .mark { color: var(--accent); }
.sub {
  margin-top: 16px;
  color: var(--body);
  font-size: 1.125rem;
  line-height: 1.5;
}
body:has(.bands) .sub {
  margin-top: 32px;
  font-size: clamp(1.375rem, 3.4vw, 2.5rem);
  line-height: 1.35;
  letter-spacing: -0.035em;
}
.rot {
  position: relative;
  display: inline-block;
  padding: 0 0.28em;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.035em;
  color: var(--accent);
  vertical-align: baseline;
}
.rot svg {
  position: absolute;
  left: -0.06em;
  top: 0.02em;
  width: calc(100% + 0.12em);
  height: 1.05em;
  z-index: -1;
}
.more {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  color: var(--muted);
  text-decoration: none;
}
.more svg { transition: transform 200ms var(--ease); }
.more:hover svg { transform: translateY(3px); }

.section { padding: 112px 0; }
.section.lede { padding: 160px 0; }
.wrap { width: var(--measure); margin: 0 auto; }
.lede {
  padding: 160px 0;
}
.story {
  max-width: 992px;
  color: var(--muted);
  font-size: clamp(1.85rem, 3.7vw, 2.96rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.offer { padding-bottom: 40px; }
.offer h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 72px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 88px;
}
.pair:last-child { margin-bottom: 0; }
.pair h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.04em;
  font-weight: 600;
}
.pair p { margin-top: 14px; color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 38ch; }
.flip .copy { order: 2; }
.stage {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  aspect-ratio: 1;
  min-height: 0;
  padding: 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.who { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.who img, .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar {
  display: grid;
  place-items: center;
  background: #2a2a2a;
  font-size: 12px;
  font-weight: 700;
}
.app {
  font-size: 12px;
  font-weight: 700;
  background: var(--accent);
  color: var(--on);
  border-radius: 4px;
  padding: 1px 5px;
}
.record { margin-top: 14px; }
.record h4 { font-size: 18px; letter-spacing: -0.03em; font-weight: 600; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 14px; }
.fields dt { color: var(--muted); font-size: 12px; }
.fields dd { margin: 2px 0 0; font-size: 15px; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.row span { color: var(--muted); }
.live { color: var(--ok); }

.command, .news, .close { padding-top: 40px; }
.command h2, .news h2, .close h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.cmd {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 640px;
}
.cmd code { font-family: var(--font); font-size: 20px; font-weight: 650; letter-spacing: -0.03em; }
.cmd p { color: var(--muted); margin-top: 4px; }

.notes { margin-top: 28px; display: grid; gap: 16px; }
.note-card {
  display: block;
  text-decoration: none;
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--line);
  transition: color 160ms var(--ease);
}
.note-card h3 { font-size: 22px; letter-spacing: -0.03em; }
.note-card p { color: var(--muted); margin-top: 6px; }
.note-card time { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.note-card:hover h3 { color: var(--accent); }
.news-empty { color: var(--muted); }

.close { text-align: center; padding: 96px 0 128px; }
.close h2 {
  max-width: 15ch;
  margin: 0 auto;
  color: var(--cream);
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.055em;
}
.close p { color: var(--body); margin: 18px auto 0; max-width: 36rem; font-size: 17px; }
.close .actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.btn-ink { background: #111112; color: var(--cream); border-color: rgba(243, 239, 232, 0.22); min-height: 48px; padding: 0 24px; font-weight: 500; }
.btn-ink:hover { background: #000; }
.btn-line { background: transparent; color: var(--cream); border-color: rgba(243, 239, 232, 0.45); min-height: 48px; padding: 0 24px; font-weight: 500; }
.btn-line:hover { background: var(--cream); color: #111112; border-color: var(--cream); }
.theme { display: flex; gap: 12px; border: 0; margin: 0; padding: 0; }
.theme label { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
html[data-theme="light"] {
  --bg: #ffffff; --fg: #111112; --muted: #5e5e64; --body: #3f3f44;
  --panel: #f4f4f5; --line: rgba(0, 0, 0, 0.1); --cream: #111112;
  color-scheme: light;
}
html[data-theme="light"] body { background: var(--bg); color: var(--fg); }
html[data-theme="light"] .bands { opacity: 0.45; }
html[data-theme="light"] .btn-ink { background: #111112; color: #f3efe8; }
html[data-theme="light"] .btn-line { color: #111112; border-color: rgba(0, 0, 0, 0.35); }
html[data-theme="light"] .btn-line:hover { background: #111112; color: #f3efe8; }

.site-footer {
  width: var(--measure);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

.dropdown { position: relative; }
.profile-card {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.profile-card .avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 50%;
  background: #2a2a2a;
}
.profile-card .avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-card .avatar:has(.avatar-image) .avatar-fallback { display: none; }
.avatar-fallback { font-size: 12px; font-weight: 700; }
.profile-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.dropdown-popover, .inbox {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #161616;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  text-decoration: none;
  background: transparent;
  color: var(--fg);
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.menu-item:hover { background: rgba(255, 255, 255, 0.05); }
.menu-item img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.inbox-head, .inbox-empty { padding: 8px 10px; }
.inbox-empty { color: var(--muted); font-size: 14px; }

html.motion main > *:not(.hero) {
  opacity: 0;
  transform: translateY(18px);
}
html.motion main > *.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
html.motion .hero h1,
html.motion .hero .sub {
  animation: fade-up 0.7s var(--ease) both;
}
html.motion .hero .sub { animation-delay: 0.12s; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .site-nav a, .more svg, .note-card { transition: none; }
  html.motion main > *,
  html.motion .hero h1,
  html.motion .hero .sub { opacity: 1; transform: none; animation: none; }
}

@media (max-width: 760px) {
  .pill .site-nav { display: none; }
  .site-actions .btn { display: none; }
  .f-menu { display: inline-flex; align-items: center; }
  .pill .site-nav.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 40;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    padding: 112px 24px 32px;
    background: #fff;
  }
  .pill .site-nav.is-open a { display: inline; font-size: 18px; min-height: 0; }
  .site-nav.is-open ~ .site-actions .btn,
  .pill:has(.site-nav.is-open) .site-actions .btn {
    display: inline-flex;
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 28px;
    z-index: 70;
  }
  .pair, .flip .copy { order: 0; }
  .pair { grid-template-columns: 1fr; gap: 24px; margin-bottom: 64px; }
  .stage { min-height: 0; }
  .hero { padding-top: 32px; }
  .section { padding: 72px 0; }
  .section.lede { padding: 88px 0; }
  .fields { grid-template-columns: 1fr; }
  .doc-grid, .offers { grid-template-columns: 1fr; }
  .doc-side { position: static; }
}

.dash-page, .doc-layout, .team-page, .board, .login-stage, .sheet {
  width: var(--measure);
  margin: 0 auto;
  padding: 48px 0 88px;
}
.dash-page h1, .doc-head h1, .team-head h1, .sheet h1, .login-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.05;
}
.dash-lede, .doc-head p, .login-card p, .sheet .sub { color: var(--muted); margin-top: 12px; }
.dash-kicker, .kicker { color: var(--muted); font-size: 13px; font-weight: 500; }
.dash-panel, .login-card, .offer, .board-group, .team-card, .doc-copy, .sheet {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.dash-panel { margin-top: 32px; }
.dash-panel-head, .board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}
.dash-panel-head { border-bottom: 1px solid var(--line); }
.dash-panel-head h2, .doc-copy h2, .team-category h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.dash-panel-head p, .team-bio, .board-state { color: var(--muted); }
.dash-invite, .empty-action, .discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}
.discord-btn { background: var(--accent); color: var(--on); border-color: transparent; justify-content: center; width: 100%; margin-top: 18px; }
.server-list:empty { display: none; }
.server-card { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); position: relative; }
.server-card h2 { font-size: 22px; }
.server-card p { color: var(--muted); font-size: 13px; }
.server-icon { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #161616; }
.server-icon img { width: 100%; height: 100%; object-fit: cover; }
.server-note { margin: 16px; padding: 36px 20px; border: 1px dashed rgba(255,255,255,.16); border-radius: 14px; text-align: center; }
.server-note[hidden], .empty-action[hidden], .doc-copy[hidden], .board-past[hidden] { display: none; }
.server-note h3 { margin-top: 16px; font-size: 22px; }
.server-note p { color: var(--muted); margin-top: 8px; }
.empty-marks { display: flex; justify-content: center; }
.empty-marks span { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 -6px; border: 1px solid var(--line); border-radius: 12px; background: #141414; }
.empty-marks svg { width: 20px; height: 20px; }
.server-menu { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.server-more { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--fg); }
.doc-grid { display: grid; grid-template-columns: 220px 1fr; gap: 28px; margin-top: 28px; }
.doc-side { display: flex; flex-direction: column; gap: 4px; }
.doc-side p { margin: 16px 0 6px; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }
.doc-side button { text-align: left; background: transparent; color: var(--muted); border: 0; border-radius: 8px; padding: 8px 10px; font: inherit; cursor: pointer; }
.doc-side button.is-active { background: rgba(255,255,255,.06); color: var(--fg); }
.doc-copy { padding: 28px; }
.doc-copy p { margin-top: 12px; color: var(--body); }
.team-page { padding-top: 56px; }
.team-head { text-align: center; }
.team-category { margin-top: 40px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.team-card { padding: 18px; }
.team-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.team-name { margin-top: 12px; font-weight: 600; }
.team-role { margin-top: 4px; font-size: 14px; font-weight: 600; }
.team-role--core { color: #e57373; }
.team-role--development { color: #ff6b6b; }
.team-role--management { color: #c084fc; }
.team-role--support, .team-role--senior-support { color: #93c5fd; }
.team-role--qa { color: #86efac; }
.team-bio { margin-top: 8px; font-size: 14px; }
.team-empty { color: var(--muted); margin-top: 8px; }
.login-stage { min-height: calc(100svh - 120px); display: grid; place-items: center; }
.login-stack { width: min(400px, 100%); text-align: center; }
.login-brand img { width: 48px; height: 48px; margin: 0 auto 16px; }
.login-card { padding: 28px; text-align: left; }
.login-legal { margin-top: 16px; color: var(--muted); font-size: 13px; }
.board { width: min(720px, calc(100% - 48px)); }
.board-all { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.04em; margin-bottom: 28px; }
.board-label { margin: 22px 0 8px; color: var(--muted); font-size: 13px; }
.board-row + .board-row { border-top: 1px solid var(--line); }
.board-row .mark, .board-all::before { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; margin-right: 10px; }
.board-row[data-state="operational"] .mark, .board-all[data-state="operational"]::before { background: var(--ok); }
.board-row[data-state="degraded"] .mark, .board-all[data-state="degraded"]::before { background: #fbbf24; }
.board-row[data-state="down"] .mark, .board-all[data-state="down"]::before { background: #f87171; }
.board-history { margin-top: 18px; background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: 10px; min-height: 36px; padding: 0 14px; font: inherit; }
.board-past { margin-top: 12px; color: var(--muted); }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.offer { padding: 24px; }
.offer h2 { font-size: 32px; margin: 8px 0; }
.offer-lead, .offer-note, .perks { color: var(--body); }
.perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.perks .mark svg { width: 16px; height: 16px; vertical-align: -3px; }
.perks .no { color: var(--muted); }
.offer button[disabled], .btn-block[disabled] { width: 100%; opacity: 1; margin-top: 16px; }
.sheet { padding: 72px 0; text-align: center; }
.f-foot { width: var(--measure); margin: 0 auto 28px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }
.f-foot a { color: var(--muted); text-decoration: none; margin-left: 14px; }
