﻿:root {
  --bg: #071014;
  --surface: #0d1a20;
  --surface-2: #12262d;
  --text: #eef8fb;
  --muted: #9db3bb;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #31d4ff;
  --teal: #16c9ad;
  --orange: #ffad4a;
  --red: #ff6676;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(49, 212, 255, 0.18);
  background: rgba(3, 10, 13, 0.9);
  backdrop-filter: blur(18px);
}

.menu a:hover,
.footer a:hover {
  color: var(--cyan);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(49, 212, 255, 0.7);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffffff, var(--cyan) 28%, #0a3644 72%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(49, 212, 255, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  overflow-wrap: anywhere;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
}

.menu {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #d8e9ef;
  font-size: 0.86rem;
  font-weight: 600;
}

.menu a {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 12px;
}

.menu a:hover {
  border-color: rgba(49, 212, 255, 0.28);
  background: rgba(49, 212, 255, 0.08);
}

.menu-toggle {
  display: none;
  min-height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 0 14px;
}

.hero {
  position: relative;
  min-height: clamp(540px, 72svh, 760px);
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 10, 13, 0.98) 0%, rgba(7, 16, 20, 0.78) 48%, rgba(7, 16, 20, 0.12) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 118px 20px 158px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  color: #d4e4e9;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.button,
.filter {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  white-space: nowrap;
}

.button.primary {
  background: var(--cyan);
  color: #031016;
}

.command-bar {
  display: grid;
  grid-template-columns: auto minmax(180px, 430px) auto;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin-top: 30px;
  border: 1px solid rgba(49, 212, 255, 0.28);
  border-radius: 12px;
  background: rgba(3, 10, 13, 0.76);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  padding: 10px;
}

.command-bar span {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.command-bar input {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
  padding: 0 12px;
  font-size: 16px;
}

.quick-status {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1180px;
  margin: -80px auto 56px;
  padding: 0 20px;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.quick-status article,
.panel,
.post-card,
.feature-grid article,
.news-list article {
  border: 1px solid rgba(49, 212, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 38, 45, 0.86), rgba(10, 22, 27, 0.9));
  box-shadow: var(--shadow);
}

.quick-status article {
  min-height: 96px;
  padding: 18px;
}

.quick-status strong,
.quick-status small {
  display: block;
}

.quick-status small {
  margin-top: 6px;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-bottom: 12px;
  border-radius: 50%;
}

.online {
  background: var(--teal);
}

.warning {
  background: var(--orange);
}

.offline {
  background: var(--red);
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 70px;
}

.sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.panel {
  padding: 18px;
}

.panel h2 {
  font-size: 1rem;
}

.panel p {
  color: var(--muted);
  line-height: 1.6;
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 420px;
  align-items: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
}

.category-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #08151a;
  color: #dcebf0;
  cursor: pointer;
  padding: 8px 10px;
  font-size: 0.78rem;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.category-pill:hover {
  border-color: var(--cyan);
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  min-height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 12px;
}

.filter.active {
  border-color: var(--cyan);
  background: rgba(49, 212, 255, 0.14);
  color: var(--text);
}

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

.catalog-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.catalog-summary strong,
.catalog-summary span {
  border: 1px solid rgba(49, 212, 255, 0.14);
  border-radius: 999px;
  background: rgba(49, 212, 255, 0.06);
  padding: 8px 11px;
}

.catalog-summary strong {
  color: var(--text);
}

.post-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--cyan), var(--teal));
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.tag {
  width: max-content;
  border: 1px solid rgba(49, 212, 255, 0.26);
  border-radius: 999px;
  background: rgba(49, 212, 255, 0.1);
  color: var(--cyan);
  padding: 6px 9px;
  font-size: 0.75rem;
  font-weight: 800;
}

.signal-panel {
  overflow: hidden;
}

.signal-meter {
  height: 10px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.signal-meter span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--orange));
}

.post-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.post-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.post-card a {
  color: var(--cyan);
  font-weight: 800;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.download-link,
.detail-link,
.muted-action,
.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 0.78rem;
  font-weight: 800;
}

.download-link {
  background: var(--teal);
  color: #041412 !important;
}

.detail-link {
  border: 1px solid rgba(49, 212, 255, 0.26);
  color: var(--cyan);
}

.muted-action {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.static-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 20px 80px;
}

.detail-hero {
  max-width: 860px;
  margin-bottom: 28px;
}

.detail-hero h1 {
  max-width: 900px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-hero p {
  color: var(--muted);
  line-height: 1.7;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}

.detail-content {
  border: 1px solid rgba(49, 212, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 38, 45, 0.86), rgba(10, 22, 27, 0.9));
  box-shadow: var(--shadow);
  padding: 24px;
}

.detail-content h2 {
  font-size: 1.25rem;
}

