/* Secure-VPN Speed Test v5.4 */

.speed-page{
  width:min(1420px,calc(100% - 48px));
  margin:auto;
  padding:42px 0 72px;
}

/* HEADER */

.topbar{
  min-height:74px;
  height:auto!important;
  display:flex!important;
  align-items:center;
  gap:28px;
  padding:0 28px;
}

.topbar .brand{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:210px;
  padding:0!important;
  border-right:0!important;
}

.brand-mark-wrap{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:11px;
}

.brand-mark{
  display:block;
  width:42px!important;
  height:42px!important;
  max-width:42px!important;
  object-fit:cover;
}

.topbar .brand>span:last-child{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.topbar .brand b{
  font-size:16px;
}

.topbar .brand small{
  margin-top:4px;
  font-size:9px;
}

.topbar .nav{
  flex:1;
}

.topbar .worker-health{
  min-width:190px;
}

/* HERO */

.speed-hero{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);
  gap:42px;
  align-items:center;
  min-height:340px;
  padding:48px!important;
  border:1px solid rgba(86,140,177,.27)!important;
  border-radius:22px!important;
  background:
    radial-gradient(circle at 100% 0,rgba(52,225,216,.15),transparent 40%),
    linear-gradient(145deg,#0d2538,#071522)!important;
}

.speed-hero:after{
  content:"";
  position:absolute;
  width:430px;
  height:430px;
  right:-190px;
  top:-250px;
  border-radius:50%;
  background:rgba(52,225,216,.07);
  filter:blur(15px);
}

.speed-hero-copy{
  position:relative;
  z-index:1;
}

.speed-kicker{
  margin-bottom:12px;
  color:#6be8e1;
  font-size:10px;
  font-weight:900;
  letter-spacing:.15em;
  text-transform:uppercase;
}

.speed-hero h1{
  max-width:850px;
  margin:0;
  font-size:clamp(42px,5vw,70px);
  line-height:1.01;
  letter-spacing:-.05em;
}

.speed-hero p{
  max-width:820px;
  margin:20px 0 0;
  color:#9bb1c3;
  font-size:15px;
  line-height:1.7;
}

.route-flow{
  position:relative;
  z-index:2;
  padding:22px;
  border:1px solid rgba(70,220,211,.23);
  border-radius:17px;
  background:rgba(6,24,35,.74);
}

.route-flow-label{
  margin-bottom:14px;
  color:#708da2;
  font-size:9px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.route-step{
  display:grid;
  grid-template-columns:34px 1fr;
  gap:11px;
  align-items:center;
  padding:11px 0;
  border-bottom:1px solid rgba(65,94,113,.35);
}

.route-step:last-child{
  border-bottom:0;
}

.route-num{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid #235067;
  border-radius:9px;
  background:#0d3041;
  color:#6ce9e2;
  font-size:10px;
  font-weight:900;
}

.route-step strong{
  display:block;
  font-size:12px;
}

.route-step span{
  display:block;
  margin-top:2px;
  color:#6d899d;
  font-size:9px;
}

/* VALUE CARDS */

.speed-value-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:17px;
}

.speed-value{
  min-height:125px;
  padding:19px!important;
  border:1px solid rgba(82,135,171,.24)!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,#0c2132,#071522)!important;
}

.speed-value small{
  color:#62e6df;
  font-size:9px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.speed-value strong{
  display:block;
  margin:9px 0 6px;
  font-size:16px;
}

.speed-value span{
  color:#678397;
  font-size:10px;
  line-height:1.5;
}

/* ESTIMATOR */

.speed-estimator{
  margin-top:17px!important;
  padding:27px!important;
  border:1px solid rgba(83,136,172,.25)!important;
  border-radius:19px!important;
  background:linear-gradient(145deg,#0c2031,#071522)!important;
  box-shadow:0 22px 55px rgba(0,0,0,.17);
}

.speed-estimator-copy .eyebrow{
  color:#68e5df;
  font-size:9px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.speed-estimator-copy h2{
  font-size:28px!important;
  letter-spacing:-.035em!important;
}

.speed-estimator-copy p{
  max-width:780px;
}

.speed-estimator-actions button{
  min-height:45px;
  border-color:rgba(67,224,216,.46)!important;
  background:linear-gradient(180deg,#164258,#103044)!important;
  color:#d8fffc!important;
}

.speed-estimator-actions .secondary{
  background:#091b29!important;
  border-color:#27465b!important;
  color:#9cb4c5!important;
}

.speed-estimator-status{
  margin-top:18px!important;
  border-radius:10px!important;
}

.speed-result-grid{
  gap:12px!important;
}

.speed-result{
  padding:16px!important;
  border-color:#1c3b50!important;
  border-radius:12px!important;
  background:#071925!important;
}

.speed-result strong{
  font-size:20px!important;
}

.speed-result.network strong{
  font-size:13px!important;
}

.speed-recommendations{
  margin-top:24px!important;
  padding-top:22px!important;
}

.speed-recommendations-head h3{
  font-size:20px!important;
}

.speed-rec-row{
  min-height:72px;
  padding:13px 11px!important;
}

.speed-rec-rank{
  background:#103449!important;
  color:#6ce8e1!important;
}

.speed-rec-speed strong{
  color:#6be7a1!important;
}

.speed-rec-retention strong{
  color:#69c8ff!important;
}

/* EXPLAINER */

.speed-explainer{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:17px;
}

.speed-explain-card{
  padding:23px!important;
  border:1px solid rgba(83,136,172,.24)!important;
  border-radius:16px!important;
  background:linear-gradient(145deg,#0c2031,#071522)!important;
}

.speed-explain-card h2{
  margin:0 0 10px;
  font-size:18px;
}

.speed-explain-card p{
  margin:0;
  color:#718da2;
  font-size:11px;
  line-height:1.7;
}

.speed-explain-card b{
  color:#cce0ec;
}

@media(max-width:1050px){
  .speed-hero{
    grid-template-columns:1fr;
  }

  .speed-value-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:680px){
  .speed-page{
    width:min(100% - 24px,1420px);
    padding-top:20px;
  }

  .speed-hero{
    padding:27px 22px!important;
  }

  .speed-hero h1{
    font-size:40px;
  }

  .speed-value-grid{
    grid-template-columns:1fr;
  }

  .speed-explainer{
    grid-template-columns:1fr;
  }

  .topbar .worker-health{
    display:none;
  }
}

/* ===== Speed Test primary CTA polish ===== */

.speed-estimator-copy{
  width:100%;
}

.speed-estimator-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin:24px 0 22px;
}

.speed-estimator-actions #speed-test-btn{
  min-height:58px;
  padding:0 28px;
  border:1px solid rgba(100,255,236,.72)!important;
  border-radius:14px!important;
  background:
    linear-gradient(135deg,#19bfae 0%,#137fbd 100%)!important;
  color:#fff!important;
  font-size:17px!important;
  font-weight:850!important;
  letter-spacing:-.015em;
  cursor:pointer;
  box-shadow:
    0 12px 32px rgba(19,177,185,.22),
    inset 0 1px 0 rgba(255,255,255,.2);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

.speed-estimator-actions #speed-test-btn:hover{
  transform:translateY(-2px);
  filter:brightness(1.08);
  box-shadow:
    0 16px 38px rgba(19,177,185,.32),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.speed-estimator-actions #speed-test-btn:active{
  transform:translateY(0);
}

.speed-test-btn-icon{
  display:inline-block;
  margin-right:8px;
  font-size:14px;
}

.speed-estimator-actions .secondary{
  min-height:52px!important;
  padding:0 20px!important;
  border-radius:12px!important;
  background:#091b29!important;
  border:1px solid #31536a!important;
  color:#b9cad6!important;
  font-weight:700!important;
}

.speed-estimator-actions .secondary:hover{
  border-color:#4d7b96!important;
  color:#eefaff!important;
}

.speed-action-note{
  width:100%;
  margin-top:-4px;
  color:#7f9caf;
  font-size:12px;
  line-height:1.4;
}

.speed-privacy-note{
  margin-top:0!important;
}

@media(max-width:680px){
  .speed-estimator-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin-top:20px;
  }

  .speed-estimator-actions #speed-test-btn,
  .speed-estimator-actions .secondary{
    width:100%;
  }

  .speed-estimator-actions #speed-test-btn{
    min-height:60px;
    font-size:17px!important;
  }

  .speed-action-note{
    text-align:center;
    margin-top:0;
  }
}

/* Hero Run Speed Test CTA */
.hero-speed-cta{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin:20px 0 22px;
}

.hero-speed-cta #speed-test-btn{
  min-height:60px;
  padding:0 30px;
  border:1px solid rgba(112,255,239,.8)!important;
  border-radius:15px!important;
  background:linear-gradient(135deg,#19c7b5 0%,#168ad0 100%)!important;
  color:#fff!important;
  font-size:18px!important;
  font-weight:850!important;
  letter-spacing:-.02em;
  cursor:pointer;
  box-shadow:
    0 14px 36px rgba(21,185,194,.30),
    inset 0 1px 0 rgba(255,255,255,.22);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}

.hero-speed-cta #speed-test-btn:hover{
  transform:translateY(-2px);
  filter:brightness(1.08);
  box-shadow:
    0 18px 44px rgba(21,185,194,.38),
    inset 0 1px 0 rgba(255,255,255,.24);
}

.hero-speed-cta #speed-test-btn:active{
  transform:translateY(0);
}

.hero-speed-cta-note{
  color:#89a8ba;
  font-size:13px;
  font-weight:600;
}

@media(max-width:680px){
  .hero-speed-cta{
    display:block;
    margin-top:18px;
  }

  .hero-speed-cta #speed-test-btn{
    width:100%;
    min-height:62px;
  }

  .hero-speed-cta-note{
    display:block;
    text-align:center;
    margin-top:9px;
  }
}
