/* ==========================================================================
   SpeedTest Pro — devura edition
   Design system, layout, components and animations
   ========================================================================== */

@font-face {
  font-family: "Yekan Bakh";
  /* the font lives in the classic /api folder, two levels above this stylesheet */
  src: url("../../api/parsico.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Yekan Bakh", "Segoe UI", Tahoma, sans-serif;

  /* palette taken from parsico.org: black canvas, violet accent */
  --bg-0: #000000;
  --bg-1: #050507;
  --bg-2: #0a0a10;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(15, 15, 20, 0.86);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-strong: rgba(255, 255, 255, 0.20);

  --text: #f5f5f7;
  --text-2: #a3a3ad;
  --text-3: #6c6c78;

  --brand-1: #8b7bff;
  --brand-2: #6d5cf6;
  --brand-3: #6c4cf1;
  --brand-3-hover: #7c5ff8;
  --grad: linear-gradient(120deg, #7c5ff8 0%, #6c4cf1 100%);
  --grad-soft: linear-gradient(120deg, rgba(124, 95, 248, .14), rgba(108, 76, 241, .10));

  --dl: #7dd3fc;
  --dl-2: #a5b4fc;
  --ul: #c4b5fd;
  --ul-2: #f0abfc;
  --ping: #fbbf24;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f43f5e;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  --shadow-glow: none;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --danger: #f87171;
  --header-h: 72px;
}

html[data-theme="light"] {
  -webkit-text-size-adjust: 100%;
  --bg-0: #fafafa;
  --bg-1: #ffffff;
  --bg-2: #f2f2f5;
  --surface: rgba(0, 0, 0, 0.025);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-hover: rgba(0, 0, 0, 0.05);
  --stroke: rgba(0, 0, 0, 0.09);
  --stroke-strong: rgba(0, 0, 0, 0.18);
  --text: #0b0b0f;
  --text-2: #4a4a55;
  --text-3: #85858f;
  --dl: #0284c7;
  --dl-2: #6366f1;
  --ul: #6d4cf0;
  --ul-2: #a21caf;
  --ping: #b45309;
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.18);
  --shadow-glow: none;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #2c3a60 transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-0);
  overflow-x: hidden;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

::selection { background: rgba(124, 95, 248, .40); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: min(1200px, 100% - 40px);
  margin-inline: 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;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- background scene ---------- */

/* Static background in the parsico.org style: black canvas with one violet halo arc. */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(115% 62% at 50% -18%, rgba(108, 76, 241, 0.55) 0%, rgba(108, 76, 241, 0.28) 32%,
      rgba(67, 44, 160, 0.14) 48%, rgba(0, 0, 0, 0) 68%),
    var(--bg-0);
}

.bg-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 55% at 50% 0%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 72%, #000 88%);
}

html[data-theme="light"] .bg-scene {
  background:
    radial-gradient(115% 60% at 50% -20%, rgba(108, 76, 241, 0.18) 0%, rgba(108, 76, 241, 0.07) 40%, rgba(250, 250, 250, 0) 65%),
    var(--bg-0);
}

html[data-theme="light"] .bg-scene::after { display: none; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: linear-gradient(180deg, rgba(4, 7, 15, .86), rgba(4, 7, 15, .55));
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}

html[data-theme="light"] .site-header {
  background: linear-gradient(180deg, rgba(246, 249, 254, .9), rgba(246, 249, 254, .6));
}

.site-header.is-stuck {
  border-bottom-color: var(--stroke);
  background: rgba(4, 7, 15, .82);
}

html[data-theme="light"] .site-header.is-stuck { background: rgba(246, 249, 254, .88); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 17px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-3);
  position: relative;
  overflow: hidden;
}

.brand-logo { background: var(--brand-3); box-shadow: none; }

.brand-logo svg { width: 22px; height: 22px; color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text small { font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: 1.5px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
}

.nav a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text-2);
  transition: color .2s, background .2s;
}

