* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0D1017;
  --bg2: #0a0f1a;
  --card: #11162060;
  --card-solid: #121826;
  --border: #1e2636;
  --text: #f1f4f9;
  --muted: #8b93a7;
  --blue: #437DFC;
  --purple: #8B5CF6;
  --cyan: #06B6D4;
  --cyan-light: #67e8f9;
  --green: #4FC660;
  --red: #ef4444;
  --amber: #f59e0b;
}

html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* радиальное свечение hero, как на сайте */
body::before {
  content: ""; position: fixed; inset: -20% -10% auto -10%; height: 520px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(67,125,252,0.28), transparent 60%),
    radial-gradient(ellipse 50% 45% at 28% 40%, rgba(139,92,246,0.20), transparent 55%),
    radial-gradient(ellipse 45% 50% at 80% 35%, rgba(6,182,212,0.16), transparent 55%);
  animation: heroPulse 7s ease-in-out infinite;
}
@keyframes heroPulse { 0%,100% { opacity:.85; } 50% { opacity:1; } }

/* ===== NAV ===== */
.nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 780px; margin: 0 auto; padding: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; filter: drop-shadow(0 0 8px rgba(139,92,246,.5)); }
.brand-name { font-size: 19px; font-weight: 700; }
.brand-name b { font-weight: 800; }
.nav-cta {
  background: var(--blue); color: #fff;
  text-decoration: none; font-weight: 600; font-size: 13px;
  padding: 10px 18px; border-radius: 999px; transition: all .15s;
}
.nav-cta:hover { background: #5a8cff; box-shadow: 0 6px 20px rgba(67,125,252,.4); transform: translateY(-1px); }

/* ===== WRAP ===== */
.wrap { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; padding: 10px 20px 60px; }

/* ===== HERO ===== */
.hero { text-align: center; padding: 30px 0 30px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(67,125,252,.10); border: 1px solid rgba(67,125,252,.25);
  color: #c9d6f5; font-size: 12px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.trust-stars { color: #ffc83d; letter-spacing: 1px; font-size: 11px; }
.hero h1 { font-size: 40px; font-weight: 900; letter-spacing: -1px; line-height: 1.1; }
.hero h1 .grad {
  background: linear-gradient(100deg, #fff, #93c5fd, var(--cyan-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { color: var(--muted); font-size: 17px; margin-top: 14px; }

/* ===== IP CARD ===== */
.ip-card {
  background: linear-gradient(180deg, rgba(18,24,38,.7), rgba(10,15,26,.7));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(67,125,252,.25); border-radius: 24px;
  padding: 24px; margin-bottom: 18px;
  box-shadow: 0 0 40px rgba(67,125,252,.12), inset 0 1px 0 rgba(255,255,255,.04);
}
.ip-top { display: flex; align-items: center; gap: 16px; }
.ip-flag {
  width: 52px; height: 39px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
  background: #1a2233;
}
.ip-main { flex: 1; min-width: 0; }
.ip-value { font-size: 36px; font-weight: 800; letter-spacing: .3px; word-break: break-all; }
.ip-loc { color: var(--muted); font-size: 14px; margin-top: 4px; }
.copy-btn {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 999px;
  background: rgba(67,125,252,.12); border: 1px solid rgba(67,125,252,.25);
  color: #9bb6f7; cursor: pointer; transition: all .15s; display: flex; align-items: center; justify-content: center;
}
.copy-btn:hover { background: rgba(67,125,252,.22); color: #fff; }
.copy-btn.copied { color: var(--green); border-color: rgba(79,198,96,.4); background: rgba(79,198,96,.12); }

.ip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.ip-item { background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: 16px; padding: 13px 16px; }
.ip-item span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.ip-item b { font-size: 15px; font-weight: 600; margin-top: 4px; display: block; word-break: break-word; }

/* ===== ANONYMITY SCORE ===== */
.score-card {
  display: flex; align-items: center; gap: 22px;
  background: var(--card); border: 1px solid var(--border); border-radius: 24px;
  padding: 22px; margin-bottom: 18px;
}
.score-ring {
  flex-shrink: 0; width: 110px; height: 110px; border-radius: 50%;
  background: conic-gradient(rgba(255,255,255,.06) 0deg, rgba(255,255,255,.06) 360deg);
  display: flex; align-items: center; justify-content: center;
  transition: background .6s ease;
}
.score-inner {
  width: 86px; height: 86px; border-radius: 50%; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-inner span { font-size: 26px; font-weight: 800; line-height: 1; }
.score-inner small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; }
.score-side { flex: 1; min-width: 0; }
.score-verdict { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.score-list { display: flex; flex-direction: column; gap: 7px; }
.score-row { display: flex; align-items: flex-start; gap: 9px; }
.sr-ic {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; margin-top: 1px;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
}
.score-row.ok .sr-ic { background: rgba(79,198,96,.18); color: var(--green); }
.score-row.bad .sr-ic { background: rgba(239,68,68,.18); color: #ff6b6b; }
.sr-text { display: flex; flex-direction: column; line-height: 1.3; }
.sr-text b { font-size: 12.5px; font-weight: 600; }
.sr-text small { font-size: 11px; color: var(--muted); }

.leak-ip { color: #ff8080 !important; font-weight: 700; }

/* ===== TESTS ===== */
.tests { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.test-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 20px; }
.test-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; gap: 8px; }
.test-title { font-size: 14px; font-weight: 700; }
.test-desc { font-size: 13px; color: var(--muted); line-height: 1.55; }
.test-detail { margin-top: 12px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: #9bb6f7; }
.test-detail div { padding: 3px 0; }

.badge { font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.badge-checking { background: rgba(255,255,255,.05); color: var(--muted); }
.badge-safe { background: rgba(79,198,96,.16); color: var(--green); }
.badge-leak { background: rgba(239,68,68,.16); color: #ff6b6b; }
.badge-warn { background: rgba(245,158,11,.16); color: var(--amber); }
.test-card.leak { border-color: rgba(239,68,68,.4); }
.test-card.safe { border-color: rgba(79,198,96,.35); }

/* ===== CTA ===== */
.cta {
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(67,125,252,.18), transparent 70%),
    linear-gradient(135deg, rgba(67,125,252,.10), rgba(139,92,246,.06));
  border: 1px solid rgba(67,125,252,.3); border-radius: 24px;
  padding: 26px; margin-bottom: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.cta-text h2 { font-size: 22px; font-weight: 800; }
.cta-text p { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 380px; }
.cta-btn {
  background: var(--blue); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap;
  padding: 15px 26px; border-radius: 999px; transition: all .15s;
  box-shadow: 0 8px 24px rgba(67,125,252,.35);
}
.cta-btn:hover { background: #5a8cff; box-shadow: 0 10px 32px rgba(67,125,252,.55); transform: translateY(-2px); }

/* ===== SEO CONTENT ===== */
.content { color: var(--muted); }
.content h2 { color: var(--text); font-size: 19px; font-weight: 700; margin: 26px 0 9px; }
.content p { font-size: 14px; line-height: 1.75; }
.content a { color: #6f9bff; text-decoration: none; }
.content a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.footer { position: relative; z-index: 1; text-align: center; color: var(--muted); font-size: 13px; padding: 30px 20px 40px; border-top: 1px solid var(--border); max-width: 780px; margin: 0 auto; }
.footer a { color: #6f9bff; text-decoration: none; }
.footer-tools { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.footer-tools .soon { color: var(--muted); opacity: .55; cursor: default; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(70px); background: var(--card-solid); border: 1px solid rgba(67,125,252,.4); color: var(--text); padding: 11px 20px; border-radius: 12px; font-size: 13px; z-index: 50; opacity: 0; transition: all .25s; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

@media (max-width: 560px) {
  .hero h1 { font-size: 30px; }
  .ip-value { font-size: 27px; }
  .tests { grid-template-columns: 1fr; }
  .ip-grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: stretch; text-align: center; }
  .score-card { flex-direction: column; text-align: center; }
  .score-row { text-align: left; }
}
