/* POGO VPN — pogovpn.app. Brand tokens: pogo/logo/POGO_VPN_Kit/04_Color_Tokens. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Arabic";
  src: url("/assets/fonts/noto-sans-arabic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E,
    U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --ink: #171717;
  --ink-2: #202124;
  --yellow: #ffd43b;
  --warm: #ffb82e;
  --light: #fff0a1;
  --on-ink: #f5f5f5;
  --on-ink-muted: #a6a9b2;
  --bg: #ffffff;
  --surface: #f4f5f7;
  --card: #ffffff;
  --text: #171717;
  --muted: #565b64;
  --outline: #d6d8dd;
  --success: #16834a;
  --radius: 22px;
  --wrap: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 1px 2px rgb(23 23 23 / 6%), 0 12px 32px rgb(23 23 23 / 8%);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101113;
    --surface: #17181b;
    --card: #1c1e22;
    --text: #f5f5f5;
    --muted: #a6a9b2;
    --outline: #2e3036;
    --success: #62d68b;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
  }
}

:lang(fa),
:lang(ar) {
  --font: "Noto Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-family: var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(23 23 23 / 88%);
  color: var(--on-ink);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / 6%);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--on-ink);
}

.brand-tile {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-word {
  width: 104px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-inline-start: auto;
  font-size: 15px;
}

.nav a {
  color: var(--on-ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--on-ink);
}

.lang {
  position: relative;
}

.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  color: var(--on-ink);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}

.lang summary::-webkit-details-marker {
  display: none;
}

.lang summary svg {
  width: 16px;
  height: 16px;
}

.lang ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--ink-2);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgb(0 0 0 / 35%);
}

.lang li a {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--on-ink);
  text-decoration: none;
}

.lang li a:hover,
.lang li a[aria-current="true"] {
  background: rgb(255 212 59 / 14%);
}

.lang li a[aria-current="true"]::after {
  content: " ●";
  color: var(--yellow);
  font-size: 10px;
}

/* ---------- buttons & badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.15s, background-color 0.2s, border-color 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.btn {
  white-space: nowrap;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn-yellow:hover {
  background: var(--warm);
}

.btn-ghost {
  border: 1px solid rgb(255 255 255 / 22%);
  color: var(--on-ink);
}

.btn-ghost:hover {
  border-color: var(--yellow);
}

.btn-outline {
  border: 1px solid var(--outline);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text);
}

.play-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
}

.play-badge img {
  height: 58px;
  width: auto;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 212 59 / 14%), transparent 70%);
  z-index: -1;
}

:dir(rtl) .hero::before,
[dir="rtl"] .hero::before {
  inset: -40% auto auto -20%;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding-block: 88px 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(255 212 59 / 12%);
  color: var(--yellow);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(42px, 6.2vw, 72px);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

:lang(fa) h1,
:lang(ar) h1,
:lang(fa) h2,
:lang(ar) h2,
:lang(fa) h3,
:lang(ar) h3 {
  letter-spacing: 0;
  line-height: 1.35;
}

.hop-dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-inline-start: 0.06em;
  border-radius: 50%;
  background: var(--yellow);
  transform-origin: 50% 100%;
  animation: hop 3.4s cubic-bezier(0.3, 0, 0.3, 1) 0.8s infinite;
}

.lead {
  max-width: 34em;
  margin: 22px 0 34px;
  color: var(--on-ink-muted);
  font-size: clamp(18px, 2vw, 20px);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--on-ink-muted);
  font-size: 14.5px;
}

.hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-notes li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.rings,
.rings span {
  position: absolute;
  inset: 0;
  margin: auto;
}

.rings {
  width: 520px;
  height: 520px;
  pointer-events: none;
}

.rings span {
  width: 100%;
  height: 100%;
  border: 1.5px solid rgb(255 212 59 / 40%);
  border-radius: 50%;
  animation: sonar 4.2s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
  opacity: 0;
}

.rings span:nth-child(2) {
  animation-delay: 1.4s;
}

.rings span:nth-child(3) {
  animation-delay: 2.8s;
}

.phone {
  position: relative;
  width: 272px;
  aspect-ratio: 1080 / 2160;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a2b2f, #0c0c0d);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 8%), 0 40px 80px rgb(0 0 0 / 55%);
}

.phone img {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  object-fit: cover;
  object-position: top;
  background: #fff;
}

.hero-tile {
  position: absolute;
  inset-inline-start: calc(50% - 230px);
  bottom: 70px;
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 18px 30px rgb(0 0 0 / 45%));
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hero-tile .tile-dot {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: hop 3.4s cubic-bezier(0.3, 0, 0.3, 1) 1.6s infinite;
}

.hero-tile.is-hopping .tile-dot {
  animation: hop 1.1s cubic-bezier(0.3, 0, 0.3, 1) 1;
}

/* ---------- sections ---------- */

.section {
  padding-block: 104px;
}

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

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

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 30px;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--yellow);
  color: var(--ink);
}

.icon svg {
  width: 26px;
  height: 26px;
}

/* steps */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
}

.step .phone {
  width: min(232px, 100%);
  margin: 0 auto 28px;
  box-shadow: 0 0 0 1px rgb(23 23 23 / 8%), 0 26px 50px rgb(23 23 23 / 18%);
}

.step h3::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-inline-end: 10px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  font-size: 15px;
  vertical-align: 2px;
}

@media (prefers-color-scheme: dark) {
  .step h3::before {
    background: var(--yellow);
    color: var(--ink);
  }
}

.step p {
  max-width: 22em;
  margin: 10px auto 0;
  color: var(--muted);
}

