/* =========================================================
   internetas.net — modernus, animuotas, aštrūs kampai, aiškus kontrastas
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-2: #f2f5fa;
  --panel: #ffffff;
  --text: #0b1020;
  --text-2: #283046;
  --muted: #4a5368;
  --border: #cdd5e3;
  --border-strong: #0b1020;
  --g1: #0891b2;
  --g2: #2563eb;
  --g3: #7c3aed;
  --accent: #2563eb;
  --on-accent: #ffffff;
  --track: #e3e8f1;
  --net: 37, 99, 235;
  --blob-o: .16;
  --r-sm: 6px;   /* mygtukai, žymės, filtrai */
  --r: 10px;     /* kortelės, lentelė, skydelis */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b14;
    --bg-2: #0e1525;
    --panel: #0b1220;
    --text: #f5f7fb;
    --text-2: #d5dbe8;
    --muted: #a3aec4;
    --border: #253250;
    --border-strong: #3d4d72;
    --g1: #22d3ee;
    --g2: #3b82f6;
    --g3: #a855f7;
    --accent: #4f8cff;
    --on-accent: #ffffff;
    --track: #1b2640;
    --net: 96, 165, 250;
    --blob-o: .38;
  }
}
.g1 { stop-color: var(--g1); } .g2 { stop-color: var(--g2); } .g3 { stop-color: var(--g3); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 64px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--g1); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.grad-text {
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3), var(--g1));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }

/* ---------- Antraštė ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.logo-mark { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.logo-mark i { display: block; width: 5px; background: linear-gradient(var(--g2), var(--g1)); transform-origin: bottom; animation: eq 1.8s ease-in-out infinite; }
.logo-mark i:nth-child(1) { height: 7px; animation-delay: -.4s; }
.logo-mark i:nth-child(2) { height: 12px; animation-delay: -.8s; }
.logo-mark i:nth-child(3) { height: 18px; background: linear-gradient(var(--g3), var(--g2)); }
@keyframes eq { 50% { transform: scaleY(.55); } }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 12px; position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: linear-gradient(90deg, var(--g1), var(--g3)); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
@media (max-width: 520px) { .nav a { padding: 8px 7px; font-size: .85rem; } .nav a::after { left: 7px; right: 7px; } .nav a:nth-child(3), .nav a:nth-child(4), .nav a:nth-child(5) { display: none; } }

/* ---------- Pagrindinis blokas ---------- */
.hero { position: relative; overflow: hidden; overflow: clip; isolation: isolate; padding: 72px 0 44px; border-bottom: 1px solid var(--border); }
.net-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.blob { position: absolute; z-index: -2; border-radius: 50%; filter: blur(80px); opacity: var(--blob-o); will-change: transform; }
.b1 { width: 460px; height: 460px; background: var(--g2); top: -160px; left: -120px; animation: float1 18s ease-in-out infinite; }
.b2 { width: 380px; height: 380px; background: var(--g1); bottom: -160px; right: -100px; animation: float2 22s ease-in-out infinite; }
.b3 { width: 320px; height: 320px; background: var(--g3); top: 25%; left: 50%; animation: float3 26s ease-in-out infinite; opacity: calc(var(--blob-o) * .75); }
@keyframes float1 { 50% { transform: translate(140px, 90px) scale(1.15); } }
@keyframes float2 { 50% { transform: translate(-160px, -70px) scale(1.1); } }
@keyframes float3 { 50% { transform: translate(-200px, 50px) scale(.85); } }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 44px; } }

.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 12px;
  border: 1px solid var(--border-strong); background: var(--panel);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text);
}
.kicker::before { content: ""; width: 8px; height: 8px; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
h1, h2, h3 { letter-spacing: -.03em; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 800; }
.lead { font-size: 1.2rem; color: var(--text-2); margin: 22px 0 28px; max-width: 36ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 22px; border: 1px solid var(--border-strong); max-width: 460px; background: var(--panel); }
.facts div { padding: 14px 16px; transition: background .25s; }
.facts div:hover { background: var(--bg-2); }
.facts div + div { border-left: 1px solid var(--border-strong); }
.facts dt { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); font-size: .85rem; }
.hint { color: var(--muted); font-size: .95rem; margin: 0; }

