:root {
  --bg: #0e1116;
  --panel: #161a20;
  --panel-2: #1b2028;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-dim: #8a92a3;
  --green: #e63946;
  --green-hover: #c62d39;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 32px;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 12px 22px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 15px 30px; font-size: 15px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo-image {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
}
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: 0.2px; }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--text); }

.navbar-actions { display: flex; align-items: center; gap: 14px; }

.icon-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.icon-link:hover { background: var(--green); }
.icon-link svg { width: 18px; height: 18px; fill: var(--text); }
.vk-letters { font-size: 11px; font-weight: 800; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(100deg, rgba(14,17,22,0.92) 30%, rgba(14,17,22,0.35) 75%), url('assets/background.jpg');
  background-size: cover;
  background-position: center;
}
.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: rgba(230, 57, 70, 0.15);
  color: var(--green);
  border: 1px solid rgba(230, 57, 70, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 900;
  margin: 0 0 18px;
  max-width: 640px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.6;
  margin: 0 0 32px;
}

.hero-stats { display: flex; gap: 14px; margin-bottom: 32px; flex-wrap: wrap; }
.stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
}
.pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.stat-value { font-weight: 800; font-size: 15px; }
.stat-label { font-size: 11px; color: var(--text-dim); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Server IP card ---------- */
.server-ip-section { padding: 0 24px; margin-top: -40px; position: relative; z-index: 2; }
.server-ip-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.ip-label { font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
.ip-value { font-size: 20px; font-weight: 800; font-family: "Courier New", monospace; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 15px;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(230, 57, 70, 0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 2; }
.feature-card h3 { margin: 0 0 8px; font-size: 16px; }
.feature-card p { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.step-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.step-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 { margin: 0 0 8px; font-size: 16px; }
.step-card p { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ---------- Download ---------- */
.download-section { padding-top: 0; }
.download-card {
  background: linear-gradient(135deg, #1c1216 0%, var(--panel) 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.download-card h2 { margin: 0 0 6px; font-size: 22px; }
.download-card p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.news-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.news-date {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.news-card h3 { margin: 0 0 8px; font-size: 16px; }
.news-card p { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 20px; font-size: 13px; color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-dim); }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .nav-links { display: none; }
  .hero-title { font-size: 38px; }
  .about-grid { grid-template-columns: 1fr; }
  .server-ip-card { flex-direction: column; align-items: flex-start; }
}
