:root {
  color-scheme: dark;
  --bg: #080b16;
  --bg-soft: #10162a;
  --surface: rgba(17, 22, 42, 0.82);
  --surface-strong: #151b32;
  --surface-soft: rgba(24, 31, 57, 0.72);
  --surface-subtle: rgba(20, 27, 50, 0.62);
  --surface-control: rgba(26, 34, 62, 0.9);
  --image-backing: #11172b;
  --page-gradient: linear-gradient(135deg, #080b16 0%, #0c1325 46%, #151126 100%);
  --grid-color: rgba(85, 216, 255, 0.04);
  --sheen-color: rgba(85, 216, 255, 0.07);
  --shine-color: rgba(85, 216, 255, 0.1);
  --text: #f5f7ff;
  --muted: #a9b1ca;
  --muted-2: #8792b2;
  --line: rgba(143, 157, 210, 0.2);
  --blue: #2f80ff;
  --blue-dark: #1261d6;
  --cyan: #20c7e8;
  --violet: #9b5cff;
  --pink: #ff7ac8;
  --green: #19b889;
  --shadow: 0 28px 90px rgba(47, 128, 255, 0.16);
  --shadow-soft: 0 16px 44px rgba(16, 32, 51, 0.10);
  --radius-lg: 34px;
  --radius: 24px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(47, 128, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(32, 199, 232, 0.20), transparent 30rem),
    radial-gradient(circle at 50% 110%, rgba(155, 92, 255, 0.16), transparent 36rem),
    var(--page-gradient);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, var(--sheen-color) 45%, transparent 70%);
  transform: translateX(-100%);
  animation: sheen 9s ease-in-out infinite;
  opacity: 0.55;
}

@keyframes sheen {
  0%, 18% { transform: translateX(-100%); }
  45%, 100% { transform: translateX(100%); }
}

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -22px, 0) scale(1.04); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(47, 128, 255, 0.0), var(--shadow-soft); }
  50% { box-shadow: 0 0 54px rgba(47, 128, 255, 0.24), var(--shadow-soft); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.32;
  pointer-events: none;
  animation: floaty 10s ease-in-out infinite;
}

.ambient-one {
  top: 5rem;
  left: -7rem;
  background: radial-gradient(circle, rgba(47, 128, 255, 0.55), transparent 65%);
}

.ambient-two {
  top: 12rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(32, 199, 232, 0.55), transparent 65%);
  animation-delay: -3s;
}

.ambient-three {
  bottom: -10rem;
  left: 34%;
  background: radial-gradient(circle, rgba(255, 122, 200, 0.38), transparent 68%);
  animation-delay: -6s;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
}

code,
pre {
  font-family: "JetBrains Mono", Consolas, monospace;
}

code {
  padding: 0.15rem 0.42rem;
  border: 1px solid rgba(47, 128, 255, 0.16);
  border-radius: 999px;
  background: rgba(47, 128, 255, 0.07);
  color: var(--blue-dark);
  font-size: 0.9em;
}

.site-header,
.site-footer,
.hero,
.section,
.page-hero,
.rules-grid,
.policy-layout,
.developer-grid,
.project-grid {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(47, 128, 255, 0.18);
  border-radius: 999px;
  background: var(--surface-soft);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 14px 50px rgba(28, 78, 130, 0.13);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan) 52%, var(--violet));
  box-shadow: 0 16px 36px rgba(47, 128, 255, 0.28);
  font-family: "JetBrains Mono", monospace;
  font-weight: 900;
  letter-spacing: -0.08em;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.logo-mark {
  background: var(--image-backing);
  padding: 0;
}

.logo-mark img {
  background: var(--image-backing);
  display: block;
  transform: scale(1.12);
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.25), rgba(32, 199, 232, 0.1));
  animation: pulseGlow 4s ease-in-out infinite;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-size: 0.94rem;
}

.brand-text small {
  color: var(--muted-2);
  font-size: 0.73rem;
  font-weight: 650;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: #52677e;
  font-size: 0.85rem;
  font-weight: 750;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--blue-dark);
  background: rgba(47, 128, 255, 0.09);
  transform: translateY(-1px);
}

.site-nav .support-pill {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 24px rgba(47, 128, 255, 0.24);
}