/* Testo skydelis su besisukančiu gradientiniu kraštu */
.tester { position: relative; background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border-strong); }
.tester::before {
  content: ""; position: absolute; inset: -1px; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 55%, var(--g1), var(--g2), var(--g3), transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .9; animation: spin 6s linear infinite;
}
.tester.running::before { animation-duration: 1.4s; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
.tester-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.phase { font-family: var(--mono); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.tester.running .phase { color: var(--accent); }
.status-dot { width: 10px; height: 10px; background: var(--track); }
.tester.running .status-dot { background: var(--g1); box-shadow: 0 0 12px var(--g1); animation: blink .8s steps(2) infinite; }
.tester.done .status-dot { background: #22c55e; box-shadow: 0 0 10px #22c55e; }
@keyframes blink { 50% { opacity: .2; } }

.dial-wrap { padding: 26px 26px 6px; }
.dial { width: 100%; max-width: 380px; display: block; margin: 0 auto; overflow: visible; }
.gauge-track, .gauge-fill { fill: none; stroke-width: 12; stroke-linecap: butt; }
.gauge-track { stroke: var(--track); }
.gauge-fill { stroke: url(#gGrad); stroke-dasharray: 252; stroke-dashoffset: 252; transition: stroke-dashoffset .25s ease-out; }
.gauge-knob { fill: #fff; stroke: var(--g2); stroke-width: 2.5; transform: translate(20px, 110px); transition: transform .25s ease-out; }
.gauge-tick { stroke: var(--muted); stroke-width: 1.2; }
.gauge-label { fill: var(--muted); font-family: var(--mono); font-size: 7.5px; font-weight: 500; text-anchor: middle; }
.dial-value { fill: var(--text); font-family: var(--mono); font-size: 36px; font-weight: 700; text-anchor: middle; letter-spacing: -.04em; }
.dial-unit { fill: var(--muted); font-family: var(--font); font-size: 9px; font-weight: 700; text-anchor: middle; letter-spacing: .12em; text-transform: uppercase; }
.tester.running .dial-value { animation: flicker 1.2s ease-in-out infinite; }
@keyframes flicker { 50% { filter: drop-shadow(0 0 10px var(--g2)); } }

/* Mygtukas su pulsuojančiais rėmeliais */
.btn-wrap { position: relative; margin: 14px 18px 20px; }
.btn-wrap::before, .btn-wrap::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--g2); pointer-events: none; animation: ring 2.4s cubic-bezier(.2, .6, .4, 1) infinite; }
.btn-wrap::after { animation-delay: 1.2s; }
.btn-wrap:has(.btn:disabled)::before, .btn-wrap:has(.btn:disabled)::after { animation: none; opacity: 0; }
@keyframes ring { from { transform: scale(1); opacity: .65; } to { transform: scale(1.06, 1.45); opacity: 0; } }
.btn {
  position: relative; z-index: 1; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 20px; border: 0; cursor: pointer; color: #fff;
  font-family: var(--font); font-size: 1.02rem; font-weight: 700; letter-spacing: .01em;
  background: linear-gradient(90deg, var(--g2), var(--g1), var(--g3), var(--g2)); background-size: 300% 100%;
  animation: flow 6s linear infinite; transition: transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--g2) 70%, transparent); }
.btn:active { transform: translateY(0); }
.btn-arrow { transition: transform .3s; }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn:disabled { cursor: progress; transform: none; box-shadow: none; animation-duration: 1.5s; }
@keyframes flow { to { background-position: 300% 0; } }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.metric { padding: 16px 18px; position: relative; overflow: hidden; transition: background .25s; }
.metric + .metric { border-left: 1px solid var(--border); }
.metric-label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.metric-value { font-family: var(--mono); font-size: 1.8rem; font-weight: 700; line-height: 1.2; letter-spacing: -.03em; margin-top: 2px; }
.metric-value small { font-family: var(--font); font-size: .75rem; font-weight: 600; color: var(--muted); margin-left: 5px; letter-spacing: 0; }
.metric-sub { font-size: .75rem; color: var(--muted); }
.metric.active { background: var(--bg-2); }
.metric.active::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3)); }
.metric.active::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--g2) 14%, transparent), transparent); animation: sweep 1.2s linear infinite; }
@keyframes sweep { to { left: 100%; } }
@media (max-width: 520px) {
  .metrics { grid-template-columns: 1fr; }
  .metric + .metric { border-left: 0; border-top: 1px solid var(--border); }
  .metric { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; }
  .metric-sub { width: 100%; }
}

