:root {
  --bg: #060911;
  --surface: rgba(14, 20, 34, 0.86);
  --surface-strong: rgba(18, 25, 42, 0.96);
  --border: rgba(88, 125, 185, 0.24);
  --text: #e6eefb;
  --muted: #93a6c6;
  --accent: #4aa8ff;
  --accent-2: #e63950;
  --green: #34d399;
  --purple: #c084fc;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(6, 9, 17, 0.85);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}
.dot.online { background: var(--green); box-shadow: 0 0 10px rgba(52, 211, 153, 0.8); }
.dot.offline { background: var(--accent-2); box-shadow: 0 0 10px rgba(230, 57, 80, 0.8); }
.dot.large { width: 14px; height: 14px; flex-shrink: 0; }

.hero {
  padding: 64px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(74, 168, 255, 0.14);
  border: 1px solid rgba(74, 168, 255, 0.35);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 16px;
}

.accent { color: var(--accent); }

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: 1px solid rgba(147, 197, 253, 0.35);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-mini {
  background: rgba(74, 168, 255, 0.14);
  color: var(--accent);
  border: 1px solid rgba(74, 168, 255, 0.35);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.stat-box strong {
  display: block;
  font-size: 1.25rem;
  color: var(--text);
}

.stat-box span {
  font-size: 0.78rem;
  color: var(--muted);
}

.card, .hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  backdrop-filter: blur(8px);
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-header, .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.endpoint {
  color: var(--accent);
  font-family: ui-monospace, monospace;
}

.status-big {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(8, 12, 22, 0.7);
  border: 1px solid var(--border);
}

.status-title { font-weight: 700; font-size: 1.02rem; }
.status-sub { font-size: 0.84rem; color: var(--muted); }

.hero-preview {
  display: flex;
  justify-content: center;
  padding: 14px 0;
}

.float-ship {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(230, 57, 80, 0.35));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.section { padding: 54px 0; }

.section-head { margin-bottom: 26px; }
.section-head h2 { font-size: 1.8rem; margin-bottom: 8px; }
.section-head p { color: var(--muted); max-width: 680px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.faction-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.base-img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 6px;
}

.tag {
  display: inline-block;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.tag.terra { background: rgba(74, 155, 232, 0.16); color: #67b6ff; }
.tag.netuno { background: rgba(52, 211, 153, 0.16); color: #4ade80; }
.tag.saturno { background: rgba(192, 132, 252, 0.16); color: #d8b4fe; }
.tag.premium { background: rgba(251, 191, 36, 0.16); color: #fcd34d; }

.ships-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.ship-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ship-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ship-top img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.ship-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.ship-price {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 600;
}

.code-block {
  background: #04070d;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
  margin: 12px 0;
  font-size: 0.85rem;
  color: #93c5fd;
}

.download-actions { margin: 14px 0 8px; }
.hint { font-size: 0.82rem; color: var(--muted); }

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .hero-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}
