:root {
  --bg: #07111f;
  --bg-soft: rgba(12, 25, 44, 0.72);
  --bg-strong: #0d1b2f;
  --panel: rgba(14, 30, 52, 0.88);
  --panel-border: rgba(132, 177, 255, 0.18);
  --text: #edf3ff;
  --muted: #9fb2cf;
  --accent: #58c4ff;
  --accent-strong: #89f0ff;
  --accent-warm: #f59e0b;
  --success: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: 1180px;
}

body.business-theme {
  background:
    radial-gradient(circle at top left, rgba(88, 196, 255, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.1), transparent 24%),
    linear-gradient(180deg, #071019 0%, #0a1420 52%, #060b12 100%);
}

body.gaming-theme {
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 22%),
    linear-gradient(180deg, #080814 0%, #121126 48%, #090b14 100%);
}

body.home-dashboard {
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.16), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.14), transparent 28%),
    linear-gradient(180deg, #040e16 0%, #071824 52%, #030a11 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(88, 196, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 24%),
    linear-gradient(180deg, #06101d 0%, #091422 50%, #050b14 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 92%);
}

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

.site-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  padding: 18px 20px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: rgba(5, 13, 23, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.domain-tabs {
  display: flex;
  gap: 12px;
  margin: 0 0 24px;
}

.domain-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(7, 16, 29, 0.72);
  color: var(--muted);
  font-weight: 600;
  transition: 160ms ease;
}

.domain-tab:hover,
.domain-tab.active {
  color: var(--text);
  background: rgba(88, 196, 255, 0.1);
}

body.business-theme .domain-tab.active {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.24);
}

body.gaming-theme .domain-tab.active {
  background: rgba(236, 72, 153, 0.14);
  border-color: rgba(236, 72, 153, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #03101d;
}

.brand-text {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-nav a {
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 999px;
  transition: 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(88, 196, 255, 0.12);
}

.project-top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.project-top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(132, 177, 255, 0.2);
  color: var(--muted);
  background: rgba(8, 20, 34, 0.6);
  transition: 160ms ease;
}

.project-top-nav a:hover,
.project-top-nav a:focus-visible {
  color: var(--text);
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.14);
}

.home-hero {
  margin-bottom: 24px;
}

.home-hero-copy,
.home-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(8, 25, 36, 0.94), rgba(4, 14, 23, 0.94));
  box-shadow: var(--shadow);
}

.home-hero-copy {
  padding: 42px;
  animation: rise-in 420ms ease both;
}

.home-hero-copy h1 {
  max-width: 17ch;
}

.home-intro {
  margin-top: 18px;
  max-width: 64ch;
}

.home-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 20px;
  margin-bottom: 24px;
}

.home-card {
  padding: 28px;
}

.home-news-panel {
  min-height: 420px;
}

.home-card-head {
  margin-bottom: 16px;
}

.news-feed {
  display: grid;
  gap: 14px;
}

.news-item {
  padding: 18px;
  border: 1px solid rgba(132, 177, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(4, 14, 23, 0.7);
  animation: rise-in 420ms ease both;
}

.news-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.news-item p {
  margin-bottom: 10px;
}

.news-date {
  display: inline-flex;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent-strong);
}

.upcoming-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.upcoming-list li {
  margin-bottom: 12px;
  padding: 14px 14px 14px 16px;
  border-left: 3px solid rgba(74, 222, 128, 0.78);
  border-radius: 10px;
  background: rgba(74, 222, 128, 0.08);
  color: var(--text);
}

.project-highlights {
  animation: rise-in 560ms ease both;
}

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

