:root {
  --bg: #0b0e14;
  --panel: #121722;
  --panel-2: #161c28;
  --line: #232c3d;
  --text: #e6edf3;
  --muted: #8b97a8;
  --human: #2ecc71;
  --bot: #e74c3c;
  --accent: #4aa8ff;
  --accent-2: #7c5cff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #16243b 0, var(--bg) 55%);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Nav */
nav.site {
  display: flex; align-items: center; gap: 22px;
  padding: 16px 20px; max-width: 1080px; margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
nav.site .brand { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
nav.site .brand .spark { color: var(--accent); }
nav.site .links { display: flex; gap: 18px; margin-left: auto; align-items: center; flex-wrap: wrap; }
nav.site .links a { color: var(--muted); font-size: 14px; font-weight: 600; }
nav.site .links a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block; cursor: pointer; border: 0; border-radius: 10px;
  padding: 11px 20px; font-size: 15px; font-weight: 700; font-family: inherit;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  transition: transform .05s ease, background .15s ease;
}
.btn:hover { text-decoration: none; background: #1c2433; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 0; color: #fff;
}
.btn.primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.btn.lg { padding: 14px 26px; font-size: 16px; }
.btn.block { display: block; width: 100%; text-align: center; }

/* Sections */
section { padding: 64px 0; }
h1.hero { font-size: 46px; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 18px; }
h1.hero .grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.center { text-align: center; }
h2 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 10px; }
.muted { color: var(--muted); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } h1.hero { font-size: 34px; } }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; align-items: stretch; }
.tier {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column;
}
.tier.feat { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tier .name { font-weight: 800; font-size: 16px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.tier .price { font-size: 34px; font-weight: 800; margin: 12px 0 2px; }
.tier .price span { font-size: 14px; color: var(--muted); font-weight: 600; }
.tier ul { list-style: none; padding: 0; margin: 16px 0 22px; flex: 1; }
.tier li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.tier li b { color: var(--text); }
.tier li.locked { opacity: .5; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } }

/* Code */
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
pre {
  background: #0c111b; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; overflow-x: auto; font-size: 13px; line-height: 1.55; color: #cdd6e3;
}
code.inline { background: #0c111b; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; font-size: 13px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs button { background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 7px 13px; cursor: pointer; font-weight: 600; font-size: 13px; }
.tabs button.active { color: #fff; border-color: var(--accent); background: #15233a; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 28px 20px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--muted); }
footer.site .links { margin-left: auto; display: flex; gap: 16px; }

/* Account */
table.data { width: 100%; border-collapse: collapse; }
table.data td, table.data th { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.data th { color: var(--muted); font-weight: 600; }
.kbox { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-top: 18px; }
.bar { height: 9px; background: var(--panel-2); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
input.txt { width: 100%; background: #0c111b; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text); font-size: 15px; font-family: inherit; }
.note { color: var(--muted); font-size: 13px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #15233a; color: var(--accent); border: 1px solid var(--line); }
.hide { display: none; }

/* "What is my IP" widget */
.ipwidget { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; max-width: 560px; margin: 26px auto 0; text-align: left; }
.ipwidget .big { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ipwidget .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 14px; }
.ipwidget .lbl { color: var(--muted); font-size: 12px; }
.ipwidget .val { font-weight: 600; }
.ipwidget .threat-ok { color: var(--human); font-weight: 700; }
.ipwidget .threat-bad { color: var(--bot); font-weight: 700; }
.ipwidget .locked { color: var(--muted); font-size: 13px; margin-top: 14px; }
.ipwidget .locked a { font-weight: 600; }

/* FAQ accordion */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* Article body (blog) */
.article-body { font-size: 16px; line-height: 1.75; }
.article-body h2 { font-size: 23px; margin: 30px 0 10px; }
.article-body h3 { font-size: 18px; margin: 22px 0 8px; }
.article-body p { margin: 0 0 14px; }
.article-body ul, .article-body ol { margin: 0 0 14px; padding-left: 22px; }
.article-body li { margin: 6px 0; }
.article-body code.inline, .article-body code { background: #0c111b; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; font-size: 13px; }
.article-body pre { margin: 0 0 16px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.article-body th, .article-body td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.article-body th { color: var(--muted); }

/* Geo banner */
#geo-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--panel); border-top: 1px solid var(--line);
  padding: 12px 18px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 14px; }
#geo-banner a.btn { padding: 7px 14px; }
#geo-banner .x { cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; }

/* Feature cards with icons */
.feat-ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 8px; }

/* Language switcher */
.langsel { position: relative; display: inline-block; }
.langbtn { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px;
  padding: 7px 11px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.langbtn:hover { color: var(--text); }
.langmenu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 6px; min-width: 150px; display: none; z-index: 60; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.langbtn { cursor: pointer; }
.langsel:hover .langmenu, .langsel:focus-within .langmenu, .langsel.open .langmenu { display: block; }
.langmenu a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--text); font-size: 14px; font-weight: 500; }
.langmenu a:hover { background: var(--panel-2); text-decoration: none; }
.langmenu a.cur { color: var(--accent); font-weight: 700; }