.verdict { border-top: 1px solid var(--border); padding: 16px 18px; color: #fff; background: linear-gradient(110deg, #1d4ed8, #6d28d9); }
.verdict strong { display: block; font-size: 1.1rem; }
.verdict a { color: inherit; font-weight: 700; }
.fineprint { font-size: .85rem; color: var(--muted); margin-top: 26px; margin-bottom: 0; }

/* ---------- Skyriai ---------- */
.section { padding: 92px 0; border-bottom: 1px solid var(--border); }
.section-head { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; margin-bottom: 38px; }
.section-num {
  font-family: var(--mono); font-weight: 700; font-size: .9rem; padding: 5px 9px; line-height: 1.4; margin-top: 6px; color: #fff;
  background: linear-gradient(135deg, var(--g2), var(--g3));
}
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; }
.section-lead { color: var(--text-2); margin: 10px 0 0; font-size: 1.1rem; }

.filters { display: flex; flex-wrap: wrap; margin-bottom: 20px; border: 1px solid var(--border-strong); width: fit-content; max-width: 100%; }
.chip { padding: 10px 16px; border: 0; background: var(--panel); color: var(--text); font-family: var(--font); font-size: .92rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.chip + .chip { border-left: 1px solid var(--border-strong); }
.chip:hover { background: var(--bg-2); }
.chip.active { background: linear-gradient(135deg, var(--g2), var(--g3)); color: #fff; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border-strong); background: var(--panel); }
.isp-table { width: 100%; border-collapse: collapse; }
.isp-table th, .isp-table td { padding: 18px 20px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.isp-table th { background: var(--bg-2); color: var(--text-2); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--border-strong); }
.isp-table tr:last-child td { border-bottom: 0; }
.isp-table tbody tr { position: relative; transition: background .2s; animation: rowIn .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 60ms); }
.isp-table tbody tr:hover { background: var(--bg-2); }
.isp-table tbody tr td:first-child { box-shadow: inset 0 0 0 0 var(--g2); transition: box-shadow .2s; }
.isp-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 0 var(--g2); }
@keyframes rowIn { from { opacity: 0; transform: translateX(-14px); } }
.isp-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.isp-area { font-size: .86rem; color: var(--muted); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 8px; margin: 2px 4px 2px 0; border: 1px solid var(--border-strong); white-space: nowrap; color: var(--text-2); }
.speed { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.match { display: inline-block; margin-top: 6px; font-size: .75rem; font-weight: 700; padding: 2px 7px; color: #fff; background: linear-gradient(135deg, var(--g2), var(--g3)); animation: pop .5s both; }
.isp-link { display: inline-flex; gap: 6px; white-space: nowrap; font-weight: 700; font-size: .9rem; text-decoration: none; padding: 9px 13px; border: 1px solid var(--border-strong); color: var(--text); transition: background .2s, color .2s, border-color .2s; }
.isp-link span { transition: transform .25s; }
.isp-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
tr:hover .isp-link span { transform: translateX(4px); }
@media (max-width: 760px) {
  .isp-table thead { display: none; }
  .isp-table, .isp-table tbody, .isp-table tr, .isp-table td { display: block; width: 100%; }
  .isp-table tr { padding: 16px; border-bottom: 1px solid var(--border); }
  .isp-table tr:last-child { border-bottom: 0; }
  .isp-table td { padding: 4px 0; border: 0; }
  .isp-table tbody tr:hover td:first-child { box-shadow: none; }
  .isp-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: .75rem; font-weight: 600; }
  .isp-table td:last-child { padding-top: 10px; }
}

.needs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.need { position: relative; padding: 28px 24px 30px; border: 1px solid var(--border-strong); background: var(--panel); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; overflow: hidden; }
.need::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.need:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--g2) 55%, transparent); }
.need:hover::before { transform: scaleX(1); }
.need-num { font-family: var(--mono); font-size: 2rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.need-num small { font-family: var(--font); font-size: .8rem; font-weight: 600; margin-left: 6px; letter-spacing: 0; -webkit-text-fill-color: var(--muted); }
.need h3 { font-size: 1.2rem; font-weight: 700; margin: 22px 0 8px; letter-spacing: -.01em; }
.need p { margin: 0; color: var(--text-2); font-size: .97rem; }
@media (max-width: 900px) { .needs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .needs { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--border-strong); max-width: 860px; }
details { border-bottom: 1px solid var(--border); }
summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; transition: color .2s; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border-strong); font-weight: 500; font-size: 1.2rem; transition: transform .3s, background .2s, color .2s; }
summary:hover { color: var(--accent); }
details[open] summary::after { transform: rotate(45deg); background: linear-gradient(135deg, var(--g2), var(--g3)); color: #fff; border-color: transparent; }
details p { margin: 0 0 24px; color: var(--text-2); max-width: 70ch; font-size: 1.02rem; }
details[open] p { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Poraštė ---------- */
.site-footer { background: #070b14; color: #f5f7fb; padding: 40px 0; border-top: 1px solid var(--border); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3)); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .logo { color: #f5f7fb; }
.site-footer p { margin: 0; font-size: .88rem; color: #b6c0d4; }

/* ---------- Bendros animacijos ---------- */
.intro { opacity: 0; transform: translateY(18px); animation: rise .7s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.pop { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.metric-value span { display: inline-block; }
.verdict:not([hidden]) { animation: slideIn .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slideIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro, .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Šiek tiek suapvalinti kampai ---------- */
.kicker, .tag, .match, .section-num, .isp-link, .status-dot { border-radius: var(--r-sm); }
.status-dot { border-radius: 3px; }
.facts, .filters, .table-wrap, .need { border-radius: var(--r); overflow: hidden; }
.need { overflow: hidden; }
.tester { border-radius: var(--r); overflow: hidden; }
.tester::before { inset: 0; border-radius: inherit; }
.btn, .btn-wrap::before, .btn-wrap::after { border-radius: var(--r-sm); }
summary::after { border-radius: var(--r-sm); }
.kicker::before { border-radius: 50%; }
.isp-table th:first-child { border-top-left-radius: 0; }

/* Matavimo serveris testo kortelės viršuje */
.server-info { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .78rem; color: var(--text-2); }
.server-info b { color: var(--accent); font-weight: 700; }
.server-info .pin { color: var(--g1); }

/* ---------- 3D gaublys su matavimo serveriu ---------- */
.hero-grid { align-items: start; }
.hero-text .tester { margin-top: 4px; }
.globe-col { position: sticky; top: 84px; }
.globe-box { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; margin: 0 auto; }
.globe-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#globe { cursor: grab; contain: layout paint size; opacity: 0; transition: opacity 1.2s ease; touch-action: pan-y; }
#globe.ready { opacity: 1; }
#globe:active { cursor: grabbing; }
.globe-overlay { pointer-events: none; }
.globe-glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--g2) 35%, transparent), transparent 70%); filter: blur(30px); z-index: -1; }
.ping-chip {
  position: absolute; z-index: 2; padding: 6px 10px; font-family: var(--mono); font-size: .78rem; font-weight: 700; color: var(--text);
  background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--r-sm); white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), opacity .4s;
}
.ping-chip i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin-right: 6px; }
.ping-chip.off { opacity: .4; transform: scale(.94); }
.chip-1 { top: 8%; left: 0; } .chip-2 { top: 48%; right: 0; } .chip-3 { bottom: 8%; left: 4%; }
.globe-hint { text-align: center; color: var(--muted); font-size: .85rem; margin: 8px 0 0; }
@media (max-width: 900px) {
  .globe-col { position: static; }
  .globe-box { max-width: 420px; }
  .ping-chip { font-size: .7rem; padding: 5px 8px; }
  .chip-1, .chip-3 { display: none; }
  .chip-2 { top: auto; bottom: 2%; right: 2%; }
}

