:root {
  color-scheme: light;
  --bg: #eef2fb;
  --card: #ffffff;
  --card-soft: #e9efff;
  --text: #0b1220;
  --muted: #5a677b;
  --accent: #2f7bff;
  --accent-strong: #1b4ed8;
  --line: #d4ddec;
  --glow: rgba(47, 123, 255, 0.25);
}

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

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.6;
}

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

button {
  border: none;
  cursor: pointer;
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
  position: relative;
}

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

.brand.small .brand-name {
  font-size: 1rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 24px var(--glow);
  border: 2px solid rgba(47, 123, 255, 0.5);
  animation: pulse 6s ease-in-out infinite;
}

.brand.small .logo-img {
  width: 48px;
  height: 48px;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.12em;
  background: linear-gradient(140deg, #0b1220 10%, #2f7bff 55%, #1f4fd6 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 18px rgba(47, 123, 255, 0.25);
}

.brand-sub {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f1f5ff;
  border: 2px solid var(--accent);
  position: relative;
  box-shadow: 0 0 24px var(--glow);
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(47, 123, 255, 0.5);
  inset: 6px;
}

.ring-two {
  inset: 12px;
  border-color: rgba(47, 123, 255, 0.7);
}

.ring-three {
  inset: 18px;
  border-color: rgba(47, 123, 255, 0.9);
}

.menu {
  display: flex;
  gap: 26px;
  font-size: 0.95rem;
  color: var(--muted);
}

.menu a {
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--card-soft);
  border: 1px solid var(--line);
}

.lang-btn {
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 123, 255, 0.3);
}

.lang-btn:focus-visible {
  outline: 2px solid rgba(47, 123, 255, 0.5);
  outline-offset: 2px;
}

.primary-btn,
.ghost-btn {
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 10px 30px rgba(47, 123, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(47, 123, 255, 0.5);
}

.primary-btn::after {
  content: "";
  position: absolute;
  inset: -40% 70% -40% -40%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  opacity: 0;
  transform: translateX(-20%);
  transition: opacity 0.3s ease, transform 0.6s ease;
}

.primary-btn:hover::after {
  opacity: 1;
  transform: translateX(20%);
}

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

.ghost-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.primary-btn.full,
.ghost-btn.full {
  width: 100%;
  text-align: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
}

.hero {
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 123, 255, 0.35), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

.hero::after {
  inset: auto -10% -20% auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(47, 123, 255, 0.2), transparent 65%);
}

.hero-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 3vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

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

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

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 32px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  position: relative;
  background: linear-gradient(160deg, #ffffff, #f2f6ff);
  border-radius: 28px;
  padding: 30px;
  border: 1px solid rgba(47, 123, 255, 0.25);
  box-shadow: 0 24px 45px rgba(19, 44, 92, 0.12);
  animation: float 9s ease-in-out infinite;
}

.hero-card-inner {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(47, 123, 255, 0.15);
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.hero-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0 26px;
  color: var(--muted);
}

.hero-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 10px;
}

.hero-card-glow {
  position: absolute;
  inset: 10%;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(47, 123, 255, 0.2), transparent 70%);
  filter: blur(30px);
  z-index: 1;
  animation: glow 7s ease-in-out infinite;
}

.features,
.coverage,
.plans,
.support {
  padding: 70px 0;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--card);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: border 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(47, 123, 255, 0.4);
  transform: translateY(-4px);
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted);
}

.coverage {
  background: rgba(233, 239, 255, 0.7);
}

.coverage-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.coverage-list {
  display: flex;
  gap: 30px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.active-servers {
  margin-top: 22px;
}

.active-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.server-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--text);
  position: relative;
}

.server-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.6);
  animation: blink 3.2s ease-in-out infinite;
}

.flag {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  background-size: cover;
  background-position: center;
}

.flag-de {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='16'><rect width='24' height='16' fill='%23000'/><rect y='5.33' width='24' height='5.33' fill='%23dd0000'/><rect y='10.66' width='24' height='5.34' fill='%23ffce00'/></svg>");
}

.flag-nl {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='16'><rect width='24' height='16' fill='%23214a9a'/><rect width='24' height='10.66' fill='%23ffffff'/><rect width='24' height='5.33' fill='%23ae1c28'/></svg>");
}

.flag-at {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='16'><rect width='24' height='16' fill='%23ed2939'/><rect y='5.33' width='24' height='5.33' fill='%23ffffff'/></svg>");
}

.flag-ru {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='16'><rect width='24' height='16' fill='%23d52b1e'/><rect width='24' height='10.66' fill='%23003f8c'/><rect width='24' height='5.33' fill='%23ffffff'/></svg>");
}

