/* ============ FinashkaVPN — custom design ============ */

/* Fonts (self-hosted, cyrillic+latin) */
@font-face {
  font-family: 'Unbounded';
  src: url('/static/fonts/unbounded-cyrillic-800-normal.woff2') format('woff2');
  font-weight: 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  src: url('/static/fonts/unbounded-latin-800-normal.woff2') format('woff2');
  font-weight: 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  src: url('/static/fonts/unbounded-cyrillic-700-normal.woff2') format('woff2');
  font-weight: 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  src: url('/static/fonts/unbounded-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('/static/fonts/manrope-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('/static/fonts/manrope-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('/static/fonts/manrope-cyrillic-500-normal.woff2') format('woff2');
  font-weight: 500; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('/static/fonts/manrope-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('/static/fonts/manrope-cyrillic-700-normal.woff2') format('woff2');
  font-weight: 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('/static/fonts/manrope-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #06070a;
  --panel: #0c0e13;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f6ee;
  --muted: #9aa1ad;
  --lime: #c8ff3e;
  --lime-dim: rgba(200, 255, 62, 0.14);
  --violet: #8b7bff;
  --cyan: #3ee0ff;
  --r: 20px;
  --display: 'Unbounded', 'Manrope', sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16.5px/1.65 var(--body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* animated aurora + noise layers */
body::before {
  content: '';
  position: fixed; inset: -30% -20%;
  z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 34% at 18% 12%, rgba(200, 255, 62, 0.10), transparent 70%),
    radial-gradient(38% 32% at 84% 8%, rgba(139, 123, 255, 0.12), transparent 70%),
    radial-gradient(30% 26% at 62% 82%, rgba(62, 224, 255, 0.07), transparent 70%);
  filter: blur(70px);
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  50%  { transform: translate3d(2%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(-1%, 1%, 0) scale(1.02); }
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

a { color: var(--lime); text-decoration: none; }
a:hover { opacity: 0.85; }
::selection { background: var(--lime); color: #000; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 30px;
  background: rgba(6, 7, 10, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--text);
  letter-spacing: -0.02em; white-space: nowrap;
}
.logo span { color: var(--lime); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links > a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav-links > a:hover { color: var(--text); opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border: 0; border-radius: 14px; cursor: pointer;
  font-family: var(--body); font-size: 15px; font-weight: 700; color: #05060a;
  background: var(--lime);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  box-shadow: 0 10px 34px rgba(200, 255, 62, 0.16);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(200, 255, 62, 0.26); opacity: 1; }
.btn::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg); transition: left 0.5s ease;
}
.btn:hover::after { left: 130%; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); box-shadow: none; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { padding: 17px 34px; font-size: 16px; border-radius: 16px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

main { min-height: 72vh; }
.muted { color: var(--muted); }
.center { text-align: center; }
.grad {
  background: linear-gradient(92deg, var(--lime) 10%, var(--cyan) 55%, var(--violet) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 120px 24px 70px; text-align: center; }
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(60% 60% at 50% 30%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000 0%, transparent 100%);
}
.ghost {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  font-family: var(--display); font-weight: 800;
  font-size: clamp(100px, 22vw, 300px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(200, 255, 62, 0.07);
  user-select: none; pointer-events: none; white-space: nowrap; z-index: -1;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; margin-bottom: 30px;
  border: 1px solid rgba(200, 255, 62, 0.35); border-radius: 999px;
  background: var(--lime-dim); color: var(--lime);
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 12px var(--lime);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 {
  font-size: clamp(38px, 7vw, 86px); line-height: 1.02; margin: 0 0 24px;
  letter-spacing: -0.035em;
}
.lead { color: var(--muted); font-size: 19px; font-weight: 500; max-width: 640px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 64px; }
.hero-stats > div {
  min-width: 150px; padding: 18px 26px;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.hero-stats b {
  display: block; font-family: var(--display); font-weight: 800; font-size: 30px;
  color: var(--lime); letter-spacing: -0.02em;
}
.hero-stats span { color: var(--muted); font-size: 13.5px; }

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 16px 0; background: rgba(255, 255, 255, 0.015);
}
.ticker-track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee 30s linear infinite;
}
.ticker-track span {
  font-family: var(--display); font-weight: 700; font-size: 13.5px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.ticker-track span i { font-style: normal; color: var(--lime); margin-right: 14px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: 1140px; margin: 0 auto; padding: 90px 24px 20px; }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 38px; }
.sec-num {
  font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--lime);
  border: 1px solid rgba(200, 255, 62, 0.35); border-radius: 10px; padding: 6px 12px;
}
.section h2 { font-size: clamp(28px, 4.4vw, 44px); margin: 0; letter-spacing: -0.03em; }

/* ---------- bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento .card { padding: 30px; }
.span6 { grid-column: span 6; }
.span4 { grid-column: span 4; }
.span3 { grid-column: span 3; }
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line); border-radius: var(--r);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card::before {
  content: ''; position: absolute; top: -60px; left: -60px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(200, 255, 62, 0.14), transparent 65%);
  opacity: 0; transition: opacity 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(200, 255, 62, 0.4); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 0 0 10px; font-size: 17.5px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 18px;
  font-size: 22px; border-radius: 14px;
  background: var(--lime-dim); border: 1px solid rgba(200, 255, 62, 0.25);
}
.card.big h3 { font-size: 24px; }
.card.big p { font-size: 16px; max-width: 460px; }
.card-num {
  position: absolute; right: 22px; bottom: 14px;
  font-family: var(--display); font-weight: 800; font-size: 42px;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
}

/* ---------- locations ---------- */
.loc-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.loc {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  font-size: 15px; font-weight: 600;
}
.loc em { font-style: normal; font-size: 19px; }
.loc b { color: var(--lime); font-weight: 700; }
.loc small { color: var(--muted); font-weight: 500; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; align-items: stretch; }
.plan { padding: 34px 28px; text-align: center; display: flex; flex-direction: column; }
.plan h3 { font-size: 20px; margin: 0 0 6px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; color: var(--muted); font-size: 15px; flex: 1; }
.plan ul li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.plan ul li:last-child { border: 0; }
.plan ul li::before { content: '✓'; color: var(--lime); font-weight: 800; margin-right: 10px; }
.price {
  font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em;
  margin: 10px 0 0;
}
.price span { display: block; margin-top: 6px; font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--muted); }
.plan.featured { border-color: rgba(200, 255, 62, 0.55); box-shadow: 0 24px 70px rgba(200, 255, 62, 0.10); }
.pill {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 6px 16px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--lime); color: #05060a;
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.step { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, 0.02); }
.step span {
  display: block; font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(200, 255, 62, 0.5); margin-bottom: 18px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- faq ---------- */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.02); padding: 0 24px;
  transition: border-color 0.18s ease;
}
.faq details:hover { border-color: var(--line-strong); }
.faq details[open] { border-color: rgba(200, 255, 62, 0.4); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--lime); font-weight: 800; font-size: 20px; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); margin: 0 0 20px; font-size: 15px; }

/* ---------- cta ---------- */
.cta {
  position: relative; overflow: hidden; max-width: 1000px; margin: 90px auto 40px;
  padding: 74px 30px; text-align: center; border-radius: 28px;
  border: 1px solid rgba(200, 255, 62, 0.3);
  background:
    radial-gradient(50% 90% at 20% 0%, rgba(200, 255, 62, 0.12), transparent 70%),
    radial-gradient(50% 90% at 85% 100%, rgba(139, 123, 255, 0.14), transparent 70%),
    rgba(255, 255, 255, 0.02);
}
.cta h2 { font-size: clamp(30px, 5vw, 48px); margin: 0 0 12px; }
.cta p { color: var(--muted); margin: 0 0 30px; font-size: 17px; }

/* ---------- auth ---------- */
.auth { display: flex; align-items: center; justify-content: center; padding: 90px 20px; }
.auth-card {
  position: relative; overflow: hidden; width: 100%; max-width: 430px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line); border-radius: 24px; padding: 40px;
}
.auth-card::before {
  content: ''; position: absolute; top: -80px; right: -80px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(200, 255, 62, 0.16), transparent 65%);
}
.auth-card h1 { margin: 0 0 6px; font-size: 26px; }
.auth-card form { margin-top: 26px; }
.auth-card label { display: block; margin-bottom: 16px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.auth-card input {
  width: 100%; margin-top: 8px; padding: 14px 16px; font: 500 15px var(--body);
  background: rgba(0, 0, 0, 0.4); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 13px; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-card input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(200, 255, 62, 0.12); }
.auth-card .btn { margin-top: 8px; }

/* ---------- flash ---------- */
.flash-wrap { max-width: 820px; margin: 18px auto 0; padding: 0 22px; }
.flash { padding: 14px 18px; border-radius: 14px; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.flash.ok { background: rgba(200, 255, 62, 0.1); border: 1px solid rgba(200, 255, 62, 0.45); color: var(--lime); }
.flash.err { background: rgba(255, 92, 92, 0.1); border: 1px solid rgba(255, 92, 92, 0.45); color: #ff7b7b; }

/* ---------- dashboard ---------- */
.dashboard { padding-top: 60px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-head h1 { margin: 0 0 4px; font-size: 30px; }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.dash-cards .card { padding: 28px; }
.sub-link {
  display: block; padding: 12px 14px; margin-top: 10px;
  background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line);
  border-radius: 12px; font-size: 13px; word-break: break-all; color: var(--lime);
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 52px 30px; background: rgba(0, 0, 0, 0.3); }
.foot-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
.footer h4 { margin: 0 0 12px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.footer p { margin: 0 0 8px; font-size: 14.5px; }
.footer .logo { margin-bottom: 12px; }

/* ---------- scroll animations (no-JS, progressive) ---------- */
@supports (animation-timeline: view()) {
  .card, .step, .plan, .loc {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (max-width: 980px) {
  .span6, .span4, .span3 { grid-column: span 12; }
  .sec-head { flex-direction: column; gap: 10px; }
}
@media (max-width: 720px) {
  .nav { padding: 13px 16px; }
  .nav-links { gap: 14px; }
  .nav-links > a:not(.btn) { display: none; }
  .hero { padding-top: 80px; }
  .hero-stats > div { min-width: calc(50% - 14px); flex: 1; }
  .foot-grid { grid-template-columns: 1fr; }
}