.site-nav .support-pill:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(47, 128, 255, 0.20);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  background: var(--surface-soft);
  font: inherit;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 110px);
  padding: 74px 0 56px;
}

.hero-copy h1,
.page-hero h1,
.section h2,
.info-panel h2,
.cta h2 {
  margin: 0;
  color: var(--text);
  line-height: 0.94;
  letter-spacing: -0.078em;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(2rem, 4.8vw, 4rem);
}

.hero-copy h1::selection,
.page-hero h1::selection,
.section h2::selection {
  background: rgba(47, 128, 255, 0.18);
}

.hero-text,
.page-hero p,
.section > p,
.split p,
.cta p,
.info-panel p {
  max-width: 720px;
  font-size: 0.94rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(47, 128, 255, 0.16);
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(47, 128, 255, 0.08);
}

.eyebrow::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 0 6px rgba(47, 128, 255, 0.10);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 34px rgba(47, 128, 255, 0.27);
}

.btn.primary:hover {
  box-shadow: 0 22px 46px rgba(47, 128, 255, 0.34);
}

.btn.soft {
  border: 1px solid rgba(47, 128, 255, 0.16);
  color: var(--blue-dark);
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border: 1px solid rgba(47, 128, 255, 0.13);
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--muted);
  font-weight: 750;
  box-shadow: 0 10px 30px rgba(47, 128, 255, 0.07);
}

.hero-stats strong {
  color: var(--blue-dark);
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.mock-window {
  position: absolute;
  inset: 60px 20px auto auto;
  width: min(100%, 510px);
  min-height: 385px;
  border: 1px solid rgba(47, 128, 255, 0.17);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(2deg);
  animation: bob 5.8s ease-in-out infinite;
}

.mock-window::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.22), transparent 38%, rgba(32, 199, 232, 0.18));
  pointer-events: none;
}

.window-bar {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(47, 128, 255, 0.12);
  background: var(--surface-subtle);
}

.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.window-bar span:nth-child(2) { background: linear-gradient(135deg, var(--violet), var(--pink)); }
.window-bar span:nth-child(3) { background: linear-gradient(135deg, var(--green), var(--cyan)); }

.window-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  padding: 28px;
}

.code-line,
.code-pill,
.brand-preview,
.code-grid span {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 128, 255, 0.16), rgba(32, 199, 232, 0.12));
}

.code-line {
  height: 22px;
}

.code-line.wide { width: 82%; }
.code-line.mid { width: 58%; }

.code-pill,
.brand-preview {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 58px;
  gap: 12px;
  padding: 8px 18px 8px 10px;
  color: var(--blue-dark);
  font-weight: 950;
}

.brand-preview img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--image-backing);
  box-shadow: 0 10px 22px rgba(47, 128, 255, 0.16);
}

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

.code-grid span {
  height: 78px;
  border-radius: 22px;
  background: var(--surface-subtle);
  border: 1px solid rgba(47, 128, 255, 0.12);
}

.floating-card {
  position: absolute;
  z-index: 3;
  width: 210px;
  padding: 18px;
  border: 1px solid rgba(47, 128, 255, 0.14);
  border-radius: 22px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  animation: bob 5s ease-in-out infinite;
}

.floating-card span {
  display: block;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.floating-card strong {
  display: block;
  margin-top: 6px;
  letter-spacing: -0.04em;
  font-size: 1.1rem;
}

.card-a {
  top: 35px;
  left: 5px;
}

.card-b {
  right: 0;
  bottom: 72px;
  animation-delay: -2.3s;
}

.section {
  padding: 84px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 42px;
  align-items: start;
}

.section h2,
.info-panel h2,
.cta h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.55rem);
}

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

.card,
.rule-card,
.developer-card,
.project-card,
.info-panel,
.cta,
.notice,
.policy-section,
.toc {
  border: 1px solid rgba(47, 128, 255, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 16px 44px rgba(16, 32, 51, 0.075);
}

.card,
.rule-card,
.developer-card,
.project-card,
.policy-section {
  transition: transform 210ms ease, box-shadow 210ms ease, border-color 210ms ease;
}

.card:hover,
.rule-card:hover,
.developer-card:hover,
.project-card:hover,
.policy-section:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 128, 255, 0.26);
  box-shadow: 0 24px 70px rgba(47, 128, 255, 0.14);
}