.flag-us {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='16'><rect width='24' height='16' fill='%23ffffff'/><rect width='24' height='2.46' fill='%23b22234'/><rect y='4.92' width='24' height='2.46' fill='%23b22234'/><rect y='9.84' width='24' height='2.46' fill='%23b22234'/><rect y='14.76' width='24' height='1.24' fill='%23b22234'/><rect width='10.5' height='7.2' fill='%233c3b6e'/></svg>");
}

.coverage-map {
  position: relative;
  min-height: 360px;
  background: radial-gradient(circle at center, rgba(47, 123, 255, 0.15), transparent 60%);
  border-radius: 26px;
  border: 1px solid rgba(47, 123, 255, 0.25);
  overflow: hidden;
}

.map-ring {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 2px dashed rgba(47, 123, 255, 0.35);
  animation: spin 32s linear infinite;
}

.map-ring-two {
  inset: 27%;
  border-style: solid;
  opacity: 0.7;
  animation-duration: 26s;
  animation-direction: reverse;
}

.map-ring-three {
  inset: 38%;
  opacity: 0.6;
  animation-duration: 38s;
}

.map-dots .dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(47, 123, 255, 0.8);
  animation: blink 3.6s ease-in-out infinite;
}

.dot-one {
  top: 30%;
  left: 30%;
  animation-delay: 0.2s;
}

.dot-two {
  top: 50%;
  left: 60%;
  animation-delay: 0.7s;
}

.dot-three {
  top: 62%;
  left: 42%;
  animation-delay: 1.1s;
}

.dot-four {
  top: 22%;
  left: 70%;
  animation-delay: 1.6s;
}

.dot-five {
  top: 70%;
  left: 25%;
  animation-delay: 2s;
}

.map-card {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(47, 123, 255, 0.4);
}

.map-card.second {
  top: 26px;
  right: 22px;
  left: auto;
  bottom: auto;
}

.map-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.map-card p {
  font-size: 0.85rem;
  color: var(--muted);
}

.plans {
  position: relative;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.plan-card {
  background: var(--card);
  padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.plan-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.plan-card li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--accent);
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
}

.plan-price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.plan-card.featured {
  border-color: rgba(47, 123, 255, 0.6);
  background: linear-gradient(170deg, #ffffff, #eef4ff);
  box-shadow: 0 22px 40px rgba(19, 44, 92, 0.18);
}

.plan-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(47, 123, 255, 0.15);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.support-card {
  background: linear-gradient(130deg, rgba(47, 123, 255, 0.12), #ffffff);
  padding: 40px;
  border-radius: 26px;
  border: 1px solid rgba(47, 123, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-cta h4 {
  margin-bottom: 12px;
}

.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Legal pages (policy, aferta) */
.legal-page {
  padding: 70px 0 80px;
  min-height: 60vh;
}

.legal-content .container {
  max-width: 720px;
}

.back-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent-strong);
}

.legal-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.legal-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-section p,
.legal-section ul {
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-section ul {
  padding-left: 1.4rem;
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-section a:hover {
  color: var(--accent-strong);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 22px rgba(47, 123, 255, 0.35);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 32px rgba(47, 123, 255, 0.55);
  }
}

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

@keyframes glow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 960px) {
  .menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 22px;
    display: none;
    flex-direction: column;
    gap: 14px;
  }

  .menu.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: sticky;
  }

  .brand-name {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .brand-sub {
    font-size: 0.7rem;
  }

  .nav {
    gap: 12px;
    flex-wrap: nowrap;
  }

  .nav-actions {
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .hero {
    padding: 70px 0 50px;
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 6vw, 2.6rem);
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .primary-btn,
  .hero-actions .ghost-btn {
    width: 100%;
  }

  .hero-stats {
    gap: 16px;
  }

  .feature-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .coverage-grid {
    gap: 24px;
  }

  .server-list {
    gap: 8px;
  }

  .coverage-map {
    min-height: 280px;
  }

  .plan-card {
    padding: 22px;
  }

  .nav-actions .ghost-btn {
    display: none;
  }

  .nav-actions .primary-btn {
    padding: 8px 12px;
    font-size: 0.78rem;
    flex: 0 0 auto;
  }

  .lang-switch {
    padding: 2px;
    gap: 4px;
  }

  .lang-btn {
    padding: 4px 7px;
    font-size: 0.7rem;
  }

  .support-card {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo-img {
    width: 44px;
    height: 44px;
  }

  .menu {
    right: 4%;
    left: 4%;
  }

  .hero-card {
    padding: 24px;
  }

  .support-card {
    padding: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