.nav a:hover { color: var(--text); background: var(--surface-hover); }
.nav a.active { color: var(--text); background: var(--surface-hover); box-shadow: inset 0 0 0 1px var(--stroke-strong); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
  color: var(--text-2);
}

.icon-btn:hover { transform: translateY(-2px); background: var(--surface-hover); border-color: var(--stroke-strong); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .sun { display: none; }
html[data-theme="light"] .icon-btn .sun { display: block; }
html[data-theme="light"] .icon-btn .moon { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s, opacity .2s;
  white-space: nowrap;
  user-select: none;
}

.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
/* flat purple primary (parsico.org style): solid fill, no glow, no gradient animation */
.btn-primary {
  background: var(--brand-3);
  color: #fff;
  box-shadow: none;
}

.btn-primary:hover { background: var(--brand-3-hover); transform: translateY(-1px); box-shadow: none; }

.btn-ghost {
  background: var(--surface);
  border-color: var(--stroke-strong);
  color: var(--text);
}

.btn-ghost:hover { background: var(--surface-hover); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- hero / tester ---------- */

.hero {
  position: relative;
  padding: 48px 0 24px;
}

.hero-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-2);
  backdrop-filter: blur(10px);
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  position: relative;
}

.pill[data-state="ready"] .dot { background: var(--good); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
.pill[data-state="testing"] .dot { background: var(--brand-1); box-shadow: 0 0 0 4px rgba(124, 95, 248, .18); }
.pill[data-state="testing"] .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--brand-1); animation: pingRing 1.4s ease-out infinite;
}
.pill[data-state="loading"] .dot { background: var(--warn); animation: blink 1s ease infinite; }
.pill[data-state="error"] .dot { background: var(--bad); }

@keyframes pingRing { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
@keyframes blink { 50% { opacity: .3; } }

.hero-title {
  margin: 18px 0 10px;
  text-wrap: balance;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.5px;
}

.hero-sub {
  margin: 0 auto;
  text-wrap: balance;
  color: var(--text-2);
  font-size: clamp(14px, 1.6vw, 16.5px);
  max-width: 620px;
}

.tester {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 26px;
  padding: 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .045), transparent 40%),
    var(--surface);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.tester::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(124, 95, 248, .5), rgba(99, 102, 241, .08) 35%, transparent 60%, rgba(168, 85, 247, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .8;
}

.tester::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(124, 95, 248, .12), transparent 70%);
  pointer-events: none;
  transition: background .4s;
}

.tester[data-phase="download"]::after,
.tester[data-phase="upload"]::after,
.tester[data-phase="latency"]::after { background: radial-gradient(circle, rgba(124, 95, 248, .10), transparent 70%); }

/* gauge card */

.gauge-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 10px 14px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 45%, rgba(124, 95, 248, .07), transparent 60%);
  min-height: 430px;
}

.gauge-wrap {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  /* the ring is drawn shifted right/down inside the canvas (cx +7%, cy +6% of its
     radius); the core and the start button carry the same offset so they sit in the gap */
  --ring-x: 0%;
  --ring-y: 4%;
}

.gauge-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.gauge-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 62%;
  /* centre of the ring's opening */
  transform: translate(var(--ring-x), var(--ring-y));
}

.phase-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  transition: color .3s, border-color .3s;
}

.phase-chip svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.tester[data-phase="download"] .phase-chip svg { color: var(--dl); animation: bobDown 1.6s ease-in-out infinite; }
.tester[data-phase="upload"] .phase-chip svg { color: var(--ul); animation: bobUp 1.6s ease-in-out infinite; }
.tester[data-phase="latency"] .phase-chip svg { color: var(--ping); animation: pulseIcon 1.2s ease-in-out infinite; }

@keyframes bobDown { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }
@keyframes bobUp { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-2px); } }
@keyframes pulseIcon { 50% { transform: scale(1.15); } }

.gauge-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  direction: ltr;
  unicode-bidi: isolate;
  margin-top: 6px;
  line-height: 1;
}

