/* Kavo VPN — kavo-vpn.com
   Light "clear sky" theme around the app's own blues; the app's dark screens carry the contrast.
   Strict CSP: no inline styles anywhere — everything lives here. */

:root {
  --bg: #F5F8FF;
  --surface: #FFFFFF;
  --navy: #0B1530;
  --navy-2: #14213F;
  --text: #0B1530;
  --text-2: #3C4A66;
  --muted: #6B7790;
  --blue: #2F6BF0;
  --blue-2: #4D86FF;
  --sky: #E6EEFF;
  --sky-2: #D3E0FF;
  --line: #DDE4F2;
  --phone: clamp(212px, 24vw, 300px);
  --f: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--f); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sky-2); }

.shell { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 248, 255, .82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(11, 21, 48, .07);
}
.bar-row { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand:hover { color: var(--navy); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 12px -4px rgba(11, 21, 48, .45); }
.brand-name { font: 800 1.16rem/1 var(--f-display); letter-spacing: -.02em; }
.brand-name b { color: var(--blue); font-weight: 800; margin-left: .18em; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { color: var(--text-2); text-decoration: none; font-weight: 550; font-size: .97rem; }
.menu a:hover { color: var(--navy); }
.menu .pill {
  color: var(--blue); border: 1.5px solid var(--blue); border-radius: 999px; padding: .48rem 1.1rem;
  transition: background-color .2s, color .2s;
}
.menu .pill:hover, .menu .pill[aria-current="page"] { background: var(--blue); color: #fff; }
.burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--sky); cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; background: var(--navy); border-radius: 2px;
  transition: transform .25s var(--ease), background-color .25s;
}
.burger span { top: 50%; margin-top: -1px; }
.burger span::before, .burger span::after { content: ""; left: 0; margin-left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sky); color: var(--blue);
  font-weight: 700; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase;
  padding: .42rem .85rem; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(47, 107, 240, .18); }
