:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --soft: #d7e2f2;
  --muted: #8fa2ba;
  --line: rgba(151, 178, 213, 0.24);
  --panel: rgba(12, 19, 34, 0.78);
  --panel-solid: #111b2f;
  --panel-strong: #17243d;
  --blue: #4aa8ff;
  --cyan: #29d7ff;
  --red: #ff4d6d;
  --gold: #f5b945;
  --green: #29d18c;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(140deg, rgba(21, 44, 84, 0.24), transparent 34%),
    linear-gradient(220deg, rgba(122, 28, 50, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(7, 11, 22, 0.94), rgba(8, 13, 25, 0.98)),
    #090e1a;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}

img,
iframe {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 12, 23, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner,
.wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-grid > *,
.media-grid > *,
.cards > *,
.source-grid > *,
.update-grid > *,
.module-grid > *,
.gallery > *,
.link-grid > *,
.feature-strip > * {
  min-width: 0;
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand:hover,
.nav a:hover,
.button:hover,
.header-cta:hover,
.link-card:hover {
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 0 18px rgba(41, 215, 255, 0.45));
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 800;
  padding: 9px 11px;
}

.nav a:hover {
  border-color: rgba(74, 168, 255, 0.32);
  background: rgba(74, 168, 255, 0.11);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(77, 166, 255, 0.5);
  border-radius: 8px;
  background: linear-gradient(135deg, #1264ff, #14b8ff);
  color: #fff;
  font-weight: 900;
  padding: 10px 16px;
  box-shadow: 0 12px 30px rgba(20, 108, 255, 0.28);
}

.button.secondary {
  border-color: rgba(255, 77, 109, 0.44);
  background: rgba(255, 77, 109, 0.12);
  color: #ffd5dd;
  box-shadow: none;
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  padding: 70px 0 46px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 10, 20, 0.98) 0%, rgba(7, 13, 26, 0.82) 42%, rgba(7, 13, 26, 0.38) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(9, 14, 26, 0), #090e1a);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.9fr);
  gap: 34px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  border: 1px solid rgba(74, 168, 255, 0.34);
  border-radius: 999px;
  background: rgba(74, 168, 255, 0.12);
  color: #aee9ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 7px 11px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(46px, 7vw, 94px);
  max-width: 900px;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.48);
}

h2 {
  font-size: clamp(28px, 3vw, 44px);
  margin-bottom: 16px;
}

h3 {
  font-size: 21px;
  margin: 0 0 10px;
}

p {
  margin: 0 0 16px;
}

.hero-copy {
  color: #d9e7fb;
  font-size: 19px;
  margin: 20px 0 24px;
  max-width: 790px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e7f2ff;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 10px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  max-width: 880px;
}

.feature-tile {
  min-height: 124px;
  border: 1px solid rgba(161, 196, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
    rgba(6, 12, 24, 0.66);
  color: var(--ink);
  padding: 13px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.feature-tile:hover {
  border-color: rgba(41, 215, 255, 0.58);
  transform: translateY(-2px);
}

.feature-tile span {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-tile strong {
  display: block;
  margin: 4px 0 7px;
  color: #fff;
  line-height: 1.18;
}

.feature-tile p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(180, 207, 255, 0.22);
  border-radius: 8px;
  background: rgba(10, 16, 29, 0.78);
  box-shadow: var(--shadow);
}

.hero-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #121b2f;
}

.hero-card iframe {
  display: block;
  border: 0;
  min-height: 420px;
}

.hero-card.compact img {
  aspect-ratio: 1 / 1;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.status-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 11px;
}

.status-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-value {
  display: block;
  color: #fff;
  font-weight: 900;
}

.band {
  padding: 54px 0;
}

.band:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.band.dark {
  background: #090e1a;
}

.band.raised {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #10182a, #0b1221);
}

.band.panel {
  background:
    linear-gradient(180deg, rgba(18, 30, 52, 0.88), rgba(10, 16, 29, 0.98)),
    #0b1221;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-lead {
  max-width: 860px;
  color: var(--soft);
  font-size: 18px;
}

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

.card,
.source-card,
.media-card,
.update-card,
.module-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.card,
.source-card,
.module-card {
  padding: 18px;
}

.card p,
.source-card p,
.module-card p,
.update-card p {
  color: var(--soft);
}

.card p:last-child,
.source-card p:last-child,
.update-card p:last-child,
.module-card p:last-child {
  margin-bottom: 0;
}

.media-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
  gap: 16px;
  margin-top: 22px;
}

.media-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.media-card img {
  display: block;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(74, 168, 255, 0.16), rgba(255, 77, 109, 0.12));
  object-fit: cover;
}

