/* Hiddify VPN — multi-protocol stealth client landing
   Palette: deep indigo + emerald on dark
   Typography: Be Vietnam Pro (display) + Hanken Grotesk (body)
   Hero: animated mesh gradient with indigo+emerald blobs
   Cards: glassmorphism, fade-in + scale on viewport entry
*/

:root {
  --primary: #4338CA;
  --primary-soft: #6366F1;
  --accent: #10B981;
  --accent-soft: #34D399;
  --bg: #0E0E1F;
  --bg-alt: #16162F;
  --bg-card: rgba(28, 28, 52, 0.7);
  --bg-card-hover: rgba(40, 40, 70, 0.78);
  --text: #E6E5FA;
  --text-muted: #94A3B8;
  --border: rgba(99, 102, 241, 0.18);
  --border-strong: rgba(16, 185, 129, 0.3);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-glow: 0 16px 60px rgba(67, 56, 202, 0.25);
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.45);
  --grad-cta: linear-gradient(135deg, #4338CA 0%, #10B981 100%);
  --grad-cta-hover: linear-gradient(135deg, #5247DC 0%, #14C892 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4, h5 {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.18;
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ============ HEADER (dark sticky) ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(14, 14, 31, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.96rem;
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--accent-soft);
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--grad-cta);
  transition: width 0.25s ease;
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-links a.nav-cta {
  color: #000000;
  font-weight: 800;
  background: var(--grad-cta);
  padding: 11px 22px;
  border-radius: 50px;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a.nav-cta:hover {
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 9px 28px rgba(16, 185, 129, 0.46);
}

.burger {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 18px 22px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

/* ============ BUTTONS (gradient indigo→emerald) ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: 0;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  white-space: nowrap;
  letter-spacing: 0.005em;
}

.btn-primary {
  background: var(--grad-cta);
  color: #000;
  box-shadow: 0 10px 32px rgba(67, 56, 202, 0.36);
}

.btn-primary:hover {
  background: var(--grad-cta-hover);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(16, 185, 129, 0.44);
  color: #000;
}

.btn-ghost {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: var(--accent);
  color: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-large {
  padding: 17px 36px;
  font-size: 1.06rem;
}

/* ============ HERO (mesh gradient) ============ */
.hero {
  position: relative;
  padding: 92px 0 110px;
  overflow: hidden;
  background: var(--bg);
}

.mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.78;
}

.blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 18s ease-in-out infinite alternate;
}

.blob-1 {
  background: #4338CA;
  top: -140px;
  left: -120px;
  animation-delay: 0s;
}

.blob-2 {
  background: #10B981;
  bottom: -160px;
  right: -100px;
  animation-delay: -6s;
}

.blob-3 {
  background: #6366F1;
  top: 30%;
  left: 50%;
  width: 360px;
  height: 360px;
  animation-delay: -12s;
  opacity: 0.65;
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-strong);
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.86rem;
  color: var(--accent-soft);
  font-weight: 600;
  margin-bottom: 26px;
  letter-spacing: 0.02em;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.hero h1 .grad {
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 11px 22px;
  border-radius: 50px;
  font-size: 0.94rem;
  color: var(--text);
  backdrop-filter: blur(10px);
}

.price-tag strong {
  color: var(--accent-soft);
  font-weight: 700;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.price-tag span.dot {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
  margin-top: 38px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ============ STATS ============ */
.stats {
  background: var(--bg-alt);
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}

.stat-item {
  padding: 14px;
}

.stat-num {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

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

/* ============ SECTION COMMON ============ */
.section {
  padding: 100px 0;
  background: var(--bg);
}

.section.alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.04rem;
}

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

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-cta);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.feature:hover::before {
  opacity: 1;
}

.feature-ico {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(67, 56, 202, 0.18);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.5rem;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 800;
  color: var(--accent-soft);
}

.feature h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ============ PLATFORMS ============ */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.platform {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  backdrop-filter: blur(12px);
}

.platform:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  color: var(--text);
}

.platform-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--grad-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 800;
  color: #000;
  font-size: 0.98rem;
  flex-shrink: 0;
}

.platform-text strong {
  display: block;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
}

.platform-text span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ============ WHY (text + side panel) ============ */
.why-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 22px;
}

.why-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1rem;
}

.why-text p strong {
  color: var(--text);
}

.protocols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.protocol {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  backdrop-filter: blur(10px);
}

.protocol strong {
  display: block;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  color: var(--accent-soft);
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.protocol span {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.why-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.why-visual::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.why-visual h3 {
  font-size: 1.32rem;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.why-list {
  list-style: none;
  position: relative;
  z-index: 1;
}

.why-list li {
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.why-list li:last-child {
  border-bottom: 0;
}

.why-list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-cta);
  margin-top: 1px;
  position: relative;
}

.why-list strong {
  color: var(--text);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.why-list span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ============ USE CASES ============ */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.case:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.case-tag {
  display: inline-block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-soft);
  margin-bottom: 14px;
  font-weight: 700;
}

.case h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.case p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ============ CTA banner ============ */
.cta-banner {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.5) 0%, rgba(16, 185, 129, 0.3) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 60px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.4) 0%, transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(16, 185, 129, 0.32) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin-bottom: 14px;
}

.cta-banner p {
  color: var(--text);
  opacity: 0.85;
  margin-bottom: 30px;
  font-size: 1.04rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ FAQ (accordion) ============ */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease;
}

.faq-item.open {
  border-color: var(--border-strong);
}

.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 22px 26px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: color 0.2s ease;
}

.faq-q:hover {
  color: var(--accent-soft);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-soft);
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--grad-cta);
  color: #000;
  border-color: transparent;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-a {
  max-height: 360px;
}

.faq-a p {
  padding: 0 26px 24px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

/* ============ FOOTER (4 cols, dark) ============ */
.footer {
  background: #08081A;
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 16px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.footer-bottom .small {
  margin-top: 6px;
  font-size: 0.78rem;
  opacity: 0.7;
}

/* ============ INSTRUKTSIYA ============ */
.steps {
  display: grid;
  gap: 26px;
  max-width: 880px;
  margin: 0 auto;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 26px;
  align-items: flex-start;
  backdrop-filter: blur(14px);
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad-cta);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.3);
}

.step h3 {
  font-size: 1.34rem;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1rem;
}

.after-pay {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 42px;
  margin-top: 50px;
  backdrop-filter: blur(14px);
}

.after-pay h3 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.after-pay > p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ============ ANIM (fade-in + scale) ============ */
.fade-up {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
  .features-grid,
  .platforms-grid,
  .cases {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .section {
    padding: 70px 0;
  }
  .hero {
    padding: 70px 0 80px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .features-grid,
  .platforms-grid,
  .cases {
    grid-template-columns: 1fr;
  }
  .protocols {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cta-banner {
    padding: 42px 24px;
  }
  .step {
    grid-template-columns: 1fr;
    padding: 26px;
  }
  .step-num {
    margin-bottom: 4px;
  }
  .after-pay {
    padding: 28px;
  }
}