/* Spidometras (drobė) */
.dial-canvas { display: block; width: 100%; max-width: 420px; height: 260px; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 520px) { .dial-canvas { height: 230px; } }

/* =========================================================
   Testas be kortelės: žiedas tiesiog puslapyje
   ========================================================= */
.tester { background: none; border: 0; border-radius: 0; overflow: visible; backdrop-filter: none; -webkit-backdrop-filter: none; margin-top: 10px; }
.tester::before, .tester::after { display: none; }

.tester-status { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.tester-status > span {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: .76rem; font-weight: 600;
  background: color-mix(in srgb, var(--panel) 70%, transparent); border: 1px solid var(--border);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .4s, color .4s;
}
.tester.running .tester-status .phase { border-color: color-mix(in srgb, var(--g2) 60%, var(--border)); }

.dial-wrap { position: relative; padding: 0; isolation: isolate; }
.dial-wrap::before {
  content: ""; position: absolute; inset: 14% 22%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--g2) 30%, transparent), transparent 70%);
  filter: blur(34px); opacity: .55; transition: opacity .8s, transform .8s;
}
.tester.running .dial-wrap::before { opacity: 1; transform: scale(1.15); }
.dial-canvas { height: 330px; max-width: 460px; }

/* Apvalus mygtukas žiedo centre, po testo virsta „pilule“ apačioje */
.go-btn {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 138px; height: 138px; border-radius: 69px;
  transform: translate(-50%, -50%); border: 0; cursor: pointer; color: #fff;
  font: 800 1.15rem/1.1 var(--font); letter-spacing: -.01em;
  background: radial-gradient(circle at 30% 25%, var(--g1), var(--g2) 55%, var(--g3));
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--g2) 12%, transparent), 0 22px 50px -12px color-mix(in srgb, var(--g2) 75%, transparent);
  transition: top .6s cubic-bezier(.2, .8, .2, 1), width .6s cubic-bezier(.2, .8, .2, 1), height .6s cubic-bezier(.2, .8, .2, 1),
              border-radius .6s, transform .45s cubic-bezier(.2, .8, .2, 1), opacity .4s, box-shadow .4s, font-size .4s;
}
.go-btn::after {
  content: ""; position: absolute; inset: -10px; border-radius: inherit; border: 2px solid var(--g2);
  animation: goPulse 2.4s ease-out infinite; pointer-events: none;
}
@keyframes goPulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.4); opacity: 0; } }
.go-btn:hover { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 14px color-mix(in srgb, var(--g2) 16%, transparent), 0 26px 60px -12px color-mix(in srgb, var(--g2) 85%, transparent); }
.go-btn:active { transform: translate(-50%, -50%) scale(.97); }
.go-btn:focus-visible { outline: 3px solid var(--g1); outline-offset: 6px; }
.tester.running .go-btn { opacity: 0; transform: translate(-50%, -50%) scale(.4); pointer-events: none; }
.tester.done .go-btn { top: 91%; width: 176px; height: 46px; border-radius: 23px; font-size: .95rem; box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--g2) 80%, transparent); }
.tester.done .go-btn::after { animation: none; opacity: 0; }
.tester.done .go-btn:hover { transform: translate(-50%, -50%) translateY(-2px); }

