/* ===== FastVisor VPN — marketing site (custom CSS, layered on Tailwind CDN) ===== */

@font-face {
  font-family: 'Lufga';
  src: url('../fonts/Lufga-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lufga';
  src: url('../fonts/Lufga-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lufga';
  src: url('../fonts/Lufga-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lufga';
  src: url('../fonts/Lufga-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lufga';
  src: url('../fonts/Lufga-ExtraBold.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --ink: #102033;
  --snow: #F7F9FC;
  --midnight: #08111F;
  --midnight-2: #0E1B30;
  --cloud: #E6ECF4;
  --calm: #2E6AF3;
  --calm-soft: #E7EEFF;
  --calm-light: #8FB2FF;
  --mint: #11967F;
  --amber: #E7A534;
  --coral: #D66A59;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.06);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lufga', system-ui, -apple-system, sans-serif;
  background: var(--midnight);
  color: #E8EEF7;
  overflow-x: hidden;
}

[dir="rtl"] body { font-family: 'Lufga', 'Tajawal', system-ui, sans-serif; }

/* ===== Animated background ===== */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(46,106,243,0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 30%, rgba(143,178,255,0.15), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(17,150,127,0.12), transparent 60%),
    var(--midnight);
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  animation: orb-drift 18s ease-in-out infinite alternate;
}
.orb-a { width: 420px; height: 420px; background: #2E6AF3; top: -120px; left: -120px; }
.orb-b { width: 360px; height: 360px; background: #8FB2FF; top: 30%; right: -120px; animation-delay: -6s; }
.orb-c { width: 320px; height: 320px; background: #11967F; bottom: -120px; left: 40%; animation-delay: -12s; }

@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.96); }
}

/* ===== Typography helpers ===== */
.font-display { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #8FB2FF 60%, #2E6AF3 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.gradient-accent {
  background: linear-gradient(135deg, #2E6AF3 0%, #8FB2FF 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  color: #BFD0EE;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-weight: 600;
  border-radius: 999px;
  background: linear-gradient(135deg, #2E6AF3 0%, #4F86FF 100%);
  color: #FFFFFF;
  box-shadow:
    0 12px 32px -8px rgba(46,106,243,0.55),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 40px -8px rgba(46,106,243,0.7), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 25px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  color: #E8EEF7;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }

.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px;
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(0,0,0,0.6); }
.btn-store svg { width: 24px; height: 24px; flex-shrink: 0; }
.btn-store .l1 { font-size: 11px; opacity: 0.65; line-height: 1; }
.btn-store .l2 { font-size: 16px; line-height: 1.2; }

/* ===== Glass card ===== */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass:hover {
  transform: translateY(-4px);
  border-color: rgba(143,178,255,0.35);
  box-shadow: 0 24px 60px -20px rgba(46,106,243,0.4);
}

.glass-strong {
  background: linear-gradient(180deg, rgba(46,106,243,0.12) 0%, rgba(8,17,31,0.4) 100%);
  border: 1px solid rgba(143,178,255,0.25);
  border-radius: 28px;
  backdrop-filter: blur(20px);
}

/* ===== Nav ===== */
.nav-wrap {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 50;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(8, 17, 31, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(20px);
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #BFD0EE;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { color: #FFFFFF; background: var(--glass-strong); }

.lang-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lang-trigger:hover { background: var(--glass-strong); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  min-width: 180px;
  background: rgba(14, 27, 48, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 50px -12px rgba(0,0,0,0.6);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lang-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  color: #E8EEF7;
  text-align: left;
  transition: background 0.15s ease;
}
[dir="rtl"] .lang-menu button { text-align: right; }
.lang-menu button:hover { background: var(--glass-strong); }
.lang-menu button.active { background: rgba(46,106,243,0.2); color: #FFFFFF; }

/* ===== Hero globe ===== */
.globe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 560px;
  margin: 0 auto;
}
.globe-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(143,178,255,0.18);
  border-radius: 50%;
  animation: spin 24s linear infinite;
}
.globe-ring.r2 { inset: 8%; animation-duration: 18s; animation-direction: reverse; border-color: rgba(143,178,255,0.25); }
.globe-ring.r3 { inset: 16%; animation-duration: 30s; border-color: rgba(143,178,255,0.18); }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.globe-core {
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4F86FF 0%, #2E6AF3 40%, #102033 100%);
  box-shadow:
    0 30px 80px -20px rgba(46,106,243,0.6),
    inset -10px -20px 60px rgba(8,17,31,0.7);
  overflow: hidden;
}
.globe-core::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 12px, rgba(255,255,255,0.08) 12px, rgba(255,255,255,0.08) 13px),
    repeating-linear-gradient(0deg, transparent 0, transparent 12px, rgba(255,255,255,0.08) 12px, rgba(255,255,255,0.08) 13px);
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
          mask-image: radial-gradient(circle, black 60%, transparent 100%);
  animation: globe-rotate 30s linear infinite;
}
@keyframes globe-rotate {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 400px 0, 0 0; }
}

.connection-dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(17,150,127,0.25), 0 0 20px var(--mint);
  animation: pulse-marker 2.4s ease-out infinite;
}
@keyframes pulse-marker {
  0%   { transform: scale(1); box-shadow: 0 0 0 4px rgba(17,150,127,0.25), 0 0 20px var(--mint); }
  50%  { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(17,150,127,0.0), 0 0 30px var(--mint); }
  100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(17,150,127,0.25), 0 0 20px var(--mint); }
}

/* ===== Feature card ===== */
.feature-card {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(143,178,255,0.4), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature-card:hover { transform: translateY(-6px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(46,106,243,0.18) 0%, rgba(143,178,255,0.08) 100%);
  border: 1px solid rgba(143,178,255,0.25);
  margin-bottom: 18px;
}
.feature-icon svg { width: 28px; height: 28px; stroke: #8FB2FF; }

/* ===== Step card ===== */
.step {
  position: relative;
  padding: 32px 24px;
  text-align: center;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2E6AF3 0%, #8FB2FF 100%);
  font-size: 22px; font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 18px;
  box-shadow: 0 16px 32px -8px rgba(46,106,243,0.55);
}

/* ===== Pricing ===== */
.price-card {
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(143,178,255,0.35); }
.price-card.featured {
  background: linear-gradient(180deg, rgba(46,106,243,0.18) 0%, rgba(8,17,31,0.4) 100%);
  border: 1px solid rgba(143,178,255,0.45);
  box-shadow: 0 30px 60px -20px rgba(46,106,243,0.45);
  transform: translateY(-8px);
}
.price-card.featured:hover { transform: translateY(-12px); }
.price-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  background: linear-gradient(135deg, #2E6AF3 0%, #8FB2FF 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 24px -4px rgba(46,106,243,0.6);
  animation: badge-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}
.price-amount {
  font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.03em;
}
.price-amount .cents { font-size: 24px; vertical-align: super; letter-spacing: 0; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 22px 0;
  font-size: 17px; font-weight: 600;
  color: #FFFFFF;
  text-align: start;
  cursor: pointer;
}
.faq-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, background 0.3s ease;
}
[dir="rtl"] .faq-icon { transform: scaleX(-1); }
.faq-item.open .faq-icon { transform: rotate(45deg); background: linear-gradient(135deg, #2E6AF3 0%, #8FB2FF 100%); border-color: transparent; }
[dir="rtl"] .faq-item.open .faq-icon { transform: scaleX(-1) rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding-bottom: 22px; color: #BFD0EE; line-height: 1.65; }

/* ===== Marquee ===== */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.flag-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}
.flag-emoji { font-size: 22px; line-height: 1; }

/* ===== Stat counter ===== */
.stat-num { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
@media (min-width: 768px) { .stat-num { font-size: 64px; } }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--border); }
footer a { color: #BFD0EE; transition: color 0.2s ease; }
footer a:hover { color: #FFFFFF; }

/* ===== AOS fallback ===== */
[data-aos]:not(.aos-init) { opacity: 0; }

/* ===== Responsive nav ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ===== Connection arcs SVG ===== */
.arc-svg { position: absolute; inset: 0; pointer-events: none; }
.arc-path {
  fill: none;
  stroke: url(#arcGradient);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
  animation: arc-flow 3s linear infinite;
}
@keyframes arc-flow { to { stroke-dashoffset: -56; } }

/* ===== Section spacing ===== */
.section { padding: 96px 0; position: relative; }
@media (max-width: 768px) { .section { padding: 72px 0; } }

/* ===== Reveal helpers ===== */
.glow-text { text-shadow: 0 0 40px rgba(143,178,255,0.4); }
