/* ============================================
   BogatirSpace VPN — Design System & Styles
   Sci-Fi / Space Theme
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors — Space palette */
  --space-deepest: #060612;
  --space-black: #080816;
  --dark-navy: #0d1025;
  --space-surface: #0f1228;
  --space-card: #111430;

  /* Accent colors */
  --cyan: #00d4ff;
  --cyan-dim: #0099bb;
  --cyan-glow: rgba(0, 212, 255, 0.2);
  --cyan-glow-strong: rgba(0, 212, 255, 0.45);
  --violet: #8b5cf6;
  --violet-dim: #6d3fd4;
  --violet-glow: rgba(139, 92, 246, 0.2);
  --magenta: #c84dfa;
  --magenta-glow: rgba(200, 77, 250, 0.18);

  /* Text */
  --text-primary: #eaeaf4;
  --text-secondary: rgba(190, 190, 220, 0.65);
  --text-heading: #f4f4ff;

  /* Status */
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.3);
  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.25);
  --yellow: #f59e0b;

  /* Glass */
  --glass-bg: rgba(12, 14, 32, 0.55);
  --glass-bg-hover: rgba(18, 20, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.12);
  --holo-border: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(139, 92, 246, 0.25), rgba(200, 77, 250, 0.15));

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-mid: 0.35s var(--ease-smooth);
  --transition-slow: 0.5s var(--ease-smooth);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--space-deepest);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Noise overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* --- Nebula background layer --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 800px 600px at 20% 10%, rgba(0, 180, 255, 0.06), transparent),
    radial-gradient(ellipse 600px 500px at 80% 20%, rgba(139, 92, 246, 0.06), transparent),
    radial-gradient(ellipse 900px 700px at 50% 60%, rgba(200, 77, 250, 0.04), transparent),
    radial-gradient(ellipse 700px 500px at 10% 80%, rgba(0, 212, 255, 0.04), transparent),
    radial-gradient(ellipse 500px 400px at 90% 90%, rgba(139, 92, 246, 0.05), transparent),
    linear-gradient(180deg, var(--space-deepest) 0%, #070718 30%, #090920 60%, var(--space-deepest) 100%);
}

/* --- Starfield Canvas --- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* --- Section --- */
section {
  position: relative;
  padding: var(--section-padding);
}

/* --- Section Glowing Divider --- */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-dim), var(--violet), transparent);
  position: relative;
  opacity: 0.4;
}

.section-divider::after {
  content: '';
  position: absolute;
  inset: -8px 10%;
  height: 18px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), rgba(139, 92, 246, 0.1), transparent);
  filter: blur(10px);
}

/* --- Typography --- */
.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--transition-mid), border-color var(--transition-mid), box-shadow var(--transition-mid);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--cyan-glow);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-mid);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--cyan-glow), 0 0 40px rgba(0, 212, 255, 0.08);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px var(--cyan-glow-strong), 0 0 60px rgba(0, 212, 255, 0.12);
  transform: translateY(-2px);
}

/* Light sweep */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s var(--ease-smooth);
}

.btn-primary:hover::after {
  left: 120%;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 20px;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

/* ============================
   HEADER
   ============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition-mid), box-shadow var(--transition-mid), padding var(--transition-mid);
}

.header.scrolled {
  background: rgba(8, 8, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--glass-border);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
}

.brand-name {
  display: inline;
}

.brand-bogatir {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  /* Fallback */
  color: #ff8c00;
}

.brand-space {
  background: linear-gradient(135deg, #00d4ff 0%, #0099bb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  /* Fallback */
  color: #00d4ff;
}

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

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav a:hover::after {
  transform: scaleX(1);
}

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

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================
   HERO
   ============================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

/* Warp tunnel lines */
.hero-warp {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.warp-line {
  position: absolute;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--cyan), transparent);
  opacity: 0;
  animation: warpFly linear infinite;
}

@keyframes warpFly {
  0% {
    transform: translateY(-100%) scaleY(0.3);
    opacity: 0;
  }

  10% {
    opacity: 0.4;
  }

  90% {
    opacity: 0.4;
  }

  100% {
    transform: translateY(120vh) scaleY(1.5);
    opacity: 0;
  }
}

.warp-line:nth-child(1) {
  left: 10%;
  height: 120px;
  animation-duration: 4s;
  animation-delay: 0s;
}

.warp-line:nth-child(2) {
  left: 25%;
  height: 80px;
  animation-duration: 3.5s;
  animation-delay: 1.2s;
  background: linear-gradient(to bottom, transparent, var(--violet), transparent);
}