.service-card {
  min-height: 255px;
  padding: 24px;
  overflow: hidden;
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 30px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(47, 128, 255, 0.20);
  font-weight: 950;
}

.card h3,
.rule-card h2,
.developer-card h3,
.project-card h3,
.policy-section h2 {
  margin: 0 0 10px;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.card h3,
.developer-card h3,
.project-card h3 {
  font-size: 1.12rem;
}

.card p,
.developer-card p,
.project-card p,
.rule-card li,
.policy-section p {
  margin: 0;
}

.page-hero {
  padding: 98px 0 52px;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
}

.rules-grid,
.developer-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 34px 0 90px;
}

.rule-card {
  padding: 28px;
}

.rule-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-card li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.rule-card li::before {
  content: '';
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 0 6px rgba(47, 128, 255, 0.10);
}

.developer-card,
.project-card {
  padding: 26px;
}

.developer-top,
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 14px 32px rgba(47, 128, 255, 0.22);
  font-weight: 950;
}

.badge,
.project-meta strong,
.tag-list span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(47, 128, 255, 0.16);
  border-radius: 999px;
  background: rgba(47, 128, 255, 0.07);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.developer-card .role {
  margin: -4px 0 12px;
  color: var(--blue-dark);
  font-weight: 900;
}

.developer-card small {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted-2);
  font-weight: 800;
}

.info-panel {
  margin-bottom: 90px;
  padding: 34px;
}

.project-meta span {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.policy-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px 0 90px;
}

.toc {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.toc strong {
  margin-bottom: 8px;
}

.toc a {
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease;
}

.toc a:hover {
  color: var(--blue-dark);
  background: rgba(47, 128, 255, 0.08);
}

.policy-doc {
  display: grid;
  gap: 16px;
}

.notice {
  padding: 18px 20px;
  color: var(--muted);
}

.notice strong {
  color: var(--blue-dark);
}

.policy-section {
  padding: 28px;
  scroll-margin-top: 120px;
}

.policy-section h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
}

.policy-section p + p {
  margin-top: 12px;
}

.staff-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: stretch;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.staff-summary > div:first-child,
.staff-department {
  border: 1px solid rgba(47, 128, 255, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 16px 44px rgba(16, 32, 51, 0.075);
}

.staff-summary > div:first-child {
  padding: 30px;
}

.staff-summary h2,
.staff-department h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-size: clamp(1.4rem, 2.6vw, 2.25rem);
}

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

.staff-stat {
  display: grid;
  align-content: center;
  min-height: 132px;
  padding: 22px;
  border: 1px solid rgba(25, 184, 137, 0.16);
  border-radius: 20px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

.staff-stat strong {
  color: var(--blue-dark);
  line-height: 1;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
}

.staff-stat span {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 850;
}

.staff-department {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto;
  padding: 26px;
}

.staff-department:last-child {
  margin-bottom: 90px;
}

.department-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.role-id {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(25, 184, 137, 0.18);
  border-radius: 999px;
  color: #0b7c61;
  background: rgba(25, 184, 137, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.staff-role-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.staff-role-card {
  display: grid;
  gap: 16px;
  min-height: 250px;
  padding: 22px;
  border: 1px solid rgba(47, 128, 255, 0.12);
  border-radius: 20px;
  background: var(--surface-subtle);
  transition: transform 210ms ease, border-color 210ms ease, box-shadow 210ms ease;
}

.staff-role-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 128, 255, 0.24);
  box-shadow: 0 18px 48px rgba(47, 128, 255, 0.12);
}

.staff-role-card h3 {
  margin: 0 0 8px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-size: 1.08rem;
}

.staff-role-card p,
.staff-role-card li {
  margin: 0;
  color: var(--muted);
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(47, 128, 255, 0.08);
  font-size: 0.76rem;
  font-weight: 900;
}

.staff-role-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.staff-role-card li {
  position: relative;
  padding-left: 20px;
}

.staff-role-card li::before {
  content: '';
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.staff-rule-callout {
  padding-bottom: 28px;
}

.subpage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 8px;
  border: 1px solid rgba(47, 128, 255, 0.14);
  border-radius: 999px;
  background: var(--surface-subtle);
  box-shadow: var(--shadow-soft);
}

.subpage-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 900;
}