.detail-content p {
  color: var(--muted);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.detail-actions {
  margin-top: 14px;
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
}

.static-grid {
  margin-top: 24px;
}

.load-more {
  display: block;
  width: min(100%, 320px);
  margin: 22px auto 0;
  border: 1px solid rgba(49, 212, 255, 0.32);
  background: rgba(49, 212, 255, 0.1);
  color: var(--text);
  cursor: pointer;
}

.load-more:hover {
  border-color: var(--cyan);
}

.empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.feature-band,
.news-band,
.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 20px;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  border-top: 1px solid rgba(49, 212, 255, 0.14);
}

.feature-band p {
  color: var(--muted);
  line-height: 1.7;
}

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

.feature-grid article,
.news-list article {
  padding: 18px;
}

.feature-grid strong,
.feature-grid span,
.news-list strong,
.news-list p,
.news-list time {
  display: block;
}

.feature-grid span,
.news-list p,
.news-list time {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.news-band {
  border-top: 1px solid rgba(49, 212, 255, 0.14);
}

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

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid rgba(49, 212, 255, 0.14);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.footer strong {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #08151a;
    padding: 12px;
  }

  .static-menu {
    display: flex;
    position: static;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    overflow-x: auto;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    padding: 10px;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    object-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 10, 13, 0.98) 0%, rgba(7, 16, 20, 0.86) 58%, rgba(7, 16, 20, 0.38) 100%),
      linear-gradient(0deg, var(--bg) 0%, transparent 44%);
  }

  .hero-content {
    padding-top: 92px;
    padding-bottom: 126px;
  }

  .command-bar {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .command-bar span {
    padding-left: 2px;
  }

  .button.primary {
    width: 100%;
  }

  .quick-status,
  .content-shell,
  .feature-band,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .quick-status {
    margin-top: -60px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-row {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .filter {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }

  .category-list {
    max-height: 260px;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 12px 14px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .brand small {
    display: none;
  }

  .menu {
    left: 14px;
    right: 14px;
    top: 62px;
  }

  .static-menu {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 6px;
  }

  .static-page {
    padding: 40px 14px 58px;
  }

  .hero-content {
    padding: 72px 14px 110px;
  }

  .hero-copy {
    line-height: 1.55;
  }

  .command-bar {
    margin-top: 22px;
    padding: 8px;
  }

  .quick-status {
    margin-top: -56px;
    padding: 0 14px;
    grid-template-columns: 1fr 1fr;
  }

  .content-shell,
  .feature-band,
  .news-band,
  .footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .content-shell {
    padding-bottom: 52px;
  }

  .panel,
  .post-card,
  .detail-content {
    border-radius: 12px;
    padding: 16px;
  }

  .catalog-summary {
    gap: 8px;
  }

  .catalog-summary strong,
  .catalog-summary span {
    width: 100%;
    border-radius: 10px;
  }

  .post-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .download-link,
  .detail-link,
  .load-more {
    width: 100%;
    min-height: 42px;
  }

  .post-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .quick-status {
    gap: 10px;
  }

  .quick-status article {
    min-height: 86px;
    padding: 14px;
  }

  .quick-status small {
    font-size: 0.76rem;
  }

  .feature-band,
  .news-band,
  .footer {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .feature-grid article,
  .news-list article {
    padding: 16px;
  }

  .footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(2.05rem, 8.5vw, 2.5rem);
    line-height: 1;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .command-bar {
    max-width: 100%;
  }

  .detail-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.35rem);
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: clamp(2.05rem, 10vw, 2.55rem);
    line-height: 1;
  }

  h2 {
    font-size: 1.38rem;
  }

  .quick-status {
    grid-template-columns: 1fr;
  }

  .filter-row {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .category-pill {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .post-meta {
    gap: 6px;
    font-size: 0.76rem;
  }

  .detail-hero h1 {
    font-size: clamp(1.9rem, 9.5vw, 2.35rem);
  }
}

/* =============================================
   Download Gate — Countdown Overlay
   ============================================= */
#dl-gate {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 20, 0.92);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  padding: 0 16px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}
#dl-gate.active {
  opacity: 1;
  pointer-events: all;
}
.dl-gate-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 40px 32px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.dl-gate-icon {
  font-size: 2.4rem;
  color: var(--cyan);
  margin-bottom: 8px;
  animation: bounce 1s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.dl-gate-label {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 20px;
}
.dl-gate-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid var(--surface-2);
  border-top-color: var(--cyan);
  animation: spin 1s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.dl-gate-count {
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
  animation: none;
  display: block;
  position: absolute;
  width: 90px;
  text-align: center;
  margin-left: -4px;
}
.dl-gate-ring {
  position: relative;
}
.dl-gate-hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 20px;
}
.dl-gate-btn {
  display: inline-block;
  background: var(--teal);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.dl-gate-btn:hover {
  background: var(--cyan);
  transform: scale(1.04);
}
.dl-gate-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s;
}
.dl-gate-close:hover {
  color: var(--text);
}
@media (max-width: 480px) {
  .dl-gate-box {
    padding: 28px 20px 24px;
    border-radius: 14px 14px 0 0;
  }
  #dl-gate {
    padding: 0;
    align-items: flex-end;
  }
}
