@charset "UTF-8";

/* ===================================================
   V2rayFree1 — "Violet Signal" Theme
   =================================================== */

/* فونت‌ها از طریق <link> در index.html لود می‌شوند (سریع‌تر از @import) */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Base */
  --bg: #f7f8fc;
  --bg-soft: #f0f1f8;
  --surface: #ffffff;
  --border: #e8eaf2;
  --border-strong: #d9dcec;

  --ink: #161b33;
  --ink-soft: #4a5267;
  --ink-mute: #6b7286;

  /* Primary — violet (brand) */
  --primary: #6c5ce7;
  --primary-2: #8e7cff;
  --primary-gradient: linear-gradient(135deg, #6c5ce7 0%, #8e7cff 100%);
  --primary-soft: #efedff;

  /* Accent — mint (secure / online / free) */
  --accent: #1fcb9a;
  --accent-2: #6fe8c6;
  --accent-gradient: linear-gradient(135deg, #1fcb9a 0%, #6fe8c6 100%);
  --accent-soft: #e3fbf2;

  /* Warm — amber/coral (CTA pop) */
  --warm: #ff7a45;
  --warm-2: #ffb020;
  --warm-gradient: linear-gradient(135deg, #ff7a45 0%, #ffb020 100%);
  --warm-soft: #fff3e8;

  --star: #ffb020;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(22,27,51,.05);
  --shadow: 0 12px 30px rgba(22,27,51,.07);
  --shadow-lg: 0 28px 60px rgba(22,27,51,.10);
  --shadow-primary: 0 18px 40px -14px rgba(108,92,231,.40);
  --shadow-accent: 0 18px 40px -14px rgba(31,203,154,.35);
  --shadow-warm: 0 18px 40px -14px rgba(255,122,69,.40);

  --font-alt: 'Manrope', 'Vazirmatn', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(900px 560px at 88% -8%, rgba(108,92,231,.10), transparent 60%),
    radial-gradient(900px 620px at 6% 18%, rgba(31,203,154,.10), transparent 60%),
    radial-gradient(700px 480px at 60% 105%, rgba(255,122,69,.07), transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.8;
  font-size: 16px;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

a { text-decoration: none; }

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

/* فقط برای دسترسی‌پذیری: مخفی‌سازی لیبل‌های فرم بدون حذف از صفحه‌خوان */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Layout helpers ===== */
.container { max-width: 1280px; margin: 0 auto; }
.section { padding: 5.5rem 2rem; }
.section-light { background: var(--bg-soft); }

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-alt);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(108,92,231,.18);
  padding: .5rem 1.25rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(247,248,252,.7);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: all .3s ease;
}

.navbar.scrolled {
  background: rgba(247,248,252,.92);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
}

.logo span:first-child {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-gradient);
  font-size: 1.1rem;
  box-shadow: var(--shadow-primary);
}

.logo img { width: 40px; height: 40px; }

.nav-links {
  display: flex;
  gap: 2.1rem;
  list-style: none;
}

.nav-link {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 1.02rem;
  transition: color .25s ease;
  position: relative;
  padding: .5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--primary-gradient);
  transition: width .3s ease;
}

.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }

.nav-link.nav-cta {
  color: #fff;
  background: var(--primary-gradient);
  padding: .55rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-primary);
}
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover { color: #fff; filter: brightness(1.06); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.mobile-toggle span {
  width: 26px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 2rem 4rem;
  position: relative;
}

.hero-container { max-width: 1280px; margin: 0 auto; width: 100%; }

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.6rem;
  font-weight: 900;
  margin-bottom: 1.4rem;
  line-height: 1.25;
}

.hero-text h1 .highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
  margin-bottom: 2.25rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}

.feature-item:nth-child(1) .feature-icon { background: var(--primary-gradient); box-shadow: var(--shadow-primary); }
.feature-item:nth-child(2) .feature-icon { background: var(--accent-gradient); box-shadow: var(--shadow-accent); }
.feature-item:nth-child(3) .feature-icon { background: var(--warm-gradient); box-shadow: var(--shadow-warm); }
.feature-item:nth-child(4) .feature-icon { background: var(--primary-gradient); box-shadow: var(--shadow-primary); }

.cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.btn-primary {
  position: relative;
  background: var(--primary-gradient);
  color: #fff;
  padding: 1.05rem 2.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  box-shadow: var(--shadow-primary);
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px -14px rgba(108,92,231,.5);
}
.btn-primary:hover::before { transform: translateX(100%); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  padding: 1rem 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  transition: all .3s ease;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Quick link pills */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.btn-play-free {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .92rem;
  padding: .65rem 1.15rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
}

.btn-play-free:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

/* ===== Signature element: phone app mockup ===== */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 6%;
  background: var(--primary-gradient);
  filter: blur(90px);
  opacity: .18;
  border-radius: 50%;
  z-index: -1;
}

.phone-mock { position: relative; }

.phone-frame {
  width: 290px;
  background: linear-gradient(160deg, #20253f 0%, #11131f 100%);
  border-radius: 42px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}

.phone-notch {
  width: 90px; height: 22px;
  background: #11131f;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: linear-gradient(165deg, var(--primary-soft) 0%, #ffffff 55%);
  border-radius: 30px;
  margin-top: -22px;
  padding: 2.5rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 540px;
}

.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: .95rem;
  color: var(--ink);
}

.app-bar .app-signal { font-size: 1.1rem; }

.app-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.5rem 0;
}

.status-ring {
  width: 132px; height: 132px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  box-shadow: var(--shadow-primary), 0 0 0 10px rgba(108,92,231,.10), 0 0 0 20px rgba(108,92,231,.06);
  position: relative;
}

.status-ring::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(108,92,231,.25);
  animation: pulse-ring 2.4s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(.94); opacity: .8; }
  70% { transform: scale(1.16); opacity: 0; }
  100% { transform: scale(.94); opacity: 0; }
}

.app-status strong { font-size: 1.1rem; color: var(--ink); }
.app-status .timer { font-family: var(--font-alt); color: var(--ink-mute); font-size: .85rem; letter-spacing: .05em; }

.app-server-card {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  box-shadow: var(--shadow-sm);
}

.app-server-card img { width: 26px; height: 26px; border-radius: 50%; }
.app-server-card span:nth-child(2) { flex: 1; font-weight: 700; font-size: .92rem; }
.app-server-card .ping {
  font-family: var(--font-alt);
  font-size: .75rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: .25rem .6rem;
  border-radius: 999px;
}

.app-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}

.app-stats div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  box-shadow: var(--shadow-sm);
}

.app-stats span {
  display: block;
  font-family: var(--font-alt);
  font-weight: 800;
  font-size: .98rem;
  color: var(--ink);
}

.app-stats small { font-size: .72rem; color: var(--ink-mute); }
.app-stats div:first-child span { color: var(--primary); }
.app-stats div:last-child span { color: var(--accent); }

.app-locations {
  display: flex;
  gap: .5rem;
  overflow: hidden;
  margin-top: auto;
}

.app-locations img {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-sm);
}

/* Floating badges around the phone */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .6rem 1.15rem;
  box-shadow: var(--shadow);
  font-family: var(--font-alt);
  font-weight: 800;
  font-size: .85rem;
  color: var(--ink);
  animation: float 5s ease-in-out infinite;
}

.float-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.badge-secure { top: 6%; right: -8%; animation-delay: .5s; }
.badge-uptime { bottom: 14%; left: -10%; animation-delay: 1.5s; }
.badge-locations { top: 42%; left: -14%; animation-delay: 2.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== Trust bar ===== */
.trust-bar {
  padding: 1.75rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.trust-item .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft);
  font-size: 1.1rem;
}

.trust-item:nth-child(2) .ico { background: var(--accent-soft); }
.trust-item:nth-child(3) .ico { background: var(--warm-soft); }
.trust-item:nth-child(5) .ico { background: var(--accent-soft); }
.trust-item:nth-child(6) .ico { background: var(--warm-soft); }

/* ===== Device grid ===== */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.device-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}

.device-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.device-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  background: var(--primary-soft);
  margin-bottom: .5rem;
}

.device-card:nth-child(2) .device-icon { background: var(--accent-soft); }
.device-card:nth-child(3) .device-icon { background: var(--warm-soft); }
.device-card:nth-child(4) .device-icon { background: var(--primary-soft); }

.device-card h3 { font-size: 1.2rem; }
.device-card p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

.device-cta {
  margin-top: .5rem;
  font-weight: 800;
  font-size: .9rem;
  color: var(--primary);
  font-family: var(--font-alt);
}