.gauge-num {
  font-family: "Yekan Bakh", "Segoe UI", sans-serif;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  font-size: clamp(46px, 7.4vw, 74px);
  font-weight: 800;
  letter-spacing: -3px;
  background: linear-gradient(180deg, var(--text) 30%, var(--text-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 2.2ch;
  text-align: center;
  transition: filter .2s;
}

html[data-theme="light"] .gauge-num { background: linear-gradient(180deg, #0b1730 30%, #3b4d70); -webkit-background-clip: text; background-clip: text; }

.gauge-unit {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: .5px;
  direction: ltr;
}

.gauge-caption {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-2);
  min-height: 24px;
}

/* start button */

.start-btn {
  position: absolute;
  z-index: 3;
  width: 168px;
  height: 168px;
  /* aligned with the ring centre by the .idle-cta wrapper */
  margin: 0;
  transform: translateX(0);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand-3);
  box-shadow: none;
  transition: transform .35s var(--ease), box-shadow .35s, opacity .3s;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .5px;
}

.start-btn span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.start-btn svg { width: 26px; height: 26px; }

.start-btn:hover { background: var(--brand-3-hover); transform: scale(1.04); box-shadow: none; }
.start-btn:active { transform: scale(.97); }
.start-btn.is-hidden { opacity: 0; transform: scale(.7); pointer-events: none; }

/* idle: the start button and the "آماده تست" chip overlap, so the whole core is hidden */
.gauge-wrap.is-idle .gauge-core { visibility: hidden; }

.idle-cta {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: opacity .35s, transform .35s;
  /* same offset as the ring drawn on the canvas */
  transform: translate(var(--ring-x), var(--ring-y));
}

.idle-cta.is-hidden { opacity: 0; transform: translate(var(--ring-x), var(--ring-y)) scale(.9); pointer-events: none; }

.gauge-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.run-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-3);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
}

.run-meta svg { width: 13px; height: 13px; }

.stop-btn { display: none; }
.tester[data-state="testing"] .stop-btn { display: inline-flex; }

/* side panel */

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 14px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(255, 255, 255, .04), transparent 60%), var(--surface-strong);
  overflow: hidden;
  min-height: 108px;
  transition: border-color .3s, transform .3s var(--ease);
}

.metric-card:hover { transform: translateY(-2px); border-color: var(--stroke-strong); }

.metric-card .metric-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
}

.metric-card .metric-head svg { width: 15px; height: 15px; }
.metric-card.dl .metric-head svg { color: var(--dl); }
.metric-card.ul .metric-head svg { color: var(--ul); }
.metric-card.ping .metric-head svg { color: var(--ping); }
.metric-card.jit .metric-head svg { color: #fb7185; }
.metric-card.info .metric-head svg { color: var(--good); }

.metric-value {
  direction: ltr;
  text-align: right;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  font-variant-numeric: tabular-nums;
}

.metric-value b {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.1;
  color: var(--text);
}

.metric-value span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.metric-card.dl b { color: var(--dl); }
.metric-card.ul b { color: var(--ul); }
.metric-card.ping b { color: var(--ping); }

.metric-card .mini-spark {
  position: absolute;
  inset: auto 0 0 0;
  height: 36px;
  opacity: .55;
  pointer-events: none;
}

.metric-card.is-active { border-color: var(--stroke-strong); }
.metric-card.is-active::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--grad);
  transform-origin: right;
  animation: barGrow 1.6s var(--ease) infinite;
}

@keyframes barGrow { 0% { transform: scaleX(.25); opacity: .4; } 50% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(.25); opacity: .4; } }

.metric-card.is-done b { animation: popIn .5s var(--ease-out); }
@keyframes popIn { 0% { transform: scale(1.18); filter: brightness(1.6); } 100% { transform: scale(1); filter: none; } }

.info-strips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-strip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: var(--surface-strong);
  min-width: 0;
}

.info-strip .k { font-size: 11.5px; color: var(--text-3); }
.info-strip .v {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  text-align: right;
  unicode-bidi: plaintext;
}

.info-strip .v.dir-rtl { direction: rtl; }