.eyebrow.light { background: rgba(77, 134, 255, .16); color: #9DBCFF; }
.eyebrow.light::before { box-shadow: 0 0 0 3px rgba(77, 134, 255, .2); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; text-decoration: none; color: var(--blue); }
.link-arrow::after { content: "\2192"; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow.light { color: #9DBCFF; }
.link-arrow.light:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--blue); color: #fff; text-decoration: none;
  font: 650 1rem/1 var(--f); padding: 1rem 1.6rem; border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(47, 107, 240, .7);
  transition: background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { background: var(--navy); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(11, 21, 48, .6); }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff; text-decoration: none;
  padding: 10px 20px 10px 14px; border-radius: 14px; line-height: 1.05;
  box-shadow: 0 12px 26px -14px rgba(11, 21, 48, .8);
}
.store svg { width: 26px; height: 26px; color: #9DBCFF; }
.store small { display: block; font-size: .7rem; opacity: .75; letter-spacing: .02em; }
.store strong { display: block; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
a.store:hover { color: #fff; background: var(--navy-2); }

/* phone frame (screens are real app screenshots) */
.device {
  background: #060B18; border-radius: 46px; padding: 9px;
  box-shadow: 0 0 0 1px rgba(11, 21, 48, .18), 0 2px 0 1px rgba(255, 255, 255, .5) inset, 0 40px 80px -36px rgba(11, 21, 48, .55);
}
.device img { width: 100%; height: auto; border-radius: 37px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center; padding-top: 68px;
  background:
    radial-gradient(60% 46% at 50% 0%, rgba(77, 134, 255, .22), transparent 70%),
    linear-gradient(180deg, #EEF3FF 0%, var(--bg) 60%);
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  margin: 22px auto 0; max-width: 15em;
  font: 800 clamp(2.5rem, 6.2vw, 4.8rem)/1.02 var(--f-display); letter-spacing: -.045em; color: var(--navy);
}
.hero h1 span {
  background: linear-gradient(92deg, var(--blue) 0%, var(--blue-2) 55%, #7BA6FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 22px auto 0; max-width: 34em; font-size: clamp(1.08rem, 1.6vw, 1.24rem); color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; margin-top: 34px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 28px; color: var(--text-2); font-size: .95rem; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before {
  content: ""; flex: none; width: 17px; height: 17px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.1 2.1 4.7-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.stage {
  position: relative; display: flex; justify-content: center; align-items: flex-start;
  height: calc(var(--phone) * 1.42); margin-top: 58px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 58%, transparent 98%);
}
.stage .glow {
  position: absolute; left: 50%; top: 4%; width: min(900px, 96%); height: 90%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(47, 107, 240, .30), transparent);
}
.stage .device { flex: none; position: relative; animation: float-in .9s var(--ease) both; }
.stage .center { width: var(--phone); z-index: 2; animation-delay: .1s; }
.stage .side { width: calc(var(--phone) * .84); margin-top: calc(var(--phone) * .22); opacity: .97; animation-delay: .25s; }
.stage .left { transform: rotate(-8deg); margin-right: calc(var(--phone) * -.2); }
.stage .right { transform: rotate(8deg); margin-left: calc(var(--phone) * -.2); }
@keyframes float-in { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }

/* ---------- blocks ---------- */
.block { padding: 104px 0; }
.block.tinted { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block-head { max-width: 640px; margin-bottom: 48px; }
.block-head h2, .vault h2, .finale h2 {
  margin-top: 16px; font: 800 clamp(2rem, 4.2vw, 3rem)/1.06 var(--f-display); letter-spacing: -.035em; color: var(--navy);
}
.block-head p:not(.eyebrow) { margin-top: 14px; font-size: 1.12rem; color: var(--text-2); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.features li { display: flex; gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.features .ico {
  flex: none; width: 50px; height: 50px; border-radius: 15px;
  display: grid; place-items: center; background: var(--sky); color: var(--blue);
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.features .ico svg { width: 24px; height: 24px; }
.features li:hover .ico { background: var(--blue); color: #fff; transform: rotate(-6deg); }
.features h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -.01em; margin: 2px 0 6px; color: var(--navy); }
.features p { color: var(--text-2); }

.how { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.steps { counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 0 0 30px 66px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: -4px;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 800; box-shadow: 0 8px 18px -8px rgba(47, 107, 240, .9);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 6px; width: 2px; background: var(--sky-2); }
.steps h3 { font-size: 1.16rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.steps p { color: var(--text-2); }
.pair { display: flex; align-items: center; justify-content: center; gap: 14px; }
.shot { width: min(46%, 230px); }
.shot .device { border-radius: 36px; padding: 7px; }
.shot .device img { border-radius: 29px; aspect-ratio: 600 / 900; object-fit: cover; object-position: top; }
.shot figcaption {
  margin: 16px auto 0; width: max-content; font-size: .85rem; font-weight: 650;
  padding: .36rem .8rem; border-radius: 999px; background: #EEF1F7; color: var(--muted);
}
.shot figcaption.on { background: var(--sky); color: var(--blue); }
.pair-arrow { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--blue); margin-bottom: 44px; }
.pair-arrow svg { width: 20px; height: 20px; }

.vault {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px;
  background: var(--navy); color: #fff; border-radius: 32px; padding: 64px 64px 0;
}
.vault::before {
  content: ""; position: absolute; right: -10%; top: -30%; width: 70%; height: 140%;
  background: radial-gradient(closest-side, rgba(47, 107, 240, .45), transparent);
}
.vault-copy { position: relative; padding-bottom: 64px; }
.vault h2 { color: #fff; }
.never { margin: 30px 0 34px; display: grid; gap: 14px; }
.never li { position: relative; padding-left: 38px; color: #C9D4EA; }
.never li::before {
  content: "\00D7"; position: absolute; left: 0; top: .05em; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 1rem; line-height: 1;
  background: rgba(255, 112, 112, .14); color: #FF9C9C;
}
.vault-phone { position: relative; align-self: end; width: min(100%, 270px); justify-self: center; margin-bottom: -150px; transform: rotate(5deg); }

.finale {
  text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 32px;
  padding: 64px 24px; box-shadow: 0 30px 60px -48px rgba(11, 21, 48, .5);
}
.finale img { width: 96px; height: 96px; margin: 0 auto; border-radius: 22px; box-shadow: 0 16px 30px -14px rgba(11, 21, 48, .55); }
.finale h2 { margin-top: 26px; }
.finale p { margin: 14px auto 30px; max-width: 32em; color: var(--text-2); font-size: 1.1rem; }

/* ---------- inner pages ---------- */
.page-top { padding: 64px 0 44px; background: linear-gradient(180deg, #EEF3FF, var(--bg)); }
.page-top h1 { margin-top: 18px; font: 800 clamp(2.2rem, 5vw, 3.4rem)/1.05 var(--f-display); letter-spacing: -.035em; color: var(--navy); }
.page-top p:not(.eyebrow) { margin-top: 12px; color: var(--text-2); font-size: 1.12rem; max-width: 40em; }
.page-top .meta { color: var(--muted); font-size: .92rem; }
.doc {
  max-width: 820px; margin: 0 auto 104px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; padding: 48px 56px;
}
.doc h2 { font-size: 1.32rem; font-weight: 750; letter-spacing: -.015em; color: var(--navy); margin: 36px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text-2); line-height: 1.7; }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 12px; }
.doc ul li { position: relative; padding-left: 22px; margin-top: 6px; }
.doc ul li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-2); }
.support { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px; max-width: 1060px; margin: 0 auto 104px; }
.support .doc { margin: 0; max-width: none; }
.mail-big { margin: 6px 0 10px; font: 800 clamp(1.4rem, 3.4vw, 2rem)/1.2 var(--f-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.mail-big a { text-decoration: none; }
.checklist li { padding: 14px 0; border-top: 1px solid var(--line); }
.checklist li::before { display: none; }
.doc .checklist li { padding-left: 0; margin-top: 0; }
.checklist strong { display: block; color: var(--navy); }
.checklist span { color: var(--text-2); }
.nf { text-align: center; padding: 104px 0 128px; }
.nf .code { font: 800 clamp(5rem, 18vw, 9rem)/1 var(--f-display); letter-spacing: -.06em; background: linear-gradient(180deg, var(--blue-2), var(--sky-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font: 800 clamp(1.6rem, 3.4vw, 2.2rem)/1.15 var(--f-display); letter-spacing: -.03em; color: var(--navy); margin-top: 10px; }
.nf p { color: var(--text-2); margin: 12px 0 30px; }

/* ---------- footer ---------- */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 60px 0 28px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.foot-about p { margin-top: 16px; color: var(--text-2); max-width: 30em; font-size: .97rem; }
.foot h2 { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul li { padding: 4px 0; }
.foot nav a { color: var(--text-2); text-decoration: none; }
.foot nav a:hover { color: var(--blue); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.foot-bottom span:last-child { max-width: 46em; }

/* ---------- motion ---------- */
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .how { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .vault { grid-template-columns: minmax(0, 1fr); padding: 48px 32px 0; }
  .vault-copy { padding-bottom: 8px; }
  .vault-phone { width: 230px; margin-bottom: -120px; }
  .support { grid-template-columns: minmax(0, 1fr); }
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .js .burger { display: block; }
  .js .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 6px 24px 20px;
    box-shadow: 0 20px 30px -24px rgba(11, 21, 48, .5);
  }
  .js .menu.open { display: flex; }
  .js .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .js .menu .pill { margin-top: 16px; text-align: center; border-bottom: 1.5px solid var(--blue); padding: .8rem 1rem; }
  .no-js .bar-row { flex-wrap: wrap; padding: 10px 0; }
  .no-js .menu { flex-wrap: wrap; gap: 12px 20px; }
  .features { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  :root { --phone: 58vw; }
  .shell { padding: 0 16px; }
  .block { padding: 72px 0; }
  .hero { padding-top: 44px; }
  .stage { margin-top: 40px; }
  .stage .side { width: calc(var(--phone) * .78); }
  .stage .left { margin-right: calc(var(--phone) * -.42); }
  .stage .right { margin-left: calc(var(--phone) * -.42); }
  .vault { padding: 40px 22px 0; border-radius: 24px; }
  .doc { padding: 30px 20px; border-radius: 18px; margin-bottom: 72px; }
  .page-top { padding: 44px 0 32px; }
  .finale { padding: 48px 20px; border-radius: 24px; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .pair { gap: 8px; }
  .pair-arrow { width: 32px; height: 32px; }
}