.media-grid > .media-card > img {
  height: 390px;
}

.media-card:hover {
  border-color: rgba(74, 168, 255, 0.48);
  transform: translateY(-2px);
}

.media-card .media-body {
  padding: 16px;
}

.media-card .media-body p {
  margin-bottom: 0;
}

.media-stack {
  display: grid;
  gap: 16px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.gallery figure {
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.gallery img {
  display: block;
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, rgba(74, 168, 255, 0.16), rgba(245, 185, 69, 0.12));
  object-fit: cover;
}

.gallery figcaption {
  min-height: 64px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.35;
  padding: 10px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft);
  padding: 16px 16px 16px 58px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: #fff;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 14, 26, 0.78);
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(255, 255, 255, 0.06);
  color: #dceaff;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

td {
  color: var(--soft);
}

tr:last-child td {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(41, 209, 140, 0.16);
  color: #83ffc7;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 9px;
}

.pill.warn {
  background: rgba(245, 185, 69, 0.18);
  color: #ffde8a;
}

.pill.red {
  background: rgba(255, 77, 109, 0.16);
  color: #ffb1bf;
}

.source-grid,
.update-grid,
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  margin-top: 20px;
}

.update-card {
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.update-card img {
  display: block;
  width: 100%;
  height: 238px;
  background: linear-gradient(135deg, rgba(74, 168, 255, 0.16), rgba(41, 215, 255, 0.1));
  object-fit: cover;
  object-position: center;
}

.update-card div {
  min-height: 154px;
  padding: 16px;
}

.update-card p {
  margin-bottom: 0;
}

.video-lite {
  position: relative;
  display: block;
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050913;
  color: #fff;
  box-shadow: var(--shadow);
}

.video-lite img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-lite::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 9, 19, 0.82));
  pointer-events: none;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 999px;
  background: #ff1111;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.video-caption {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  color: #eaf4ff;
  font-weight: 900;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.link-card {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  padding: 15px;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.link-card:hover {
  border-color: rgba(74, 168, 255, 0.6);
  transform: translateY(-2px);
}

.link-card strong {
  display: block;
  margin-bottom: 6px;
}

.link-card span {
  color: var(--soft);
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
  padding: 0 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
  padding: 15px 0;
}

.faq details p {
  color: var(--soft);
  padding-bottom: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050913;
  color: var(--muted);
  padding: 34px 0;
}

.site-footer a {
  color: #cde8ff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

@media (max-width: 980px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav a {
    flex: 1 1 92px;
    text-align: center;
  }

  .hero-grid,
  .media-grid,
  .feature-strip,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .link-grid,
  .source-grid,
  .update-grid,
  .module-grid,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid > .media-card > img {
    height: 300px;
  }

  .update-card img {
    height: 220px;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .wrap {
    width: calc(100vw - 22px);
    max-width: calc(100vw - 22px);
  }

  .site-header {
    overflow: hidden;
  }

  .cards,
  .link-grid,
  .source-grid,
  .update-grid,
  .module-grid,
  .gallery,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    max-width: 100%;
  }

  .nav a {
    width: 100%;
    padding: 9px 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: 42px;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .media-card img,
  .media-grid > .media-card > img,
  .gallery img,
  .update-card img {
    height: 210px;
  }

  .media-card .media-body,
  .update-card div,
  .gallery figcaption {
    min-height: auto;
  }

  .video-play {
    width: 58px;
    height: 58px;
    font-size: 26px;
  }

  .video-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    font-size: 14px;
  }

  .button,
  .header-cta {
    width: 100%;
  }
}
