@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=JetBrains+Mono:wght@600;700&display=swap");

.native-speedtest-section {
  padding: 150px 0 90px;
  background:
    radial-gradient(circle at 12% 12%, rgba(45, 212, 191, 0.18), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(56, 189, 248, 0.18), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.1), transparent 30%),
    linear-gradient(180deg, #07131f 0%, #0b1724 48%, #102031 100%);
  font-family: "Sora", sans-serif;
}

.speedtest-shell {
  max-width: 1240px;
}

.speedtest-hero {
  max-width: 860px;
  margin-bottom: 36px;
}

.speedtest-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.speedtest-choice-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.speedtest-choice-label {
  color: #7ef7dc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.speedtest-choice-card h3 {
  margin: 10px 0 10px;
  color: #f5fbff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.speedtest-choice-card p {
  margin: 0;
  color: rgba(214, 231, 242, 0.74);
  font-size: 15px;
  line-height: 1.8;
}

.speedtest-choice-link {
  display: inline-flex;
  margin-top: 16px;
  color: #8bdfff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.speedtest-choice-link:hover {
  color: #c6f7ff;
}

.speedtest-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(111, 255, 224, 0.2);
  border-radius: 999px;
  background: rgba(11, 31, 47, 0.72);
  color: #7ef7dc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.speedtest-hero h1 {
  margin: 18px 0 14px;
  color: #f5fbff;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.speedtest-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(214, 231, 242, 0.8);
  font-size: 18px;
  line-height: 1.8;
}

.speedtest-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: 24px;
  align-items: stretch;
}

.speedtest-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(133, 181, 206, 0.14);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(11, 27, 42, 0.9) 0%, rgba(9, 22, 35, 0.86) 100%);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.speedtest-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(126, 247, 220, 0.08), transparent 34%),
    linear-gradient(140deg, transparent 0%, rgba(255, 255, 255, 0.02) 45%, transparent 100%);
  pointer-events: none;
}

.speedtest-panel-main,
.speedtest-panel-stage {
  padding: 30px;
}

.speedtest-external-panel {
  margin-bottom: 24px;
  padding: 30px;
}

