:root {
  --bg: #070b14;
  --bg-soft: #0e1626;
  --panel: rgba(14, 22, 38, 0.9);
  --panel-strong: #121d2d;
  --card: #111c2d;
  --card-alt: #0d1727;
  --text: #edf4ff;
  --muted: #b5c2d5;
  --line: rgba(170, 191, 214, 0.18);
  --primary: #8be9fd;
  --primary-strong: #5abef2;
  --gold: #f7c66a;
  --success: #81e59d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  --radius: 22px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.brand strong, .brand b {
  display: inline-block;
  font-weight: 800;
}

.brand b {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 24, 37, 0.7);
  box-shadow: inset 0 0 0 1px rgba(139, 233, 253, 0.04);
}

.nav a {
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.58rem 0.8rem;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.active {
  background: rgba(139, 233, 253, 0.08);
  color: var(--text);
  border: 1px solid rgba(139, 233, 253, 0.18);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.9rem 1.5rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #04131d;
  box-shadow: var(--shadow);
}

.button-ghost {
  border-color: rgba(139, 233, 253, 0.38);
  background: rgba(139, 233, 253, 0.04);
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(5,13,22,0.78), rgba(10,19,32,0.97)),
    radial-gradient(circle at top left, rgba(91,190,242,0.22), transparent 30%);
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("public/hero-v2.png") center/cover no-repeat;
  opacity: 0.18;
  transform: scale(1.08);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 32px;
  padding: 96px 0 70px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--primary);
}

h1, h2, h3, h4 {
  line-height: 1.08;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(2.8rem, 4vw, 6rem);
  letter-spacing: -0.06em;
}

h1 span {
  color: var(--primary);
}

h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  letter-spacing: -0.05em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -0.04em;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.lead-large {
  font-size: 1.18rem;
  color: rgba(237, 244, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.stats-row div {
  min-width: 120px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 25, 38, 0.6);
}

.stats-row strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 3px;
}

