:root {
  --mint: #e8f9f9;
  --teal: #4fa5ba;
  --ink: #404040;
  --ink-2: #4d4d4d;
  --muted: rgba(64, 64, 64, 0.64);
  --nav: #707070;
  --line: #e2e2e2;
  --line-2: #d0d0d0;
  --grad: linear-gradient(106deg, #1bb1c6 0%, #1bc6b4 100%);
  --shadow: 0 0 15px 5px rgba(143, 138, 138, 0.08);
  --sans: "Segoe UI", "Noto Sans Arabic", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: #111; font-family: var(--sans); font-size: 18px; line-height: 1.5; color-scheme: light; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 8px 0 0; padding-inline-start: 1.15rem; }
li + li { margin-top: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -40px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 80; }
.skip:focus { top: 12px; }
header { position: sticky; top: 0; z-index: 40; height: 86px; background: #fff; box-shadow: var(--shadow); }
.bar { max-width: 1140px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: 0 1 auto; min-width: 0; }
.word { color: #8a8a8a; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; }
.nav { display: flex; align-items: center; }
.nav-link { border: 0; background: transparent; color: var(--nav); font-size: 18px; font-weight: 700; padding: 10px 16px; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-block; }
.nav-link:hover { color: var(--ink); }
.lang { position: relative; }
.lang > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.lang[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 190px; max-height: min(70vh, 440px); overflow: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(18, 40, 44, 0.12); z-index: 50; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.lang-menu a:hover, .lang-menu a[aria-current="page"] { background: var(--mint); color: #128ea0; }
.hero { background: var(--mint); padding: 48px 20px 40px; }
.tester { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(260px, 400px) minmax(260px, 1fr) minmax(260px, 400px); gap: 28px 32px; align-items: center; }
.panel-card { background: #fff; border: 1px solid var(--line); width: 100%; }
.conn { border-radius: 16px; padding: 20px 20px 8px; }
.conn-row { display: flex; align-items: center; gap: 20px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #ededed; }
.conn-row:last-child { border-bottom: 0; margin-bottom: 8px; }
.ico { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 10px; background: rgba(79, 165, 186, 0.08); display: grid; place-items: center; }
.conn h2 { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.value { margin-top: 4px; min-height: 18px; color: var(--muted); font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.sk { display: block; height: 14px; width: 92px; border-radius: 3px; background: linear-gradient(90deg, #e4eef0 25%, #f8fcfc 50%, #e4eef0 75%); background-size: 220% 100%; animation: wave 1.15s linear infinite; }
.center { text-align: center; }
h1 { color: var(--ink); font-size: 32px; font-weight: 800; letter-spacing: -0.9px; line-height: 1.2; margin-bottom: 22px; }
h1 em { font-style: normal; color: var(--teal); }
.orbit { width: 270px; height: 270px; margin: 0 auto; border: 2px dashed rgba(64, 64, 64, 0.55); border-radius: 50%; display: grid; place-items: center; position: relative; }
.orbit[hidden] { display: none !important; }
.rotor { position: absolute; inset: -1px; pointer-events: none; animation: spin 14s linear infinite; }
.is-testing .rotor { animation-duration: 1.1s; }
.dot { position: absolute; left: 50%; top: 0; width: 12px; height: 12px; border-radius: 50%; background: #1bb1c6; box-shadow: 0 0 0 4px rgba(27, 177, 198, 0.15); transform: translate(-50%, -50%); }
.go { width: 158px; height: 158px; border: 0; border-radius: 50%; background: linear-gradient(90deg, #1bb1c6, #1bc6b4); color: #fff; font-size: 28px; font-weight: 500; letter-spacing: 0.02em; cursor: pointer; z-index: 1; padding: 12px; }
.go:hover, .go-again:hover { transform: scale(1.04); }
.go:disabled, .go-again:disabled { cursor: progress; transform: none; }
.result-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 270px; }
.result-hero[hidden] { display: none !important; }
.result-kicker { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.result-num { margin-top: 2px; color: var(--teal); font-size: 76px; font-weight: 800; letter-spacing: -2px; line-height: 0.95; font-variant-numeric: tabular-nums; direction: ltr; }
.result-unit { margin-top: 4px; color: var(--muted); font-size: 16px; font-weight: 700; }
.result-mini { display: flex; gap: 22px; margin: 16px 0 18px; }
.result-mini span { text-align: center; }
.result-mini b { display: block; color: var(--teal); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; direction: ltr; }
.result-mini small { color: var(--muted); font-size: 12px; font-weight: 700; }
.go-again { width: 96px; height: 96px; border: 0; border-radius: 50%; background: linear-gradient(90deg, #1bb1c6, #1bc6b4); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.15; cursor: pointer; box-shadow: 0 0 0 8px rgba(27, 177, 198, 0.12); padding: 8px; }
.meter { position: relative; width: 360px; height: 300px; margin: 0 auto; }
.meter[hidden] { display: none !important; }
.meter canvas { width: 360px; height: 300px; display: block; }
.meter-read { position: absolute; left: 0; right: 0; top: 47%; text-align: center; pointer-events: none; }
.meter-phase { display: block; color: #7d8b90; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.meter-read strong { display: block; margin-top: 2px; color: var(--teal); font-size: 52px; font-weight: 800; letter-spacing: -1.5px; line-height: 0.95; font-variant-numeric: tabular-nums; direction: ltr; }
.meter-unit { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; font-weight: 700; }
.status { min-height: 22px; margin-top: 16px; color: var(--muted); font-size: 14px; font-weight: 600; }
.is-testing .status, .is-done .status { color: var(--teal); }
.gauges { border-radius: 10px; padding: 20px; }
.speed-row + .speed-row { margin-top: 18px; }
.speed-head, .metric { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.speed-label, .metric span { color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1; }
.num { color: var(--teal); font-size: 28px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; direction: ltr; }
.metric b { color: var(--teal); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; }
.unit { color: var(--muted); font-size: 16px; font-weight: 400; margin-inline-start: 4px; }
.track { margin-top: 10px; height: 12px; border-radius: 70px; background: rgba(79, 165, 186, 0.08); overflow: hidden; }
.fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--teal); transition: width 0.18s linear; }
.fill.live { background-image: linear-gradient(90deg, #4fa5ba, #8ed8cf, #4fa5ba); background-size: 200% 100%; animation: slide 0.9s linear infinite; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.metric { align-items: center; }
.metric + .metric { border-inline-start: 1px solid #ececec; padding-inline-start: 14px; }
.note { margin-top: 14px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.features { max-width: 1280px; margin: 56px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-height: 106px; }
.feature h3 { color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.35; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.disclosure { max-width: 920px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.45; }
.section { padding: 72px 20px; }
.wrap { max-width: 1110px; margin: 0 auto; }
.need-box { border: 1px solid var(--line-2); border-radius: 10px; padding: 48px 40px; }
.need-box h2, .guides h2 { color: var(--ink-2); font-size: 24px; font-weight: 800; margin-bottom: 28px; }
.faq h2 { color: var(--teal); font-size: 24px; font-weight: 800; margin-bottom: 22px; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.tiers h3 { color: var(--teal); font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.tiers p { color: #2c2c2c; font-size: 14px; line-height: 1.5; }
.guides h2 { margin-bottom: 22px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.guide { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.guide:hover { transform: translateY(-3px); border-color: #b7dde4; }
.art { height: 180px; background: linear-gradient(180deg, #f3fcfc 0%, #dff4f4 100%); display: grid; place-items: center; }
.guide-body { padding: 20px 20px 22px; }
.guide h3 { color: var(--ink-2); font-size: 20px; font-weight: 800; line-height: 1.3; min-height: 52px; }
.by { display: block; margin: 10px 0 16px; color: #8a8a8a; font-size: 14px; }
.read { border: 0; border-radius: 8px; padding: 8px 16px; background: var(--grad); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.faq-list { max-width: 920px; }
.faq-card { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 22px 26px; margin-bottom: 16px; }
.faq-card summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink-2); font-size: 18px; font-weight: 800; line-height: 1.35; }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); flex: 0 0 auto; margin-top: -4px; }
.faq-card[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.answer { padding-top: 12px; color: var(--ink); font-size: 16px; line-height: 1.65; }
.answer p + p { margin-top: 10px; }
footer { background: var(--grad); color: #fff; padding: 32px 20px 40px; }
.foot { max-width: 1140px; margin: 0 auto; }
.foot-top { display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.foot p { font-size: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot button, .foot a { background: none; border: 0; color: #fff; padding: 4px 0; cursor: pointer; font-size: 15px; font-weight: 600; text-decoration: none; }
.foot button:hover, .foot a:hover { text-decoration: underline; }
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(18, 40, 44, 0.46); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { width: min(560px, 100%); max-height: min(78vh, 640px); overflow: auto; background: #fff; color: var(--ink); border-radius: 16px; padding: 28px 28px 32px; position: relative; }
.modal-card h2 { font-size: 24px; color: var(--ink-2); margin-bottom: 12px; padding-inline-end: 28px; }
.modal-card p + p { margin-top: 10px; }
.x { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: var(--mint); color: var(--ink); font-size: 22px; cursor: pointer; }
:focus-visible { outline: 2px solid #1bb1c6; outline-offset: 3px; }
@media (max-width: 1180px) {
  .tester { grid-template-columns: 1fr; justify-items: center; }
  .center { order: 1; }
  .gauges { order: 2; width: min(100%, 520px); }
  .conn { order: 3; width: min(100%, 520px); }
  h1 { font-size: 28px; }
  .features { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-top: 36px; scrollbar-width: none; }
  .features::-webkit-scrollbar { display: none; }
  .feature { flex: 0 0 86%; scroll-snap-align: center; }
}
@media (max-width: 991px) {
  header { height: auto; }
  .bar { height: auto; min-height: 77px; padding-top: 10px; padding-bottom: 10px; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide h3 { min-height: 0; }
  .need-box { padding: 28px 20px; }
  .faq { background: #f9f9f9; }
}
@media (max-width: 767px) {
  .hero { padding: 32px 16px 28px; }
  .orbit { width: 236px; height: 236px; }
  .go { width: 168px; height: 168px; font-size: 26px; }
  .result-num { font-size: 60px; }
  .result-hero { min-height: 236px; }
  .meter, .meter canvas { width: 300px; height: 260px; }
  .meter-read { top: 45%; }
  .meter-read strong { font-size: 42px; }
  .ico { width: 48px; height: 48px; flex-basis: 48px; }
  .conn, .gauges { padding: 16px; }
  .speed-label, .metric span { font-size: 14px; }
  .num { font-size: 22px; }
  .metric b { font-size: 18px; }
  .unit { font-size: 12px; }
  .track { height: 8px; }
  .feature { padding: 16px; min-height: 0; }
  .feature p { display: none; }
  .disclosure { font-size: 12px; }
  .tiers { grid-template-columns: 1fr; }
  .section { padding: 48px 16px; }
  .faq-card { padding: 18px 16px; }
  .word { font-size: 11px; letter-spacing: 0.02em; }
  .nav-link { font-size: 15px; padding: 8px 6px; }
  .faq-card summary { font-size: 16px; }
  .foot-top { align-items: flex-start; flex-direction: column; }
  .bar { flex-wrap: wrap; gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rotor, .sk, .fill.live, .guide, .go, .go-again { animation: none; transition: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wave { to { background-position: -220% 0; } }
@keyframes slide { to { background-position: -200% 0; } }
