/* PotatoVPN mirror — style.css
   Nav/footer/inner-pages: our QA-compliant structure
   Index page body: exact copy of potatovpn.com layout
*/
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  --primary: #7b2ff7;
  --primary-dark: #5a10e0;
  --grad: linear-gradient(to right, #a356e6, #6d32e5);
  --text: #333;
  --text-muted: #666;
  --border: #e8e8e8;
  --surface: #fafafa;
  --green: #1aae5b;
  --radius: 8px;
  --transition: 0.2s ease;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body { font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.25; }

/* ══════════════════════════════════════════
   HEADER / NAV  — matching potatovpn.com
══════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--grad);
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { background: #fff; box-shadow: 0 2px 20px rgba(17,2,40,.1); }

.nav {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 40px; height: 80px;
}

/* Logo — light version on gradient, dark version on white */
.brand { display: flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.logo { height: 42px; width: auto; max-width: 160px; object-fit: contain; }
.logo-light { display: block; }
.logo-dark  { display: none; }
.site-header.scrolled .logo-light { display: none; }
.site-header.scrolled .logo-dark  { display: block; }

.nav-links {
  display: flex; align-items: center; gap: 0;
  list-style: none; margin: 0; padding: 0;
  height: 80px;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  color: #fff; font-size: 16px;
  padding: 0; margin-left: 43px;
  line-height: 80px; display: inline-block;
  transition: color var(--transition);
  white-space: nowrap; cursor: pointer;
}
.nav-links > li > a:hover { color: rgba(255,255,255,.75); text-decoration: none; }
.site-header.scrolled .nav-links > li > a { color: var(--text); }
.site-header.scrolled .nav-links > li > a:hover { color: var(--primary); }

/* "Sign In" — last nav link styled as bordered button */
.nav-right {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0; margin-left: 43px;
}
.mobile-lang { display: none; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; left: 0;
  margin-top: 0; padding-top: 4px;
  display: none; min-width: 170px; z-index: 1000;
}
.dropdown-panel-inner {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel a {
  display: block; padding: 10px 16px;
  color: var(--text); font-size: 14px;
  transition: background var(--transition); white-space: nowrap;
}
.dropdown-panel a:hover { background: var(--surface); text-decoration: none; }

.lang-btn {
  background: none; border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.9); padding: 6px 12px;
  border-radius: 4px; cursor: pointer;
  font-size: 13px; display: flex; align-items: center; gap: 6px;
}
.lang-btn:hover { border-color: rgba(255,255,255,.8); }
.lang-btn i { font-size: 11px; }
.site-header.scrolled .lang-btn { color: var(--text); border-color: var(--border); }

/* Nav CTA — "Sign In" bordered pill */
.btn-cta {
  display: inline-block;
  border: 1px solid #fff; border-radius: 15px;
  color: #fff; background: transparent;
  padding: 5px 20px; font-size: 16px; font-weight: 400;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-cta:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.site-header.scrolled .btn-cta { color: #712ce2; border-color: #712ce2; }
.site-header.scrolled .btn-cta:hover { background: #f5eeff; }

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: #fff; font-size: 22px; padding: 6px 0 6px 6px;
}
.site-header.scrolled .nav-toggle { color: var(--text); }

/* ══════════════════════════════════════════
   INDEX PAGE — exact copy of potatovpn.com
══════════════════════════════════════════ */

/* Hero / Main */
.index-page { width: 100%; color: #fff; }
.index-page .main {
  background-size: 1024px 334px;
  background-image: url(/assets/images/orig/index_main_bg.BDcClrqi.png);
  background-position: center bottom;
  background-repeat: no-repeat;
  position: relative;
}
.index-page .main::before {
  content: ""; position: absolute; display: block;
  height: 100%; width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  background-image: linear-gradient(to right, #a356e6, #6d32e5);
  z-index: -1;
}
.index-page .main .content {
  position: relative; padding: 120px 0 70px;
  display: flex; align-items: center;
  min-height: 640px; max-width: 1040px;
  margin: auto; font-size: 0;
}
.index-page .main .content .main-text {
  position: relative; width: calc(100% - 582px);
  margin-right: 100px; display: inline-block; vertical-align: middle;
}
.index-page .main .content .main-text h1 { font-size: 32px; line-height: 42px; margin-bottom: 30px; color: #fff; }
.index-page .main .content .main-text h2 { font-size: 20px; line-height: 30px; margin-bottom: 10px; color: #fff; font-weight: 400; }
.index-page .main .content .main-text .download-info {
  margin-top: 10px; font-size: 14px; line-height: 20px; font-weight: 200; color: #fff;
}
.index-page .main .content .main-text .store { margin-top: 30px; }
.index-page .main .content .main-text .store > a {
  display: inline-block; vertical-align: middle;
  box-sizing: border-box; height: 50px; cursor: pointer;
}
.index-page .main .content .main-text .store > a:nth-child(2) { margin-left: 30px; }
.index-page .main .content .main-text .store > a > img { width: auto; height: 100%; }
.index-page .main .content .main-text .store .blank {
  display: inline-block; min-width: 160px; border: 1px solid #fff;
  border-radius: 8px; text-align: center; line-height: 50px;
  font-size: 20px; font-weight: 500; color: #fff;
}
.index-page .main .content .main-text .store .blank:hover {
  text-decoration: none; background: rgba(255,255,255,.1);
}
.index-page .main .content .preview {
  display: inline-block; vertical-align: middle; width: 482px; height: auto;
}

/* Platform bar */
.index-page .platform { padding: 30px 0; background-color: #fafafa; overflow: visible; }
.index-page .platform .content { max-width: 1200px; width: 100%; margin: auto; overflow: visible; }
.index-page .platform .content .item {
  cursor: pointer; text-align: center; width: 100%;
  overflow: visible;
  border-bottom: 3px solid transparent;
  transition: border-color .2s;
}
.index-page .platform .content .item.selected {
  border-bottom-color: #7b2ff7;
}
.index-page .platform .content .item img {
  display: block; width: 50px; height: 50px;
  margin: 0 auto 15px;
  filter: grayscale(1) opacity(.45);
  transition: filter .2s;
}
.index-page .platform .content .item.selected img {
  filter: none;
}
.index-page .platform .content .item > span { text-align: center; font-size: 20px; line-height: 30px; color: #b3b3b3; transition: color .2s; }
.index-page .platform .content .item.selected > span { color: #333; }

/* Flex layout utilities */
.layout-flex { display: flex; }
.layout-justify-center { justify-content: center; }
.layout-justify-space-around { justify-content: space-around; }
.layout-direction-row { flex-direction: row; }
.layout-wrap { flex-wrap: wrap; }

/* Desc section (Unblock / Secure / Anonymous) */
.index-page .desc {
  background-color: #fff; width: 100%; color: #333;
  height: 600px; text-align: center; padding: 100px 0;
}
.index-page .desc .content .item {
  display: inline-block; vertical-align: top;
  margin: 0 50px; text-align: center; width: 300px;
}
.index-page .desc .content .item .icon {
  width: 100%; height: 235px;
  background-size: contain; background-position: center; background-repeat: no-repeat;
}
.index-page .desc .content .item .icon_unblock { background-image: url(/assets/images/orig/index_unblockv2.DPFaV4KS.png); }
.index-page .desc .content .item .icon_secure  { background-image: url(/assets/images/orig/index_securev2.XpSh-s6v.png); }
.index-page .desc .content .item .icon_anonymous { background-image: url(/assets/images/orig/index_anonymous.NUerJajw.png); }
.index-page .desc .content .item .title { font-size: 30px; line-height: 36px; font-weight: bolder; margin: 20px 0; color: #333; }
.index-page .desc .content .item .desc-content { font-size: 20px; line-height: 30px; color: #333; }

/* Benefit section */
.index-page .benefit {
  width: 100%; padding: 100px calc((100% - 1200px)/2) 25px;
  font-size: 0; background-color: #fafafa; color: #333;
}
.index-page .benefit .content .item {
  display: inline-block; vertical-align: top;
  font-size: 16px; width: 50%; margin-bottom: 75px;
}
.index-page .benefit .content .item:nth-child(odd)  { padding-right: 30px; }
.index-page .benefit .content .item:nth-child(even) { padding-left: 30px; }
.index-page .benefit .content .icon {
  height: 80px; width: 80px; margin-bottom: 20px;
  background-size: contain; background-position: center; background-repeat: no-repeat;
}
.index-page .benefit .content .icon.icon_totallyfree { background-image: url(/assets/images/benefit_totallyfree.png); }
.index-page .benefit .content .icon.icon_access  { background-image: url(/assets/images/benefit_access.png); }
.index-page .benefit .content .icon.icon_protect { background-image: url(/assets/images/benefit_protect.png); }
.index-page .benefit .content .icon.icon_nolog   { background-image: url(/assets/images/benefit_nolog.png); }
.index-page .benefit .content .icon.icon_easy    { background-image: url(/assets/images/benefit_easy.png); }
.index-page .benefit .content .title { font-size: 24px; line-height: 29px; font-weight: bolder; margin-bottom: 10px; color: #333; }
.index-page .benefit .content .benefit-text { font-size: 16px; line-height: 24px; color: #333; }

/* ══════════════════════════════════════════
   FOOTER  — matching potatovpn.com
══════════════════════════════════════════ */
.footer {
  height: 90px; font-size: 16px; line-height: 22px;
  width: 100%; color: #fff;
  background-image: linear-gradient(to right, #a356e6, #6d32e5);
}
.footer .links {
  max-width: 1200px; margin: auto; padding: 20px 0;
}
.footer .links > div { display: inline-block; vertical-align: middle; }
.footer .links .inner { display: inline-flex; gap: 53px; }
.footer .links .inner > * { cursor: pointer; }
.footer .links .inner a { color: #fff; text-decoration: none; transition: opacity .2s; }
.footer .links .inner a:hover { opacity: .75; text-decoration: none; }
.footer .links .support { float: right; }
.footer .links .support a {
  color: #fff; text-decoration: none; margin-left: 16px;
  font-size: 14px; opacity: .85;
  transition: opacity .2s;
}
.footer .links .support a:hover { opacity: 1; text-decoration: none; }
.footer .copyright {
  padding-top: 5px; padding-bottom: 5px;
  line-height: 16px; font-size: 12px;
  text-align: center; color: rgba(255,255,255,.7);
  border-top: 1px solid rgba(255,255,255,.5);
}

/* ══════════════════════════════════════════
   INNER PAGES
══════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(to right, #a356e6, #6d32e5);
  color: #fff; text-align: center;
  padding: 72px var(--space-sm) var(--space-xl);
}
.page-hero-inner { max-width: 700px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 700; margin-bottom: var(--space-sm); color: #fff; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,.85); }

.prose { padding: var(--space-xl) var(--space-sm); }
.prose-inner { max-width: 860px; margin: 0 auto; font-size: 15px; line-height: 1.8; }
.prose-inner h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; color: var(--text); }
.prose-inner h3 { font-size: 17px; margin-top: 28px; margin-bottom: 8px; color: var(--text); }
.prose-inner p { margin-bottom: 14px; color: var(--text-muted); }
.prose-inner ul, .prose-inner ol { margin: 12px 0 16px 24px; }
.prose-inner ul { list-style: disc; } .prose-inner ol { list-style: decimal; }
.prose-inner ul li, .prose-inner ol li { color: var(--text-muted); margin-bottom: 6px; }
.cta-wrap { display: flex; justify-content: center; margin-top: var(--space-lg); }
.cta-wrap .btn-cta {
  background: #7b2ff7; border-color: #7b2ff7; color: #fff;
  border-radius: 30px; font-weight: 600;
}
.cta-wrap .btn-cta:hover { background: #6520d4; border-color: #6520d4; }
.btn-lg { padding: 16px 40px; font-size: 18px; }
.btn-primary {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 12px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }

.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-md); margin: var(--space-lg) 0; }
.platform-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: var(--space-md); text-align: center; transition: box-shadow var(--transition); }
.platform-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.platform-card i { font-size: 36px; color: var(--primary); margin-bottom: var(--space-sm); display: block; }
.platform-card h3 { margin-bottom: 8px; color: var(--text); }
.platform-card p { font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-sm); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-md); margin: var(--space-lg) 0; }
.pricing-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: var(--space-lg) var(--space-md); position: relative; }
.pricing-card.featured { border-color: var(--primary); border-width: 2px; }
.pricing-card .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 4px 18px; border-radius: 100px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pricing-card h3 { font-size: 20px; font-weight: 700; margin-bottom: var(--space-sm); color: var(--text); }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.price-amount { font-size: 42px; font-weight: 800; color: var(--primary); line-height: 1; }
.price-period { font-size: 16px; color: var(--text-muted); }
.price-note { font-size: 13px; color: var(--text-muted); margin-bottom: var(--space-md); }
.price-features { margin: var(--space-md) 0; }
.price-features li { padding: 8px 0; display: flex; gap: 10px; align-items: center; font-size: 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.price-features li:last-child { border-bottom: none; }
.price-features i { color: var(--green); font-size: 13px; flex-shrink: 0; }
.price-features li a { background: var(--primary); color: #fff; display: block; text-align: center; padding: 12px; border-radius: var(--radius); font-weight: 600; width: 100%; }
.price-features li a:hover { background: var(--primary-dark); text-decoration: none; }

/* FAQ */
.faq { padding: var(--space-xl) var(--space-sm); background: var(--surface); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto var(--space-lg); }
.section-head h2 { font-size: clamp(22px, 3.5vw, 36px); font-weight: 700; margin-bottom: var(--space-sm); }
.section-head p { font-size: 17px; color: var(--text-muted); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: var(--space-sm) 0; font-size: 16px; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text);
}
.faq-q i { color: var(--primary); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 var(--space-sm); font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ══════════════════════════════════════════
   RESPONSIVE — INDEX PAGE
══════════════════════════════════════════ */
@media screen and (max-width: 1200px) {
  .index-page .main .content { min-height: 892px; padding-left: 40px; padding-right: 40px; }
  .index-page .desc .content .item { width: 270px; margin: 0 30px; }
  .index-page .desc .content .item .icon { height: 212px; }
}
@media screen and (max-width: 1023px) {
  .index-page .main .content { padding-bottom: 50px; min-height: 730px; flex-direction: column; justify-content: flex-start; }
  .index-page .main .content .main-text { display: block; margin-right: 0; width: 100%; text-align: center; }
  .index-page .main .content .preview { display: block; margin: 50px auto auto; }
  .index-page .platform .content .item img { margin: auto auto 10px; }
  .index-page .platform .content .item > span { font-size: 15px; line-height: 28px; }
  .index-page .desc { height: auto; padding: 1px; }
  .index-page .desc .content .item { width: 650px; display: block; margin: 50px auto; white-space: nowrap; }
  .index-page .desc .content .item:first-child { margin-top: 100px; }
  .index-page .desc .content .item:last-child  { margin-bottom: 100px; }
  .index-page .desc .content .item > div { display: inline-block; vertical-align: middle; }
  .index-page .desc .content .item .icon { height: 235px; width: 300px; margin-right: 50px; }
  .index-page .desc .content .item .text { width: 300px; white-space: normal; text-align: left; }
}
@media screen and (max-width: 767px) {
  .index-page .main .content { min-height: 590px; padding: 75px 0 15px; }
  .index-page .main .content .main-text { padding: 0 20px; }
  .index-page .main .content .main-text h1 { font-size: 20px; line-height: 30px; margin-bottom: 20px; }
  .index-page .main .content .main-text h2 { font-size: 14px; line-height: 20px; }
  .index-page .main .content .main-text .store > a { height: 40px; }
  .index-page .main .content .main-text .store > a:nth-child(2) { margin-left: 20px; }
  .index-page .main .content .main-text .store .blank { min-width: 128px; border-radius: 6px; line-height: 40px; font-size: 16px; }
  .index-page .main .content .preview { max-width: 320px; width: 100%; margin: 20px auto auto; }
  .index-page .platform { padding: 20px 0; }
  .index-page .platform .content .item img { width: 30px; height: 30px; margin: auto; }
  .index-page .platform .content .item > span { display: none; }
  .index-page .desc { padding: 1px 15px 40px; }
  .index-page .desc .content .item { width: 100%; margin: 25px auto; white-space: normal; }
  .index-page .desc .content .item:first-child { margin-top: 50px; }
  .index-page .desc .content .item:last-child  { margin-bottom: 50px; }
  .index-page .desc .content .item > div { display: block; }
  .index-page .desc .content .item .icon { width: 220px; height: 172px; margin: 0 auto 20px; }
  .index-page .desc .content .item .text { text-align: center; margin: 0 auto; }
  .index-page .desc .content .item .text .title { font-size: 20px; line-height: 24px; margin-bottom: 12px; }
  .index-page .desc .content .item .desc-content { font-size: 14px; line-height: 20px; }
  .index-page .benefit { padding: 20px; }
  .index-page .benefit .content .item { width: 100%; margin-bottom: 30px; }
  .index-page .benefit .content .item:nth-child(odd)  { padding-right: 0; }
  .index-page .benefit .content .item:nth-child(even) { padding-left: 0; }
  .index-page .benefit .content .icon { height: 40px; width: 40px; margin-bottom: 10px; }
  .index-page .benefit .content .title { font-size: 20px; line-height: 24px; margin-bottom: 10px; }
  .index-page .benefit .content .benefit-text { font-size: 14px; line-height: 20px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — NAV / FOOTER
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav { padding: 0 8px 0 16px; height: 64px; position: relative; }
  .nav-links {
    display: none; position: absolute; top: 100%;
    left: 0; right: 0; flex-direction: column; align-items: center;
    height: auto; background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,.15); padding: 12px 0; z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links > li > a {
    display: block; width: 100%; padding: 14px 0;
    margin-left: 0; line-height: 1.4;
    font-size: 17px; color: var(--text);
  }
  .nav-links > li > a:hover { background: var(--surface); color: var(--text); }
  .nav-links .dropdown-panel { position: static; display: block; box-shadow: none; padding: 0; }
  .nav-links .dropdown-panel-inner { border: none; border-radius: 0; background: var(--surface); }
  .nav-links .dropdown-panel a { padding: 10px 0; text-align: center; }
  .nav-right { display: none; }
  .nav-toggle { display: block; }
  .mobile-lang {
    display: flex; justify-content: center; gap: 16px;
    padding: 14px 0; border-top: 1px solid var(--border); width: 100%;
  }
  .nav-links li.mobile-lang a {
    display: inline-block; width: auto; padding: 4px 10px;
    font-size: 15px; color: var(--text-muted); line-height: 1.4; margin-left: 0;
  }
  .nav-links li.mobile-lang a.active { color: var(--primary); font-weight: 700; }
  .pricing-grid, .platform-grid { grid-template-columns: 1fr; }
  /* Footer mobile */
  .footer { height: 115px; }
  .footer .links { padding: 10px 20px; font-size: 12px; line-height: 16px; }
  .footer .links .inner { flex-direction: column; gap: 10px; }
  .footer .links .support { margin-top: 10px; float: none; }
}