.warp-line:nth-child(3) {
  left: 45%;
  height: 150px;
  animation-duration: 4.5s;
  animation-delay: 0.7s;
}

.warp-line:nth-child(4) {
  left: 65%;
  height: 90px;
  animation-duration: 3.8s;
  animation-delay: 2s;
  background: linear-gradient(to bottom, transparent, var(--magenta), transparent);
}

.warp-line:nth-child(5) {
  left: 80%;
  height: 110px;
  animation-duration: 4.2s;
  animation-delay: 0.3s;
}

.warp-line:nth-child(6) {
  left: 92%;
  height: 70px;
  animation-duration: 3.2s;
  animation-delay: 1.8s;
  background: linear-gradient(to bottom, transparent, var(--violet), transparent);
}

.warp-line:nth-child(7) {
  left: 5%;
  height: 100px;
  animation-duration: 5s;
  animation-delay: 2.5s;
}

.warp-line:nth-child(8) {
  left: 55%;
  height: 140px;
  animation-duration: 4.8s;
  animation-delay: 0.5s;
  background: linear-gradient(to bottom, transparent, var(--cyan), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero — App Mockup Panel */
.hero-panel {
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-mockup {
  width: 256px;
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Comet orbit — rotating border for App Mockup */
.app-mockup::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  /* radius-xl (28px) + 2px offset */
  background: conic-gradient(from var(--angle),
      transparent 0%,
      transparent 70%,
      rgba(0, 212, 255, 0.6) 80%,
      rgba(139, 92, 246, 0.9) 88%,
      #fff 92%,
      rgba(0, 212, 255, 0.5) 96%,
      transparent 100%);
  animation: cometRotate 3s linear infinite;
  z-index: 2;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
}

.app-mockup-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* Portal Connect Ring */
.portal-ring-wrapper {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
}

.portal-ring {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-mid);
}

/* Outer rotating ring */
.portal-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--cyan), var(--violet), var(--magenta), var(--cyan));
  animation: portalSpin 4s linear infinite;
  opacity: 0.6;
}

/* Inner dark circle */
.portal-ring::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #0c0e22 60%, #0a0c1e);
  z-index: 1;
}

@keyframes portalSpin {
  to {
    transform: rotate(360deg);
  }
}

.portal-ring-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 32px;
  color: var(--text-secondary);
  transition: color var(--transition-mid);
}

/* OFF state — pulsation */
.portal-ring.is-off {
  animation: portalPulseOff 2.5s ease-in-out infinite;
}

@keyframes portalPulseOff {

  0%,
  100% {
    box-shadow: 0 0 20px var(--cyan-glow), 0 0 40px rgba(0, 212, 255, 0.05);
  }

  50% {
    box-shadow: 0 0 35px var(--cyan-glow-strong), 0 0 60px rgba(0, 212, 255, 0.1);
  }
}

/* ON state — stable glow */
.portal-ring.is-on::before {
  opacity: 1;
  animation: portalSpin 2s linear infinite;
}

.portal-ring.is-on {
  box-shadow: 0 0 40px var(--green-glow), 0 0 80px rgba(34, 197, 94, 0.1);
  animation: none;
}

.portal-ring.is-on .portal-ring-icon {
  color: var(--green);
}