/* Rodikliai be dėžučių */
.tester .metrics { border-top: 0; margin-top: 14px; }
.tester .metric { background: none !important; text-align: center; padding: 10px 8px 14px; }
.tester .metric + .metric { border-left: 1px solid var(--border); }
.tester .metric::before {
  content: ""; position: absolute; left: 22%; right: 22%; top: auto; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3)); transform: scaleX(0); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.tester .metric.active::before { transform: scaleX(1); }
.tester .metric.active::after { display: none; }
.tester .metric.active .metric-label { color: var(--accent); }
.tester .metric-value { font-size: 1.9rem; }
@media (max-width: 520px) {
  .tester .metrics { grid-template-columns: repeat(3, 1fr); }
  .tester .metric { display: block; padding: 8px 4px 12px; }
  .tester .metric + .metric { border-left: 1px solid var(--border); border-top: 0; }
  .tester .metric-value { font-size: 1.3rem; }
  .tester .metric-value small { display: block; margin: 0; }
  .tester .metric-label { font-size: .7rem; }
  .dial-canvas { height: 290px; }
  .go-btn { width: 122px; height: 122px; border-radius: 61px; }
}

/* Įvertinimas – tekstas su gradientine juostele, be dėžutės */
.tester .verdict { margin-top: 18px; padding: 4px 0 4px 16px; background: none; color: var(--text); border: 0; position: relative; }
.tester .verdict::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: linear-gradient(var(--g1), var(--g3)); }
.tester .verdict a { color: var(--accent); }

/* =========================================================
   Greičio testas – pagrindinis akcentas, gaublys – fone
   ========================================================= */