/* ===== 3D containers ===== */
.features-3d-visual canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  transition: all .35s ease;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp .6s forwards;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 6px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--accent-gradient);
}

.pricing-card:nth-child(3)::before { background: var(--warm-gradient); }

.pricing-card:nth-child(1) { animation-delay: .1s; }
.pricing-card:nth-child(2) { animation-delay: .2s; }
.pricing-card:nth-child(3) { animation-delay: .3s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  background: var(--primary-gradient);
  border-color: transparent;
  transform: scale(1.04);
  box-shadow: var(--shadow-primary);
  color: #fff;
}

.pricing-card.featured::before { display: none; }
.pricing-card.featured:hover { transform: scale(1.04) translateY(-10px); }

.pricing-card.featured::after {
  content: '🔥 محبوب‌ترین';
  position: absolute;
  top: -14px; right: 2rem;
  background: var(--surface);
  color: var(--primary);
  padding: .35rem 1.2rem;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.pricing-card.featured .plan-name,
.pricing-card.featured .plan-price,
.pricing-card.featured .plan-features li { color: #fff; }

.pricing-card.featured .plan-price {
  background: none;
  -webkit-text-fill-color: #fff;
}

.pricing-card.featured .plan-features li { border-bottom-color: rgba(255,255,255,.18); }

.pricing-card.featured .check-icon {
  background: rgba(255,255,255,.22);
  color: #fff;
  box-shadow: none;
}

.pricing-card.featured .btn-primary {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.25);
}
.pricing-card.featured .btn-primary::before { display: none; }
.pricing-card.featured .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 48px -14px rgba(0,0,0,.3); }

.plan-header { text-align: center; margin-bottom: 1.75rem; }

.plan-name {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: .5rem;
}

.plan-price {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

.plan-features { list-style: none; margin: 0 0 1.75rem; }

.plan-features li {
  padding: .85rem 0;
  display: flex; align-items: center; gap: 1rem;
  font-size: 1.05rem;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border: none; }

.check-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #04332a;
  display: flex; justify-content: center; align-items: center;
  font-size: 13px; font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ===== Flags row ===== */
.flags-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2.5rem;
}

.flag-icon {
  width: 52px; height: 52px;
  margin: 0 12px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow);
  transition: all .3s ease;
  cursor: pointer;
  animation: wind 3s ease-in-out infinite;
}

@keyframes wind {
  0%   { transform: rotate(0deg) translateX(0); }
  25%  { transform: rotate(3deg) translateX(2px); }
  50%  { transform: rotate(0deg) translateX(0); }
  75%  { transform: rotate(-3deg) translateX(-2px); }
  100% { transform: rotate(0deg) translateX(0); }
}

.flag-icon:hover {
  transform: scale(1.2);
  box-shadow: var(--shadow-primary);
  animation: none;
}

/* ===== Features 3D ===== */
.features-3d { position: relative; }

.features-3d-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.features-3d-visual {
  height: 520px;
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(108,92,231,.10), transparent 70%),
    var(--bg-soft);
  border: 1px solid var(--border);
}

.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.6rem 1.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card h3::before {
  content: '';
  display: inline-block;
  width: 34px; height: 34px;
  border-radius: 9px;
  margin-bottom: .8rem;
  background: var(--primary-gradient);
}

.feature-card:nth-child(2) h3::before,
.feature-card:nth-child(5) h3::before { background: var(--accent-gradient); }

.feature-card:nth-child(3) h3::before,
.feature-card:nth-child(6) h3::before { background: var(--warm-gradient); }

.feature-card h3 {
  display: flex;
  flex-direction: column;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.feature-card:hover, .feature-card.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
  transform: translateY(-6px);
}

.feature-card p { font-size: .98rem; margin: 0; }

/* ===== Stats ===== */
.stats {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(108,92,231,.10), transparent 60%),
    radial-gradient(600px 400px at 5% 100%, rgba(31,203,154,.10), transparent 60%),
    var(--bg-soft);
  padding: 4.5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: .4rem;
  font-family: var(--font-alt);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item:nth-child(2) h3, .stat-item:nth-child(2) h3 span { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-item:nth-child(3) h3, .stat-item:nth-child(3) h3 span { background: var(--warm-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.stat-item p { font-size: 1.1rem; color: var(--ink-soft); font-weight: 600; }

/* ===== Tutorial ===== */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tutorial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all .3s ease;
  box-shadow: var(--shadow-sm);
}

.tutorial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.tutorial-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .6rem;
}

.tutorial-card h3 span:first-child {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft);
  font-size: 1.2rem;
}

