:root {
  --bg: #f7fbff;
  --bg-soft: #eef7ff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --text: #102033;
  --muted: #5e6f84;
  --muted-2: #7f91a6;
  --line: rgba(35, 68, 104, 0.14);
  --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),
    linear-gradient(135deg, #fbfdff 0%, #f4fbff 46%, #fff8fd 100%);
  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(rgba(47, 128, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 128, 255, 0.055) 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%, rgba(255,255,255,0.44) 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: rgba(255, 255, 255, 0.70);
  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: #fff;
  padding: 3px;
}

.logo-mark img {
  background: #fff;
}

.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: rgba(255, 255, 255, 0.7);
  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: rgba(255, 255, 255, 0.58);
  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: rgba(255, 255, 255, 0.68);
  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: rgba(255, 255, 255, 0.62);
  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: rgba(255, 255, 255, 0.70);
  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: rgba(255,255,255,0.46);
}

.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: #fff;
  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: rgba(255, 255, 255, 0.64);
  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: rgba(255, 255, 255, 0.78);
  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: rgba(255, 255, 255, 0.72);
  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: rgba(255, 255, 255, 0.66);
  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: rgba(255, 255, 255, 0.62);
  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),
    rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(220px, 0.8fr) minmax(220px, 0.6fr);
  gap: 28px;
  padding: 36px 0 42px;
  border-top: 1px solid rgba(47, 128, 255, 0.14);
}

.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) {
  .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: rgba(255, 255, 255, 0.92);
    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) {
  .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%;
  }
}