.stats-row span {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-panel {
  background: rgba(9, 17, 28, 0.8);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.panel-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.panel-top img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.panel-top span {
  display: block;
  color: var(--success);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-top strong {
  font-size: 1.5rem;
}

.live-state {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 100, 116, 0.32);
  border-radius: 999px;
  background: rgba(255, 100, 116, 0.08);
  flex: 0 0 auto;
}

.live-state i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #ff6474;
}

.live-state span {
  margin: 0;
  color: #ff9ca6;
  font-size: 0.66rem;
  font-weight: 900;
}

.live-state.is-online {
  border-color: rgba(93, 240, 174, 0.32);
  background: rgba(93, 240, 174, 0.08);
}

.live-state.is-online i {
  background: var(--success);
  box-shadow: 0 0 0.8rem rgba(93, 240, 174, 0.7);
}

.live-state.is-online span {
  color: var(--success);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-grid div {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(18, 29, 45, 0.8);
  border: 1px solid rgba(139, 233, 253, 0.15);
}

.mini-grid-profile .mini-grid-wide {
  grid-column: 1 / -1;
}

.mini-grid-profile strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-grid-profile .server-name-tile strong {
  font-size: 0.82rem;
}

.mini-grid small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.panel-cta {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-cta span {
  color: var(--muted);
}

.panel-cta a {
  color: var(--primary);
  font-weight: 700;
}

.live-changelog {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(7, 15, 29, 0.72);
}

.live-changelog div {
  min-width: 0;
}

.live-changelog span,
.live-changelog time {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-changelog strong {
  display: block;
  margin-top: 0.25rem;
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-changelog time {
  flex: 0 0 auto;
}

.live-panel-footer {
  align-items: center;
}

.live-panel-footer > span {
  display: grid;
  gap: 0.2rem;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.live-panel-footer time {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.live-panel-footer .button-compact {
  min-height: auto;
  padding: 0.72rem 0.9rem;
  color: #031018;
  font-size: 0.72rem;
  white-space: nowrap;
}

.feature-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 18, 28, 0.7);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 26px 0;
}

.feature-grid div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.feature-grid span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(139, 233, 253, 0.1);
  color: var(--primary);
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.feature-grid strong {
  font-size: 0.94rem;
  color: var(--text);
}

.section {
  padding: 92px 0;
}

.section-alt {
  background: rgba(10, 19, 32, 0.5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 32px;
}

.section-index {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.overline {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: linear-gradient(180deg, rgba(17, 28, 45, 0.96), rgba(11, 17, 28, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.card-body {
  padding: 20px 18px 18px;
}

.card-kicker {
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 800;
}

.card-body ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.highlight-card {
  border-color: rgba(139, 233, 253, 0.2);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  background: rgba(13, 22, 38, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 20px;
}

.badge {
  display: inline-block;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(139, 233, 253, 0.1);
  color: var(--primary);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.project-card h3 {
  margin-bottom: 8px;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(13, 22, 38, 0.8);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 233, 253, 0.3);
}

.tool-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139,233,253,0.18), rgba(90,190,242,0.2));
  color: var(--primary);
  font-weight: 800;
  align-items: center;
  justify-content: center;
}

.tool-card strong {
  display: block;
  margin-bottom: 2px;
}

.tool-card small {
  color: var(--muted);
  line-height: 1.5;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 60px;
  background: linear-gradient(180deg, rgba(6, 12, 20, 0.96), rgba(13, 22, 38, 0.96));
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(91, 190, 242, 0.2), transparent 35%);
}

.page-hero .shell {
  position: relative;
  z-index: 1;
}

.page-tag {
  display: inline-block;
  margin-bottom: 20px;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(139, 233, 253, 0.08);
  border: 1px solid rgba(139, 233, 253, 0.2);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 800;
}

.page-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
}

.page-hero .lead {
  max-width: 720px;
  font-size: 1.12rem;
  color: rgba(237, 244, 255, 0.8);
}

.info-grid,
.principle-grid,
.story-grid,
.systems-grid,
.role-grid,
.faq-wrap,
.changelog,
.rule-list {
  display: grid;
  gap: 18px;
}

.info-grid,
.principle-grid,
.story-grid,
.systems-grid,
.role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.principle-grid article,
.story-card,
.system-card,
.role-card,
.rule-item,
.faq-item,
.change-card {
  background: rgba(12, 20, 35, 0.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.principle-grid article,
.rule-item,
.change-card {
  padding: 24px 22px;
}

.info-card,
.story-card,
.system-card,
.role-card {
  display: flex;
  flex-direction: column;
}

.info-card img,
.story-card img,
.system-card img,
.role-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.info-card .card-content,
.story-card figcaption,
.card-content,
.role-content {
  padding: 18px 18px 20px;
}

.story-card figcaption span,
.system-top,
.role-meta,
.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
  font-weight: 700;
}

.story-card figcaption strong,
.system-card h3,
.role-card h3,
.principle-grid h3,
.rule-item h3,
.change-card h3 {
  display: block;
  margin: 10px 0 8px;
}

.story-card figcaption p,
.system-card p,
.role-card p,
.principle-grid p,
.rule-item p,
.change-card p,
.info-card p {
  margin: 0;
  color: var(--muted);
}

.system-top span,
.role-meta span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(139, 233, 253, 0.1);
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.system-card ul,
.rule-item ul,
.change-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.story-card figcaption,
.system-card .card-content,
.role-card .role-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.changelog {
  grid-template-columns: 1.5fr 0.8fr;
}

.list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.list li,
.side-box {
  background: rgba(12, 20, 35, 0.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 22px;
}

.list li .meta {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.list li time {
  color: var(--gold);
  font-weight: 700;
}

.list li h3,
.side-box h3 {
  margin: 0 0 8px;
}

.list li p,
.side-box ol,
.side-box p {
  margin: 0;
  color: var(--muted);
}

.side-box ol {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.rule-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rule-item {
  position: relative;
}

.rule-number {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(139, 233, 253, 0.1);
  border: 1px solid rgba(139, 233, 253, 0.18);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 16px;
}

.rule-document {
  display: grid;
  gap: 18px;
}

.rule-intro {
  padding: 26px 28px;
}

.pill {
  display: inline-flex;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(139, 233, 253, 0.09);
  border: 1px solid rgba(139, 233, 253, 0.18);
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.rule-section {
  background: rgba(12, 20, 35, 0.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
}

.rule-section h3,
.rule-section h4 {
  margin: 0 0 12px;
  color: var(--text);
}

.rule-section h4 {
  color: var(--primary);
  margin-top: 18px;
}

.rule-section p,
.rule-section li {
  color: var(--muted);
  line-height: 1.7;
}

.rule-section p {
  margin: 0 0 12px;
}

.rule-section ul,
.rule-section ol {
  margin: 0 0 14px;
  padding-left: 20px;
}

.rule-section li + li {
  margin-top: 8px;
}

.rule-section em,
.rule-section strong {
  color: var(--text);
}

.rule-section.emphasis {
  background: linear-gradient(135deg, rgba(90, 190, 242, 0.08), rgba(90, 190, 242, 0.02));
  border-color: rgba(139, 233, 253, 0.22);
}

.faq-wrap {
  grid-template-columns: 0.7fr 1.3fr;
  align-items: start;
}

.faq-item {
  margin-bottom: 12px;
  border-radius: 18px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  color: var(--primary);
  font-size: 1.3rem;
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.cta {
  padding: 84px 0 32px;
}

.lawbook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lawbook-card {
  background: rgba(12, 20, 35, 0.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.lawbook-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(139, 233, 253, 0.1);
  border: 1px solid rgba(139, 233, 253, 0.2);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.lawbook-card h3 {
  margin: 0 0 10px;
}

.lawbook-card p,
.law-rule p,
.law-summary p {
  margin: 0;
  color: var(--muted);
}

.lawbook-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 1.1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.lawbook-card li {
  position: relative;
  padding-left: 1rem;
  color: #d7e3f2;
  font-size: 0.88rem;
}

.lawbook-card li::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 0;
  width: 0.35rem;
  height: 0.1rem;
  background: var(--primary);
}

.law-rules-wrap {
  display: grid;
  gap: 14px;
}

.law-rule {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  background: rgba(12, 20, 35, 0.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.law-rule span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(139, 233, 253, 0.1);
  border: 1px solid rgba(139, 233, 253, 0.18);
  color: var(--primary);
  font-weight: 800;
}

.law-rule h3 {
  margin: 0 0 8px;
}

.law-summary {
  padding: 30px 28px;
}

@media (max-width: 980px) {
  .lawbook-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .lawbook-grid,
  .law-rules-wrap {
    grid-template-columns: 1fr;
  }

  .law-rule {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.cta-box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  background: linear-gradient(135deg, rgba(90,190,242,0.12), rgba(119,160,255,0.06));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(32px, 4vw, 56px);
}

.cta-box::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4, 217, 255, 0.12), transparent 68%);
  pointer-events: none;
}

.cta-box > div {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  max-width: 680px;
  margin-bottom: 14px;
}

.cta-box .lead {
  margin: 0;
}

.cta-box .hero-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.cta-copy {
  color: var(--muted);
  margin: 0;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.82);
  padding: 28px 0 42px;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid,
  .principle-grid,
  .story-grid,
  .systems-grid,
  .role-grid,
  .faq-wrap,
  .changelog,
  .rule-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .hero-content,
  .grid-4,
  .grid-3,
  .project-grid,
  .steps,
  .cta-box,
  .tool-grid,
  .feature-grid,
  .info-grid,
  .principle-grid,
  .story-grid,
  .systems-grid,
  .role-grid,
  .faq-wrap,
  .changelog,
  .rule-list,
  .two-column,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .hero-content {
    padding-top: 56px;
  }

  .site-header .shell {
    min-height: 72px;
  }

  .feature-grid {
    display: grid;
  }

  .cta-box .hero-actions {
    justify-content: flex-start;
  }
}

/* PHP 2026 – zentrale CubeLifeRP Website */
:root {
  --bg: #050914;
  --bg-soft: #081322;
  --panel: rgba(8, 18, 33, 0.92);
  --panel-strong: #0b192b;
  --card: #0c1a2b;
  --card-alt: #091523;
  --text: #f4f8ff;
  --muted: #aebdd0;
  --line: rgba(151, 180, 214, 0.18);
  --primary: #04d9ff;
  --primary-strong: #1597ef;
  --violet: #7c5cff;
  --danger: #ff4e7a;
  --shadow: 0 1.8rem 5rem rgba(0, 0, 0, 0.46);
  --radius: 1.25rem;
  --max: 82rem;
}

body {
  min-width: 20rem;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 8%, rgba(23, 97, 191, 0.14), transparent 26rem),
    var(--bg);
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 0.16rem solid var(--primary);
  outline-offset: 0.2rem;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #00121b;
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: rgba(4, 9, 20, 0.86);
  backdrop-filter: blur(1.25rem) saturate(1.25);
}

.header-shell {
  min-height: 5.25rem;
}

.brand-official {
  flex: 0 0 auto;
}

.brand-official img {
  width: 9.4rem;
  height: 3.4rem;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
}

.nav-primary {
  flex-wrap: nowrap;
  gap: 0.15rem;
  padding: 0.35rem;
  background: rgba(9, 20, 35, 0.7);
}

.nav-primary a {
  padding: 0.62rem 0.72rem;
  font-size: 0.68rem;
}

.nav-primary a.active,
.nav-primary a:hover {
  border-color: transparent;
  background: rgba(4, 217, 255, 0.1);
  color: var(--primary);
}

.header-cta {
  padding: 0.72rem 1.1rem;
  white-space: nowrap;
}

.mobile-navigation {
  display: none;
  position: relative;
}

.mobile-navigation summary {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  cursor: pointer;
  list-style: none;
}

.mobile-navigation summary::-webkit-details-marker { display: none; }
.mobile-navigation summary span { width: 1.25rem; height: 0.12rem; background: var(--text); }
.mobile-navigation nav {
  position: absolute;
  right: 0;
  top: 3.25rem;
  width: min(20rem, calc(100vw - 2rem));
  display: grid;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #081322;
  box-shadow: var(--shadow);
}

.mobile-navigation nav a {
  padding: 0.82rem 0.9rem;
  border-radius: 0.6rem;
  color: var(--muted);
}

.mobile-navigation nav a.active,
.mobile-navigation nav a:hover { background: rgba(4, 217, 255, 0.09); color: var(--primary); }

.hero-home {
  min-height: min(50rem, calc(100vh - 5rem));
}

.hero-home .hero-media {
  background-image:
    linear-gradient(90deg, rgba(4, 8, 19, 0.94) 0%, rgba(4, 8, 19, 0.56) 48%, rgba(4, 8, 19, 0.38) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 36%),
    url("public/hero-v2.png");
  background-position: center;
}

.hero-home .hero-content {
  min-height: min(50rem, calc(100vh - 5rem));
  align-items: center;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
  padding-block: 5rem;
}

.hero-home h1,
.lawbook-hero h1 {
  margin: 1rem 0 1.25rem;
  font-size: clamp(3.4rem, 6.2vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.hero-home h1 span,
.lawbook-hero h1 span {
  color: var(--primary);
}

.eyebrow i {
  width: 0.45rem;
  height: 0.45rem;
  display: inline-block;
  margin-right: 0.42rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 1rem rgba(4, 217, 255, 0.8);
}

.server-profile {
  border-top: 0.15rem solid var(--primary);
  background: rgba(5, 12, 27, 0.9);
}

.stats-row dt,
.stats-row span { color: var(--muted); font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.08em; }
.stats-row dd { margin: 0.2rem 0 0; font-weight: 800; color: var(--text); }

.section-heading .text-link,
.text-link {
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}

.system-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.system-preview {
  position: relative;
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.system-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(3, 8, 18, 0.94) 90%);
}

.system-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.system-preview:hover img { transform: scale(1.03); }
.system-preview > div { position: relative; z-index: 1; padding: 2rem; }
.system-preview span,
.public-info-card > span,
.changelog-side-note > span { color: var(--primary); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.13em; }
.system-preview h3 { margin: 0.4rem 0; font-size: 1.65rem; }
.system-preview p { max-width: 31rem; margin: 0; color: var(--muted); }

.changelog-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.changelog-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(15, 32, 52, 0.94), rgba(7, 16, 29, 0.96));
}

.changelog-card-latest { border-color: rgba(4, 217, 255, 0.48); box-shadow: inset 0 0 0 1px rgba(4, 217, 255, 0.07); }
.changelog-card-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.07em; }
.changelog-card-meta span { color: var(--primary); }
.changelog-card h3 { margin: 1.25rem 0 0.65rem; font-size: 1.35rem; }
.changelog-card p { color: var(--muted); }
.changelog-card ul { display: grid; gap: 0.55rem; padding: 0; list-style: none; }
.changelog-card li { padding-left: 1rem; position: relative; color: #d7e3f2; font-size: 0.88rem; }
.changelog-card li::before { content: ""; position: absolute; left: 0; top: 0.65rem; width: 0.35rem; height: 0.1rem; background: var(--primary); }
.changelog-card footer { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.75rem; }

.empty-panel {
  padding: 2.4rem;
  border: 1px dashed rgba(4, 217, 255, 0.38);
  border-radius: var(--radius);
  background: rgba(4, 217, 255, 0.035);
  text-align: center;
}

.empty-panel > span { color: var(--primary); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.13em; }
.empty-panel h2,
.empty-panel h3 { margin: 0.65rem 0; }
.empty-panel p { margin: 0; color: var(--muted); }

.public-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.public-info-card {
  min-height: 22rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(10, 25, 44, 0.96), rgba(6, 13, 26, 0.96));
}

.public-info-card h2 { margin: 0.6rem 0; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1; }
.public-info-card p { color: var(--muted); max-width: 36rem; }
.public-info-card .button { margin-top: 0.7rem; }
.law-card { background: radial-gradient(circle at 90% 10%, rgba(124, 92, 255, 0.22), transparent 18rem), #091425; }

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.6fr);
  align-items: end;
  gap: 3rem;
}

.page-hero-grid h1 { max-width: 58rem; }
.page-summary { padding: 1.5rem; border: 1px solid var(--line); border-top: 0.15rem solid var(--primary); background: rgba(7, 17, 31, 0.82); }
.page-summary > span { color: var(--primary); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.12em; }
.page-summary strong { display: block; margin-top: 0.65rem; font-size: 1.4rem; }
.page-summary p { margin-bottom: 0; color: var(--muted); }

.changelog-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  align-items: start;
  gap: 2rem;
}

.changelog-timeline { display: grid; gap: 1.2rem; }
.changelog-entry-modern { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; }
.timeline-marker { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; color: var(--primary); font-size: 0.72rem; font-weight: 900; }
.timeline-marker i { width: 1px; flex: 1; min-height: 4rem; background: linear-gradient(var(--primary), transparent); }
.changelog-entry-body { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-alt); }
.changelog-entry-body > header { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.75rem; }
.changelog-entry-body > header div { display: flex; gap: 0.7rem; }
.changelog-entry-body > header span { color: var(--primary); }
.changelog-entry-body h2 { margin: 1rem 0 0.7rem; }
.changelog-entry-body > p { color: var(--muted); font-size: 1.02rem; }
.change-highlights { margin-top: 1.4rem; padding: 1.2rem; border-left: 0.15rem solid var(--primary); background: rgba(4, 217, 255, 0.04); }
.change-highlights h3 { margin: 0 0 0.7rem; font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; }
.change-highlights ul { margin: 0; padding-left: 1.2rem; color: #d9e6f5; }
.changelog-entry-body > footer { margin-top: 1.3rem; color: var(--muted); font-size: 0.75rem; }
.changelog-side-note { position: sticky; top: 7rem; padding: 1.5rem; border: 1px solid var(--line); background: var(--card); }
.changelog-side-note h2 { margin: 0.5rem 0; }
.changelog-side-note p { color: var(--muted); }
.changelog-side-note a { display: block; padding: 0.7rem 0; border-top: 1px solid var(--line); color: var(--primary); font-weight: 800; }

/* Gesetzbuch */
.lawbook-hero {
  position: relative;
  min-height: 38rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #06101f;
}

.lawbook-hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 9, 19, 0.97), rgba(4, 9, 19, 0.62) 55%, rgba(4, 9, 19, 0.8)),
    linear-gradient(0deg, #050914, transparent 50%),
    url("public/scene-citylife.png") center/cover;
  filter: saturate(0.75);
}

.lawbook-hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
  align-items: center;
  gap: 4rem;
  padding-block: 5rem;
}

.lawbook-hero .lead { max-width: 47rem; }
.lawbook-profile { padding: 1.6rem; border: 1px solid var(--line); border-top: 0.16rem solid var(--violet); background: rgba(5, 13, 29, 0.9); box-shadow: var(--shadow); }
.lawbook-profile > span { color: #a994ff; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.12em; }
.lawbook-profile dl { margin: 1rem 0 0; }
.lawbook-profile dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.lawbook-profile dt { color: var(--muted); }
.lawbook-profile dd { margin: 0; font-weight: 800; }
.lawbook-notice { border-block: 1px solid rgba(247, 198, 106, 0.25); background: rgba(247, 198, 106, 0.055); }
.lawbook-notice .shell { display: flex; align-items: center; gap: 1.2rem; padding-block: 1rem; }
.lawbook-notice strong { color: var(--gold); white-space: nowrap; }
.lawbook-notice p { margin: 0; color: var(--muted); }

.law-workspace { padding: 5rem 0; }
.law-workspace-layout { display: grid; grid-template-columns: 18rem minmax(0, 1fr); align-items: start; gap: 2rem; }
.law-sidebar { position: sticky; top: 6.5rem; display: grid; gap: 1rem; }
.law-search-block,
.law-sidebar-note { padding: 1rem; border: 1px solid var(--line); background: var(--card-alt); }
.law-search-block label { display: block; margin-bottom: 0.55rem; color: var(--muted); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.law-search-input { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.55rem; padding: 0.72rem; border: 1px solid var(--line); background: #050d18; }
.law-search-input span { color: var(--primary); }
.law-search-input input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.law-search-input input::placeholder { color: #708198; }
.law-search-input kbd { padding: 0.15rem 0.35rem; border: 1px solid var(--line); color: var(--muted); font-size: 0.7rem; }
.law-filter-nav { display: grid; border: 1px solid var(--line); background: var(--card-alt); }
.law-filter-nav button { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; padding: 0.8rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.law-filter-nav button:last-child { border-bottom: 0; }
.law-filter-nav button:hover,
.law-filter-nav button.active { background: rgba(4, 217, 255, 0.08); color: var(--text); }
.law-filter-nav button.active { box-shadow: inset 0.16rem 0 var(--primary); }
.law-filter-nav button span { color: var(--primary); font-size: 0.68rem; }
.law-filter-nav button small { min-width: 1.8rem; text-align: right; }
.law-sidebar-note > span { color: var(--violet); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.11em; }
.law-sidebar-note strong { display: block; margin-top: 0.4rem; }
.law-sidebar-note p { margin-bottom: 0; color: var(--muted); font-size: 0.82rem; }
.law-content-heading { display: flex; justify-content: space-between; gap: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.law-content-heading > div:first-child > span { color: var(--primary); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.11em; }
.law-content-heading h2 { margin: 0.55rem 0 0.25rem; font-size: clamp(2rem, 4vw, 3.3rem); }
.law-content-heading p { margin: 0; color: var(--muted); }
.law-result-count { min-width: 6rem; text-align: right; }
.law-result-count strong { display: block; color: var(--primary); font-size: 2.5rem; line-height: 1; }
.law-result-count span { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; }
.law-groups { display: grid; gap: 2rem; padding-top: 2rem; }
.law-group-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.law-group-heading > span { min-width: 3.8rem; padding: 0.34rem 0.5rem; border: 1px solid rgba(4, 217, 255, 0.34); color: var(--primary); font-size: 0.7rem; font-weight: 900; text-align: center; }
.law-group-heading h3 { margin: 0; font-size: 1.1rem; }
.law-group-heading small { color: var(--muted); }
.law-entry-list { border-top: 1px solid var(--line); }
.law-entry { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0.4rem; border-bottom: 1px solid var(--line); }
.law-entry-id { color: var(--primary); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.05em; }
.law-entry-main h4 { margin: 0; font-size: 1.05rem; }
.law-entry-main > p { margin: 0.55rem 0 0; color: var(--muted); }
.law-penalties { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.law-penalties span { padding: 0.3rem 0.55rem; border: 1px solid rgba(255, 78, 122, 0.25); background: rgba(255, 78, 122, 0.06); color: #ff9cb6; font-size: 0.72rem; font-weight: 800; }
.law-measures { display: flex; flex-wrap: wrap; gap: 0.45rem 1.2rem; margin: 0.75rem 0 0; padding: 0; list-style: none; color: var(--gold); font-size: 0.76rem; }
.law-measures li::before { content: "+ "; }
.law-empty-state { margin-top: 2rem; padding: 3rem; border: 1px dashed var(--line); text-align: center; }
.law-empty-state > span { color: var(--primary); font-size: 0.72rem; text-transform: uppercase; }
.law-empty-state h3 { margin: 0.6rem 0; }
.law-empty-state button { border: 0; background: transparent; color: var(--primary); font-weight: 800; cursor: pointer; }

.site-footer { border-top: 1px solid var(--line); background: #040812; }
.footer-shell-modern { display: grid; grid-template-columns: minmax(15rem, 1fr) 1.3fr auto; align-items: start; gap: 3rem; padding-block: 3.5rem; }
.footer-intro p { max-width: 24rem; color: var(--muted); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 1.4rem; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--primary); }
.footer-community { display: grid; gap: 0.55rem; }
.footer-community span { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-community a { color: var(--primary); font-weight: 800; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem 1.7rem; border-top: 1px solid var(--line); color: #718198; font-size: 0.75rem; }

@media (max-width: 72rem) {
  .nav-primary { display: none; }
  .mobile-navigation { display: block; }
  .header-cta { margin-left: auto; }
  .changelog-cards { grid-template-columns: 1fr 1fr; }
  .changelog-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 58rem) {
  .hero-home .hero-content,
  .lawbook-hero-grid,
  .page-hero-grid,
  .public-info-grid,
  .changelog-page-layout,
  .footer-shell-modern { grid-template-columns: 1fr; }
  .hero-home .hero-content { align-content: center; }
  .server-profile { max-width: 34rem; }
  .system-preview-grid { grid-template-columns: 1fr; }
  .changelog-side-note { position: static; }
  .law-workspace-layout { grid-template-columns: 1fr; }
  .law-sidebar { position: static; }
  .law-filter-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .law-filter-nav button:nth-child(odd) { border-right: 1px solid var(--line); }
  .lawbook-hero-grid { gap: 2rem; }
}

@media (max-width: 42rem) {
  .shell { width: min(var(--max), calc(100% - 1.25rem)); }
  .header-shell { min-height: 4.5rem; gap: 0.6rem; }
  .brand-official img { width: 7.5rem; height: 2.8rem; }
  .header-cta { display: none; }
  .hero-home h1,
  .lawbook-hero h1 { font-size: clamp(3rem, 16vw, 4.7rem); }
  .hero-home .hero-content { padding-block: 3rem; }
  .stats-row { grid-template-columns: 1fr; }
  .system-preview { min-height: 19rem; }
  .system-preview > div,
  .public-info-card,
  .changelog-entry-body { padding: 1.3rem; }
  .changelog-cards { grid-template-columns: 1fr; }
  .changelog-card:first-child { grid-column: auto; }
  .page-hero { padding-block: 4rem; }
  .changelog-entry-modern { grid-template-columns: 1fr; }
  .timeline-marker { flex-direction: row; justify-content: flex-start; }
  .timeline-marker i { width: 4rem; height: 1px; min-height: 0; flex: none; }
  .changelog-entry-body > header { display: grid; }
  .changelog-entry-body > header > strong { order: -1; color: var(--primary); }
  .lawbook-notice .shell { align-items: flex-start; flex-direction: column; gap: 0.2rem; }
  .law-filter-nav { grid-template-columns: 1fr; }
  .law-filter-nav button:nth-child(odd) { border-right: 0; }
  .law-content-heading { align-items: flex-end; }
  .law-entry { grid-template-columns: 1fr; gap: 0.35rem; }
  .law-group-heading { grid-template-columns: auto minmax(0, 1fr); }
  .law-group-heading small { grid-column: 2; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
