﻿@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-color: #080C18;
  --bg-card: #0F1524;
  --bg-card-hover: #161E34;
  --text-main: #FFFFFF;
  --text-muted: #8B95AD;
  --accent-cyan: #B3D4FC;
  --accent-silver: #D6E8FF;
  --accent-purple: #3B82F6;
  --gradient-main: linear-gradient(135deg, #DBEAFE 0%, #60A5FA 50%, #2563EB 100%);
  --gradient-silver-btn: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  --border-color: rgba(203, 213, 225, 0.12);
  --font-family: 'Nunito Sans', sans-serif;
  --border-radius: 16px;
}

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

body {
  padding-top: 84px;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.07) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  background-position: center top;
}

.wrapper, .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== TOP BAR / HEADER ========== */
.top-bar, .header {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 9999;
  background: rgba(12, 16, 28, 0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.1);
  padding: 12px 0;
}
.top-bar-row, .header-inner { display: flex; align-items: center; justify-content: space-between; }

.brand, .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.brand-icon, .logo-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.brand-icon img, .logo-icon img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.main-nav, .nav { display: flex; gap: 28px; align-items: center; }
.main-nav a, .nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}
.main-nav a:hover, .nav a:hover { color: var(--text-main); }

.locale-toggle, .lang-switch {
  font-weight: 700;
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s;
}
.locale-toggle:hover, .lang-switch:hover { border-color: var(--accent-purple); color: #FFFFFF !important; background: rgba(59, 130, 246, 0.1); }

/* Menu Toggle / Hamburger */
.menu-toggle, .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}
.menu-toggle span, .hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.open span:nth-child(1), .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2), .hamburger.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3), .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.slide-menu, .mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: #0F1524;
  border-top: 1px solid var(--border-color);
  padding: 10px 0;
}
.slide-menu.open, .mobile-menu.open { display: flex; }
.slide-menu a, .mobile-menu a {
  display: block;
  padding: 14px 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}
.slide-menu a:last-child, .mobile-menu a:last-child { border-bottom: none; }
.slide-menu a:hover, .mobile-menu a:hover { background: rgba(255,255,255,0.04); color: #fff; }
.slide-menu .slide-menu-cta, .mobile-menu .mobile-download {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  margin: 10px 20px;
  border-radius: 10px;
  text-align: center;
  border: none;
}

/* ========== BUTTONS ========== */
.action-btn, .btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer; border: none; gap: 10px;
}
.action-btn-fill, .btn-primary {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(29, 78, 216, 0.35);
}
.action-btn-fill:hover, .btn-primary:hover {
  box-shadow: 0 6px 25px rgba(29, 78, 216, 0.5);
  transform: translateY(-2px);
}
.action-btn-ghost, .btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.action-btn-ghost:hover, .btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }

/* Text Gradient */
.colored-text, .text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Typography */
h1 { font-size: 52px; line-height: 1.15; font-weight: 900; margin-bottom: 20px; letter-spacing: -1px; }
h2 { font-size: 40px; font-weight: 800; margin-bottom: 20px; text-align: center; letter-spacing: -0.5px; }
.tagline, .subtitle { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; }

