/* GRANA VPN — brand stylesheet.
   Palette and typography carried over from the existing product so the global
   site, the apps and the Russian service stay visibly the same company. */

:root {
  --bg: #0E0620;
  --bg2: #150A2C;
  --card: #1B0F38;
  --card2: #221247;
  --line: #33205C;
  --line2: #402670;

  --violet: #8B44FF;
  --violet-soft: #B98CFF;
  --violet-deep: #6D28D9;

  --orange: #FF7A1A;
  --orange-hi: #FFB24D;
  --orange-lo: #FF5400;

  --text: #F6F1FF;
  --muted: #AC93D6;
  --dim: #7A62A8;

  --green: #37E0A0;
  --cyan: #3DD8F0;

  --ff-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --ff-body: 'Inter', system-ui, -apple-system, sans-serif;

  --max: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  background-image:
    radial-gradient(1100px 620px at 82% -6%, rgba(255, 122, 26, .16), transparent 58%),
    radial-gradient(900px 640px at 4% 2%, rgba(139, 68, 255, .24), transparent 56%),
    radial-gradient(700px 700px at 50% 116%, rgba(61, 216, 240, .07), transparent 60%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 3px; border-radius: 6px; }

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

h1, h2, h3 { font-family: var(--ff-display); font-weight: 700; line-height: 1.1; letter-spacing: -.5px; }
h1 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -1.6px; }
h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -1px; }
h3 { font-size: 19px; letter-spacing: -.2px; }

.grad-warm {
  background: linear-gradient(120deg, var(--orange-hi), var(--orange-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-cool {
  background: linear-gradient(120deg, var(--violet-soft), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 2.4px;
  text-transform: uppercase; color: var(--violet-soft); margin-bottom: 14px;
}
.lede { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--muted); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ff-body); font-weight: 600; font-size: 15.5px;
  cursor: pointer; border: none; padding: 13px 26px; border-radius: 14px;
  transition: transform .18s, box-shadow .18s, background .18s; white-space: nowrap;
}
.btn-primary {
  color: #1a0b04;
  background: linear-gradient(120deg, var(--orange-hi), var(--orange-lo));
  box-shadow: 0 10px 30px rgba(255, 84, 0, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(255, 84, 0, .46); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 16.5px; }
.btn-block { width: 100%; }

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

header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px); background: rgba(14, 6, 32, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--ff-display); font-weight: 700; font-size: 21px;
}
.logo .mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: conic-gradient(from 210deg, var(--violet), var(--orange), var(--violet));
  display: grid; place-items: center; box-shadow: 0 6px 22px rgba(139, 68, 255, .4);
}
.logo .mark svg { width: 19px; height: 19px; }
.logo .word {
  letter-spacing: 1px;
  background: linear-gradient(120deg, var(--orange-hi), var(--orange-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav .links { display: flex; gap: 26px; margin-left: 22px; }
.nav .links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav .links a:hover { color: var(--text); }
.nav .spacer { flex: 1; }

.lang-picker { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line2);
  color: var(--text); padding: 9px 14px; border-radius: 12px;
  font-family: var(--ff-body); font-size: 14px; font-weight: 500;
}
.lang-btn:hover { background: rgba(255, 255, 255, .1); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px;
  background: var(--card2); border: 1px solid var(--line2); border-radius: 14px;
  padding: 6px; display: none; box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.lang-menu.open { display: block; }
.lang-menu a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 14.5px; color: var(--muted); }
.lang-menu a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.lang-menu a[aria-current] { color: var(--orange-hi); font-weight: 600; }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); cursor: pointer;
}
.burger span { display: block; width: 17px; height: 2px; margin: 0 auto; background: var(--text); border-radius: 2px; transition: .2s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; padding: 6px 16px 16px; gap: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(14, 6, 32, .98);
}
.mobile-menu.show { display: flex; }
.mobile-menu a { padding: 13px 12px; font-size: 16px; font-weight: 500; border-radius: 12px; }
.mobile-menu a:active { background: rgba(255, 255, 255, .06); }

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

.hero { padding: 76px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--orange-hi); background: rgba(255, 122, 26, .1);
  border: 1px solid rgba(255, 122, 26, .26); padding: 8px 16px; border-radius: 100px; margin-bottom: 26px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(55, 224, 160, .55); }
  70% { box-shadow: 0 0 0 10px rgba(55, 224, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 224, 160, 0); }
}
.hero .lede { max-width: 520px; margin: 22px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 14px; color: var(--dim); margin-bottom: 26px; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); padding: 8px 14px; border-radius: 100px;
}
.chip b { color: var(--text); font-family: var(--ff-display); }