.portal-status {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.portal-status.online {
  color: var(--green);
}

.portal-status.offline {
  color: var(--text-secondary);
}

.app-mockup-location {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* App Mockup Metrics */
.app-mockup-metrics {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  gap: 8px;
}

.app-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.app-metric-icon {
  font-size: 16px;
}

.app-metric-value {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
}

.app-metric-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================
   CONNECTION STATUS
   ============================ */
.connection-section {
  padding: 60px 0 80px;
}

.connection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.metric-card {
  padding: 24px;
  text-align: center;
}

.metric-icon {
  font-size: 24px;
  margin-bottom: 12px;
  display: inline-block;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.metric-value.speed {
  color: var(--cyan);
}

.metric-value.ping {
  color: var(--green);
}

.metric-value.location {
  color: var(--violet);
}

.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================
   SERVERS
   ============================ */
.servers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.servers-search {
  position: relative;
  width: 280px;
}

.servers-search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.servers-search input::placeholder {
  color: var(--text-secondary);
}

.servers-search input:focus {
  border-color: rgba(0, 212, 255, 0.3);
}

.servers-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 16px;
}

.servers-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--cyan-dim);
  color: var(--cyan);
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.server-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.server-flag {
  font-size: 32px;
  line-height: 1;
}

.server-info {
  flex: 1;
}

.server-country {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.server-city {
  font-size: 13px;
  color: var(--text-secondary);
}

.server-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.server-ping {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
}

.server-ping.medium {
  color: var(--yellow);
}

.server-ping.slow {
  color: var(--red);
}

.server-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  font-weight: 500;
  border: 1px solid rgba(34, 197, 94, 0.15);
}

/* ============================
   FEATURES
   ============================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(139, 92, 246, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================
   PRICING
   ============================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.pricing-card {
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Recommended highlight */
.pricing-card.recommended {
  border-color: transparent;
  box-shadow: 0 0 40px var(--cyan-glow), 0 0 80px rgba(0, 212, 255, 0.06);
  background: rgba(0, 212, 255, 0.04);
}

.pricing-card.recommended::before {
  display: none;
  /* replaced by comet orbit */
}

/* Comet orbit wrapper for recommended card */
.pricing-comet-wrap {
  position: relative;
  border-radius: 22px;
}

.pricing-comet-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: conic-gradient(from var(--angle),
      transparent 0%,
      transparent 70%,
      rgba(0, 212, 255, 0.6) 80%,
      rgba(139, 92, 246, 0.9) 88%,
      #fff 92%,
      rgba(0, 212, 255, 0.5) 96%,
      transparent 100%);
  animation: cometRotate 3s linear infinite;
  z-index: 0;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
}

.pricing-comet-wrap>.pricing-card {
  position: relative;
  z-index: 1;
}

/* Discount badge */
.pricing-discount {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #22c55e;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-period {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: 6px;
}

.pricing-amount span {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-permonth {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--cyan);
  font-weight: 700;
  font-size: 13px;
}

.pricing-card .btn {
  width: 100%;
}

/* ============================
   HOW IT WORKS
   ============================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}

/* Connecting line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan-dim), var(--violet), var(--magenta), var(--cyan-dim));
  opacity: 0.25;
}

.step-card {
  text-align: center;
  padding: 28px 20px;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(0, 212, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.step-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Step highlighting animation */
.step-card {
  transition: all 0.5s var(--ease-smooth);
  border-radius: var(--radius-lg);
}

.step-card.step-active {
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.1), 0 0 60px rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.step-card.step-active .step-number {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 20px var(--cyan-glow-strong);
}

/* ============================
   FAQ
   ============================ */
.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.04);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--cyan);
}

.faq-arrow {
  font-size: 18px;
  color: var(--text-secondary);
  transition: transform var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 64px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  color: rgba(220, 220, 240, 0.75);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--cyan);
}

/* Telegram link styles */
.tg-link {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.tg-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #29b6f6;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--cyan);
}

.footer-links {
  display: flex;
  gap: 24px;
}

/* ============================
   MOBILE NAV OVERLAY
   ============================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 18, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transform: translateX(100%);
  transition: transform var(--transition-mid);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.mobile-nav a:hover {
  color: var(--cyan);
}

/* ============================
   RESPONSIVE — 1024px (Tablet)
   ============================ */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 42px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  /* Switch grid layouts from 3/4 cols to 2 cols */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .steps-grid::before {
    display: none;
  }

  .footer-grid {
    gap: 32px;
  }
}

/* ============================
   RESPONSIVE — 768px
   ============================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  .container {
    padding: 0 20px;
  }

  .nav {
    display: none;
  }

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

  .burger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .connection-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .servers-header {
    flex-direction: column;
    align-items: stretch;
  }

  .servers-search {
    width: 100%;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .steps-grid::before {
    display: none;
  }

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

  .footer-brand {
    max-width: 100%;
    grid-column: 1 / -1;
  }

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

/* ============================
   RESPONSIVE — 390px (mobile)
   ============================ */
@media (max-width: 420px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  /* Mobile Header Fixes */
  .logo-img {
    width: 28px;
    height: 28px;
  }

  .logo {
    font-size: 17px;
    gap: 6px;
  }

  .header-actions .btn-sm {
    padding: 8px 14px;
    font-size: 13px;
  }

  .burger {
    padding: 4px;
  }

  .app-mockup {
    width: 280px;
    padding: 24px;
  }

  .portal-ring-wrapper {
    width: 130px;
    height: 130px;
  }

  .portal-ring {
    width: 130px;
    height: 130px;
  }

  .section-title {
    font-size: 28px;
  }

  .pricing-amount {
    font-size: 36px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* ============================
   ANIMATIONS — Scroll reveal
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   AFFILIATES SECTION
   ============================ */
#affiliates {
  padding-top: 50px;
  /* Reduced by another ~20% from 70px */
}

.affiliate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

.affiliate-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.affiliate-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.affiliate-feature-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.affiliate-feature h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.affiliate-feature p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.affiliate-cta {
  margin-top: 32px;
  display: inline-flex;
  align-self: flex-start;
}

/* Affiliate Image with glow + comet orbit */
/* Affiliate Image with glow + comet orbit */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.affiliate-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  /* Fix overflow */
  margin: 0 auto;
  /* No padding, the border is outside */
  border-radius: 20px;
  /* Enhance the glow behind the image */
  box-shadow: 0 0 80px rgba(0, 212, 255, 0.15);
}