.hero { padding: 56px 0 72px; }
.hero-center { position: relative; z-index: 1; max-width: 780px; text-align: center; }
.hero-center .kicker { margin-bottom: 16px; }
.hero-center h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.hero-center .lead { margin: 16px auto 26px; max-width: 46ch; }
.hero-center .tester { max-width: 640px; margin: 0 auto; }
.hero-center .fineprint { margin-top: 30px; }
.hero-center .verdict { text-align: left; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero .dial-canvas { height: 400px; max-width: 560px; }
.hero .go-btn { width: 156px; height: 156px; border-radius: 78px; font-size: 1.25rem; }
.hero .tester.done .go-btn { width: 180px; height: 48px; border-radius: 24px; font-size: .98rem; }
.net-bg { opacity: .45; }

/* Gaublys kaip „horizontas“ apačioje, už testo */
.hero-globe {
  --gw: min(1250px, 160vw);
  position: absolute; left: 50%; top: calc(100% - var(--gw) * .40); z-index: -1;
  width: var(--gw); aspect-ratio: 1; transform: translateX(-50%);
  pointer-events: none; opacity: 0; animation: globeIn 2s .4s ease forwards;
  -webkit-mask-image: linear-gradient(to bottom, transparent 8%, rgba(0,0,0,.6) 22%, #000 40%);
  mask-image: linear-gradient(to bottom, transparent 8%, rgba(0,0,0,.6) 22%, #000 40%);
}
.hero-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes globeIn { to { opacity: .5; } }
@media (prefers-color-scheme: light) { @keyframes globeIn { to { opacity: .75; } } }
.hero-globe #globe { opacity: 1; cursor: default; }

@media (max-width: 520px) {
  .hero { padding-top: 36px; }
  .hero .dial-canvas { height: 300px; }
  .hero .go-btn { width: 126px; height: 126px; border-radius: 63px; font-size: 1.1rem; }
  .hero-globe { --gw: 190vw; top: calc(100% - var(--gw) * .42); }
}
@media (prefers-reduced-motion: reduce) { .hero-globe { opacity: .5; animation: none; } }

/* Skaitomumas virš gaublio */
.hero-center .metric-label, .hero-center .metric-value, .hero-center .metric-sub, .hero-center .fineprint, .hero-center .verdict {
  text-shadow: 0 1px 2px var(--bg), 0 0 18px var(--bg), 0 0 30px var(--bg);
}
.hero-center .dial-wrap::after {
  content: ""; position: absolute; inset: 8% 18%; z-index: -2; border-radius: 50%;
  background: radial-gradient(circle, var(--bg) 35%, transparent 70%); opacity: .85;
}

/* =========================================================
   Mano IP
   ========================================================= */
.ip-pill {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  font-family: var(--mono); font-size: .76rem; font-weight: 600; color: var(--text);
  background: color-mix(in srgb, var(--panel) 70%, transparent); border: 1px solid var(--border);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .25s, background .25s;
}
.ip-pill:hover { border-color: var(--g2); }
.ip-pill.copied, .ip-btn.copied { border-color: #22c55e; color: #22c55e; }

.ip-panel {
  display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--border-strong); border-radius: var(--r);
  background: var(--panel); overflow: hidden; position: relative;
}
.ip-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3)); }
.ip-main { padding: 34px 32px; display: flex; flex-direction: column; justify-content: center; gap: 14px; border-right: 1px solid var(--border); }
.ip-label { color: var(--muted); font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: 10px; }
.ip-badge { font-family: var(--mono); font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: var(--r-sm); color: #fff; background: linear-gradient(135deg, var(--g2), var(--g3)); }
.ip-value { font-family: var(--mono); font-weight: 700; font-size: clamp(1.6rem, 4.2vw, 2.9rem); letter-spacing: -.03em; line-height: 1.1; word-break: break-all; transition: filter .35s; }
.ip-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ip-btn {
  padding: 10px 18px; border-radius: var(--r-sm); cursor: pointer; font: 700 .92rem var(--font);
  color: #fff; border: 1px solid transparent; background: linear-gradient(135deg, var(--g2), var(--g3));
  transition: transform .15s, box-shadow .2s, color .2s, border-color .2s;
}
.ip-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--g2) 80%, transparent); }
.ip-btn.ghost { background: none; color: var(--text); border-color: var(--border-strong); }
.ip-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.ip-grid div { padding: 18px 22px; border-bottom: 1px solid var(--border); min-width: 0; }
.ip-grid div:nth-child(odd) { border-right: 1px solid var(--border); }
.ip-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.ip-grid dt { font-size: .78rem; font-weight: 600; color: var(--muted); }
.ip-grid dd { margin: 4px 0 0; font-family: var(--mono); font-weight: 700; font-size: .98rem; overflow-wrap: anywhere; transition: filter .35s; }
.ip-grid dd.ip-none { color: var(--muted); font-family: var(--font); font-weight: 600; }
.masked { filter: blur(7px); user-select: none; }
.ip-none.masked { filter: none; }
@media (max-width: 760px) {
  .ip-panel { grid-template-columns: 1fr; }
  .ip-main { border-right: 0; border-bottom: 1px solid var(--border); padding: 26px 20px; }
  .ip-grid div { padding: 14px 16px; }
}

