/* Star VPN — cosmic theme — unique stylesheet */

:root {
  --primary: #2E1065;
  --primary-2: #4C1D95;
  --primary-3: #7C3AED;
  --accent: #C4B5FD;
  --accent-2: #A78BFA;
  --bg: #050214;
  --bg-alt: #0A0420;
  --bg-card: rgba(28, 16, 52, .6);
  --bg-card-hover: rgba(40, 24, 76, .75);
  --text: #E0E0FF;
  --text-muted: #94A3B8;
  --border: rgba(196, 181, 253, .14);
  --border-strong: rgba(196, 181, 253, .28);
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --shadow-glow: 0 18px 60px -20px rgba(124, 58, 237, .55);
  --grad-primary: linear-gradient(135deg, #4C1D95 0%, #7C3AED 50%, #C4B5FD 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, .9), rgba(196, 181, 253, .85));
  --font-h: 'Sora', system-ui, sans-serif;
  --font-b: 'Wix Madefor Display', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(124, 58, 237, .18), transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(196, 181, 253, .10), transparent 50%);
}

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

a { color: var(--accent); text-decoration: none; transition: color .25s ease; }
a:hover { color: #ffffff; }

h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.015em;
  color: #ffffff;
}

h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }

p { color: var(--text); }

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

/* HEADER — dark sticky */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 2, 20, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
}

.logo img { width: 38px; height: 38px; }

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

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  transition: color .2s ease;
}

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

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

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

.nav-links a.nav-cta {
  color: #000000;
  font-weight: 800;
  background: var(--grad-primary);
  padding: 11px 22px;
  border-radius: 50px;
  box-shadow: var(--shadow-glow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.nav-links a.nav-cta:hover {
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 22px 70px -18px rgba(124, 58, 237, .8);
}

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

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 18px;
  z-index: 99;
}

.mobile-nav.active { display: flex; }
.mobile-nav a { color: var(--text); font-weight: 500; }
.mobile-nav a.nav-cta {
  color: #000000;
  font-weight: 800;
  background: var(--grad-primary);
  padding: 12px 18px;
  border-radius: 50px;
  text-align: center;
}

/* HERO — animated mesh gradient + stars */
.hero {
  position: relative;
  padding: 120px 0 110px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(124, 58, 237, .55), transparent 60%),
    radial-gradient(35% 45% at 80% 25%, rgba(196, 181, 253, .35), transparent 60%),
    radial-gradient(50% 55% at 50% 90%, rgba(76, 29, 149, .65), transparent 65%),
    radial-gradient(30% 35% at 90% 80%, rgba(167, 139, 250, .25), transparent 60%);
  filter: blur(40px);
  animation: mesh-drift 22s ease-in-out infinite alternate;
  z-index: -2;
}

@keyframes mesh-drift {
  0%   { transform: translate(0, 0) rotate(0); }
  50%  { transform: translate(2%, -2%) rotate(2deg); }
  100% { transform: translate(-2%, 2%) rotate(-2deg); }
}

.stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #ffffff, transparent 60%),
    radial-gradient(1.5px 1.5px at 28% 72%, #C4B5FD, transparent 60%),
    radial-gradient(1px 1px at 47% 35%, #ffffff, transparent 60%),
    radial-gradient(2px 2px at 62% 12%, #C4B5FD, transparent 60%),
    radial-gradient(1px 1px at 78% 58%, #ffffff, transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 22%, #C4B5FD, transparent 60%),
    radial-gradient(1px 1px at 5% 88%, #ffffff, transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 90%, #ffffff, transparent 60%),
    radial-gradient(1px 1px at 70% 80%, #C4B5FD, transparent 60%),
    radial-gradient(2px 2px at 92% 70%, #ffffff, transparent 60%);
  opacity: .8;
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: .4; }
  100% { opacity: .9; }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  background: rgba(196, 181, 253, .12);
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  font-size: .82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 30px;
  backdrop-filter: blur(8px);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 12px #34D399;
}

.hero h1 { margin-bottom: 26px; }

.hero h1 span.gradient {
  background: linear-gradient(120deg, #C4B5FD 0%, #A78BFA 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 22px;
  line-height: 1.7;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  margin: 8px auto 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.price-tag-label { color: var(--text-muted); font-size: .9rem; }
.price-tag-value {
  font-family: var(--font-h);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}
.price-tag-value strong {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #000000;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 80px -18px rgba(124, 58, 237, .85);
  color: #000000;
}

.btn-ghost {
  background: rgba(196, 181, 253, .08);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(196, 181, 253, .18);
  border-color: var(--accent);
  color: #ffffff;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.trust-item {
  padding: 16px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  backdrop-filter: blur(10px);
}

.trust-item-num {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}

.trust-item-label {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* SECTIONS — all dark */
section {
  padding: 96px 0;
  position: relative;
}

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

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

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 14px;
}

/* STATS BAR */
.stats {
  padding: 60px 0;
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

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

.stat-num {
  font-family: var(--font-h);
  font-size: 2.6rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.stat-label {
  color: var(--text-muted);
  font-size: .92rem;
  margin-top: 6px;
}

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

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

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}

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

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

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  border-radius: 14px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 700;
  font-family: var(--font-h);
}

.feature-card p {
  color: var(--text-muted);
  font-size: .95rem;
}

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

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  text-decoration: none;
  color: var(--text);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.platform-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent);
  background: var(--bg-card-hover);
  color: #ffffff;
}

.platform-name {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 14px 0 6px;
  color: #ffffff;
}

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

.platform-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(196, 181, 253, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

/* WHY-STAR — text article */
.why-star {
  background: var(--bg-alt);
}

.prose {
  max-width: 860px;
  margin: 0 auto;
}

.prose p {
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

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

.prose h3 {
  margin: 36px 0 14px;
  color: #ffffff;
}

/* USE CASES */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.usecase {
  display: flex;
  gap: 20px;
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: border-color .3s ease;
}

.usecase:hover { border-color: var(--accent); }

.usecase-num {
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}

.usecase h3 { margin-bottom: 8px; }
.usecase p { color: var(--text-muted); font-size: .95rem; }

/* CTA BANNER */
.cta-banner {
  text-align: center;
  background:
    radial-gradient(circle at 30% 50%, rgba(124, 58, 237, .35), transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(196, 181, 253, .25), transparent 60%),
    var(--bg-alt);
  border-block: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 { margin-bottom: 18px; }
.cta-banner p { color: var(--text-muted); margin-bottom: 30px; max-width: 600px; margin-inline: auto; }

/* FAQ — accordion */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

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

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 1.05rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(196, 181, 253, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform .3s ease, background .3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--grad-primary);
  color: #000000;
}

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

.faq-a-inner {
  padding: 0 26px 24px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* FOOTER — 4 columns dark */
.site-footer {
  background: #03010C;
  border-top: 1px solid var(--border);
  padding: 70px 0 28px;
}

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

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

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

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

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

/* INSTRUKTSIYA-specific */
.steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 820px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 26px;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
}

.step-num {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: var(--shadow-glow);
}

.step h3 { margin-bottom: 12px; font-size: 1.35rem; }
.step p { color: var(--text-muted); margin-bottom: 14px; }

.after-pay {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.after-pay h3 { margin-bottom: 14px; }
.after-pay p { color: var(--text-muted); margin-bottom: 20px; }

/* ANIM — fade-in + scale */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(.96);
  transition: opacity .8s ease, transform .8s ease;
}

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

/* RESPONSIVE */
@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  section { padding: 70px 0; }
  .hero { padding: 80px 0 70px; }
  .features-grid,
  .platforms-grid,
  .usecases-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .step { flex-direction: column; padding: 26px; }
  .stat-num { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; }
}
