/* =========================================================
   Salvara VPN — design tokens
   Deep night-indigo canvas, Persian-turquoise accent (Persian
   tilework nod), dawn-gold CTA. Vazirmatn for both languages.
   ========================================================= */
:root{
  --bg:            #12163a;
  --bg-soft:       #181d4d;
  --bg-card:       #1b2158;
  --line:          rgba(23,182,196,0.16);
  --line-strong:   rgba(23,182,196,0.32);
  --text:          #eef1fb;
  --text-muted:    #9aa3d0;
  --text-faint:    #6b73a3;
  --accent:        #17b6c4;
  --accent-soft:   rgba(23,182,196,0.12);
  --gold:          #f0a93a;
  --gold-soft:     rgba(240,169,58,0.14);

  --font-body: "Vazirmatn", system-ui, sans-serif;
  --wrap: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html[dir="ltr"] body{ font-family: "Vazirmatn", system-ui, sans-serif; }

a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,p{ margin: 0; }
img,svg{ display: block; max-width: 100%; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* subtle grain overlay for texture, purely decorative */
.grain{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18,22,58,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-inline-end: auto;
}
.brand-mark{ color: var(--accent); display: flex; }

.main-nav{
  display: flex;
  gap: 28px;
  font-size: 0.94rem;
  color: var(--text-muted);
}
.main-nav a:hover{ color: var(--accent); }

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

.lang-toggle{
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.lang-toggle:hover{ border-color: var(--accent); color: var(--accent); }

.nav-burger{ display: none; }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 0.96rem;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-cta{
  background: var(--gold);
  color: #1b1406;
  box-shadow: 0 8px 24px -8px rgba(240,169,58,0.55);
}
.btn-cta:hover{ transform: translateY(-1px); box-shadow: 0 10px 28px -6px rgba(240,169,58,0.65); }

.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); }

.btn-small{ padding: 9px 18px; font-size: 0.85rem; }
.btn-large{ padding: 16px 34px; font-size: 1.02rem; }

/* =========================================================
   Hero + signature horizon-line motif
   ========================================================= */
.hero{
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 340px at 50% 18%, rgba(23,182,196,0.10), transparent 70%);
  pointer-events: none;
}
.hero-inner{
  position: relative;
  text-align: center;
  max-width: 780px;
}
.eyebrow{
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

.hero-headline{
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.28;
}
.hero-line{ display: block; }
.hero-line-above{ color: var(--text-muted); }
.hero-line-below{
  background: linear-gradient(90deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* the horizon: a thin gradient line with a rising "sun" disc where the
   headline breaks — dawn breaking across the sentence, not a shield/lock */
.horizon-rule{
  position: relative;
  display: block;
  height: 34px;
  margin: 6px 0;
}
.horizon-track{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 640px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line-strong) 18%, var(--gold) 50%, var(--line-strong) 82%, transparent 100%);
}
.horizon-sun{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px var(--gold-soft), 0 0 34px 6px rgba(240,169,58,0.45);
}

.hero-sub{
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 1.06rem;
  max-width: 620px;
  margin-inline: auto;
}
.hero-actions{
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-note{
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* =========================================================
   Section scaffolding
   ========================================================= */
section{ padding: 84px 0; position: relative; }
.section-title{
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 800;
  text-align: center;
}
.section-sub{
  text-align: center;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 560px;
  margin-inline: auto;
}

/* =========================================================
   Why grid
   ========================================================= */
.why{ background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-grid{
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.why-card{
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: border-color .15s, transform .15s;
}
.why-card:hover{ border-color: var(--line-strong); transform: translateY(-2px); }
.why-icon{
  color: var(--accent);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.why-card h3{ font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.why-card p{ color: var(--text-muted); font-size: 0.95rem; }

/* =========================================================
   How steps
   ========================================================= */
.how-steps{
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-step{
  padding: 8px 4px;
  border-inline-start: 2px solid var(--line-strong);
  padding-inline-start: 22px;
}
.how-index{
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.how-step h3{ font-size: 1.04rem; font-weight: 700; margin-bottom: 8px; }
.how-step p{ color: var(--text-muted); font-size: 0.94rem; }

/* =========================================================
   Pricing
   ========================================================= */
.pricing{ background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing-table-wrap{
  margin-top: 44px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-card);
}
.pricing-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
  min-width: 420px;
}
.pricing-table th{
  text-align: start;
  color: var(--text-faint);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.pricing-table td{
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.pricing-table tr:last-child td{ border-bottom: none; }
.pricing-table td:first-child{ font-weight: 700; }
.pricing-table tbody tr:hover{ background: var(--accent-soft); }

.pricing-footnote{
  margin-top: 22px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.86rem;
}
.pricing-footnote p{ margin: 4px 0; }
.pricing-cta{ margin-top: 32px; text-align: center; }

/* =========================================================
   Support
   ========================================================= */
.support-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.support-copy{ max-width: 480px; }
.support-copy .section-title{ text-align: start; }
.support-copy p{ color: var(--text-muted); margin-top: 14px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.86rem;
}
.footer-inner a:hover{ color: var(--accent); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px){
  .main-nav{ display: none; }
  .why-grid{ grid-template-columns: 1fr; }
  .how-steps{ grid-template-columns: 1fr; }
  .support-inner{ flex-direction: column; align-items: flex-start; text-align: start; }
}

@media (max-width: 520px){
  .header-actions .btn-small{ display: none; }
  .hero{ padding: 64px 0 56px; }
  section{ padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto !important; }
}
