:root {
  --bg: #0d2a30;
  --bg-2: #0f3138;
  --bg-3: #13404a;
  --line: rgba(255, 255, 255, .08);
  --text: #eaf5f3;
  --muted: #9bb9b8;
  --green: #22c55e;
  --green-d: #15803d;
  --yellow: #f2c46d;
  --danger: #ef4444;
  --warning: #f97316;
  --suspicious: #f59e0b;
  --spam: #38bdf8;
  --safe: #22c55e;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.2rem;
  border-radius: 8px; font-weight: 700; border: 0; white-space: nowrap;
  transition: transform .12s, box-shadow .12s;
}
.btn-green { background: var(--green); color: #fff; box-shadow: 0 5px 0 var(--green-d); }
.btn-green:hover { transform: translateY(-1px); }
.btn-green:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--green-d); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 2rem;
  padding: .9rem clamp(16px, 4vw, 48px); background: rgba(13, 42, 48, .88);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; font-weight: 600; color: var(--green); }
.brand span { color: var(--text); }
.brand b { color: var(--green); font-weight: 800; }
.logo { width: 38px; height: 38px; color: var(--green); }
.links { display: flex; gap: 1.6rem; font-weight: 500; font-size: 1.02rem; }
.links a { opacity: .9; }
.links a:hover { color: var(--green); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: .9rem; }
.status {
  display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem;
  border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: .85rem; color: var(--muted);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.ok { color: var(--green); }
.status.ok i { background: var(--green); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 1.8s infinite; }
.status.down { color: var(--danger); }
.status.down i { background: var(--danger); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; min-height: calc(100vh - 70px);
  display: flex; flex-direction: column; justify-content: center; padding: 60px 20px 40px;
  background:
    repeating-radial-gradient(circle at 72% 42%, transparent 0 44px, rgba(255, 255, 255, .035) 44px 45px),
    radial-gradient(circle at 72% 42%, rgba(34, 197, 94, .12), transparent 45%),
    var(--bg);
}
.hero-inner {
  position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center;
}
.hero h1 {
  margin: 0 0 1rem; font-size: clamp(2.2rem, 5.2vw, 4.2rem); line-height: 1.12; font-weight: 900;
  letter-spacing: -.01em; text-align: center;
}
.hero h1 em { font-style: normal; color: var(--green); }
.lead { text-align: center; color: var(--muted); font-size: 1.05rem; max-width: 620px; margin: 0 auto 1.8rem; }
.lead b { color: var(--text); }

.search {
  display: flex; align-items: stretch; max-width: 680px; margin: 0 auto; background: #fff;
  border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18), 0 18px 50px rgba(0, 0, 0, .35);
}
.search-tag {
  display: flex; align-items: center; gap: .35rem; padding: 0 1rem; color: #334155; font-weight: 600;
  font-size: .9rem; border-right: 1px solid #e2e8f0; flex-shrink: 0;
}
.search-tag svg { width: 18px; height: 18px; }
.search textarea {
  flex: 1; min-width: 0; border: 0; outline: 0; resize: none; padding: 1.05rem 1rem;
  font: 500 1rem/1.5 inherit; font-family: inherit; color: #0f172a; background: transparent;
  max-height: 220px; min-height: 60px;
}
.search textarea::placeholder { color: #94a3b8; }
.clear { border: 0; background: transparent; color: var(--danger); font-size: 1.25rem; padding: 0 .9rem; }
.go {
  width: 72px; border: 0; background: var(--green); color: #fff; display: grid; place-items: center;
  flex-shrink: 0; transition: background .15s;
}
.go:hover { background: #16a34a; }
.go:disabled { background: #64748b; cursor: wait; }
.go svg { width: 30px; height: 30px; }

.samples { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.1rem; font-size: .88rem; }
.samples span { color: var(--muted); align-self: center; }
.samples button {
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text);
  padding: .32rem .8rem; border-radius: 999px; transition: .15s;
}
.samples button:hover { border-color: var(--green); color: var(--green); }

/* hero art */
.hero-art { position: relative; height: 380px; display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; border: 2px solid rgba(34, 197, 94, .25); }
.r1 { width: 300px; height: 300px; animation: spin 26s linear infinite; border-style: dashed; }
.r2 { width: 230px; height: 230px; border-color: rgba(34, 197, 94, .4); }
.r3 { width: 360px; height: 360px; border-color: rgba(242, 196, 109, .15); }
@keyframes spin { to { transform: rotate(360deg); } }
.phone {
  position: relative; width: 150px; height: 250px; border-radius: 26px; background: linear-gradient(160deg, #1b5560, #0f343b);
  border: 6px solid #1f6b5a; box-shadow: 0 25px 60px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .06);
  overflow: hidden; padding: 30px 14px;
}
.bubble { height: 26px; border-radius: 12px 12px 12px 4px; background: rgba(255, 255, 255, .18); margin-bottom: 12px; }
.b1 { width: 80%; }
.b2 { width: 95%; background: rgba(239, 68, 68, .55); height: 44px; }
.b3 { width: 60%; }
.scan {
  position: absolute; left: 0; right: 0; height: 3px; background: var(--green);
  box-shadow: 0 0 18px 6px rgba(34, 197, 94, .55); animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 14%; } 50% { top: 86%; } }
.shield { position: absolute; width: 86px; right: calc(50% - 120px); bottom: 40px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); animation: bob 3.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* decorative squares */
.sq { position: absolute; width: 38px; height: 38px; border: 2px solid rgba(34, 197, 94, .55); z-index: 1; animation: float 7s ease-in-out infinite; }
.sq.fill-y { background: var(--yellow); border: 0; opacity: .9; }
.sq.fill-g { background: var(--green); border: 0; }
.sq.big { width: 64px; height: 64px; }
.sq1 { top: 14%; left: 5%; } .sq2 { top: 24%; left: 3%; animation-delay: -2s; }
.sq3 { top: 19%; left: 6.5%; width: 34px; height: 34px; animation-delay: -4s; }
.sq4 { bottom: 26%; left: 6%; animation-delay: -1s; }
.sq5 { top: 7%; left: 46%; width: 58px; height: 58px; animation-delay: -3s; }
.sq6 { bottom: 24%; right: 7%; animation-delay: -5s; }
.sq7 { bottom: 6%; left: -18px; }
.sq8 { bottom: 10%; right: 26%; width: 56px; height: 56px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-12px) rotate(6deg); } }

