:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #152033;
  --muted: #69758a;
  --line: #e2e8f0;
  --primary: #123a63;
  --primary-2: #1b5c93;
  --accent: #d8a526;
  --success: #16845b;
  --shadow: 0 16px 40px rgba(18, 58, 99, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  color: white; background: var(--primary);
  font-weight: 800;
}
.brand strong { display: block; font-size: 15px; }
.brand span { display: block; color: var(--muted); font-size: 12px; }
nav { display: flex; gap: 28px; font-weight: 600; font-size: 14px; }
nav a:hover { color: var(--primary-2); }

.hero {
  color: white;
  background:
    radial-gradient(circle at 85% 20%, rgba(216,165,38,.28), transparent 24%),
    linear-gradient(135deg, #0d2b4a, #154d7f);
  padding: 92px 0 86px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
}
.hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.hero p { max-width: 650px; color: #d8e2ee; font-size: 17px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.btn {
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-flex;
}
.btn.primary { background: var(--accent); color: #18202a; }
.btn.secondary { border: 1px solid rgba(255,255,255,.28); }

.server-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
}
.status-head {
  display: flex; justify-content: space-between; align-items: start;
  padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.15);
}
.status-head small { color: #b7c8d9; }
.status-head h3 { margin: 4px 0 0; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.online { color: #dff8ed; background: rgba(22,132,91,.35); }
.online i {
  width: 8px; height: 8px; border-radius: 50%; background: #58e0a5;
}
.metrics { display: grid; gap: 16px; padding-top: 20px; }
.metrics div { display: flex; justify-content: space-between; gap: 20px; }
.metrics span { color: #b7c8d9; font-size: 13px; }
.metrics strong { font-size: 13px; text-align: right; }

.section { padding: 82px 0; }
.section.alt { background: #eaf0f6; }
.section-heading {
  display: flex; align-items: end; justify-content: space-between;
  gap: 30px; margin-bottom: 34px;
}
.section-heading h2, .info-grid h2 {
  margin: 8px 0 0; font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.035em;
}
.section-heading p { color: var(--muted); max-width: 440px; }

.repo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.repo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  gap: 18px;
  min-height: 210px;
  transition: .2s ease;
}
.repo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #c9d5e3;
}
.repo-card.featured { border-top: 4px solid var(--accent); }
.repo-icon {
  flex: 0 0 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
  background: var(--primary);
  font-size: 15px;
}
.repo-icon.shield { background: var(--success); }
.repo-type { color: var(--primary-2); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.repo-card h3 { margin: 5px 0 8px; font-size: 20px; }
.repo-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.repo-link { color: var(--primary-2); font-weight: 700; font-size: 13px; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.guide-card {
  background: #0f1b2a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.guide-title {
  color: white; padding: 15px 18px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #26374b;
}
.guide-title button {
  border: 0; color: white; background: #234869;
  border-radius: 7px; padding: 7px 11px; cursor: pointer;
}
pre {
  margin: 0; padding: 22px; overflow: auto;
  color: #d6e5f5; font-size: 13px; line-height: 1.7;
}
.notice {
  margin-top: 18px; padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: white; border-radius: 9px;
}

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.info-grid > div:first-child p { color: var(--muted); font-size: 17px; }
.info-list { display: grid; gap: 12px; }
.info-list div {
  display: flex; align-items: center; gap: 18px;
  padding: 18px; background: white; border: 1px solid var(--line);
  border-radius: 14px;
}
.info-list span {
  color: var(--primary-2); font-weight: 800;
  width: 38px;
}
.info-list p { margin: 0; }

footer { background: #0d2237; color: white; padding: 34px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
footer p { color: #9fb1c3; margin: 6px 0 0; font-size: 13px; }
.footer-right { display: flex; flex-direction: column; align-items: end; color: #b7c8d9; font-size: 13px; }

@media (max-width: 900px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1180px); }
  .hero { padding: 64px 0; }
  .repo-grid { grid-template-columns: 1fr; }
  .repo-card { min-height: auto; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .footer-grid { flex-direction: column; }
  .footer-right { align-items: start; }
}