.subpage-tabs a:hover,
.subpage-tabs a[aria-current="page"] {
  color: var(--blue-dark);
  background: rgba(47, 128, 255, 0.10);
}

.info-card-grid,
.faq-grid,
.support-choice-grid,
.staff-ops-grid,
.staff-directory-grid {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 84px;
  gap: 18px;
}

.info-card-grid,
.support-choice-grid,
.staff-ops-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid,
.staff-directory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.support-choice,
.ticket-prep,
.ops-panel,
.staff-directory-card,
.role-detail,
.join-panel,
.empty-state {
  border: 1px solid rgba(47, 128, 255, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 16px 44px rgba(16, 32, 51, 0.075);
  padding: 26px;
}

.info-card,
.support-choice,
.ops-panel,
.staff-directory-card,
.role-detail,
.join-panel,
.empty-state {
  transition: transform 210ms ease, box-shadow 210ms ease, border-color 210ms ease;
}

.info-card:hover,
.support-choice:hover,
.ops-panel:hover,
.staff-directory-card:hover,
.role-detail:hover,
.join-panel:hover,
.empty-state:hover {
  transform: translateY(-5px);
  border-color: rgba(47, 128, 255, 0.25);
  box-shadow: 0 24px 70px rgba(47, 128, 255, 0.14);
}

.info-card > span {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(47, 128, 255, 0.20);
}

.info-card h3,
.support-choice h2,
.ops-panel h2,
.role-detail h2,
.join-panel h2,
.empty-state h3 {
  margin: 0 0 10px;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.info-card p,
.support-choice p,
.ops-panel li,
.role-detail p,
.role-detail li,
.join-panel p,
.empty-state p {
  color: var(--muted);
}

.support-choice {
  display: grid;
  align-content: space-between;
  min-height: 255px;
}

.ticket-prep,
.join-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 90px;
}

.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 18px;
}

.role-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 90px;
}

.role-detail ul,
.ops-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.role-meta.spacious {
  margin-top: 22px;
}

