
/*
  VPN BRO — unified design system (PrivateAlps-inspired)
  - single source of truth for colors/typography/components
  - removes duplicated/auto-generated CSS previously in this file
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Unbounded:wght@600;700;800&display=swap');

:root{
  color-scheme: dark;

  --bg: #05070d;
  --bg2: #070b15;
  --panel: rgba(255,255,255,.04);
  --panel2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.10);
  --border2: rgba(255,255,255,.16);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --muted2: rgba(255,255,255,.46);

  /* PrivateAlps-like warm accents */
  --accent: #fb923c;   /* orange */
  --accent2: #f97316;  /* deep orange */
  --accent3: #f59e0b;  /* amber */
  --good: #34d399;
  --danger: #fb7185;

  --shadow: 0 30px 80px rgba(0,0,0,.55);
  --shadow-soft: 0 14px 40px rgba(0,0,0,.35);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;

  --container: 1200px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  /* warm vignette like reference + deep space */
  background:
    radial-gradient(900px 650px at 75% 22%, rgba(249,115,22,.20), transparent 62%),
    radial-gradient(760px 540px at 58% 8%, rgba(245,158,11,.10), transparent 60%),
    radial-gradient(1200px 800px at 20% 0%, rgba(255,255,255,.04), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  overflow-x:hidden;
}

a{ color: inherit; text-decoration:none; }
a:hover{ color: rgba(255,255,255,.98); }

/* subtle stars overlay */
.site{
  position:relative;
  min-height:100vh;
}
.site::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.42;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,.8) 0, rgba(255,255,255,0) 55%),
    radial-gradient(1px 1px at 65% 35%, rgba(255,255,255,.65) 0, rgba(255,255,255,0) 55%),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,.55) 0, rgba(255,255,255,0) 55%),
    radial-gradient(1px 1px at 85% 75%, rgba(255,255,255,.7) 0, rgba(255,255,255,0) 55%),
    radial-gradient(1px 1px at 25% 85%, rgba(255,255,255,.55) 0, rgba(255,255,255,0) 55%);
  mix-blend-mode: screen;
}