.highlight-item {
  padding: 18px;
  border: 1px solid rgba(132, 177, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(6, 18, 30, 0.8);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.highlight-item:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

.highlight-item h3 {
  margin: 0 0 8px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 24px;
  margin-bottom: 28px;
}

.hero-copy,
.page-hero-copy,
.hero-panel,
.card,
.panel-card,
.page-section {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(11, 24, 42, 0.92), rgba(7, 16, 29, 0.92));
  box-shadow: var(--shadow);
}

.hero-copy,
.page-hero-copy {
  padding: 44px;
}

.hero-copy::after,
.page-hero-copy::after,
.card::after,
.panel-card::after,
.page-section::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 196, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.hero-panel,
.panel-card {
  padding: 24px;
}

.eyebrow,
.card-kicker,
.panel-label {
  margin: 0 0 12px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.hero-text,
.page-intro {
  margin-top: 18px;
  max-width: 62ch;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}

.button-primary {
  color: #04111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.button-secondary {
  border-color: rgba(88, 196, 255, 0.18);
  background: rgba(88, 196, 255, 0.08);
}

.button-repo {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.1);
  color: var(--text);
}

.button-moddb {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  color: #ffffff;
}

.button-moddb:hover {
  background: linear-gradient(135deg, #991b1b, #dc2626);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

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

.card,
.page-section {
  padding: 28px;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--text);
  font-weight: 500;
}

.compact-list,
.detail-list,
.status-list,
.link-list,
.doc-list,
.timeline,
.meta-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.compact-list li,
.detail-list li,
.status-list li,
.link-list li,
.doc-list li,
.meta-list li {
  margin-bottom: 10px;
  color: var(--muted);
}

.detail-list li::before,
.status-list li::before,
.link-list li::before,
.doc-list li::before,
.meta-list li::before {
  content: "•";
  margin-right: 10px;
  color: var(--accent);
}

.timeline-item {
  position: relative;
  margin-bottom: 18px;
  padding-left: 18px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(88, 196, 255, 0.1);
}

.timeline-date,
.status-badge,
.meta-label {
  display: inline-flex;
  margin-bottom: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
}

.status-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: #8ff5c8;
}

.meta-grid,
.content-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 20px;
  margin-bottom: 24px;
}

.stack {
  display: grid;
  gap: 20px;
}

.page-footer {
  margin-top: 24px;
  padding: 18px 24px;
  border-top: 1px solid rgba(159, 178, 207, 0.14);
  color: var(--muted);
}

.page-hero-copy h1 {
  max-width: none;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

.page-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(88, 196, 255, 0.08);
  color: var(--text);
  font-size: 0.92rem;
}

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

.mini-card {
  padding: 22px;
  border: 1px solid rgba(132, 177, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(7, 16, 29, 0.72);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.split-card {
  padding: 32px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(11, 24, 42, 0.92), rgba(7, 16, 29, 0.92));
  box-shadow: var(--shadow);
}

.split-card h2 {
  margin-bottom: 12px;
}

.split-card.business {
  background: linear-gradient(180deg, rgba(15, 24, 35, 0.96), rgba(9, 16, 24, 0.96));
}

.split-card.gaming {
  background: linear-gradient(180deg, rgba(29, 13, 38, 0.95), rgba(11, 17, 32, 0.96));
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.project-card {
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(11, 24, 42, 0.92), rgba(7, 16, 29, 0.92));
  box-shadow: var(--shadow);
}

.project-card h2 {
  margin-bottom: 12px;
}

.back-link {
  display: inline-flex;
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 500;
}

.progress-diagram-card {
  margin-bottom: 24px;
  padding: 26px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(12, 27, 46, 0.94), rgba(7, 16, 29, 0.94));
  box-shadow: var(--shadow);
}

.progress-diagram-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.progress-diagram-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  align-items: center;
}

.progress-donut {
  --ring-size: 142px;
  --ring-stroke: 10;
  --progress: 0;
  position: relative;
  width: var(--ring-size);
  height: var(--ring-size);
  margin: 0 auto;
}

.progress-donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-donut-track,
.progress-donut-value {
  fill: none;
  stroke-width: var(--ring-stroke);
}

.progress-donut-track {
  stroke: rgba(132, 177, 255, 0.2);
}

.progress-donut-value {
  stroke: var(--accent-strong);
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: calc((100 - var(--progress)) * 3.2673);
}

.progress-donut-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}

.progress-donut-label strong {
  font-size: 1.7rem;
  line-height: 1;
}

.progress-donut-label span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.progress-bars {
  display: grid;
  gap: 12px;
}

.progress-row {
  display: grid;
  gap: 6px;
}

.progress-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--muted);
}

.progress-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(132, 177, 255, 0.16);
  overflow: hidden;
}

.progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #06b6d4);
}

.progress-note {
  margin-top: 12px;
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .hero,
  .page-hero,
  .meta-grid,
  .content-grid,
  .section-grid,
  .two-columns,
  .grid-list,
  .split-grid,
  .home-layout,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

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

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

  .project-top-nav {
    justify-content: flex-start;
  }

  .hero-copy,
  .page-hero-copy,
  .hero-panel,
  .card,
  .page-section,
  .home-hero-copy,
  .home-card {
    padding: 24px;
  }

  .progress-diagram-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--content-width));
    padding-top: 12px;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
}