.more {
  position: relative; z-index: 2; margin: 46px auto 0; display: flex; flex-direction: column; align-items: center;
  gap: .5rem; padding: .9rem 1rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px;
  background: rgba(255, 255, 255, .04); color: var(--muted); font-size: .9rem;
}
.mouse { width: 24px; height: 38px; border: 2px solid var(--text); border-radius: 14px; display: flex; justify-content: center; padding-top: 6px; }
.mouse i { width: 3px; height: 8px; border-radius: 2px; background: var(--text); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- result ---------- */
.result-wrap { padding: 40px 0 60px; background: var(--bg-2); border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.loading { text-align: center; padding: 30px; color: var(--muted); }
.spinner { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; border: 4px solid rgba(34, 197, 94, .2); border-top-color: var(--green); animation: spin .8s linear infinite; }
.error { padding: 1rem 1.2rem; border-radius: 10px; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .4); color: #fecaca; }

.result { --c: var(--green); border-radius: 16px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); animation: rise .35s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.result.danger { --c: var(--danger); } .result.warning { --c: var(--warning); }
.result.suspicious { --c: var(--suspicious); } .result.spam { --c: var(--spam); } .result.safe { --c: var(--safe); }

.r-head {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 26px 28px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 30%, var(--bg)), var(--bg) 75%);
  border-bottom: 1px solid var(--line);
}
.r-icon { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; font-size: 2.2rem; background: color-mix(in srgb, var(--c) 22%, transparent); border: 2px solid var(--c); }
.r-pill { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: var(--c); color: #0b1f23; font-weight: 800; font-size: .78rem; letter-spacing: .06em; }
.r-head h2 { margin: .35rem 0 .3rem; font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.25; }
.r-head p { margin: 0; color: var(--muted); max-width: 720px; }
.gauge { --p: 0; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); }
.gauge > div { width: 88px; height: 88px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; text-align: center; line-height: 1.1; }
.gauge b { font-size: 1.45rem; }
.gauge small { font-size: .66rem; color: var(--muted); display: block; max-width: 70px; }