/* chart card */

.chart-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: var(--surface-strong);
  min-height: 178px;
  position: relative;
  overflow: hidden;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.chart-title { font-size: 12.5px; color: var(--text-2); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.chart-title .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.chart-title .live-dot.on { background: var(--dl); box-shadow: 0 0 10px var(--dl); animation: blink 1s infinite; }

.chart-legend { display: flex; gap: 12px; font-size: 11px; color: var(--text-3); }
.chart-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-inline-end: 5px; vertical-align: middle; }
.chart-legend .lg-dl i { background: var(--dl); }
.chart-legend .lg-ul i { background: var(--ul); }

.chart-body { flex: 1; position: relative; min-height: 120px; }
.chart-body canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
  padding: 10px;
}

/* progress steps */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 2px;
}

.step {
  position: relative;
  padding: 10px 12px 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .3s, background .3s;
}

.step .step-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.step .step-name { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.step .step-name svg { width: 14px; height: 14px; }
.step .step-val { font-size: 12px; font-weight: 700; color: var(--text-3); direction: ltr; font-variant-numeric: tabular-nums; }

.step .step-bar {
  position: relative;
  height: 4px;
  margin-top: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}

.step .step-bar i {
  position: absolute;
  inset: 0;
  transform-origin: right;
  transform: scaleX(0);
  border-radius: inherit;
  background: var(--grad);
  transition: transform .3s linear;
}

.step[data-state="active"] { border-color: var(--stroke-strong); background: var(--surface-strong); }
.step[data-state="active"] .step-name { color: var(--text); }
.step[data-state="active"] .step-val { color: var(--brand-1); }
.step[data-state="done"] .step-name svg { color: var(--good); }
.step[data-state="done"] .step-val { color: var(--text); }
.step[data-state="done"] .step-bar i { background: linear-gradient(90deg, var(--good), var(--brand-1)); }

/* action row */

.actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.actions-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.server-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
  max-width: 100%;
}

.server-chip:hover { border-color: var(--stroke-strong); background: var(--surface-hover); }
.server-chip .flag {
  width: 30px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--brand-1);
  background: rgba(124, 95, 248, .1);
  border: 1px solid var(--stroke-strong);
  direction: ltr;
  flex: none;
  overflow: hidden;
}
.server-chip .sc-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; min-width: 0; }
.server-chip .sc-text b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.server-chip .sc-text small { font-size: 10.5px; color: var(--text-3); }
.server-chip .sc-ping { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(52, 211, 153, .13); color: var(--good); direction: ltr; }
.server-chip .sc-ping:empty { display: none; }

/* quality section under tester */

.quality-card {
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity .4s, transform .4s var(--ease);
}

.quality-card.is-locked { opacity: .55; }

.quality-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.quality-head h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.quality-head h3 svg { width: 18px; height: 18px; color: var(--brand-1); }
.quality-head p { margin: 0; font-size: 12.5px; color: var(--text-3); }

.quality-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.q-item {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: var(--surface-strong);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .3s, transform .3s var(--ease);
}