.tutorial-card:nth-child(2) h3 span:first-child { background: var(--accent-soft); }
.tutorial-card:nth-child(3) h3 span:first-child { background: var(--warm-soft); }

.tutorial-card ul { list-style: none; }

.tutorial-card li {
  padding: .65rem 0;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
  font-size: .98rem;
}
.tutorial-card li:last-child { border: none; }

.download-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .8rem 1.6rem;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  box-shadow: var(--shadow-primary);
  transition: all .3s ease;
}

.download-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -14px rgba(108,92,231,.5);
}

/* ===== FAQ ===== */
.faq-container { max-width: 900px; margin: 0 auto; }

.accordion {
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  padding: 1.4rem 1.8rem;
  width: 100%;
  border: 1px solid var(--border);
  border-right: 4px solid var(--border);
  text-align: right;
  outline: none;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  transition: all .25s ease;
  margin-bottom: .6rem;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.accordion:hover { border-right-color: var(--primary-2); }

.accordion.active {
  border-right-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

.accordion::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink-mute);
  transition: transform .3s ease;
  flex-shrink: 0;
  margin-right: 1rem;
}
.accordion.active::after { content: '−'; transform: rotate(180deg); color: var(--primary); }

.panel {
  padding: 0 1.8rem;
  background: var(--surface);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin-bottom: .9rem;
  margin-top: -.6rem;
}

.panel.show { padding: 1.6rem 1.8rem; max-height: 500px; }

.panel p { color: var(--ink-soft); }
.panel ul { list-style: none; margin: 1rem 0; }
.panel ul li { padding: .4rem 0; }
.panel a { color: var(--primary); font-weight: 700; }
.panel a:hover { text-decoration: underline; }

/* ===== Article ===== */
.article-content { color: var(--ink-soft); }
.article-content h3 {
  font-size: 1.4rem;
  margin: 1.75rem 0 .75rem;
  color: var(--ink);
}
.article-content h3:first-child { margin-top: 0; }
.article-content p, .article-content li { color: var(--ink-soft); }
.article-content strong { color: var(--ink); }
.article-content ul { list-style: none; margin: .75rem 0; }
.article-content li {
  padding: .5rem 0 .5rem 1.4rem;
  position: relative;
}
.article-content li::before {
  content: '◆';
  position: absolute;
  right: 0;
  color: var(--primary);
  font-size: .7rem;
  top: .9rem;
}

/* ===== Support ===== */
.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  transition: all .3s ease;
  box-shadow: var(--shadow-sm);
}

.support-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.support-icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.5rem;
  background: var(--accent-soft);
}

.support-cards .support-card:nth-child(2) .support-icon { background: var(--primary-soft); }

.support-card h3 { font-size: 1.7rem; margin-bottom: 1rem; }
.support-card p { margin-bottom: 2rem; }

/* ===== Testimonials ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all .3s ease;
  box-shadow: var(--shadow-sm);
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.review-card-head {
  display: flex; align-items: center; gap: .9rem;
  margin-bottom: .9rem;
}

.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
  flex-shrink: 0;
}

.review-card:nth-child(3n-1) .review-avatar { background: var(--accent-gradient); }
.review-card:nth-child(3n) .review-avatar { background: var(--warm-gradient); }

.review-meta strong { display: block; font-size: 1.02rem; color: var(--ink); margin-bottom: .2rem; }

.stars { display: flex; gap: 2px; }
.star { color: var(--star); font-size: .95rem; line-height: 1; }
.star.empty { color: var(--border-strong); }

.review-card p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* ===== Review form ===== */
.review-form-card {
  max-width: 600px;
  margin: 3rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.review-form-card h3 { font-size: 1.4rem; margin-bottom: 1.5rem; text-align: center; }

.form-group { margin-bottom: 1.2rem; }

.form-input {
  width: 100%;
  padding: .95rem 1.3rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-soft);
  color: var(--ink);
  transition: all .3s ease;
}

.form-input::placeholder { color: var(--ink-mute); }

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-textarea { height: 120px; resize: vertical; line-height: 1.7; }

.form-button {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: all .3s ease;
}

