@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;&display=swap');

:root {
  /* Premium Dark Mode Palette inspired by Telegram and modern iOS */
  --bg-main: #0F0F13;
  --bg-secondary: #1C1C24;
  --bg-glass: rgba(28, 28, 36, 0.75);
  --primary-color: #3390EC; /* Telegram Blue */
  --primary-glow: rgba(51, 144, 236, 0.4);
  --text-main: #FFFFFF;
  --text-muted: #8E8E93;
  --border-color: rgba(255, 255, 255, 0.1);
  --success: #34C759;
  --danger: #FF3B30;
  --font-family: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 480px; /* Mobile first / Web app layout */
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.text-muted { color: var(--text-muted); }

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Typography */
h1, h2, h3 { font-weight: 600; }
.title {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  border-radius: 14px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  outline: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:active {
  transform: scale(0.96);
  box-shadow: 0 2px 10px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

/* Forms */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 14px 16px;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-active { background: rgba(52, 199, 89, 0.2); color: var(--success); }
.badge-inactive { background: rgba(255, 59, 48, 0.2); color: var(--danger); }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Device Grid (Dashboard) */
.device-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.device-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.device-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-color);
}

.device-icon {
  font-size: 2rem;
}

/* Header Navbar */
header {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
}

.back-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--primary-color); }

/* ==========================================================================
   LANDING PAGE STYLES (Prefix lp- or specific section classes to avoid conflict)
   ========================================================================== */

/* Neon Mesh Background Glows */
.lp-glow-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}

.lp-glow-circle {
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 144, 236, 0.15) 0%, rgba(94, 92, 230, 0.05) 50%, transparent 100%);
  filter: blur(80px);
  pointer-events: none;
}

.lp-glow-circle-1 {
  top: -10vw;
  right: -5vw;
}

.lp-glow-circle-2 {
  top: 50vh;
  left: -10vw;
  background: radial-gradient(circle, rgba(94, 92, 230, 0.12) 0%, rgba(51, 144, 236, 0.03) 50%, transparent 100%);
}

.lp-glow-circle-3 {
  bottom: -10vw;
  right: -5vw;
}

/* Wide Container for Landing Page */
.lp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Header styling */
header.lp-header {
  display: block !important; /* Force block layout to stretch container */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding: 20px 0;
}

