@font-face {
  font-family: "Bangers";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/spider-test/fonts/bangers.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/spider-test/fonts/nunito.woff2") format("woff2");
}

:root {
  --st-bg: #080b10;
  --st-panel: #161b22;
  --st-panel-strong: #1e2532;
  --st-border: #0b318f;
  --st-red: #e23636;
  --st-red-strong: #ff4747;
  --st-blue: #58a6ff;
  --st-gold: #f1c40f;
  --st-green: #25d366;
  --st-muted: #a3b8cc;
  --st-text: #d1d5da;
}

body {
  background-color: var(--st-bg);
}

.spider-test {
  background-color: var(--st-bg);
  background-image: radial-gradient(circle at top, #1a2332, var(--st-bg));
  color: #ffffff;
  font-family: "Nunito", sans-serif;
  line-height: 1.6;
  padding: 48px 20px 72px;
  position: relative;
  overflow: hidden;
}

.spider-test::before,
.spider-test::after {
  content: "";
  position: absolute;
  width: min(400px, 55vw);
  height: min(400px, 55vw);
  background: url("/assets/spider-test/spider-web-corner.svg") no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

.spider-test::before {
  top: 0;
  left: 0;
}

.spider-test::after {
  bottom: 0;
  right: 0;
  transform: rotate(180deg);
}

.spider-test .st-wrap {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.spider-test h1,
.spider-test h2,
.spider-test .st-font-comic {
  font-family: "Bangers", cursive;
  letter-spacing: 1px;
}

.spider-test a {
  color: inherit;
}

/* --- Barra mínima no topo (substitui o header institucional) --- */
.st-topbar {
  background-color: var(--st-bg);
  border-bottom: 1px solid var(--st-border);
  padding: 14px 20px;
}

.st-topbar .st-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.st-topbar-brand {
  font-family: "Bangers", cursive;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: #ffffff;
  text-decoration: none;
}

.st-topbar-links {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.st-topbar-links a {
  color: var(--st-muted);
  text-decoration: none;
}

.st-topbar-links a:hover {
  color: var(--st-blue);
  text-decoration: underline;
}

/* --- Cabeçalho da experiência --- */
.st-breadcrumb {
  text-align: center;
  font-size: 0.85rem;
  color: var(--st-muted);
  margin-bottom: 10px;
}

.st-breadcrumb a {
  color: var(--st-blue);
  text-decoration: none;
}

.st-breadcrumb a:hover {
  text-decoration: underline;
}

.st-hero {
  text-align: center;
  padding: 12px 0 20px;
}

.st-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--st-red);
  text-shadow: 3px 3px 0 var(--st-border), 6px 6px 0 #000;
  margin-bottom: 12px;
}

.st-hero p {
  font-size: 1.1rem;
  color: var(--st-muted);
  max-width: 640px;
  margin: 0 auto;
}

.st-back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--st-blue);
  text-decoration: none;
}

.st-back-link:hover {
  text-decoration: underline;
}

/* --- Cards educativos --- */
.st-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 32px auto 0;
}

.st-card {
  background: linear-gradient(145deg, var(--st-panel), var(--st-panel-strong));
  border: 2px solid var(--st-border);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s, border-color 0.3s;
}

.st-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(226, 54, 54, 0.35);
  border-color: var(--st-red);
}

.st-card .st-icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.st-card h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.st-card p {
  font-size: 1rem;
  color: var(--st-text);
}

/* --- CTA --- */
.st-cta-wrap {
  text-align: center;
  margin: 48px 0 12px;
}