.staff-directory-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.staff-directory-card h3,
.staff-directory-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.empty-state {
  grid-column: 1 / -1;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 84px;
  padding: 38px;
  background:
    radial-gradient(circle at top left, rgba(47, 128, 255, 0.15), transparent 28rem),
    var(--surface);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(300px, 1.5fr) minmax(240px, 0.75fr);
  gap: 28px;
  width: 100%;
  max-width: none;
  margin: 80px 0 0;
  padding: 42px max(32px, calc((100vw - 1180px) / 2)) 48px;
  border-top: 1px solid rgba(47, 128, 255, 0.14);
  border-radius: 0;
  background: linear-gradient(115deg, #07132d, #0d2f68 68%, #075ea1);
  color: #fff;
  box-shadow: none;
}

.site-footer .brand-text strong,
.site-footer .brand-text small { color: #fff; }

.site-footer p,
.site-footer a { color: rgba(232, 240, 255, .82); }

.staff-site-header {
  position: sticky;
  z-index: 40;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1510px, calc(100% - 32px));
  margin: 16px auto 30px;
  padding: 9px 10px 9px 18px;
  border: 1px solid rgba(91, 155, 255, .24);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 88%, #0d2f68 12%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(150%);
}

.staff-header-nav { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; }
.staff-header-nav::-webkit-scrollbar { display: none; }
.staff-header-nav a { flex: 0 0 auto; padding: 13px 18px; border-radius: 999px; color: var(--muted); font-size: .86rem; font-weight: 850; white-space: nowrap; }
.staff-header-nav a:hover,
.staff-header-nav a[aria-current="page"] { color: #fff; background: linear-gradient(135deg, #176bd8, #3a8cff); }
.staff-header-nav .main-site-link { margin-left: auto; color: var(--brand-2); }
.staff-header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
body.is-navigating main { opacity: .45; transform: translateY(5px); }
main { transition: opacity .18s ease, transform .18s ease; }

.footer-main p,
.footer-meta p {
  margin-bottom: 0;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-meta a {
  color: var(--muted);
  font-weight: 750;
}

.footer-links a:hover,
.footer-meta a:hover {
  color: var(--blue-dark);
}

[data-animate] {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
}

[data-animate].is-visible {
  animation: slideUp 620ms cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .staff-site-header { border-radius: 24px; align-items: flex-start; }
  .staff-header-actions { padding-top: 2px; }
  .site-header {
    align-items: flex-start;
    border-radius: 28px;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(47, 128, 255, 0.16);
    border-radius: 24px;
    background: var(--surface-control);
    box-shadow: var(--shadow-soft);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .hero,
  .split,
  .staff-summary,
  .policy-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 62px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .mock-window {
    inset: 45px 0 auto auto;
    width: 92%;
  }

  .service-grid,
  .rules-grid,
  .staff-role-list,
  .info-card-grid,
  .support-choice-grid,
  .staff-ops-grid,
  .faq-grid,
  .staff-directory-grid,
  .role-detail,
  .developer-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

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

@media (max-width: 640px) {
  .staff-site-header { width: calc(100% - 20px); margin-top: 10px; padding-left: 10px; }
  .staff-header-nav a { padding: 11px 13px; font-size: .78rem; }
  .site-header,
  .site-footer,
  .hero,
  .section,
  .page-hero,
  .rules-grid,
  .subpage-tabs,
  .info-card-grid,
  .faq-grid,
  .support-choice-grid,
  .ticket-prep,
  .staff-ops-grid,
  .staff-directory-grid,
  .role-tabs,
  .role-detail,
  .join-panel,
  .staff-summary,
  .staff-department,
  .policy-layout,
  .developer-grid,
  .project-grid {
    width: min(100% - 22px, 1180px);
  }

  .brand-text small {
    display: none;
  }

  .hero-copy h1,
  .page-hero h1 {
    letter-spacing: -0.062em;
  }

  .hero-visual {
    min-height: 360px;
  }

  .floating-card {
    width: 170px;
    padding: 14px;
  }

  .card-a {
    top: 10px;
  }

  .card-b {
    bottom: 20px;
  }

  .mock-window {
    min-height: 310px;
  }

  .window-content {
    padding: 22px;
  }

  .code-grid span {
    height: 56px;
  }

  .section {
    padding: 62px 0;
  }

  .page-hero {
    padding-top: 72px;
  }

  .rule-card,
  .staff-summary > div:first-child,
  .staff-department,
  .staff-role-card,
  .developer-card,
  .project-card,
  .policy-section,
  .info-panel,
  .cta {
    padding: 22px;
  }

  .staff-stats {
    grid-template-columns: 1fr;
  }

  .department-head {
    display: grid;
  }

  .role-id {
    width: fit-content;
  }

  .subpage-tabs,
  .ticket-prep,
  .join-panel {
    border-radius: 24px;
  }

  .ticket-prep,
  .join-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .subpage-tabs a,
  .role-tabs .btn {
    width: 100%;
  }
}
/* 2026 Saphix production theme */
:root {
  color-scheme: dark;
  --page: #080b16;
  --bg: #080b16;
  --bg-soft: #10162a;
  --surface: rgba(17, 22, 42, .82);
  --surface-strong: #151b32;
  --surface-soft: rgba(24, 31, 57, .72);
  --surface-subtle: rgba(20, 27, 50, .62);
  --surface-control: rgba(26, 34, 62, .9);
  --image-backing: #11172b;
  --page-gradient: linear-gradient(135deg, #080b16 0%, #0c1325 46%, #151126 100%);
  --grid-color: rgba(85, 216, 255, .04);
  --sheen-color: rgba(85, 216, 255, .07);
  --shine-color: rgba(85, 216, 255, .1);
  --text: #f5f7ff;
  --muted: #a9b1ca;
  --muted-2: #8792b2;
  --line: rgba(143, 157, 210, .2);
  --brand: #8b7cff;
  --brand-2: #55d8ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #f6f8ff;
  --bg: #f7fbff;
  --bg-soft: #eef7ff;
  --surface: rgba(255, 255, 255, .88);
  --surface-strong: #fff;
  --surface-soft: rgba(255, 255, 255, .72);
  --surface-subtle: rgba(255, 255, 255, .62);
  --surface-control: rgba(255, 255, 255, .92);
  --image-backing: #fff;
  --page-gradient: linear-gradient(135deg, #fbfdff 0%, #f4fbff 46%, #fff8fd 100%);
  --grid-color: rgba(47, 128, 255, .055);
  --sheen-color: rgba(255, 255, 255, .44);
  --shine-color: rgba(255, 255, 255, .12);
  --text: #15182a;
  --muted: #5d647c;
  --muted-2: #7f91a6;
  --line: rgba(62, 73, 115, .16);
  --brand: #6352df;
  --brand-2: #078db8;
  --shadow: 0 24px 65px rgba(63, 70, 118, .14);
}

html { background: var(--page); scroll-behavior: smooth; }
body { background: var(--page); color: var(--text); font-size: 15px; transition: background .25s ease, color .25s ease; }
.site-header, .site-footer, .info-card, .project-card, .developer-card, .policy-section, .staff-directory-card, .staff-department, .ops-panel, .auth-gate > div { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.site-header { max-width: 1240px; gap: 18px; }
.site-nav { gap: 3px; }
.site-nav a { font-size: .82rem; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.theme-toggle { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; transition: .2s ease; }
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--brand); }
.login-link, .profile-menu { min-height: 40px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 11px; color: var(--text); text-decoration: none; font-size: .8rem; }
.profile-menu { position: relative; }
.profile-menu img, .profile-fallback { border-radius: 50%; object-fit: cover; width: 30px; height: 30px; }
.profile-fallback { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; }
.profile-menu span { display: grid; line-height: 1.1; }
.profile-menu small { color: var(--muted); font-size: .68rem; margin-top: 3px; }
.profile-menu > a { display: none; position: absolute; right: 0; top: calc(100% + 7px); padding: 9px 14px; border-radius: 9px; background: var(--surface-strong); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.profile-menu:hover > a, .profile-menu:focus-within > a { display: block; }
h1 { font-size: clamp(2.35rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.6rem); }
p, li { color: var(--muted); }
.btn, .info-card, .project-card, .developer-card { position: relative; overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.btn:hover, .info-card:hover, .project-card:hover, .developer-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 60%, transparent); box-shadow: 0 20px 55px color-mix(in srgb, var(--brand) 15%, transparent); }
.btn::after, .info-card::after, .project-card::after { content: ''; position: absolute; inset: -70% auto -70% -50%; width: 28%; transform: rotate(18deg); background: var(--shine-color); transition: left .55s ease; pointer-events: none; }
.btn:hover::after, .info-card:hover::after, .project-card:hover::after { left: 125%; }
.project-link { margin-top: 20px; align-self: flex-start; }
.policy-layout-clean { grid-template-columns: minmax(0, 900px); justify-content: center; }
.about-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.auth-gate { min-height: 66vh; display: grid; place-items: center; padding: 40px 20px; }
.auth-gate > div { max-width: 720px; text-align: center; padding: clamp(32px, 7vw, 72px); border: 1px solid var(--line); border-radius: 28px; }
.auth-gate h1 {
  max-width: 560px;
  margin: 20px auto 18px;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.auth-gate p:not(.eyebrow) {
  max-width: 590px;
  margin-inline: auto;
  font-size: clamp(.9rem, 1.4vw, 1rem);
  line-height: 1.65;
}
.text-link { color: var(--muted); align-self: center; }
@media (max-width: 980px) {
  .site-header { flex-wrap: wrap; }
  .header-actions { margin-left: auto; }
  .site-nav { order: 4; width: 100%; }
  .about-values { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .brand-text small, .profile-menu span, .auth-slot .login-link { display: none; }
  .auth-slot .profile-menu { padding: 4px; }
  .about-values { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.1rem, 12vw, 3.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Staff navigation and final theme normalization */
.staff-site-header {
  width: min(1480px, calc(100% - 32px));
  min-height: 86px;
  margin-bottom: 22px;
  padding: 10px 18px;
  gap: clamp(18px, 3vw, 54px);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
}

.staff-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  color: var(--text);
  font-size: 1.08rem;
  letter-spacing: -.035em;
}

.staff-brand .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 17px;
}

.staff-header-nav {
  justify-content: center;
  overflow: visible;
}

.staff-header-nav a {
  padding: 12px 15px;
  color: var(--muted);
  font-size: .91rem;
}

.staff-header-nav a:hover,
.staff-header-nav a[aria-current="page"] {
  color: #0b6ee1;
  background: color-mix(in srgb, #2582f7 12%, var(--surface-strong));
}

.staff-header-actions .auth-slot,
.staff-header-actions .login-link,
.staff-header-actions .profile-menu {
  min-width: 0;
}

.staff-header-actions .login-link,
.staff-header-actions .profile-menu,
.staff-theme-toggle,
.staff-header-actions .main-site-link {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  box-shadow: none;
  font-size: .88rem;
  font-weight: 850;
}

.staff-theme-toggle {
  width: auto;
  padding: 0 17px;
}

.staff-header-actions .main-site-link {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  white-space: nowrap;
}

:root:not([data-theme="light"]) body::after { opacity: .08; }
:root:not([data-theme="light"]) .site-nav a { color: var(--muted); }
:root:not([data-theme="light"]) .site-nav a:hover,
:root:not([data-theme="light"]) .site-nav a.active,
:root:not([data-theme="light"]) .eyebrow,
:root:not([data-theme="light"]) .btn.soft,
:root:not([data-theme="light"]) .hero-stats strong,
:root:not([data-theme="light"]) .code-pill,
:root:not([data-theme="light"]) .brand-preview,
:root:not([data-theme="light"]) .badge,
:root:not([data-theme="light"]) .project-meta strong,
:root:not([data-theme="light"]) .tag-list span,
:root:not([data-theme="light"]) .developer-card .role,
:root:not([data-theme="light"]) .notice strong,
:root:not([data-theme="light"]) .staff-stat strong,
:root:not([data-theme="light"]) .role-meta span,
:root:not([data-theme="light"]) .subpage-tabs a:hover,
:root:not([data-theme="light"]) .subpage-tabs a[aria-current="page"] {
  color: var(--brand-2);
}

:root:not([data-theme="light"]) .nav-toggle,
:root:not([data-theme="light"]) .eyebrow,
:root:not([data-theme="light"]) .btn.soft,
:root:not([data-theme="light"]) .hero-stats span,
:root:not([data-theme="light"]) .mock-window,
:root:not([data-theme="light"]) .window-bar,
:root:not([data-theme="light"]) .code-grid span,
:root:not([data-theme="light"]) .floating-card,
:root:not([data-theme="light"]) .staff-stat,
:root:not([data-theme="light"]) .staff-role-card,
:root:not([data-theme="light"]) .subpage-tabs {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

:root:not([data-theme="light"]) .mock-window::before {
  background: linear-gradient(135deg, rgba(85, 216, 255, .12), transparent 38%, rgba(139, 124, 255, .11));
}

:root:not([data-theme="light"]) .site-footer {
  background: linear-gradient(115deg, #070a14, #10172e 68%, #10233d);
}

@media (max-width: 1080px) {
  .staff-site-header { gap: 12px; }
  .staff-header-nav { justify-content: flex-start; overflow-x: auto; }
  .staff-header-nav a { padding-inline: 12px; }
}

@media (max-width: 760px) {
  .staff-site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 0;
    border-radius: 28px;
    padding: 10px;
  }
  .staff-brand { padding-left: 2px; }
  .staff-brand strong { display: none; }
  .staff-header-actions { grid-column: 2; grid-row: 1; }
  .staff-header-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding-top: 5px;
  }
  .staff-header-actions .login-link span,
  .staff-header-actions .profile-menu span { display: none; }
  .staff-header-actions .login-link,
  .staff-theme-toggle,
  .staff-header-actions .main-site-link { min-height: 42px; padding-inline: 12px; }
}

@media (max-width: 480px) {
  .staff-header-actions { gap: 4px; }
  .staff-header-actions .login-link { display: none; }
  .staff-header-actions .profile-menu { min-height: 42px; padding: 5px; }
  .staff-header-actions .main-site-link { font-size: .76rem; }
}