/* Comet orbit — rotating border via mask */
.affiliate-image-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  /* Border width extends outward */
  border-radius: 22px;
  /* 20px + 2px */
  background: conic-gradient(from var(--angle),
      transparent 0%,
      transparent 70%,
      rgba(0, 212, 255, 0.6) 80%,
      rgba(139, 92, 246, 0.9) 88%,
      #fff 92%,
      rgba(0, 212, 255, 0.5) 96%,
      transparent 100%);
  animation: cometRotate 3s linear infinite;
  z-index: 2;
  /* On top of image edge to be sharp, or -1 if behind? Let's put it on top to frame it */
  pointer-events: none;

  /* Mask logic to cut out the center */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  /* Border thickness */
}

@keyframes cometRotate {
  to {
    --angle: 360deg;
  }
}

/* Fallback for browsers without @property support: standard spin */
@supports not (background: paint(something)) {
  /* This is approximate check, actually we need to check if var(--angle) works */
}

/* Removing the inner mask element since we use mask-composite now */
.affiliate-image-wrap::after {
  display: none;
}

.affiliate-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(0, 212, 255, 0.18) 0%,
      rgba(139, 92, 246, 0.12) 40%,
      transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}


.affiliate-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 30%;
  /* shift image up — head closer to top */
  max-height: 380px;
  /* crop from top/bottom */
  box-shadow:
    0 0 60px rgba(0, 212, 255, 0.15),
    0 0 120px rgba(139, 92, 246, 0.08),
    0 8px 40px rgba(0, 0, 0, 0.5);
}

/* Mobile */
@media (max-width: 768px) {
  .affiliate-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .affiliate-image-wrap {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }

  .affiliate-image {
    max-width: 100%;
  }

  .affiliate-cta {
    width: 100%;
    justify-content: center;
  }

  #partnerSignupBlock {
    margin-top: 64px !important;
  }

  #affiliates .section-title {
    font-size: 24px;
  }

  .affiliate-features {
    gap: 20px;
  }

  .affiliate-feature-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

/* ============================
   PAYMENT MODAL & STATUS
   ============================ */
.pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 4, 16, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-smooth);
}

.pay-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pay-modal {
  max-width: 440px;
  width: 100%;
  padding: 36px;
  position: relative;
  animation: payModalIn 0.4s var(--ease-smooth);
}

@keyframes payModalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pay-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}

.pay-modal-close:hover {
  color: #fff;
}

.pay-modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.pay-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pay-hidden {
  display: none !important;
}

.pay-plan-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.pay-plan-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
}

.pay-label {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.pay-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s;
}

.pay-input:focus {
  border-color: var(--cyan);
}

.pay-input::placeholder {
  color: rgba(190, 190, 220, 0.4);
}

.pay-submit {
  width: 100%;
  margin-top: 12px;
}

/* Countdown */
.pay-countdown-text {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.pay-countdown-num {
  font-size: 72px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* Error */
.pay-error-icon,
.pay-success-icon {
  font-size: 48px;
}

.pay-error-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Status spinner */
.status-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
}

@keyframes spinnerRotate {
  to {
    transform: rotate(360deg);
  }
}

/* Success */
.pay-success-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.pay-sub-url-wrap {
  width: 100%;
  display: flex;
  gap: 8px;
}

.pay-sub-url {
  flex: 1;
  font-size: 13px;
}

.pay-copy-btn {
  white-space: nowrap;
  padding: 12px 20px;
  font-size: 14px;
}

.pay-instructions {
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pay-instructions h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.pay-instructions ol {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.pay-instructions b {
  color: var(--cyan);
}

/* Mobile fix for modals */
@media (max-width: 480px) {
  .pay-modal {
    padding: 24px 18px;
  }

  .pay-sub-url-wrap {
    flex-direction: column;
  }
}