.q-item:hover { transform: translateY(-3px); border-color: var(--stroke-strong); }
.q-item .q-top { display: flex; align-items: center; gap: 9px; }
.q-item .q-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(124, 95, 248, .1); color: var(--brand-1); flex: none;
}
.q-item .q-icon svg { width: 17px; height: 17px; }
.q-item .q-name { font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.q-item .q-name small { display: block; font-size: 10.5px; color: var(--text-3); font-weight: 500; direction: ltr; text-align: right; }
.q-score { display: flex; align-items: baseline; gap: 4px; direction: ltr; margin-top: auto; }
.q-score b { font-size: 22px; font-weight: 800; }
.q-score span { font-size: 11px; color: var(--text-3); }
.q-dots { display: flex; gap: 5px; direction: ltr; }
.q-dots i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); transition: background .4s, box-shadow .4s; }
.q-item[data-level="1"] b { color: var(--bad); }
.q-item[data-level="2"] b { color: #fb923c; }
.q-item[data-level="3"] b { color: var(--warn); }
.q-item[data-level="4"] b { color: #a3e635; }
.q-item[data-level="5"] b { color: var(--good); }
.q-item[data-level="1"] .q-dots i.on { background: var(--bad); }
.q-item[data-level="2"] .q-dots i.on { background: #fb923c; }
.q-item[data-level="3"] .q-dots i.on { background: var(--warn); }
.q-item[data-level="4"] .q-dots i.on { background: #a3e635; }
.q-item[data-level="5"] .q-dots i.on { background: var(--good); box-shadow: 0 0 10px rgba(52, 211, 153, .5); }
.q-item.is-pending .q-score b { color: var(--text-3); }

/* result share bar (appears after a test) */

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--stroke-strong);
  background: var(--grad-soft);
  animation: riseIn .5s var(--ease-out);
}

.result-bar .rb-text { font-size: 13.5px; }
.result-bar .rb-text b { font-weight: 800; }
.result-links { display: flex; gap: 18px; font-size: 12.5px; color: var(--text-2); }
.result-links a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.result-links a:hover { color: var(--brand-1); }

@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */

.section { padding: 84px 0 20px; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--brand-1);
  text-transform: uppercase; margin-bottom: 10px;
}
.section-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.section-title { margin: 0 0 10px; font-size: clamp(23px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.4px; line-height: 1.4; }
.section-sub { margin: 0; color: var(--text-2); font-size: 15px; }

/* features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: linear-gradient(170deg, rgba(255, 255, 255, .035), transparent 55%), var(--surface);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}

.feature::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  top: -90px; left: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 95, 248, .16), transparent 70%);
  transition: transform .6s var(--ease);
}

.feature:hover { transform: translateY(-5px); border-color: var(--stroke-strong); box-shadow: var(--shadow-lg); }
.feature:hover::after { transform: scale(1.6); }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--stroke-strong);
  color: var(--brand-1);
  margin-bottom: 18px;
}

.feature-icon svg { width: 23px; height: 23px; }
.feature h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 800; }
.feature p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.9; }

/* servers */

.servers-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--surface);
  overflow: hidden;
}

.servers-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--stroke);
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--surface-strong);
  min-width: 240px;
  flex: 1;
  max-width: 380px;
}

.search-box svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.search-box input {
  border: none; background: transparent; outline: none; color: var(--text);
  font-family: inherit; font-size: 13.5px; width: 100%;
}
.search-box input::placeholder { color: var(--text-3); }

.toolbar-meta { font-size: 12.5px; color: var(--text-3); }

.server-table { max-height: 420px; overflow-y: auto; }
.server-table::-webkit-scrollbar { width: 8px; }
.server-table::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 8px; }

.s-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1.4fr) minmax(0, 1fr) 100px 120px minmax(150px, auto);
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--stroke);
  transition: background .2s;
  font-size: 13px;
}

.s-row:hover { background: var(--surface-hover); }
.s-row.is-active { background: var(--grad-soft); }
.s-row.is-active .s-name b::after { content: " • تست فعال"; color: var(--brand-1); font-size: 10.5px; font-weight: 700; }