header.lp-header.sticky {
  background: rgba(15, 15, 19, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
}

header.lp-header .lp-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%; /* Force child container to expand to 100% of parent block width */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

header.lp-header .lp-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

header.lp-header .lp-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

header.lp-header .lp-nav-link:hover {
  color: #fff;
}

header.lp-header .lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

header.lp-header .lp-btn-cta {
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 10px;
}

header.lp-header.sticky .lp-btn-cta {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Floating Action Button (FAB) for Mobile/All */
.lp-floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  background: linear-gradient(135deg, var(--primary-color), #5e5ce6);
  border: none;
  color: white;
  padding: 14px 20px;
  border-radius: 30px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(51, 144, 236, 0.4), 0 0 10px rgba(94, 92, 230, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-floating-cta.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.lp-floating-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(51, 144, 236, 0.5), 0 0 15px rgba(94, 92, 230, 0.3);
}

/* Scroll reveal classes */
.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.active {
  opacity: 1;
  transform: translateY(0);
}

/* Section styling */
.lp-section {
  padding: 100px 0;
  position: relative;
}

/* Hero Section */
.lp-hero {
  padding: 160px 0 80px 0;
  display: flex;
  align-items: center;
  min-height: 80vh;
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.lp-hero-content {
  text-align: left;
}

.lp-hero-title {
  font-family: var(--font-family);
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.7;
}

.lp-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.lp-hero-btn {
  max-width: 260px;
}

.lp-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.lp-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* Interactive Device Mockup Visual */
.lp-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
}

.lp-mockup-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.lp-device-pc {
  position: absolute;
  width: 75%;
  height: 60%;
  background: #18181E;
  border: 4px solid var(--border-color);
  border-radius: 12px;
  top: 10%;
  left: 5%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lp-device-pc-header {
  height: 24px;
  background: #0F0F13;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}

.lp-device-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5f56;
}
.lp-device-dot:nth-child(2) { background: #ffbd2e; }
.lp-device-dot:nth-child(3) { background: #27c93f; }

.lp-device-pc-body {
  flex: 1;
  background: radial-gradient(circle at center, #1b2838 0%, #0c1015 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lp-device-phone {
  position: absolute;
  width: 25%;
  height: 55%;
  background: #0c1015;
  border: 4px solid var(--border-color);
  border-radius: 20px;
  bottom: 5%;
  right: 8%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  z-index: 5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 6px;
}

.lp-device-phone-notch {
  width: 40%;
  height: 12px;
  background: #1c1c24;
  border-radius: 0 0 8px 8px;
  margin: 0 auto;
}

.lp-device-phone-body {
  flex: 1;
  border-radius: 14px;
  background: radial-gradient(circle at center, #1b2838 0%, #0c1015 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Visual HUD elements inside devices */
.lp-hud-circle {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px dashed rgba(51, 144, 236, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 30s linear infinite;
}

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

.lp-hud-power {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 144, 236, 0.3) 0%, rgba(51, 144, 236, 0.05) 70%);
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 20px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: pulseHUD 2.5s infinite;
}

@keyframes pulseHUD {
  0% { box-shadow: 0 0 10px var(--primary-glow); }
  50% { box-shadow: 0 0 25px rgba(51, 144, 236, 0.6); }
  100% { box-shadow: 0 0 10px var(--primary-glow); }
}

.lp-hud-status {
  position: absolute;
  bottom: 20px;
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Stats Block */
.lp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -40px;
}

.lp-stat-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 16px;
  text-align: center;
}

.lp-stat-num {
  font-family: var(--font-family);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
  text-shadow: 0 0 12px var(--primary-glow);
}

.lp-stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Features Grid */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* Servers Showcase section */
.lp-servers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.lp-server-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.lp-server-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.lp-server-country {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-server-flag {
  font-size: 1.8rem;
}

.lp-server-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.lp-server-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 12px;
  font-size: 0.85rem;
}

.lp-ping-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-weight: 500;
}

.lp-ping-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.lp-server-spec {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Section Header Typography */
.lp-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.lp-section-tag {
  font-size: 0.8rem;
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.lp-section-title {
  font-family: var(--font-family);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.lp-section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Interactive Calculator Container */
.lp-calc-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Custom Range Slider styling */
.lp-range-slider {
  width: 100%;
  margin: 20px 0 10px 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.lp-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  cursor: pointer;
  transition: transform 0.1s;
}

.lp-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Steps section Grid */
.lp-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.lp-step-card {
  position: relative;
  text-align: center;
}

.lp-step-num {
  font-family: var(--font-family);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(51, 144, 236, 0.1);
  line-height: 1;
  margin-bottom: -15px;
}

.lp-step-icon {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.lp-step-card:hover .lp-step-icon {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-2px);
}

.lp-step-title {
  font-family: var(--font-family);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.lp-step-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* FAQ Accordion styling */
.lp-faq-container {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.lp-faq-item:hover {
  border-color: rgba(255,255,255,0.15);
}

.lp-faq-trigger {
  padding: 24px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lp-faq-icon {
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.lp-faq-content {
  padding: 0 24px 24px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none; /* Controlled via JS */
  border-top: 1px solid transparent;
}

.lp-faq-item.active .lp-faq-icon {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.lp-faq-item.active .lp-faq-content {
  display: block;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .lp-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .lp-hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .lp-hero-subtitle {
    text-align: center;
  }

  .lp-hero-actions {
    justify-content: center;
  }

  .lp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
  }

  .lp-features-grid {
    grid-template-columns: 1fr;
  }

  .lp-servers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* header.lp-header .lp-nav moved to media query (max-width: 1080px) */

  .lp-section {
    padding: 60px 0;
  }

  .lp-hero {
    padding: 120px 0 60px 0;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.4rem;
    gap: 8px;
  }
  
  .logo img {
    width: 32px !important;
    height: 32px !important;
  }

  .lp-hero-title {
    font-size: 2.2rem;
  }

  .lp-stats-grid {
    grid-template-columns: 1fr;
  }

  .lp-servers-grid {
    grid-template-columns: 1fr;
  }

  .lp-calc-card {
    padding: 24px;
  }
}

/* Fix header overlapping issues on intermediate and mobile screen widths */
@media (max-width: 1080px) {
  header.lp-header .lp-nav {
    display: none !important;
  }
}

@media (max-width: 768px) {
  header.lp-header .lp-btn-cta {
    display: none !important;
  }
}