/* Našumas: spalvoti burbulai be brangaus filter: blur (tas pats vaizdas per radialinį gradientą) */
.blob { filter: none; border-radius: 50%; }
.b1 { background: radial-gradient(circle, color-mix(in srgb, var(--g2) 70%, transparent), transparent 68%); }
.b2 { background: radial-gradient(circle, color-mix(in srgb, var(--g1) 70%, transparent), transparent 68%); }
.b3 { background: radial-gradient(circle, color-mix(in srgb, var(--g3) 70%, transparent), transparent 68%); }
.b1, .b2, .b3 { width: 620px; height: 620px; }

/* =========================================================
   Testų istorija
   ========================================================= */
.hist-tabs { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--border-strong); border-radius: calc(var(--r-sm) + 4px); background: var(--panel); margin-bottom: 18px; }
.hist-tab { border: 0; background: none; color: var(--text-2); font: 600 .95rem var(--font); padding: 9px 16px; border-radius: var(--r-sm); cursor: pointer; transition: background .25s, color .25s; display: inline-flex; align-items: center; gap: 8px; }
.hist-tab:hover { color: var(--text); }
.hist-tab.active { background: linear-gradient(135deg, var(--g2), var(--g3)); color: #fff; }
.hist-count { font-family: var(--mono); font-size: .75rem; opacity: .85; }
.hist-count:empty { display: none; }

.hist-list { border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.hist-row {
  display: grid; grid-template-columns: 130px minmax(140px, 1.2fr) 1fr 1fr 80px; gap: 14px; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--border); animation: rowIn .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 40ms);
}
.hist-row:last-child { border-bottom: 0; }
.hist-row.new { background: color-mix(in srgb, var(--g2) 9%, transparent); }
.hist-when { color: var(--muted); font-size: .88rem; }
.hist-place { font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; }
.hist-place small { font-family: var(--mono); font-size: .72rem; color: var(--muted); font-weight: 600; padding: 1px 6px; border: 1px solid var(--border); border-radius: 4px; }
.hist-val { position: relative; font-family: var(--mono); font-size: .92rem; padding-bottom: 6px; white-space: nowrap; }
.hist-val b { font-size: 1.05rem; }
.hist-val .dir { color: var(--muted); margin-right: 4px; }
.hist-val::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 3px; width: var(--w, 0%); background: linear-gradient(90deg, var(--g1), var(--g2)); }
.hist-val.up::after { background: linear-gradient(90deg, var(--g2), var(--g3)); }
.hist-val small { color: var(--muted); font-family: var(--font); font-weight: 600; font-size: .72rem; margin-left: 3px; }
.hist-ping { font-family: var(--mono); font-size: .9rem; color: var(--text-2); text-align: right; white-space: nowrap; }
.hist-empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.hist-empty a { font-weight: 700; }
.hist-clear { margin-top: 14px; }

.hist-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.hist-country { border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--panel); padding: 14px 16px; }
.hist-country .name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.hist-country .n { color: var(--muted); font-size: .8rem; font-weight: 600; margin-left: auto; }
.hist-country .speeds { font-family: var(--mono); font-size: .88rem; margin-top: 6px; color: var(--text-2); }

@media (max-width: 760px) {
  .hist-row { grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 14px 16px; }
  .hist-when { grid-column: 2; grid-row: 1; text-align: right; font-size: .8rem; }
  .hist-place { grid-column: 1; grid-row: 1; }
  .hist-ping { grid-column: 1 / -1; text-align: left; font-size: .8rem; color: var(--muted); }
  .hist-tabs { display: flex; width: 100%; }
  .hist-tab { flex: 1; justify-content: center; }
}
@media (max-width: 760px) {
  .hist-countries { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hist-country { padding: 10px 12px; }
  .hist-country .name { font-size: .9rem; flex-wrap: wrap; gap: 4px 6px; }
  .hist-country .n { margin-left: 0; width: 100%; }
  .hist-country .speeds { font-size: .74rem; }
}