.r-body { padding: 24px 28px 28px; display: grid; gap: 22px; }
.quote { padding: 14px 16px; border-left: 4px solid var(--c); background: rgba(255, 255, 255, .04); border-radius: 0 10px 10px 0; color: #d6e6e4; font-size: .95rem; word-break: break-word; white-space: pre-wrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.fact { padding: 14px 16px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); }
.fact .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fact .v { font-size: 1.08rem; font-weight: 700; margin-top: 2px; }
.fact .s { font-size: .85rem; color: var(--muted); }
.r-body h3 { margin: 0 0 10px; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.r-body h3::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--c); }
.list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.list li { padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.list li b { display: block; }
.list li span { color: var(--muted); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { padding: .12rem .55rem; border-radius: 6px; font-size: .78rem; font-weight: 600; background: color-mix(in srgb, var(--c) 18%, transparent); color: color-mix(in srgb, var(--c) 70%, white); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); font-family: ui-monospace, Consolas, monospace; }
.url { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.url.bad { color: #fca5a5; }
.flag { display: block; color: var(--muted); font-size: .88rem; padding-left: 1rem; position: relative; }
.flag::before { content: "!"; position: absolute; left: 0; color: var(--c); font-weight: 800; }
.disclaimer { margin-top: .6rem !important; font-size: .82rem; font-style: italic; color: #b7cfcd !important; opacity: .85; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.src { display: inline-flex; gap: .4rem; align-items: center; padding: .2rem .55rem; border-radius: 6px; font-size: .78rem; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); }
.src b { color: var(--text); font-weight: 700; }
.src.bad { border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .12); color: #fca5a5; }
.src.warn { border-color: rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .12); color: #fcd34d; }
.src.ok { border-color: rgba(34, 197, 94, .4); background: rgba(34, 197, 94, .1); color: #86efac; }
a.src:hover { filter: brightness(1.2); }
.advice li { display: flex; gap: .6rem; align-items: flex-start; }
.advice li::before { content: "✓"; color: var(--green); font-weight: 800; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

details.tech { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: rgba(255, 255, 255, .02); }
details.tech summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 14px; }
.node { padding: 12px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); font-size: .88rem; }
.node b { display: block; font-size: 1.15rem; }
.node.off { opacity: .45; }
.arrow { color: var(--muted); font-size: 1.3rem; }
.bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--c); }
.tech-meta { margin-top: 12px; font-size: .85rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 80px 0; scroll-margin-top: 60px; }
.section.alt { background: var(--bg-2); }
.section h2 { margin: 0; text-align: center; font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
.sub { text-align: center; color: var(--muted); margin: .4rem 0 2.4rem; }
.grid { display: grid; gap: 18px; }
.levels { grid-template-columns: repeat(4, 1fr); }
.lv { padding: 22px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); border-top: 4px solid var(--c); }
.lv-danger { --c: var(--danger); } .lv-suspicious { --c: var(--suspicious); } .lv-spam { --c: var(--spam); } .lv-safe { --c: var(--safe); }
.lv-ic { font-size: 1.8rem; }
.lv h3 { margin: .4rem 0; color: var(--c); }
.lv p { margin: 0; color: var(--muted); font-size: .92rem; }
.lv p b { color: var(--text); }
.steps { grid-template-columns: repeat(3, 1fr); }
.step { padding: 26px 22px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--green); color: #fff; font-weight: 800; box-shadow: 0 4px 0 var(--green-d); }
.step h3 { margin: 14px 0 6px; }
.step p { margin: 0; color: var(--muted); }
.tips { grid-template-columns: repeat(5, 1fr); }
.tip { padding: 20px; border-radius: 14px; border: 1px dashed rgba(34, 197, 94, .4); }
.tip b { color: var(--yellow); font-size: 1.5rem; }
.tip p { margin: .4rem 0 0; color: var(--muted); font-size: .9rem; }

.footer { padding: 26px 0; border-top: 1px solid var(--line); font-size: .85rem; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.muted { color: var(--muted); }
.footer .container { align-items: center; }
.author { margin-top: 4px; color: var(--muted); }
.author b { color: var(--green); font-weight: 700; }
.author .mail { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.author .mail:hover { color: var(--green); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .links { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .tips { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav { gap: 1rem; }
  .status { display: none; }
  .search-tag { display: none; }
  .go { width: 58px; }
  .r-head { grid-template-columns: 1fr; text-align: left; }
  .r-icon { width: 56px; height: 56px; font-size: 1.7rem; }
  .cols, .levels, .steps, .tips { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .sq { display: none; }
  .r-head, .r-body { padding-left: 18px; padding-right: 18px; }
}