/* trust */

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust .card {
  border-color: transparent;
  background: var(--card);
}

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

.trust a {
  font-weight: 650;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* faq */

.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid var(--outline);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23171717' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.25s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* cta band */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: 84px;
  background: var(--yellow);
  color: var(--ink);
  text-align: center;
}

.cta-band p {
  max-width: 34em;
  margin: 14px auto 30px;
  font-size: 19px;
}

.cta-band .rings span {
  border-color: rgb(23 23 23 / 14%);
}

/* ---------- legal & support pages ---------- */

.page-hero {
  background: var(--ink);
  color: var(--on-ink);
}

.page-hero .wrap {
  max-width: 860px;
  padding-block: 64px 56px;
}

.crumbs {
  margin-bottom: 14px;
  color: var(--on-ink-muted);
  font-size: 14px;
}

.crumbs a {
  color: var(--on-ink-muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--yellow);
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.page-hero .updated {
  margin: 14px 0 0;
  color: var(--on-ink-muted);
  font-size: 15px;
}

.legal {
  max-width: 900px;
  margin-inline: auto;
  padding: 56px 20px 96px;
}

.legal h2 {
  margin: 44px 0 12px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  color: var(--text);
}

.legal ul {
  padding-inline-start: 1.3em;
}

.legal li::marker {
  color: var(--warm);
}

.legal a {
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.toc {
  margin: 0 0 8px;
  padding: 18px 22px;
  border: 1px solid var(--outline);
  border-radius: 16px;
  background: var(--surface);
  font-size: 15px;
}

.toc strong {
  display: block;
  margin-bottom: 6px;
}

.toc ol {
  margin: 0;
  padding-inline-start: 1.2em;
  columns: 2;
  column-gap: 32px;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
}

.support-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  margin-bottom: 30px;
}

.mail-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-ink);
}

.mail-card .mail {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 750;
  color: var(--yellow);
  text-decoration: none;
  word-break: break-all;
}

.mail-card .mail:hover {
  text-decoration: underline;
}

.mail-card p {
  margin: 0;
  color: var(--on-ink-muted);
}

.mail-card .btn {
  align-self: flex-start;
  margin-top: 6px;
}

.checklist {
  padding: 30px;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
}

.checklist ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-inline-start: 30px;
  margin-top: 10px;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--yellow);
}

.notice {
  margin-top: 40px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--surface);
}

.notice h2 {
  margin-top: 0;
}

/* ---------- status pages (telegram, instagram, 404, gateway) ---------- */

.status {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 40px 20px;
  background: var(--ink);
  color: var(--on-ink);
  text-align: center;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.status .rings {
  z-index: -1;
}

.status-card {
  max-width: 540px;
}

.status-tile {
  width: 112px;
  height: 112px;
  margin: 0 auto 30px;
}

.status h1 {
  font-size: clamp(34px, 6vw, 50px);
}

.status p {
  margin: 16px auto 30px;
  color: var(--on-ink-muted);
  font-size: 18px;
}

.status .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.status .mailto {
  color: var(--yellow);
  font-weight: 650;
}

.lang-pick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.fell .tile-dot {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: fall 2.6s cubic-bezier(0.5, 0, 0.5, 1) 0.6s infinite;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  font-size: 15px;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-block: 56px 28px;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--on-ink);
  font-size: 15px;
  letter-spacing: 0;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--yellow);
}

.site-footer .about {
  margin: 14px 0 0;
  max-width: 26em;
}

.legal-line {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  font-size: 13px;
}

/* ---------- motion ---------- */

@keyframes hop {
  0%,
  100% {
    transform: translateY(0) scale(1, 1);
  }
  6% {
    transform: translateY(0) scale(1.22, 0.74);
  }
  14% {
    transform: translateY(-80%) scale(0.86, 1.22);
  }
  26% {
    transform: translateY(-230%) scale(1, 1);
  }
  38% {
    transform: translateY(-80%) scale(0.88, 1.18);
  }
  44% {
    transform: translateY(0) scale(1.28, 0.7);
  }
  52% {
    transform: translateY(-60%) scale(1, 1);
  }
  58% {
    transform: translateY(0) scale(1.1, 0.9);
  }
  64% {
    transform: translateY(0) scale(1, 1);
  }
}

@keyframes sonar {
  0% {
    transform: scale(0.35);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes fall {
  0%,
  20% {
    transform: translate(0, 0) rotate(0);
  }
  45% {
    transform: translate(40%, 260%) rotate(40deg);
  }
  55% {
    transform: translate(60%, 210%) rotate(70deg);
  }
  70%,
  100% {
    transform: translate(70%, 260%) rotate(90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .rings span:first-child {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-block: 64px 40px;
    text-align: center;
  }
  .lead {
    margin-inline: auto;
  }
  .hero-cta,
  .hero-notes {
    justify-content: center;
  }
  .hero-visual {
    min-height: 500px;
  }
  .features,
  .trust {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer .wrap {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer .wrap > div:first-child {
    grid-column: 1 / -1;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav a:not(.nav-keep) {
    display: none;
  }
  .section {
    padding-block: 76px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .toc ol {
    columns: 1;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .features,
  .trust {
    grid-template-columns: 1fr;
  }
  .rings {
    width: 420px;
    height: 420px;
  }
  .phone {
    width: 236px;
  }
  .hero-visual {
    min-height: 470px;
  }
  .hero-tile {
    width: 104px;
    height: 104px;
    inset-inline-start: calc(50% - 168px);
    bottom: 40px;
  }
  .brand-word {
    width: 92px;
  }
}
