:root {
  --bg: #05080f;
  --bg-card: #0c1220;
  --bg-elevated: #111827;
  --border: #1e293b;
  --cyan: #22d3ee;
  --cyan-dim: #0e7490;
  --blue: #3b82f6;
  --magenta: #e879f9;
  --yellow: #facc15;
  --red: #f87171;
  --green: #4ade80;
  --orange: #fb923c;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --glow-cyan: 0 0 20px rgba(34, 211, 238, 0.35);
  --glow-blue: 0 0 24px rgba(59, 130, 246, 0.3);
  --radius: 12px;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-display: "Orbitron", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-decoration: none;
  text-shadow: var(--glow-cyan);
  white-space: nowrap;
}
.logo span { color: var(--text-muted); font-weight: 500; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s, text-shadow 0.2s;
  padding: 0.25rem 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.hero {
  text-align: center;
  padding: 3.5rem 0 3rem;
}
.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  border: 1px solid var(--cyan-dim);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.hero .tagline {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 1.75rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.page-header {
  text-align: center;
  padding: 3rem 0 2.25rem;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 55%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.55rem;
}
.page-header .sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #041016;
  box-shadow: var(--glow-cyan);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
}
.btn-ghost:hover {
  background: rgba(34, 211, 238, 0.08);
  border-color: var(--cyan);
}

section { margin-bottom: 3.5rem; }

.section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan-dim), transparent);
}

.bbs-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .bbs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .bbs-grid { grid-template-columns: repeat(3, 1fr); }
}

.bbs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}
.bbs-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.bbs-card:hover {
  border-color: var(--cyan-dim);
  box-shadow: var(--glow-blue);
  transform: translateY(-3px);
}
.bbs-card:hover::before { opacity: 1; }

.bbs-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 0.4rem;
}
.bbs-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.bbs-meta span { display: inline-block; margin-right: 0.6rem; }
.bbs-meta .platform { color: var(--magenta); }

.telnet {
  font-size: 0.8rem;
  color: var(--green);
  word-break: break-all;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  display: block;
  text-decoration: none;
  transition: background 0.15s;
}
.telnet:hover { background: rgba(74, 222, 128, 0.15); }

.about-block, .content-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}
.about-block h3, .content-block h3 {
  font-size: 1rem;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}
.about-block .dates, .content-block .dates {
  font-size: 0.75rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.about-block p, .content-block p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.about-block p:last-child,
.content-block p:last-child { margin-bottom: 0; }
.about-block strong, .content-block strong { color: var(--text); }

.update-item {
  border-left: 3px solid var(--cyan-dim);
  padding-left: 1.1rem;
  margin-bottom: 1.5rem;
}
.update-item .date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 0.35rem;
}
.update-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s;
}
.feature:hover { border-color: var(--cyan-dim); }
.feature .icon {
  font-size: 1.75rem;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.4));
}
.feature h4 {
  font-size: 0.9rem;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}
.feature p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.feature a {
  color: var(--cyan);
  text-decoration: none;
}
.feature a:hover { text-decoration: underline; }

.support-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 1.5rem;
}
.support-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.support-card:hover {
  border-color: var(--cyan-dim);
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}
.support-card a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}
.support-card a:hover { text-decoration: underline; }
.support-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.links-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.links-table th {
  text-align: left;
  color: var(--green);
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.links-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  vertical-align: top;
}
.links-table a {
  color: var(--cyan);
  text-decoration: none;
}
.links-table a:hover { text-decoration: underline; }
.links-table .desc { color: var(--text-muted); }

.gallery-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gallery-item:hover {
  border-color: var(--cyan-dim);
  box-shadow: var(--glow-blue);
}
.gallery-item span { opacity: 0.75; }

.history-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.history-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.history-block h3 {
  color: var(--yellow);
  font-size: 1rem;
  margin-bottom: 0.65rem;
}
.history-block p { margin-bottom: 0.85rem; }
.history-block p:last-child { margin-bottom: 0; }
.history-block ul {
  margin: 0.6rem 0 0.85rem 1.25rem;
  color: var(--yellow);
}
.history-block li { margin-bottom: 0.3rem; }

footer {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}
footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
footer a {
  color: var(--cyan);
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }
.copyright {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 1rem;
}

@media (max-width: 700px) {
  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 0.5rem 0.85rem;
  }
  .nav-links a { font-size: 0.72rem; }
}


