:root {
  color-scheme: dark;
  --bg: #090d16;
  --bg-elev: #111a2b;
  --card: rgba(18, 29, 49, 0.78);
  --card-solid: #15233a;
  --text: #e8eefb;
  --muted: #a4b4d6;
  --border: rgba(167, 191, 234, 0.23);
  --primary: #7cc8ff;
  --primary-strong: #4aa8f8;
  --good: #6fe3a0;
  --warn: #ffcf78;
  --soon: #d5b2ff;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(circle at 80% -5%, #1f3b66 0%, transparent 40%),
    radial-gradient(circle at 10% 110%, #123452 0%, transparent 35%),
    var(--bg);
  color: var(--text);
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  line-height: 1.6;
  padding: 2rem 1rem 4rem;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.23;
  pointer-events: none;
  z-index: -2;
}

.orb-1 {
  width: 240px;
  height: 240px;
  background: #6ec7ff;
  top: -60px;
  right: -40px;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: #976eff;
  left: -120px;
  bottom: 20%;
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 1rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  background: rgba(12, 20, 34, 0.68);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), #9ddcff);
  color: #07223f;
  margin-right: 0.55rem;
}

.brand-name {
  color: #b7dcff;
}

.main-nav {
  display: flex;
  gap: 0.35rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #e4f3ff;
  background: rgba(124, 200, 255, 0.15);
}

