:root {
  --bg-space: #060B13;
  --bg-card: rgba(13, 25, 41, 0.75);
  --bg-card-hover: rgba(18, 35, 58, 0.9);
  --cyan-bright: #00F0FF;
  --cyan-dim: rgba(0, 240, 255, 0.25);
  --cyan-glow: 0 0 20px rgba(0, 240, 255, 0.4);
  --amber: #FFB82E;
  --amber-dim: rgba(255, 184, 46, 0.25);
  --green: #2ECC71;
  --text-primary: #F0F4F8;
  --text-secondary: #9BAEC8;
  --text-muted: #5A718F;
  --border-subtle: 1px solid rgba(0, 240, 255, 0.2);
  --border-active: 1px solid rgba(0, 240, 255, 0.6);
  --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-space);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.08) 0%, transparent 60%),
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

/* Tactical HUD Scanline effect */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 1px, transparent 2px);
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
header {
  border-bottom: var(--border-subtle);
  background: rgba(6, 11, 19, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #FFFFFF;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--cyan-bright);
}

.status-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: var(--green);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.version-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--cyan-dim);
  color: var(--cyan-bright);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--amber);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #A5C8E4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* Tactical Download Card */
.download-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: var(--border-active);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), var(--cyan-glow);
  border-radius: 8px;
  padding: 32px;
  backdrop-filter: blur(16px);
  position: relative;
  text-align: left;
}

.download-card::before {
  content: "TRANSMISSION CH // CLIENT DEPLOY";
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--bg-space);
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan-bright);
  border: 1px solid var(--cyan-dim);
  border-radius: 2px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #00F0FF 0%, #0099B8 100%);
  color: #060B13;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.6);
  filter: brightness(1.1);
}

.download-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.download-meta span strong {
  color: var(--text-secondary);
}

.alt-downloads {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alt-link {
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.alt-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Integrity Hash Box */
.checksum-box {
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  word-break: break-all;
}

.checksum-box span {
  color: var(--amber);
  margin-right: 6px;
}

/* Roster Section */
.section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--cyan-bright);
  text-transform: uppercase;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: 8px;
}

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

.frame-card {
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: 6px;
  padding: 24px;
  transition: all 0.2s ease;
  position: relative;
}

.frame-card:hover {
  transform: translateY(-4px);
  border: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.frame-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
  margin-bottom: 6px;
}

.frame-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.frame-class {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan-bright);
  margin-bottom: 14px;
}

.frame-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Specs Table */
.specs-card {
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: 6px;
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.spec-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-bright);
  text-transform: uppercase;
}

.spec-val {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 4px;
}

/* Footer */
footer {
  border-top: var(--border-subtle);
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--cyan-bright);
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .specs-grid { grid-template-columns: 1fr; }
  .download-meta { flex-direction: column; gap: 6px; }
}