.s-flag {
  width: 34px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--text-2);
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--stroke);
  direction: ltr;
  overflow: hidden;
  flex: none;
}
.s-flag img,
.server-chip .flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.flag-code { line-height: 1; }
.s-name { min-width: 0; }
.s-name b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-name small { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.s-city { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-dist { color: var(--text-3); font-size: 12px; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.s-ping { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.s-ping .p {
  display: inline-flex; min-width: 58px; justify-content: center;
  padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
  background: rgba(255, 255, 255, .08); color: var(--text-3);
}
.s-ping .p.good { background: rgba(52, 211, 153, .13); color: var(--good); }
.s-ping .p.mid { background: rgba(251, 191, 36, .14); color: var(--warn); }
.s-ping .p.bad { background: rgba(244, 63, 94, .14); color: var(--bad); }
.s-ping .p.checking { animation: blink 1s infinite; }
.s-actions { display: flex; gap: 6px; justify-content: flex-end; }

.s-empty { padding: 40px 20px; text-align: center; color: var(--text-3); font-size: 13.5px; }

.skeleton {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .16), rgba(255, 255, 255, .07));
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}

@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* history */

.history-card { border-radius: var(--radius-lg); border: 1px solid var(--stroke); background: var(--surface); padding: 8px 0; }

.h-row {
  display: grid;
  grid-template-columns: 120px repeat(4, 1fr) 130px;
  gap: 12px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--stroke);
  font-size: 13px;
}

.h-row:last-child { border-bottom: none; }
.h-row.h-head { font-size: 11.5px; color: var(--text-3); font-weight: 700; padding-block: 10px; }
.h-cell { display: flex; flex-direction: column; gap: 1px; }
.h-cell small { font-size: 11px; color: var(--text-3); display: none; }
.h-val { direction: ltr; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.h-val.dl { color: var(--dl); }
.h-val.ul { color: var(--ul); }
.h-val.ping { color: var(--ping); }
.h-when { color: var(--text-2); font-size: 12px; }
.h-when small { display: block; font-size: 10.5px; color: var(--text-3); }
.h-actions { display: flex; gap: 6px; justify-content: flex-end; }

.history-empty {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 46px 20px; text-align: center; color: var(--text-3); font-size: 13.5px;
}
.history-empty svg { width: 38px; height: 38px; opacity: .6; }

/* faq */

.faq { display: grid; gap: 12px; }
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .3s, background .3s;
}
.faq-item[open] { border-color: var(--stroke-strong); background: var(--surface-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 20px;
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-plus {
  width: 26px; height: 26px; flex: none; border-radius: 8px;
  display: grid; place-items: center;
  border: 1px solid var(--stroke-strong);
  transition: transform .3s var(--ease), background .3s;
  color: var(--brand-1);
}
.faq-item summary .faq-plus svg { width: 14px; height: 14px; }
.faq-item[open] summary .faq-plus { transform: rotate(45deg); background: var(--grad-soft); }
.faq-body { padding: 0 20px 18px; color: var(--text-2); font-size: 13.5px; line-height: 2; }

/* CTA */

.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 26px;
  align-items: center;
  padding: 36px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--stroke-strong);
  background:
    radial-gradient(600px 240px at 90% 0%, rgba(139, 92, 246, .28), transparent 70%),
    radial-gradient(500px 240px at 0% 100%, rgba(124, 95, 248, .22), transparent 70%),
    var(--surface-strong);
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(255, 255, 255, .03) 18px 19px);
  pointer-events: none;
}

.cta h2 { margin: 0 0 8px; font-size: clamp(21px, 2.8vw, 30px); font-weight: 800; line-height: 1.45; }
.cta p { margin: 0; color: var(--text-2); font-size: 14px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

/* footer */

.site-footer {
  margin-top: 80px;
  padding: 40px 0 28px;
  border-top: 1px solid var(--stroke);
  background: linear-gradient(180deg, transparent, rgba(4, 7, 15, .7));
}

html[data-theme="light"] .site-footer { background: linear-gradient(180deg, transparent, rgba(229, 237, 249, .7)); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 28px;
}

.footer-grid p { margin: 12px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.9; max-width: 360px; }
.footer-grid h4 { margin: 0 0 12px; font-size: 13.5px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); font-size: 13px; transition: color .2s; }
.footer-grid a:hover { color: var(--brand-1); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--stroke);
  font-size: 12.5px; color: var(--text-3);
}
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: var(--brand-1); }