.form-button:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -14px rgba(108,92,231,.5); }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 3.5rem 2rem 6.5rem;
  text-align: center;
}

.footer-links {
  display: flex; justify-content: center; gap: 2rem;
  margin-bottom: 2rem; flex-wrap: wrap;
}

.footer-link { color: rgba(255,255,255,.75); font-size: 1.05rem; font-weight: 500; transition: color .3s; }
.footer-link:hover { color: #fff; }

.social-footer {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 40px; padding: 25px 0;
}

.social-item { display: flex; flex-direction: column; align-items: center; }

.social-item img {
  width: 38px; height: 38px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  transition: .3s;
}

.social-item img:hover {
  transform: translateY(-3px) scale(1.08);
  background: rgba(255,255,255,.16);
}

.social-item span { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.7); font-weight: 500; }

.footer p.copyright { color: rgba(255,255,255,.45); font-size: .9rem; }

/* ===== Popup ===== */
.popup {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: 4px solid var(--accent);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  max-width: 380px;
  display: none;
  animation: slideIn .5s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.popup-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; }
.popup-title { font-size: 1.1rem; font-weight: 700; color: var(--ink); }

.popup-close {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .3s ease;
  font-size: 1.1rem;
}

.popup-close:hover { transform: rotate(90deg); border-color: var(--accent); color: var(--accent); }
.popup p { font-size: .95rem; color: var(--ink-soft); }

/* ===== Scroll to top ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem; left: 2rem;
  width: 54px; height: 54px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: all .3s ease;
  box-shadow: var(--shadow-primary);
  color: #fff;
  font-size: 1.4rem;
  z-index: 998;
}

.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -14px rgba(108,92,231,.5); }

/* ===== Mobile sticky CTA bar ===== */
.mobile-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: none;
  gap: .75rem;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: 0 -8px 24px rgba(22,27,51,.06);
  z-index: 1001;
}

.mobile-cta-bar a {
  flex: 1;
  text-align: center;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
}

.mobile-cta-bar .cta-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.mobile-cta-bar .cta-secondary {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  color: var(--ink);
}

/* ===== Fade-in ===== */
.fade-in { animation: fadeIn .6s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 1024px) {
  .hero-text h1 { font-size: 3rem; }
  .features-3d-container { grid-template-columns: 1fr; }
  .features-3d-visual { height: 380px; order: -1; }
  .features-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 76px; right: -100%;
    width: 100%; height: calc(100vh - 76px);
    background: rgba(247,248,252,.98);
    backdrop-filter: blur(18px);
    flex-direction: column;
    padding: 2.5rem;
    gap: 1.75rem;
  }
  .nav-links.active { right: 0; }
  .mobile-toggle { display: flex; }

  .hero { padding: 7rem 1.25rem 3rem; min-height: auto; }
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-text h1 { font-size: 2.3rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-features { grid-template-columns: 1fr; }
  .cta-group { justify-content: center; flex-wrap: wrap; }
  .quick-links { justify-content: center; }

  .hero-visual { min-height: 480px; }
  .phone-frame { width: 250px; }
  .phone-screen { min-height: 470px; padding: 2.2rem 1rem 1.25rem; }
  .status-ring { width: 110px; height: 110px; font-size: 2rem; }
  .float-badge { font-size: .75rem; padding: .5rem .9rem; }
  .badge-secure { top: 4%; right: -2%; }
  .badge-uptime { bottom: 10%; left: -4%; }
  .badge-locations { display: none; }

  .trust-row { gap: 1.25rem; justify-content: flex-start; overflow-x: auto; padding-bottom: .25rem; }

  .section { padding: 3.5rem 1.25rem; }
  .section-title { font-size: 2.1rem; }
  .section-description { font-size: 1.05rem; }

  .pricing-grid, .support-cards, .tutorial-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: scale(1); }
  .pricing-card.featured:hover { transform: translateY(-10px); }

  .features-3d-visual { height: 280px; }

  .popup { right: 1rem; left: 1rem; bottom: 5.5rem; max-width: none; }
  .scroll-top { bottom: 5.5rem; left: 1rem; width: 48px; height: 48px; font-size: 1.2rem; }

  body { padding-bottom: 68px; }
  .mobile-cta-bar { display: flex; }
}

@media (max-width: 420px) {
  .hero-text h1 { font-size: 1.95rem; }
  .phone-frame { width: 100%; max-width: 280px; }
}