.section-shell {
  background: linear-gradient(160deg, rgba(23, 37, 60, 0.72), rgba(16, 24, 42, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 1.5vw + 0.75rem, 2rem);
  margin-bottom: 1.1rem;
  backdrop-filter: blur(8px);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(159, 199, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 199, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.eyebrow {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #8fb7da;
  font-size: 0.76rem;
  font-weight: 700;
}

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

h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  max-width: 18ch;
}

.hero-copy {
  color: var(--muted);
  max-width: 65ch;
  margin: 0.9rem 0 0;
}

.featured-ticker {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}

.featured-label {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #9cc7ec;
  font-weight: 700;
}

.ticker-shell {
  border: 1px solid rgba(167, 191, 234, 0.3);
  border-radius: 999px;
  background: rgba(14, 23, 37, 0.78);
  overflow: hidden;
  min-height: 2.3rem;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  gap: 0.55rem;
  padding: 0.35rem 0.5rem;
  width: max-content;
  animation: ticker-scroll 34s linear infinite;
}

.ticker-shell:hover .ticker-track,
.ticker-shell:focus-within .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(150, 181, 223, 0.35);
  background: rgba(20, 33, 53, 0.86);
  color: #d2e9ff;
  white-space: nowrap;
  padding: 0.28rem 0.52rem;
  font-size: 0.79rem;
}

.ticker-item:hover,
.ticker-item:focus-visible {
  background: rgba(124, 200, 255, 0.15);
}

.ticker-item strong {
  font-size: 0.78rem;
  color: #e6f3ff;
}

.ticker-item span {
  color: #b9d1ef;
}

.ticker-item .status-badge {
  font-size: 0.64rem;
  padding: 0.12rem 0.45rem;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero-stats {
  margin-top: 1.3rem;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  position: relative;
  z-index: 1;
}

.stat-card {
  border: 1px solid var(--border);
  background: rgba(16, 26, 43, 0.85);
  border-radius: 12px;
  padding: 0.75rem;
}

.stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: #d6ecff;
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.section-header {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 0.95rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-chip {
  border: 1px solid var(--border);
  background: rgba(22, 34, 54, 0.65);
  color: var(--muted);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  color: #dceeff;
  border-color: rgba(173, 203, 255, 0.55);
}

.filter-chip.is-active {
  color: #08243f;
  background: linear-gradient(145deg, #a9dcff, #86cfff);
  border-color: transparent;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.project-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.project-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.status-badge {
  border-radius: 999px;
  padding: 0.18rem 0.56rem;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-Released {
  background: rgba(111, 227, 160, 0.13);
  color: var(--good);
  border-color: rgba(111, 227, 160, 0.35);
}

.status-Live {
  background: rgba(124, 200, 255, 0.15);
  color: #96d6ff;
  border-color: rgba(124, 200, 255, 0.35);
}

.status-In-Development {
  background: rgba(255, 207, 120, 0.14);
  color: var(--warn);
  border-color: rgba(255, 207, 120, 0.35);
}

.status-Coming-Soon {
  background: rgba(213, 178, 255, 0.14);
  color: var(--soon);
  border-color: rgba(213, 178, 255, 0.36);
}

.project-description {
  margin: 0;
  color: var(--muted);
}

.stack-list,
.highlights {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stack-list li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  color: #d2e9ff;
}

.highlights {
  flex-direction: column;
  gap: 0.3rem;
}

.highlights li {
  color: #cfe4ff;
  font-size: 0.9rem;
  position: relative;
  padding-left: 0.85rem;
}

.highlights li::before {
  content: "•";
  color: #9ed6ff;
  position: absolute;
  left: 0;
}

.card-log {
  margin-top: 0.85rem;
  border: 1px solid rgba(172, 202, 240, 0.28);
  border-radius: 10px;
  background: rgba(16, 24, 39, 0.65);
  padding: 0.4rem 0.55rem;
}

.card-log summary {
  cursor: pointer;
  color: #b9daff;
  font-weight: 600;
  font-size: 0.83rem;
}

.card-log ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.card-log li {
  display: grid;
  gap: 0.15rem;
}

.card-log strong {
  font-size: 0.8rem;
  color: #d6ecff;
}

.card-log span {
  color: var(--muted);
  font-size: 0.78rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.95rem;
}

.pill-link {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(159, 205, 255, 0.42);
  color: #cae7ff;
  padding: 0.3rem 0.6rem;
}

.pill-link:hover,
.pill-link:focus-visible {
  background: rgba(122, 194, 255, 0.15);
}

.pill-link[aria-disabled="true"] {
  opacity: 0.7;
  cursor: default;
}

.card-action {
  background: rgba(122, 194, 255, 0.14);
  cursor: pointer;
}

.news-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
}

.news-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(16, 25, 42, 0.86);
  padding: 0.95rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.news-date {
  margin: 0;
  color: #bdd8f8;
  font-size: 0.82rem;
}

.news-project {
  margin: 0;
  color: #8ebee8;
  font-size: 0.85rem;
  font-weight: 600;
}

.news-summary {
  margin: 0;
  color: var(--muted);
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-tags li {
  border-radius: 999px;
  border: 1px solid rgba(146, 178, 221, 0.4);
  color: #cae6ff;
  font-size: 0.74rem;
  padding: 0.18rem 0.5rem;
}

.news-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.news-empty {
  margin: 0;
  color: var(--muted);
}

.changelog-list,
.repo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 0.75rem;
}

.log-card,
.repo-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-solid);
  padding: 0.95rem;
}

.log-meta {
  margin: 0.3rem 0 0.65rem;
  color: #bdd8f8;
  font-size: 0.84rem;
}

.log-card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.repo-card p {
  margin: 0.45rem 0;
  color: var(--muted);
}

.repo-links {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.site-footer {
  margin-top: 1.6rem;
  text-align: center;
  color: #b6cae8;
  font-size: 0.9rem;
}

body.modal-open {
  overflow: hidden;
}

.project-modal {
  border: none;
  padding: 0;
  width: min(880px, calc(100% - 1.4rem));
  max-height: 88vh;
  background: transparent;
  color: var(--text);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.project-modal::backdrop {
  background: rgba(4, 10, 20, 0.72);
  backdrop-filter: blur(4px);
}

.project-modal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-panel {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, rgba(20, 30, 47, 0.95), rgba(12, 19, 31, 0.95));
  overflow: hidden;
  max-height: 88vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(164, 196, 238, 0.2);
}

.modal-close {
  border: 1px solid rgba(167, 191, 234, 0.42);
  border-radius: 10px;
  width: 2rem;
  height: 2rem;
  font-size: 1.35rem;
  line-height: 1;
  background: rgba(17, 28, 46, 0.85);
  color: #d2e9ff;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(124, 200, 255, 0.16);
}

.modal-body {
  overflow: auto;
  padding: 1rem;
  display: grid;
  gap: 0.95rem;
}

.modal-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.modal-summary {
  margin: 0;
  color: #cfe4ff;
}

.modal-section {
  display: grid;
  gap: 0.45rem;
  border: 1px solid rgba(156, 188, 230, 0.22);
  border-radius: 12px;
  padding: 0.75rem;
  background: rgba(16, 25, 42, 0.64);
}

.modal-section h3 {
  font-size: 1rem;
}

.modal-list {
  margin: 0;
  padding-left: 1rem;
  color: #cfe4ff;
}

.modal-log-list {
  display: grid;
  gap: 0.65rem;
}

.modal-log-entry {
  border: 1px solid rgba(167, 191, 234, 0.24);
  border-radius: 10px;
  padding: 0.65rem;
  background: rgba(13, 20, 34, 0.62);
}

.modal-log-entry h4 {
  font-size: 0.86rem;
  color: #d7ecff;
}

.modal-log-entry p {
  margin: 0.25rem 0 0.4rem;
  color: #b6cdea;
}

.modal-log-entry ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .project-modal {
    transition: none;
  }

  .ticker-track {
    animation: none;
    flex-wrap: wrap;
    white-space: normal;
  }

  .ticker-item {
    white-space: normal;
  }
}

.site-footer p {
  margin: 0.24rem 0;
}

.muted {
  color: #93abcf;
}

code {
  background: rgba(122, 171, 231, 0.18);
  border: 1px solid rgba(122, 171, 231, 0.28);
  border-radius: 7px;
  padding: 0.1rem 0.35rem;
  color: #d9ebff;
}

@media (max-width: 700px) {
  body {
    padding-top: 1rem;
  }

  .site-header {
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }
}