.speedtest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.speedtest-btn {
  appearance: none;
  border: 0;
  border-radius: 18px;
  padding: 15px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.speedtest-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.speedtest-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.speedtest-btn-primary {
  color: #04131d;
  background: linear-gradient(135deg, #7ef7dc 0%, #59c6ff 100%);
  box-shadow: 0 14px 30px rgba(89, 198, 255, 0.22);
}

.speedtest-btn-secondary {
  color: #dbe8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.speedtest-command-stage {
  padding: 24px;
  border: 1px solid rgba(126, 247, 220, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(89, 198, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(8, 26, 41, 0.96) 0%, rgba(7, 20, 32, 0.94) 100%);
}

.speedtest-status {
  color: #f8fcff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.speedtest-substatus {
  margin-top: 10px;
  color: rgba(210, 226, 236, 0.74);
  font-size: 14px;
  line-height: 1.8;
}

.speedtest-phase-line {
  position: relative;
  height: 11px;
  margin-top: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.speedtest-phase-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7ef7dc 0%, #56b8ff 100%);
  box-shadow: 0 0 24px rgba(89, 198, 255, 0.35);
  transition: width 0.2s ease;
}

.speedtest-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.speedtest-meta-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.speedtest-meta-label,
.speedtest-result-label,
.speedtest-stage-label,
.speedtest-orb-overline,
.speedtest-quality-label {
  color: rgba(161, 191, 209, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.speedtest-meta-value {
  margin-top: 9px;
  color: #f4fbff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.speedtest-notes {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(126, 247, 220, 0.05);
  border: 1px solid rgba(126, 247, 220, 0.08);
  color: rgba(213, 228, 238, 0.72);
  font-size: 13px;
  line-height: 1.8;
}

.speedtest-stage-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.speedtest-stage-head h3 {
  margin: 8px 0 0;
  color: #f7fbff;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.speedtest-section-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.speedtest-section-head h3 {
  margin: 8px 0 0;
  color: #f7fbff;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.speedtest-section-copy {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: rgba(214, 231, 242, 0.76);
  font-size: 15px;
  line-height: 1.8;
}

.speedtest-stage-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(126, 247, 220, 0.08);
  border: 1px solid rgba(126, 247, 220, 0.14);
  color: #7ef7dc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.speedtest-chip-alt {
  color: #8bdfff;
  border-color: rgba(86, 184, 255, 0.16);
  background: rgba(86, 184, 255, 0.08);
}

.speedtest-compare-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.speedtest-compare-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.speedtest-compare-value {
  margin-top: 10px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.speedtest-iframe-shell {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 400px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 19, 31, 0.9);
}

.speedtest-iframe-shell iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
  background: #081522;
}

.speedtest-orb {
  --orb-accent: #7ef7dc;
  --orb-glow: rgba(126, 247, 220, 0.4);
  position: relative;
  z-index: 1;
  margin-top: 26px;
  padding: 28px;
  border-radius: 32px;
  background:
    radial-gradient(circle at center, rgba(124, 247, 220, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(8, 25, 39, 0.86) 0%, rgba(9, 23, 36, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.speedtest-orb-visual {
  position: relative;
  width: min(480px, 100%);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(126, 247, 220, 0.06), transparent 58%),
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.06), transparent 36%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 90px var(--orb-glow);
}

.speedtest-gauge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-225deg);
  overflow: visible;
}

.speedtest-gauge-track,
.speedtest-gauge-progress {
  fill: none;
  stroke-width: 16;
}

.speedtest-gauge-track {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-linecap: round;
  stroke-dasharray: 452 151;
}

.speedtest-gauge-progress {
  stroke: var(--orb-accent);
  stroke-linecap: round;
  stroke-dasharray: 452 151;
  stroke-dashoffset: 452;
  filter: drop-shadow(0 0 14px var(--orb-glow));
  transition: stroke-dashoffset 0.18s ease, stroke 0.18s ease;
}

.speedtest-gauge-center {
  fill: rgba(8, 20, 31, 0.95);
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1.5;
  transform: rotate(225deg);
  transform-origin: center;
}

.speedtest-orb-core {
  position: absolute;
  inset: 56px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle, rgba(12, 28, 42, 0.94) 0%, rgba(5, 15, 24, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 48px rgba(0, 0, 0, 0.22);
}

.speedtest-orb-value {
  margin-top: 14px;
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(3.6rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.speedtest-orb-unit {
  margin-top: 10px;
  color: rgba(215, 228, 238, 0.72);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.speedtest-orb-caption {
  max-width: 250px;
  margin-top: 14px;
  color: rgba(207, 222, 233, 0.68);
  font-size: 14px;
  line-height: 1.7;
}

.speedtest-orb-scale {
  position: absolute;
  inset: auto 24px 22px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: rgba(159, 187, 205, 0.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.speedtest-stat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.speedtest-stat-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.speedtest-stat-card-download {
  background: linear-gradient(180deg, rgba(126, 247, 220, 0.12), rgba(255, 255, 255, 0.04));
}

.speedtest-stat-card-upload {
  background: linear-gradient(180deg, rgba(86, 184, 255, 0.14), rgba(255, 255, 255, 0.04));
}

.speedtest-stat-value {
  margin-top: 12px;
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

.speedtest-result-unit {
  margin-top: 8px;
  color: rgba(175, 201, 216, 0.68);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.speedtest-quality {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(126, 247, 220, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.speedtest-quality-value {
  margin-top: 10px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.speedtest-quality-copy {
  margin-top: 10px;
  color: rgba(203, 220, 231, 0.72);
  font-size: 14px;
  line-height: 1.8;
}

.speedtest-progress-list {
  position: relative;
  z-index: 1;
  margin-top: 20px;
}

.speedtest-progress-row + .speedtest-progress-row {
  margin-top: 14px;
}

.speedtest-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: rgba(184, 206, 219, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.speedtest-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.speedtest-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7ef7dc 0%, #56b8ff 100%);
  box-shadow: 0 0 24px rgba(86, 184, 255, 0.34);
  transition: width 0.15s linear;
}

@media (max-width: 1100px) {
  .speedtest-choice-grid,
  .speedtest-grid {
    grid-template-columns: 1fr;
  }

  .speedtest-compare-strip,
  .speedtest-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .native-speedtest-section {
    padding: 120px 0 74px;
  }

  .speedtest-panel-main,
  .speedtest-panel-stage {
    padding: 22px;
  }

  .speedtest-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .speedtest-status {
    font-size: 24px;
  }

  .speedtest-compare-strip,
  .speedtest-meta,
  .speedtest-stat-grid {
    grid-template-columns: 1fr;
  }

  .speedtest-section-head,
  .speedtest-stage-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .speedtest-orb {
    padding: 18px;
  }

  .speedtest-orb-core {
    inset: 42px;
  }

  .speedtest-orb-scale {
    inset: auto 10px 10px;
    font-size: 10px;
  }

  .speedtest-external-panel {
    padding: 22px;
  }

  .speedtest-iframe-shell,
  .speedtest-iframe-shell iframe {
    min-height: 620px;
    height: 620px;
  }
}
