﻿:root {
  --bg-a: #07131d;
  --bg-b: #0d2232;
  --bg-c: #17374c;
  --surface: rgba(8, 19, 29, 0.85);
  --surface-2: rgba(10, 24, 37, 0.9);
  --line: rgba(142, 181, 210, 0.36);
  --line-soft: rgba(142, 181, 210, 0.22);
  --text: #f2f7fb;
  --muted: #a8bfd3;
  --accent: #34c4c6;
  --accent-2: #218b8f;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", "Trebuchet MS", Verdana, sans-serif;
  background:
    linear-gradient(140deg, var(--bg-a) 0%, var(--bg-b) 46%, var(--bg-c) 100%);
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
  z-index: 0;
}

.bg-glow-a {
  width: 540px;
  height: 540px;
  background: rgba(51, 196, 199, 0.18);
  top: -180px;
  left: -120px;
}

.bg-glow-b {
  width: 620px;
  height: 620px;
  background: rgba(74, 144, 196, 0.18);
  bottom: -220px;
  right: -180px;
}

.layout,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 40px));
  margin-left: auto;
  margin-right: auto;
}

.layout {
  margin-top: 20px;
  margin-bottom: 14px;
  display: grid;
  gap: 14px;
}

.hero,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(6px);
}

.hero {
  padding: 18px 20px;
  text-align: center;
}

.brand-banner {
  width: min(760px, 92%);
  max-width: 100%;
  height: auto;
  margin: 0 auto 12px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.38));
}

.top-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn {
  border: 1px solid var(--line);
  background: #163147;
  color: var(--text);
  border-radius: 9px;
  min-height: 34px;
  padding: 7px 13px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.tab-btn.active {
  border-color: #2eb6b9;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #062127;
}

h1 {
  margin: 12px 0 6px;
  font-size: clamp(24px, 3.1vw, 36px);
}

h2 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 30px);
}

h3 {
  margin: 0;
  font-size: 19px;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.cta-row {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.latest-meta {
  color: var(--muted);
  font-size: 13px;
}

.panel {
  padding: 16px;
  background: var(--surface-2);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.home-intro {
  margin-bottom: 12px;
}

.subtle {
  margin: 6px 0 10px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  background: #18354b;
  font-size: 13px;
}

.btn.primary {
  border-color: #30b7ba;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #062127;
}

.btn[aria-disabled="true"] {
  opacity: 0.58;
  pointer-events: none;
}

.icon-btn {
  width: 36px;
  min-width: 36px;
  padding: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.feature-card,
.module-card,
.release-item {
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: rgba(8, 19, 30, 0.68);
}

.feature-card {
  padding: 12px;
}

.feature-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.modules-panel {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
  background: rgba(8, 19, 31, 0.58);
}

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

.module-controls {
  display: flex;
  gap: 8px;
}

.carousel-window {
  overflow: hidden;
  border-radius: 10px;
}

.modules-track {
  display: flex;
  gap: 10px;
  transition: transform 420ms ease;
  will-change: transform;
}

.module-card {
  flex: 0 0 100%;
  padding: 10px;
}

.module-shot {
  width: 100%;
  height: clamp(170px, 24vw, 260px);
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: rgba(11, 23, 35, 0.82);
}

.module-shot-clickable {
  cursor: zoom-in;
}

.module-card h4 {
  margin: 8px 0 2px;
  font-size: 19px;
  font-weight: 700;
}

.module-example {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 12px;
  align-items: center;
}

.module-example.reverse {
  grid-template-columns: 1.15fr 1fr;
}

.module-example.reverse .module-copy {
  order: 2;
}

.module-example.reverse .module-media {
  order: 1;
}

.module-example-title {
  margin: 0;
  color: #e8f2f9;
  font-size: clamp(16px, 1.65vw, 21px);
  font-weight: 500;
  line-height: 1.25;
}

.module-example-blurb {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.module-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(52, 196, 198, 0.82), rgba(52, 196, 198, 0.22));
  margin-bottom: 4px;
}

.modules-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
}

.dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

.panel-head {
  margin-bottom: 8px;
}

.release-list {
  display: grid;
  gap: 10px;
}

.release-item {
  padding: 11px;
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.release-meta {
  color: var(--muted);
  font-size: 13px;
}

.release-files {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notes-block {
  white-space: normal;
  line-height: 1.45;
}

.notes-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.notes-list li {
  margin: 0 0 6px;
  color: var(--muted);
}

.site-footer {
  margin-bottom: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 6px 0 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 9, 14, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 1200;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: min(1280px, 94vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  background: #07131d;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 23, 35, 0.86);
  color: #dcebf6;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 950px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .layout,
  .site-footer {
    width: min(1080px, calc(100vw - 22px));
  }

  .hero,
  .panel {
    padding: 12px;
  }

  .lead {
    font-size: 14px;
  }

  .module-shot {
    height: clamp(140px, 42vw, 220px);
  }

  .module-example,
  .module-example.reverse {
    grid-template-columns: 1fr;
  }

  .module-example.reverse .module-copy,
  .module-example.reverse .module-media {
    order: initial;
  }
}