/* ---------- overlays ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 5, 12, .62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }

.modal {
  width: min(560px, 100%);
  max-height: min(84vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke-strong);
  background: var(--surface-strong);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98);
  transition: transform .35s var(--ease-out);
  overflow: hidden;
}

.modal-backdrop.is-open .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--stroke); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--stroke); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.res-share { display: grid; gap: 16px; }
.res-share .rs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rs-stat { padding: 12px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--surface); text-align: center; }
.rs-stat span { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 4px; }
.rs-stat b { font-size: 19px; direction: ltr; display: block; font-variant-numeric: tabular-nums; }
.rs-stat.dl b { color: var(--dl); }
.rs-stat.ul b { color: var(--ul); }
.rs-stat.ping b { color: var(--ping); }
.rs-link { display: flex; gap: 8px; }
.rs-link input {
  flex: 1; min-width: 0; direction: ltr; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--stroke); background: var(--bg-1); color: var(--text-2); font-family: inherit; font-size: 12px; outline: none;
}
.rs-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; color: var(--text-2); }
.rs-meta div { padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--stroke); display: flex; justify-content: space-between; gap: 8px; }
.rs-meta b { font-weight: 700; color: var(--text); direction: ltr; }

.toast-stack {
  position: fixed;
  bottom: 22px;
  right: 50%;
  transform: translateX(50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  background: var(--surface-strong);
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn .35s var(--ease-out);
}

.toast svg { width: 16px; height: 16px; color: var(--good); }
.toast.err svg { color: var(--bad); }
.toast.leaving { animation: toastOut .3s ease forwards; }

@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.95); } }

/* reveal on scroll */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .tester { grid-template-columns: 1fr; }
  .gauge-card { min-height: auto; }
  .gauge-wrap { width: min(380px, 100%); }
  .quality-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .h-row { grid-template-columns: 110px repeat(4, 1fr) 110px; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .section { padding-top: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; padding: 28px; }
  .s-row { grid-template-columns: 28px minmax(0, 1.3fr) minmax(0, 1fr) 86px minmax(150px, auto); gap: 10px; padding: 11px 14px; }
  .s-row .s-dist { display: none; }
  .h-row { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; }
  .h-row .h-head-when, .h-row .h-actions { display: none; }
  .h-row.h-head { display: none; }
  .h-cell small { display: block; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 24px); }
  .hero { padding-top: 26px; }
  .hero-head { margin-bottom: 22px; }
  .hero-title { font-size: 27px; }
  .hero-sub { font-size: 13.5px; }
  .tester { padding: 16px; border-radius: 26px; gap: 18px; }
  .gauge-card { padding: 4px 0 8px; }
  .gauge-wrap { width: min(330px, 100%); }
  .gauge-num { font-size: 54px; }
  .start-btn { width: 132px; height: 132px; font-size: 15.5px; }
  .start-btn svg { width: 21px; height: 21px; }
  .metric-grid { gap: 8px; }
  .metric-card { padding: 12px 11px; min-height: 92px; border-radius: 14px; }
  .metric-card .metric-head { font-size: 11px; }
  .metric-value b { font-size: 19px; }
  .metric-value span { font-size: 10.5px; }
  .steps { gap: 6px; }
  .step { padding: 8px 9px; }
  .step .step-name { font-size: 10.5px; }
  .step .step-name svg { display: none; }
  .step .step-val { font-size: 10.5px; }
  .quality-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quality-card { padding: 16px; }
  .features { grid-template-columns: 1fr; }
  .info-strips { grid-template-columns: 1fr 1fr; }
  .info-strip .v { font-size: 12.5px; }
  .actions-row { flex-direction: column; align-items: stretch; }
  .server-chip { justify-content: space-between; }
  .server-chip .sc-text { align-items: flex-start; }
  .actions-group { justify-content: stretch; }
  .actions-group .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .s-row { grid-template-columns: 32px minmax(0, 1fr) 84px minmax(128px, auto); }
  .s-row .s-city { display: none; }
  .res-share .rs-grid { grid-template-columns: 1fr 1fr; }
  .rs-meta { grid-template-columns: 1fr; }
  .servers-toolbar { padding: 12px 14px; }
  .search-box { min-width: 0; }
  .brand-text small { display: none; }
  .result-links { gap: 12px; }
}

@media (max-width: 380px) {
  .metric-value b { font-size: 17px; }
  .gauge-wrap { width: 290px; }
}

/* reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
