/* ===== Base ===== */
:root {
  --bg: #0b0e1a;
  --bg-alt: #0f1326;
  --card: #151a33;
  --card-hover: #1a2040;
  --border: #252c4f;
  --text: #e8eaf6;
  --muted: #9aa3c7;
  --accent: #6c5ce7;
  --accent-2: #00d2a8;
  --accent-grad: linear-gradient(135deg, #6c5ce7 0%, #00d2a8 100%);
  --green: #2ecc71;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 820px; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; }

.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn--primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(108, 92, 231, .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(108, 92, 231, .5); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--card); transform: translateY(-2px); }

.btn--light {
  background: #fff;
  color: #1a1f3d;
}
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, .3); }

.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }

/* ===== Badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(108, 92, 231, .12);
  border: 1px solid rgba(108, 92, 231, .3);
  font-size: 13px;
  font-weight: 600;
  color: #c3bdf5;
}

.badge--green {
  background: rgba(46, 204, 113, .1);
  border-color: rgba(46, 204, 113, .3);
  color: #7ee2a8;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, .5); }
  50% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 26, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.logo span:not(.logo__icon) { color: var(--accent-2); }

.logo__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-grad);
  color: #fff;
}
.logo__icon svg { width: 20px; height: 20px; }

.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color .15s;
}
.nav a:hover { color: var(--text); }

.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero__glow--1 { width: 500px; height: 500px; background: rgba(108, 92, 231, .25); top: -150px; left: -100px; }
.hero__glow--2 { width: 400px; height: 400px; background: rgba(0, 210, 168, .15); bottom: -100px; right: -50px; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin: 24px 0 20px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
}
.hero__subtitle strong { color: var(--text); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 48px;
}

.hero__stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat__value {
  font-size: 36px;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { color: var(--muted); font-size: 14px; font-weight: 600; }

/* Globe */
.hero__visual { display: flex; justify-content: center; }

.globe-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  display: flex;
  justify-content: center;
}

#globe { display: block; }

.globe-card {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(21, 26, 51, .92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 18px;
  white-space: nowrap;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}
.globe-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.globe-card span { display: block; font-size: 11px; color: #7ee2a8; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.globe-card strong { font-size: 14px; }
.globe-card__sep { width: 1px; height: 34px; background: var(--border); flex-shrink: 0; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section__head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section__head p { color: var(--muted); font-size: 17px; }

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s, border-color .2s, background .2s;
}
.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 92, 231, .5);
  background: var(--card-hover);
}

.feature__icon {
  font-size: 30px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(108, 92, 231, .12);
  margin-bottom: 20px;
}
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ===== Servers ===== */
.servers__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  flex: 1;
  max-width: 360px;
  color: var(--muted);
}
.search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  width: 100%;
}
.search input::placeholder { color: var(--muted); }

.servers__summary { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.servers__total { color: var(--muted); font-size: 14px; font-weight: 600; }

.servers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.server {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: transform .15s, border-color .15s, background .15s;
}
.server:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 210, 168, .5);
  background: var(--card-hover);
}
.server.is-active {
  border-color: var(--accent-2);
  background: rgba(0, 210, 168, .08);
}

.server__flag {
  width: 28px;
  height: 21px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}

.server__info { min-width: 0; flex: 1; }
.server__city { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server__count { font-size: 12.5px; color: var(--muted); }

.server__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #7ee2a8;
  white-space: nowrap;
}
.server__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.servers__empty { text-align: center; color: var(--muted); margin-top: 24px; }

.servers__grid.is-collapsed .server:nth-child(n + 13) { display: none; }

.servers__more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.servers__more .btn { padding: 14px 32px; font-size: 15px; }

.servers__grid.is-collapsed {
  position: relative;
}
.servers__grid.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 70px;
  background: linear-gradient(transparent, var(--bg-alt));
  pointer-events: none;
}

.servers__more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ===== Reviews ===== */
.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  font-weight: 700;
}
.rating__stars { color: #ffc94d; font-size: 22px; letter-spacing: 2px; }
.rating__value { font-size: 22px; }
.rating__count { color: var(--muted); font-weight: 600; font-size: 14px; }

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .2s, border-color .2s;
}
.review:hover { transform: translateY(-4px); border-color: rgba(108, 92, 231, .4); }

.review__stars { color: #ffc94d; letter-spacing: 3px; font-size: 16px; }
.review p { color: var(--muted); font-size: 15px; flex: 1; }

.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: var(--c, var(--accent));
}
.review__author strong { display: block; font-size: 15px; }
.review__author span { color: var(--muted); font-size: 13px; }

/* ===== Download ===== */
.download {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 60px;
  align-items: center;
}

.download__content h2 { font-size: clamp(28px, 4vw, 40px); margin: 20px 0 16px; }
.download__content > p { color: var(--muted); font-size: 17px; max-width: 520px; }

.download__list {
  list-style: none;
  margin: 24px 0 32px;
  display: grid;
  gap: 12px;
}
.download__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
}
.download__list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 210, 168, .15);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.download__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-radius: 14px;
  background: #fff;
  color: #14182e;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  transition: transform .15s, box-shadow .15s;
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.store-btn small { display: block; font-size: 11px; font-weight: 600; color: #5a607f; text-transform: uppercase; letter-spacing: .05em; }

.store-btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.store-btn--outline small { color: var(--muted); }
.store-btn--outline:hover { background: var(--card); box-shadow: none; }

.download__meta {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.download__meta span:first-child { color: #ffc94d; }

.download__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.qr {
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.qr__grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: 2px;
}
.qr__grid i { background: #14182e; border-radius: 1px; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 14px; }

.faq__item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 24px;
  transition: border-color .2s;
}
.faq__item[open] { border-color: rgba(108, 92, 231, .5); }

.faq__item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  padding: 20px 0;
  list-style: none;
  position: relative;
  padding-right: 36px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--accent-2);
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--muted); padding-bottom: 20px; font-size: 15px; }

/* ===== CTA ===== */
.cta {
  background: var(--accent-grad);
  padding: 80px 0;
}
.cta__inner { text-align: center; color: #fff; }
.cta h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.cta p { font-size: 18px; opacity: .9; margin-bottom: 32px; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.logo--footer { font-size: 18px; }
.logo--footer .logo__icon { width: 30px; height: 30px; }
.logo--footer .logo__icon svg { width: 16px; height: 16px; }

.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.footer__nav a:hover { color: var(--text); }

.footer__copy { color: var(--muted); font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .servers__grid { grid-template-columns: repeat(3, 1fr); }
  .features, .reviews { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 24px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
  }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav.is-open a:last-child { border-bottom: none; }
  .burger { display: flex; }
  .header__inner .btn { display: none; }

  .section { padding: 64px 0; }
  .hero { padding: 56px 0; }
  .hero__stats { gap: 28px; }
  .servers__grid { grid-template-columns: repeat(2, 1fr); }
  .features, .reviews { grid-template-columns: 1fr; }
  .download { grid-template-columns: 1fr; gap: 40px; }
  .download__qr { display: none; }
}

@media (max-width: 480px) {
  .servers__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .store-btn { width: 100%; justify-content: center; }
}