.st-btn {
  display: inline-block;
  background-color: var(--st-red);
  color: #fff;
  text-decoration: none;
  padding: 18px 44px;
  font-family: "Bangers", cursive;
  font-size: 1.5rem;
  border-radius: 50px;
  border: 3px solid transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 5px 15px rgba(226, 54, 54, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background-color 0.2s;
  cursor: pointer;
}

.st-btn:hover {
  background-color: var(--st-red-strong);
  transform: scale(1.04);
  border-color: var(--st-blue);
  box-shadow: 0 10px 26px rgba(226, 54, 54, 0.55);
}

.st-btn:disabled {
  background-color: #333;
  color: #777;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  border-color: transparent;
}

.st-btn-gold {
  background-color: var(--st-gold);
  color: #000;
}

.st-btn-gold:hover {
  background-color: #ffe066;
  border-color: var(--st-red);
}

.st-btn-green {
  background-color: var(--st-green);
}

.st-btn-green:hover {
  background-color: #1ebd5a;
  border-color: #fff;
}

/* --- Página de teste --- */
.st-test-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.st-location {
  background: rgba(11, 49, 143, 0.12);
  border: 1px solid var(--st-blue);
  border-radius: 10px;
  padding: 16px 24px;
  text-align: center;
  width: 100%;
  max-width: 560px;
  margin-bottom: 32px;
}

.st-location h2 {
  color: var(--st-blue);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.st-location-text {
  font-size: 0.9rem;
  color: var(--st-muted);
  margin-bottom: 10px;
  min-height: 1.4em;
}

.st-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.92rem;
  color: var(--st-green);
  border: 1px dashed var(--st-green);
}

.st-location-badge[data-precision="approx"] {
  color: var(--st-gold);
  border-color: var(--st-gold);
}

.st-location-badge[data-precision="unknown"] {
  color: var(--st-muted);
  border-color: var(--st-muted);
}

.st-ring {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 0 auto 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--st-panel-strong) 0%, var(--st-panel-strong) 100%);
  box-shadow: 0 0 30px rgba(226, 54, 54, 0.2);
  transition: background 0.15s linear;
}

.st-ring-inner {
  position: absolute;
  width: 195px;
  height: 195px;
  background-color: var(--st-bg);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 4px solid var(--st-panel-strong);
}

.st-ring-value {
  font-family: "Bangers", cursive;
  font-size: 3.4rem;
  line-height: 1;
}