.hero-visual { position: relative; height: 460px; display: grid; place-items: center; }
.globe { position: absolute; width: 460px; height: 460px; opacity: .92; }
.globe .ring { fill: none; stroke: rgba(139, 68, 255, .2); stroke-width: 1; }
.globe .arc {
  fill: none; stroke: url(#arcg); stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 5 7; animation: dash 5s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -120; } }
.globe .pin { fill: var(--orange-hi); filter: drop-shadow(0 0 6px rgba(255, 178, 77, .8)); }

.phone {
  position: relative; z-index: 2; width: 226px; height: 452px; border-radius: 36px;
  background: linear-gradient(170deg, var(--card2), var(--card));
  border: 1px solid var(--line2); padding: 16px 14px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 8px rgba(14, 6, 32, .8);
}
.phone .screen { height: 100%; border-radius: 24px; background: rgba(14, 6, 32, .7); padding: 18px 15px; display: flex; flex-direction: column; }
.phone .status { font-size: 11.5px; color: var(--dim); letter-spacing: .4px; }
.phone .shield { margin: 26px auto 18px; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(55, 224, 160, .28), transparent 70%);
  border: 1px solid rgba(55, 224, 160, .4); }
.phone .shield span { font-size: 40px; }
.phone .state { text-align: center; font-family: var(--ff-display); font-weight: 700; font-size: 17px; color: var(--green); }
.phone .where { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.phone .loc {
  margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px;
}
.phone .loc .arrow { margin-left: auto; color: var(--dim); }

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

section { padding: 76px 0; }
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head .lede { margin-top: 14px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: linear-gradient(160deg, rgba(34, 18, 71, .8), rgba(27, 15, 56, .6));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  transition: transform .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line2); }
.card .ic { font-size: 26px; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.8px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding-top: 12px; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--ff-display); font-size: 46px; font-weight: 700; line-height: 1;
  background: linear-gradient(120deg, var(--violet-soft), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .55;
}
.step h3 { margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 14.8px; }

.locations { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.loc-pill {
  display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 100px; color: var(--muted);
}
.loc-pill .fl { font-size: 17px; }
.loc-pill b { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- pricing */

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  position: relative; background: linear-gradient(160deg, rgba(34, 18, 71, .85), rgba(27, 15, 56, .6));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  display: flex; flex-direction: column; transition: transform .18s, border-color .18s;
}
.plan:hover { transform: translateY(-3px); border-color: var(--line2); }
.plan-best { border-color: rgba(255, 122, 26, .5); box-shadow: 0 18px 48px rgba(255, 84, 0, .16); }
.plan .term { font-family: var(--ff-display); font-weight: 600; font-size: 16px; color: var(--muted); }
.plan .price { font-family: var(--ff-display); font-size: 40px; font-weight: 700; letter-spacing: -1.6px; margin: 12px 0 2px; }
.plan .price sup { font-size: 20px; vertical-align: super; margin-right: 2px; }
.plan .per { font-size: 13.5px; color: var(--dim); }
.plan .total { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.plan .save {
  position: absolute; top: -11px; right: 18px; font-size: 12px; font-weight: 700;
  color: #1a0b04; background: linear-gradient(120deg, var(--orange-hi), var(--orange-lo));
  padding: 4px 11px; border-radius: 100px;
}
/* The monthly plan has no saving to show; without this it renders as a stray
   orange dot above the card. */
.plan .save:empty { display: none; }
.plan .btn { margin-top: 20px; }
.plan-note { margin-top: 26px; text-align: center; color: var(--dim); font-size: 14px; }

/* ---------------------------------------------------------------- download */

.dl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dl {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 30px 20px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: .18s;
}
.dl:hover { background: rgba(255, 255, 255, .06); border-color: var(--line2); transform: translateY(-3px); }
.dl .ic { font-size: 34px; margin-bottom: 12px; }
.dl h3 { margin-bottom: 4px; }
.dl .req { font-size: 12.8px; color: var(--dim); margin-bottom: 16px; }
.dl .btn { width: 100%; }
.dl .soon { font-size: 12.5px; color: var(--dim); border: 1px dashed var(--line2); padding: 12px; border-radius: 12px; width: 100%; }

/* ---------------------------------------------------------------- faq */

.faq { max-width: 780px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--ff-display); font-weight: 600; font-size: 17px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+'; position: absolute; right: 6px; top: 17px;
  font-size: 24px; color: var(--violet-soft); transition: transform .2s;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--muted); font-size: 15px; padding: 0 0 20px; }

/* ---------------------------------------------------------------- cta band */

.band {
  border-radius: 26px; padding: 54px 40px; text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(255, 122, 26, .2), transparent 65%),
    linear-gradient(160deg, var(--card2), var(--card));
  border: 1px solid var(--line2);
}
.band h2 { margin-bottom: 14px; }
.band .lede { max-width: 520px; margin: 0 auto 28px; }

/* ---------------------------------------------------------------- legal */

.legal { max-width: 780px; margin: 0 auto; padding: 56px 0 80px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.legal .updated { color: var(--dim); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal strong { color: var(--text); }
.legal .highlight {
  background: rgba(55, 224, 160, .08); border: 1px solid rgba(55, 224, 160, .3);
  border-radius: 14px; padding: 20px 22px; margin: 24px 0;
}
.legal .highlight p { color: var(--text); margin: 0; }

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

footer { border-top: 1px solid var(--line); padding: 54px 0 40px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
.foot-about p { color: var(--dim); font-size: 14px; margin-top: 14px; max-width: 280px; }
.foot-col h4 { font-family: var(--ff-display); font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; }

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

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 400px; order: -1; }
  .globe { width: 360px; height: 360px; }
  .grid-3, .grid-4, .plans, .dl-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav .links { display: none; }
  .burger { display: flex; }
}

@media (max-width: 560px) {
  section { padding: 56px 0; }
  .grid-3, .grid-4, .plans, .dl-grid, .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .hero-visual { height: 340px; }
  .globe { width: 300px; height: 300px; }
  .phone { width: 190px; height: 380px; }
  .band { padding: 40px 22px; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
}

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