.container{
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* Narrow centered container for single-column pages */
.container--narrow{
  width: min(960px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter: blur(16px);
  background: rgba(5,7,13,.65);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header__inner{
  height:80px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.nav{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a{
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:800;
  color: var(--muted2);
}
.nav a:hover{ color: rgba(255,255,255,.9); }

/* Logo (kept, but cleaner) */
.logo{
  display:flex;
  align-items:center;
  gap:12px;
  transition: transform .22s ease;
}
.logo:hover{ transform: translateY(-1px) scale(1.03); }
.logo__mark{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:
    radial-gradient(circle at 35% 30%, rgba(125,211,252,.35), rgba(56,189,248,.08) 55%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}

/* Lightning draw animation (logo) */
.logo__mark svg{
  overflow: visible;
}
.logo__mark svg path{
  fill: none;
  stroke: rgba(255,255,255,.92);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: lightningDraw 3.2s ease-in-out infinite, lightningGlow 1.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.28)) drop-shadow(0 0 16px rgba(249,115,22,.22));
}
@keyframes lightningDraw{
  0%{ stroke-dashoffset: 60; opacity: .55; }
  42%{ stroke-dashoffset: 0; opacity: 1; }
  78%{ stroke-dashoffset: 0; opacity: 1; }
  100%{ stroke-dashoffset: 60; opacity: .55; }
}
@keyframes lightningGlow{
  from{ filter: drop-shadow(0 0 6px rgba(255,255,255,.18)) drop-shadow(0 0 12px rgba(249,115,22,.16)); }
  to{ filter: drop-shadow(0 0 10px rgba(255,255,255,.35)) drop-shadow(0 0 22px rgba(249,115,22,.26)); }
}
.logo__text{
  font-family: "Unbounded", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
  background-size: 240% 100%;
  animation: shine 6s linear infinite;
}
@keyframes shine{
  0%{ background-position: 0% 50%; }
  100%{ background-position: 240% 50%; }
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 10px;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  user-select:none;
  max-width: 100%;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{
  color: rgba(0,0,0,.92);
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 45%, var(--accent3) 100%);
  box-shadow: 0 18px 60px rgba(56,189,248,.18);
}
.btn--primary:hover{ transform: translateY(-1px); box-shadow: 0 22px 70px rgba(56,189,248,.24); }
.btn--ghost{
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.10);
}
.btn--ghost:hover{ background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }

/* Badges */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.badge--good{
  border-color: rgba(52,211,153,.22);
  background: rgba(52,211,153,.10);
  color: rgba(52,211,153,.92);
}

/* Compatibility layer (old markup still present on some sections) */
.glass-card{ 
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow-soft);
}
.glass-card:hover{
  border-color: rgba(125,211,252,.35);
}
.btn-white{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: #ffffff;
  color: rgba(0,0,0,.92);
  font-weight: 900;
  border-radius: 14px;
  transition: transform .18s ease, background .18s ease;
}
.btn-white:hover{ background:#f4f4f5; transform: translateY(-1px); }
.btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  border-radius: 14px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn-outline:hover{ background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); transform: translateY(-1px); }
.btn-header{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  color: rgba(0,0,0,.92);
  font-weight: 950;
  border-radius: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 18px 60px rgba(249,115,22,.20);
}
.btn-header:hover{ transform: translateY(-1px); box-shadow: 0 22px 70px rgba(249,115,22,.28); }

/* Apps block */
.apps{
  padding: 28px 0 54px;
}
.apps__title{
  margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 950;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-align:center;
}
.apps__lead{
  margin: 0 auto 24px;
  max-width: 70ch;
  text-align:center;
  color: var(--muted);
  line-height: 1.6;
}
.apps__grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.app-card{
  padding: 18px 14px;
  border-radius: 18px;
  text-align:center;
  min-height: 120px;
  display:flex;
  flex-direction: column;
  justify-content:center;
  align-items:center;
  gap: 10px;
}
.app-card--link{
  position: relative;
  cursor: pointer;
}
.app-card__download{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, background .18s ease, border-color .18s ease;
  pointer-events: none;
}
.app-card--link:hover .app-card__download,
.app-card--link:focus-visible .app-card__download{
  opacity: 1;
  transform: translateY(0);
  background: rgba(249,115,22,.12);
  border-color: rgba(249,115,22,.24);
}
.app-card__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.app-card__name{
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(255,255,255,.92);
}
.app-card__hint{
  font-size: 11px;
  color: rgba(255,255,255,.52);
  margin-top: -6px;
}
@media (max-width: 980px){
  .apps__grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .apps__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Cards */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}
.card--hover{
  transition: transform .24s ease, border-color .24s ease, background .24s ease;
}
.card--hover:hover{
  transform: translateY(-4px);
  border-color: rgba(125,211,252,.35);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
}

/* Hero */
.hero{
  position:relative;
  padding: 72px 0 54px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items:center;
}
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; gap: 26px; }
}
.hero__kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius: 999px;
  border:1px solid rgba(125,211,252,.22);
  background: rgba(56,189,248,.07);
  color: rgba(125,211,252,.92);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero__title{
  margin: 18px 0 14px;
  font-size: clamp(38px, 5.8vw, 74px);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 950;
  text-transform: uppercase;
}
.hero__title em{
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.hero__lead{
  margin:0 0 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 56ch;
}
.hero__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__actions .btn{
  flex: 1 1 180px;
}

/* Centered hero (like your screenshot) */
.hero--center .hero__grid{
  justify-items: center;
  text-align: center;
}
.hero--center .hero__kicker{
  margin: 0 auto;
}
.hero--center .hero__lead{
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}
.hero--center .hero__actions{
  justify-content: center;
}

/* Hero info card (IP/geo) */
.hero-info{
  margin-top: 18px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.hero-info__inner{
  padding: 16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.hero-info__left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 0;
}
.hero-info__icon{
  width:42px;
  height:42px;
  border-radius:14px;
  background: rgba(249,115,22,.12);
  border:1px solid rgba(255,255,255,.08);
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}
.hero-info__meta{
  font-size:10px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color: rgba(255,255,255,.46);
  font-weight:900;
}
.hero-info__value{
  font-weight: 900;
  letter-spacing: -.01em;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 38vw;
}
.hero-info__right{
  text-align:right;
  flex: 0 0 auto;
}
.hero-info__loc{
  font-weight:900;
  color: rgba(255,255,255,.88);
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:11px;
}

@media (max-width: 720px){
  .hero-info__inner{ flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-info__right{ text-align:left; }
  .hero-info__value{ max-width: 78vw; }
}

/* Sections */
.section{
  padding: 56px 0;
}
.section__title{
  margin:0 0 18px;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.muted{ color: var(--muted); }

/* Simple grid helpers (used to replace bulky inline styles gradually) */
.grid{
  display:grid;
  gap: 16px;
}
.grid--3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px){
  .grid--3{ grid-template-columns: 1fr; }
}

/* Guides/articles */
.article{
  max-width: 900px;
  margin: 0 auto;
}
.step{
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
}
pre.code-block{
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.08);
  padding: 16px;
  border-radius: 14px;
  margin: 14px 0;
  position: relative;
  overflow-x:auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
}
.copy-btn{
  position:absolute;
  top:10px;
  right:10px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  cursor:pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.copy-btn:hover{ background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.16); transform: translateY(-1px); }
.copy-btn.copied{ background: rgba(52,211,153,.18); border-color: rgba(52,211,153,.28); }

img.step-img{
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  margin: 12px 0;
}

/* Footer */
.footer{
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 0;
  color: rgba(255,255,255,.50);
}
.footer__nav{
  display:flex;
  flex-wrap:wrap;
  gap: 18px 28px;
  justify-content:center;
  margin-bottom: 18px;
}
.footer__nav a{
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(255,255,255,.52);
}
.footer__nav a:hover{ color: rgba(255,255,255,.86); }
.footer__copy{
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 900;
  text-align:center;
}

/* Mobile responsiveness */
@media (max-width: 720px){
  .container{ width: calc(100% - 28px); }
  .header__inner{ height:auto; padding: 12px 0; gap: 12px; }
  .nav{ gap: 10px; }
  .nav a{ font-size:10px; letter-spacing:.14em; }
  .btn{ padding: 12px 14px; }
  .hero{ padding: 44px 0 30px; }
  .hero__grid{ gap: 18px; }
  .hero__title{ font-size: clamp(34px, 9vw, 54px); }
}

@media (max-width: 520px){
  /* keep header compact: show only CTA + 1-2 links */
  .nav a{ display:none; }
  .nav a.btn{ display:inline-flex; }
  .nav a[href="guides.html"]{ display:inline-flex; }
  .nav a[href="routers.html"]{ display:inline-flex; }
}

/* Reduce paint/CPU when user prefers */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}