.st-ring-label {
  font-size: 0.9rem;
  color: var(--st-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.st-status {
  color: var(--st-gold);
  font-size: 1.05rem;
  font-weight: bold;
  min-height: 1.4em;
  margin-bottom: 18px;
  text-align: center;
}

.st-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 620px;
  margin-bottom: 28px;
}

.st-metric {
  background: var(--st-panel);
  border: 2px solid var(--st-panel-strong);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.st-metric h3 {
  font-size: 0.85rem;
  color: var(--st-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.st-metric-value {
  font-family: "Bangers", cursive;
  font-size: 1.8rem;
  color: var(--st-red);
}

.st-metric.st-ping .st-metric-value {
  color: var(--st-gold);
}

.st-metric.st-up .st-metric-value {
  color: var(--st-blue);
}

.st-result-cta {
  display: none;
  text-align: center;
  margin-top: 8px;
}

.st-result-cta[data-visible="true"] {
  display: block;
}

.st-result-more {
  text-align: center;
  margin-top: 18px;
  font-size: 0.95rem;
}

.st-result-more a {
  color: var(--st-blue);
  text-decoration: underline;
}

.st-privacy-note {
  max-width: 560px;
  margin: 28px auto 0;
  font-size: 0.8rem;
  color: var(--st-muted);
  text-align: center;
}

.st-privacy-note a {
  color: var(--st-blue);
}

/* --- Laboratório de upgrades --- */
.st-section-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  text-align: center;
  color: var(--st-red);
  text-shadow: 3px 3px 0 var(--st-border), 5px 5px 0 #000;
  margin-bottom: 10px;
}

.st-notice {
  text-align: center;
  color: var(--st-muted);
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  background: rgba(11, 49, 143, 0.2);
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid var(--st-blue);
}

.st-category-title {
  font-size: 2.2rem;
  color: #fff;
  text-align: center;
  margin: 44px 0 8px;
  text-transform: uppercase;
}

.st-category-title.st-gold {
  color: var(--st-gold);
}

.st-category-sub {
  text-align: center;
  color: var(--st-muted);
  margin-bottom: 28px;
}

.st-category-sub.st-gold {
  color: var(--st-gold);
}

.st-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.st-plan-card {
  background: linear-gradient(145deg, var(--st-panel), var(--st-panel-strong));
  border: 2px solid var(--st-border);
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.st-plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(11, 49, 143, 0.55);
  border-color: var(--st-blue);
}

.st-plan-vip {
  border-color: var(--st-gold);
  background: linear-gradient(145deg, #1f1c0b, #2a2211);
}

.st-plan-vip:hover {
  box-shadow: 0 10px 30px rgba(241, 196, 15, 0.45);
  border-color: #f39c12;
}

.st-badge-24h {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: var(--st-gold);
  color: #000;
  font-weight: 900;
  padding: 9px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transform: rotate(12deg);
}

.st-plan-name {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
}

.st-plan-speed {
  font-family: "Bangers", cursive;
  font-size: 3.2rem;
  color: var(--st-red);
  line-height: 1;
  margin: 8px 0;
  text-shadow: 2px 2px 0 #000;
}

.st-plan-vip .st-plan-speed {
  color: var(--st-gold);
}

.st-price-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0;
  border: 1px dashed var(--st-blue);
}

.st-plan-vip .st-price-box {
  border-color: var(--st-gold);
}

.st-price-was {
  text-decoration: line-through;
  color: var(--st-muted);
  font-size: 0.85rem;
}

.st-price-now {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--st-green);
  line-height: 1;
  display: block;
}

.st-plan-vip .st-price-now {
  color: var(--st-gold);
}

.st-price-hint {
  font-size: 0.78rem;
  color: var(--st-muted);
  display: block;
}

.st-benefits {
  list-style: none;
  text-align: left;
  margin: 18px 0;
  font-size: 0.92rem;
  color: var(--st-text);
}

.st-benefits li {
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
}

.st-benefits li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.85rem;
}

.st-terms {
  font-size: 0.72rem;
  color: #7a8c9e;
  margin-bottom: 18px;
  text-align: center;
}

.st-plan-btn {
  display: block;
  background-color: var(--st-red);
  color: #fff;
  border: none;
  padding: 14px 18px;
  font-family: "Bangers", cursive;
  font-size: 1.1rem;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: 0.2s;
}

.st-plan-btn:hover {
  background-color: var(--st-red-strong);
  transform: scale(1.03);
}

.st-plan-vip .st-plan-btn {
  background-color: var(--st-gold);
  color: #000;
}

.st-plan-vip .st-plan-btn:hover {
  background-color: #ffe066;
}

.st-support {
  max-width: 900px;
  margin: 56px auto 0;
  background: rgba(226, 54, 54, 0.1);
  border: 2px dashed var(--st-red);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
}

.st-support h2 {
  font-size: 2.1rem;
  color: var(--st-red);
  margin-bottom: 14px;
}

.st-support p {
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.st-support-terms {
  background: rgba(0, 0, 0, 0.4);
  padding: 15px;
  border-radius: 8px;
  text-align: left;
  margin-bottom: 20px;
  font-size: 0.92rem;
  list-style: none;
}

.st-support-terms li {
  margin-bottom: 8px;
}

.st-term-vip {
  color: var(--st-gold);
}

.st-term-standard {
  color: var(--st-blue);
}

/* --- Animações --- */
@keyframes st-pulse {
  0% { box-shadow: 0 0 0 rgba(226, 54, 54, 0.35); }
  50% { box-shadow: 0 0 18px rgba(226, 54, 54, 0.7); }
  100% { box-shadow: 0 0 0 rgba(226, 54, 54, 0.35); }
}

.st-support {
  animation: st-pulse 2.4s infinite;
}

@keyframes st-pulse-badge {
  0% { box-shadow: 0 0 0 rgba(37, 211, 102, 0.2); }
  50% { box-shadow: 0 0 10px rgba(37, 211, 102, 0.6); }
  100% { box-shadow: 0 0 0 rgba(37, 211, 102, 0.2); }
}

.st-location-badge {
  animation: st-pulse-badge 2s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .spider-test * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 640px) {
  .st-metrics {
    grid-template-columns: 1fr;
  }

  .st-ring {
    width: 200px;
    height: 200px;
  }

  .st-ring-inner {
    width: 168px;
    height: 168px;
  }
}