/* ========== HERO / INTRO ========== */
.intro-block, .hero {
  padding: 60px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.intro-text, .hero-content { max-width: 550px; }
.pill, .badge {
  display: inline-flex;
  align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  color: #93C5FD;
  margin-bottom: 24px;
}
.pill-dot, .badge-dot {
  width: 8px; height: 8px;
  background: #3B82F6;
  border-radius: 50%;
  box-shadow: 0 0 10px #3B82F6;
  flex-shrink: 0;
}
.intro-actions, .hero-buttons { display: flex; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }
.intro-metrics, .hero-stats { display: flex; gap: 40px; }
.metric-block h3, .stat-item h3 { font-size: 32px; font-weight: 800; color: #DBEAFE; margin-bottom: 5px; }
.metric-block p, .stat-item p { font-size: 13px; color: var(--text-muted); }

.intro-graphic, .hero-visual {
  position: relative;
  width: 440px; height: 480px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.orb-glow, .glow-sphere {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
}

/* ========== FEATURES / ADVANTAGES ========== */
.advantages, .features { padding: 80px 0; background: var(--bg-card); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.advantages-grid, .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.advantage-tile, .feature-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 35px 28px;
  transition: all 0.3s ease;
}
.advantage-tile:hover, .feature-card:hover { background: var(--bg-card-hover); border-color: rgba(59, 130, 246, 0.3); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(59, 130, 246, 0.1); }
.advantage-icon, .feature-icon {
  width: 50px; height: 50px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: #3B82F6;
}

/* ========== REVIEWS / TESTIMONIALS ========== */
.testimonials, .reviews { padding: 80px 0; }
.testimonials-grid, .reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card, .review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 28px;
  transition: all 0.3s ease;
}
.testimonial-card:hover, .review-card:hover { border-color: rgba(203, 213, 225, 0.25); transform: translateY(-3px); }
.testimonial-rating, .review-stars { color: #F59E0B; font-size: 18px; margin-bottom: 14px; letter-spacing: 2px; filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4)); }
.testimonial-body, .review-text { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.testimonial-user, .review-author { display: flex; align-items: center; gap: 12px; }
.testimonial-initials, .review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  border: 1px solid rgba(203, 213, 225, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #FFFFFF;
  flex-shrink: 0;
}
.testimonial-name, .review-name { font-weight: 600; font-size: 14px; color: #FFFFFF; }
.testimonial-info, .review-meta { font-size: 12px; color: var(--text-muted); }

/* ========== LOCATIONS / SERVERS ========== */
.servers, .locations { padding: 80px 0; background: var(--bg-card); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.servers-grid, .locations-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; }
.server-tile, .location-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px 14px;
  display: flex; align-items: center; gap: 12px;
  transition: all 0.3s;
}
.server-tile:hover, .location-card:hover { border-color: rgba(59, 130, 246, 0.35); transform: translateY(-2px); }
.server-flag, .location-flag { font-size: 24px; }
.server-label, .location-name { font-size: 13px; font-weight: 500; }
.server-latency, .location-ping { font-size: 11px; color: #3B82F6; }

/* ========== DOWNLOAD / GET APP ========== */
.get-app, .download-section { padding: 80px 0; }
.get-app-row, .download-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.get-app-actions, .download-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.market-btn, .store-btn {
  display: flex;
  align-items: center; gap: 12px;
  padding: 12px 22px;
  background: #fff;
  color: #000;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
  min-width: 160px;
}
.market-btn:hover, .store-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,255,255,0.25); }
.market-btn-caption, .store-btn-text { line-height: 1.2; }
.market-btn-small, .store-btn-label { font-size: 10px; text-transform: uppercase; color: #555; display: block; }
.market-btn-title, .store-btn-name { font-size: 17px; font-weight: 800; }

.scan-block, .qr-box {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.scan-frame, .qr-code-wrap {
  width: 180px; height: 180px;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
}
.scan-frame img, .qr-code-wrap img { width: 100%; height: 100%; border-radius: 8px; }

/* ========== FAQ / HELP ========== */
.help-section, .faq-section { padding: 80px 0; }
.help-entry-body, .faq-body { display: none; }
.help-entry.active .help-entry-body, .faq-item.active .faq-body { display: block; }
.help-entry.active .help-entry-header span, .faq-item.active .faq-header span { transform: rotate(45deg); }
.help-entry-header span, .faq-header span { transition: transform 0.3s ease; display: inline-block; flex-shrink: 0; }

/* ========== FOOTER / BOTTOM BAR ========== */
.bottom-bar, .footer {
  background: #060A14;
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}
.bottom-bar-row, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.bottom-links, .footer-links { display: flex; gap: 24px; }
.bottom-links a, .footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 0.3s; }
.bottom-links a:hover, .footer-links a:hover { color: #fff; }

/* ========== MODALS ========== */
.popup-bg, .modal-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: all 0.3s ease; z-index: 999;
}
.popup-bg.active, .modal-overlay.active { opacity: 1; pointer-events: auto; }
.popup-box, .modal {
  background: var(--bg-color); border: 1px solid var(--border-color);
  border-radius: 18px; padding: 40px; width: 100%; max-width: 450px;
  text-align: center; transform: translateY(20px); transition: all 0.3s ease;
  margin: 20px;
}
.popup-bg.active .popup-box, .modal-overlay.active .modal { transform: translateY(0); }

/* ========== SCROLL REVEAL ========== */
.reveal-on-scroll, .scroll-reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s ease-out; }
.reveal-on-scroll.visible, .scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== UTILITIES ========== */
.align-center, .text-center { text-align: center; }
.section-heading, .section-label {
  display: inline-block;
  font-size: 24px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent-purple);
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .section-heading, .section-label {
    font-size: 20px;
  }
}

/* ================================================
   MOBILE — responsive breakpoints
   ================================================ */

@media (max-width: 1024px) {
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .intro-block, .hero { gap: 30px; }
  .intro-graphic, .hero-visual { width: 350px; height: 380px; }
  .advantages-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .servers-grid, .locations-grid { grid-template-columns: repeat(4, 1fr); }
  .get-app-row, .download-inner { gap: 30px; }
}

@media (max-width: 768px) {
  .main-nav, .nav { display: none; }
  .top-bar-cta, .header-download-btn { display: none !important; }
  .menu-toggle, .hamburger { display: flex; }

  .intro-block, .hero { flex-direction: column; padding: 40px 0 30px; gap: 30px; }
  .intro-text, .hero-content { max-width: 100%; text-align: center; }
  h1 { font-size: 36px; letter-spacing: -0.5px; }
  .tagline, .subtitle { font-size: 16px; max-width: 100%; margin-left: auto; margin-right: auto; }
  .pill, .badge { margin-left: auto; margin-right: auto; }
  .intro-actions, .hero-buttons { justify-content: center; }
  .intro-actions .action-btn, .hero-buttons .btn { flex: 1; min-width: 140px; max-width: 200px; justify-content: center; }
  .intro-metrics, .hero-stats { justify-content: center; gap: 24px; }
  .metric-block h3, .stat-item h3 { font-size: 26px; }
  .intro-graphic, .hero-visual { width: 100% !important; height: auto !important; min-height: 240px !important; margin: 0 auto; }
  #globeViz { width: 240px !important; height: 240px !important; min-height: 240px !important; margin: 0 auto; }

  #ipWidget {
    flex-direction: row !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    text-align: left;
    max-width: 95% !important;
    margin: -15px auto 40px !important;
  }
  #ipWidget > div:nth-child(3) {
    width: 1px !important;
    height: 20px !important;
    margin: 0 6px !important;
  }
  #userIP, #ipStatus { font-size: 12px !important; }

  .phone-mockup { width: 200px !important; height: 380px !important; }

  .advantages, .features { padding: 50px 0; }
  .advantages-grid, .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .advantage-tile, .feature-card { padding: 24px 20px; }

  .testimonials, .reviews { padding: 50px 0; }
  .testimonials-grid, .reviews-grid { grid-template-columns: 1fr; gap: 16px; }

  .servers, .locations { padding: 50px 0; }
  .servers-grid, .locations-grid { grid-template-columns: 1fr; gap: 12px; }
  .server-tile, .location-card { padding: 12px 14px; }

  .get-app, .download-section { padding: 50px 0; }
  .get-app-row, .download-inner { flex-direction: column; align-items: flex-start; }
  .get-app-actions, .download-buttons { width: 100%; }
  .market-btn, .store-btn { flex: 1; min-width: 140px; justify-content: center; }
  .scan-block, .qr-box { display: none; }

  .help-section, .faq-section { padding: 50px 0; }
  h2 { font-size: 28px; }

  .bottom-bar-row, .footer-inner { flex-direction: column; text-align: center; }
  .bottom-links, .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

@media (max-width: 480px) {
  .wrapper, .container { padding: 0 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .tagline, .subtitle { font-size: 15px; }
  .intro-actions, .hero-buttons { flex-direction: column; align-items: stretch; }
  .intro-actions .action-btn, .hero-buttons .btn { max-width: 100%; text-align: center; justify-content: center; }
  .intro-metrics, .hero-stats { flex-wrap: wrap; gap: 20px; }
  .metric-block, .stat-item { min-width: 90px; text-align: center; }
  .servers-grid, .locations-grid { grid-template-columns: 1fr; }
  .testimonials-grid, .reviews-grid { grid-template-columns: 1fr; }
  .market-btn, .store-btn { flex-direction: column; text-align: center; gap: 4px; }
  .action-btn, .btn { padding: 13px 20px; font-size: 14px; }
}

@media (max-width: 480px) {
  body { padding-top: 74px !important; }
  .top-bar, .header { padding: 10px 0 !important; }
  .brand, .logo { gap: 8px !important; }
  .brand-icon, .logo-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
  }
  .brand span, .logo span { font-size: 20px !important; }

  h1 { font-size: 28px !important; line-height: 1.25 !important; margin-bottom: 12px !important; }
  .tagline, .subtitle { font-size: 14.5px !important; line-height: 1.45 !important; margin-bottom: 24px !important; }

  .phone-mockup { width: 220px !important; height: auto !important; margin: 0 auto; }
  .phone-screen { min-height: 440px !important; padding-bottom: 20px !important; }
  .vpn-power-btn { width: 85px !important; height: 85px !important; }

  .advantage-tile, .feature-card { padding: 20px 16px !important; border-radius: 16px !important; }
  .testimonial-card, .review-card { padding: 20px 16px !important; border-radius: 16px !important; }
}
