/* EWADC Network Security — Production V1 */

.ns-page{
  --ns-green:#ffffff;
  --ns-green-dark:#111111;
  --ns-black:#050708;
  --ns-graphite:#101315;
  --ns-text:#111517;
  --ns-muted:#667076;
  --ns-line:#dfe4e7;
  --ns-white:#fff;
  overflow:hidden;
  background:#fff;
  color:var(--ns-text);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

.ns-page *,
.ns-page *::before,
.ns-page *::after{box-sizing:border-box}

.ns-shell{width:min(1180px,calc(100% - 40px));margin:0 auto}

.ns-hero{
  position:relative;
  min-height:760px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  overflow:hidden;
  background:#020405;
  color:#fff;
}

.ns-hero__media{
  position:absolute;
  inset:0;
  background-color:#020405;
  background-image:url("../images/network-security-hero.webp");
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
  transform:none;
  -webkit-mask-image:none;
  mask-image:none;
}

.ns-hero__overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(0,0,0,.18) 0%,rgba(0,0,0,.05) 44%,rgba(0,0,0,.42) 100%),
    linear-gradient(90deg,rgba(0,0,0,.62) 0%,rgba(0,0,0,.32) 36%,rgba(0,0,0,.08) 70%,rgba(0,0,0,.03) 100%);
}

.ns-hero__inner{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  min-height:650px;
  padding:120px 0 76px;
}

.ns-hero__copy{max-width:560px}

.ns-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:20px;
  color:#ffffff;
  font-size:12px;
  line-height:1;
  font-weight:800;
  letter-spacing:.16em;
}

.ns-eyebrow::before{content:"";width:28px;height:2px;background:currentColor}

.ns-eyebrow--dark{color:var(--ns-green-dark)}

.ns-hero h1,
.ns-heading h2,
.ns-firewall h2,
.ns-cta h2{
  margin:0;
  letter-spacing:-.055em;
}

.ns-hero h1{
  max-width:680px;
  font-size:clamp(48px,5.6vw,72px);
  line-height:.94;
}

.ns-hero__copy>p{
  max-width:590px;
  margin:30px 0 0;
  color:rgba(255,255,255,.74);
  font-size:20px;
  line-height:1.58;
}

.ns-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:36px}

.ns-btn{
  min-height:52px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  padding:0 22px;
  border:1px solid transparent;
  border-radius:8px;
  text-decoration:none;
  font-size:14px;
  font-weight:750;
  transition:.2s ease;
}

.ns-btn:hover{transform:translateY(-2px)}

.ns-btn--primary{background:#ffffff;color:#050505}
.ns-btn--primary:hover{background:#e8e8e8}

.ns-btn--ghost{
  border-color:rgba(255,255,255,.22);
  background:rgba(4,7,8,.36);
  color:#fff;
  backdrop-filter:blur(12px);
}

.ns-btn--outline{border-color:#4b4f51;color:#fff;background:transparent}

.ns-hero__rail{
  position:relative;
  z-index:3;
  border-top:1px solid rgba(255,255,255,.12);
  background:rgba(3,6,7,.84);
  backdrop-filter:blur(14px);
}

.ns-hero__rail-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
}

.ns-hero__rail-grid>div{
  min-height:92px;
  padding:21px 22px;
  border-right:1px solid rgba(255,255,255,.12);
}

.ns-hero__rail-grid>div:last-child{border-right:0}
.ns-hero__rail strong{display:block;font-size:14px}
.ns-hero__rail span{display:block;margin-top:7px;color:#7f8a8e;font-size:12px}

.ns-section{padding:82px 0}
.ns-section--light{background:#f4f6f7}
.ns-section--dark{background:#07090a;color:#fff}
.ns-section--graphite{background:#111516;color:#fff}

.ns-heading{max-width:760px;margin-bottom:48px}
.ns-heading--center{text-align:center;margin-left:auto;margin-right:auto}
.ns-heading--center .ns-eyebrow{justify-content:center}
.ns-heading--light p{color:#8f999d}

.ns-heading h2,
.ns-firewall h2,
.ns-cta h2{
  font-size:clamp(40px,5vw,64px);
  line-height:1;
}

.ns-heading p{
  margin:22px 0 0;
  color:var(--ns-muted);
  font-size:18px;
  line-height:1.65;
}

.ns-services{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.ns-service-card{
  display:flex;
  flex-direction:column;
  min-height:430px;
  padding:32px;
  border:1px solid var(--ns-line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 35px rgba(20,29,33,.04);
}

.ns-icon{
  width:50px;height:50px;
  display:grid;place-items:center;
  border:1px solid #d9d9d9;
  border-radius:12px;
  background:#f7f7f7;
  color:var(--ns-green-dark);
}

.ns-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.ns-service-card h3{margin:25px 0 12px;font-size:25px;letter-spacing:-.03em}
.ns-service-card p{margin:0;color:var(--ns-muted);font-size:15px;line-height:1.65}
.ns-service-card ul{margin:22px 0 28px;padding:0;list-style:none}
.ns-service-card li{position:relative;padding:7px 0 7px 19px;color:#3f484c;font-size:14px}
.ns-service-card li::before{content:"";position:absolute;left:0;top:14px;width:7px;height:7px;border-radius:50%;background:var(--ns-green)}
.ns-service-card>a{margin-top:auto;color:#171c1e;text-decoration:none;font-size:14px;font-weight:750}
.ns-service-card>a span{margin-left:8px;color:var(--ns-green-dark)}

.ns-firewall{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(380px,.85fr);
  align-items:center;
  gap:70px;
}

.ns-firewall__visual{
  position:relative;
  overflow:hidden;
  min-height:500px;
  border:1px solid #202526;
  border-radius:20px;
  background:#030506;
}

.ns-firewall__visual::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.22),rgba(0,0,0,.42));
}

.ns-firewall__visual img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center}

.ns-firewall__copy>p{margin:25px 0;color:#90999c;font-size:17px;line-height:1.7}

.ns-feature-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:30px 0 34px;
}

.ns-feature-list span{
  padding:14px 15px;
  border:1px solid #252a2c;
  border-radius:9px;
  background:#0f1213;
  color:#dce1e3;
  font-size:13px;
}

.ns-feature-list span::before{content:"✓";margin-right:9px;color:var(--ns-green)}

.ns-flow{
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items:center;
  gap:12px;
  margin-top:55px;
}

.ns-flow__item{
  min-height:165px;
  padding:24px 18px;
  border:1px solid var(--ns-line);
  border-radius:14px;
  background:#fff;
}

.ns-flow__number{display:block;margin-bottom:30px;color:var(--ns-green-dark);font-size:12px;font-weight:800;letter-spacing:.12em}
.ns-flow__item strong{display:block;font-size:17px}
.ns-flow__item small{display:block;margin-top:8px;color:#7a8589;line-height:1.4}
.ns-flow__arrow{color:#9ca6aa;font-size:24px}

.ns-results{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:20px}
.ns-results>div{padding:23px;border-left:2px solid var(--ns-green);background:#e9edef}
.ns-results strong{display:block;font-size:15px}
.ns-results span{display:block;margin-top:8px;color:#6e787c;font-size:13px;line-height:1.5}

.ns-managed{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#2a3032;border:1px solid #2a3032}
.ns-managed article{min-height:280px;padding:35px;background:#121617}
.ns-managed article>span{color:var(--ns-green);font-size:12px;font-weight:800}
.ns-managed h3{margin:55px 0 12px;font-size:25px}
.ns-managed p{margin:0;color:#8d979a;font-size:14px;line-height:1.65}

.ns-use-cases{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #dce2e4;border-left:1px solid #dce2e4}
.ns-use-cases article{min-height:190px;padding:30px;border-right:1px solid #dce2e4;border-bottom:1px solid #dce2e4;background:#fff}
.ns-use-cases h3{margin:0 0 12px;font-size:22px}
.ns-use-cases p{margin:0;color:#697377;font-size:14px;line-height:1.6}

.ns-additional{border-top:1px solid #171b1c}

.ns-tags{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.ns-tags span{padding:17px 18px;border:1px solid #262b2d;border-radius:9px;background:#0f1213;color:#cdd3d5;font-size:13px}
.ns-tags span::before{content:"+";margin-right:10px;color:var(--ns-green)}

.ns-cta{padding:70px 0;background:#0e1213;color:#fff;border-top:1px solid #202526}
.ns-cta__inner{display:flex;align-items:center;justify-content:space-between;gap:50px}
.ns-cta__inner>div{max-width:730px}
.ns-cta p{margin:18px 0 0;color:#939da0;font-size:17px;line-height:1.6}

@media (max-width:1050px){
  .ns-services{grid-template-columns:repeat(2,1fr)}
  .ns-firewall{grid-template-columns:1fr;gap:45px}
  .ns-firewall__visual{min-height:440px}
  .ns-flow{grid-template-columns:1fr 1fr;gap:14px}
  .ns-flow__arrow{display:none}
  .ns-results,.ns-managed{grid-template-columns:repeat(2,1fr)}
  .ns-tags{grid-template-columns:repeat(3,1fr)}
  .ns-hero__rail-grid{grid-template-columns:repeat(3,1fr)}
}

@media (max-width:720px){
  .ns-shell{width:min(100% - 28px,1180px)}
  .ns-hero{min-height:auto}
  .ns-hero__media{background-position:62% center}
  .ns-hero__overlay{
    background:
      linear-gradient(180deg,rgba(0,0,0,.48),rgba(0,0,0,.72)),
      linear-gradient(90deg,rgba(0,0,0,.93),rgba(0,0,0,.40));
  }
  .ns-hero__inner{min-height:650px;padding:120px 0 65px;align-items:flex-end}
  .ns-hero h1{font-size:47px}
  .ns-hero__copy>p{font-size:17px}
  .ns-actions{display:grid}
  .ns-btn{width:100%}
  .ns-hero__rail-grid{grid-template-columns:1fr 1fr}
  .ns-hero__rail-grid>div{min-height:90px;border-bottom:1px solid rgba(255,255,255,.1)}
  .ns-section{padding:72px 0}
  .ns-heading h2,.ns-firewall h2,.ns-cta h2{font-size:40px}
  .ns-services,.ns-flow,.ns-results,.ns-managed,.ns-use-cases,.ns-tags{grid-template-columns:1fr}
  .ns-service-card{min-height:0}
  .ns-firewall__visual{min-height:300px}
  .ns-feature-list{grid-template-columns:1fr}
  .ns-cta__inner{display:block}
  .ns-cta .ns-btn{margin-top:30px}
}


/* Managed MikroTik router plans */
.ns-router-plans{
  padding-top:92px;
  padding-bottom:100px;
}

.ns-router-intro{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(520px,1.1fr);
  align-items:center;
  gap:56px;
  margin-bottom:54px;
}

.ns-router-intro h2{
  margin:0;
  max-width:620px;
  font-size:clamp(40px,5vw,64px);
  line-height:1;
  letter-spacing:-.055em;
}

.ns-router-intro p{
  margin:24px 0 0;
  max-width:620px;
  color:#929b9e;
  font-size:17px;
  line-height:1.7;
}

.ns-router-intro__image{
  overflow:hidden;
  min-height:310px;
  border:1px solid #24292b;
  border-radius:18px;
  background:#050708;
}

.ns-router-intro__image img{
  display:block;
  width:100%;
  height:100%;
  min-height:310px;
  object-fit:cover;
  object-position:center 67%;
}

.ns-pricing-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  max-width:1000px;
  margin:0 auto;
}

.ns-price-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:650px;
  padding:38px;
  border:1px solid #282e30;
  border-radius:18px;
  background:#101415;
}

.ns-price-card--featured{
  border-color:#505557;
  background:
    linear-gradient(180deg,rgba(132,189,34,.08),rgba(132,189,34,0) 34%),
    #111516;
  box-shadow:0 22px 60px rgba(0,0,0,.28);
}

.ns-price-card__badge{
  position:absolute;
  top:18px;
  right:18px;
  padding:8px 11px;
  border-radius:999px;
  background:var(--ns-green);
  color:#0a1004;
  font-size:10px;
  font-weight:900;
  letter-spacing:.1em;
}

.ns-price-card__label{
  color:#ffffff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.13em;
}

.ns-price-card h3{
  margin:16px 0 12px;
  font-size:31px;
  line-height:1.08;
  letter-spacing:-.04em;
}

.ns-price-card__top p{
  margin:0;
  max-width:470px;
  color:#8d979a;
  font-size:15px;
  line-height:1.65;
}

.ns-price{
  display:flex;
  align-items:flex-end;
  gap:8px;
  margin:34px 0 28px;
  padding-bottom:28px;
  border-bottom:1px solid #2a3032;
}

.ns-price strong{
  font-size:58px;
  line-height:.9;
  letter-spacing:-.06em;
}

.ns-price span{
  padding-bottom:7px;
  color:#929b9e;
  font-size:14px;
}

.ns-price-list{
  display:grid;
  gap:0;
  margin:0 0 34px;
  padding:0;
  list-style:none;
}

.ns-price-list li{
  position:relative;
  padding:12px 0 12px 24px;
  border-bottom:1px solid #202527;
  color:#dce2e4;
  font-size:14px;
}

.ns-price-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  color:var(--ns-green);
  font-weight:900;
}

.ns-price-card__button{
  width:100%;
  margin-top:auto;
}

.ns-pricing-note{
  margin:24px auto 0;
  max-width:780px;
  color:#737d80;
  font-size:13px;
  line-height:1.6;
  text-align:center;
}

@media (max-width:1050px){
  .ns-router-intro{
    grid-template-columns:1fr;
  }

  .ns-router-intro__image{
    min-height:280px;
  }
}

@media (max-width:720px){
  .ns-hero__media{
    background-position:72% 52%;
    background-size:auto 62%;
  }

  .ns-router-intro__image{
    min-height:220px;
  }

  .ns-router-intro__image img{
    min-height:220px;
  }

  .ns-pricing-grid{
    grid-template-columns:1fr;
  }

  .ns-price-card{
    min-height:0;
    padding:28px;
  }
}


/* V4 compact services intro */
#network-services{
  padding-top:64px;
  padding-bottom:72px;
}

#network-services .ns-heading{
  max-width:680px;
  margin-bottom:34px;
}

#network-services .ns-heading h2{
  font-size:clamp(36px,4.4vw,54px);
}

#network-services .ns-heading p{
  margin-top:16px;
  font-size:16px;
  line-height:1.55;
}

#network-services .ns-services{
  gap:14px;
}

#network-services .ns-service-card{
  min-height:390px;
  padding:28px;
  border-color:#d9dddf;
  border-radius:14px;
  box-shadow:none;
}

#network-services .ns-service-card h3{
  margin-top:22px;
  font-size:23px;
}

#network-services .ns-icon{
  color:#111;
}

/* Monochrome pricing */
.ns-price-card,
.ns-price-card--featured{
  border-color:#2b3032;
  background:#111415;
  box-shadow:none;
}

.ns-price-card--featured{
  border-color:#6a6f71;
  background:#161a1b;
}

.ns-price-card__badge{
  background:#fff;
  color:#050505;
}

.ns-price-card__label{
  color:#d7dcde;
}

.ns-price-list li::before,
.ns-feature-list span::before,
.ns-tags span::before{
  color:#fff;
}

.ns-price-card .ns-btn--primary{
  background:#fff;
  color:#050505;
}

.ns-price-card .ns-btn--outline{
  border-color:#505557;
}

/* Remove green accents globally */
.ns-eyebrow,
.ns-eyebrow--dark{
  color:inherit;
}

.ns-eyebrow--dark{
  color:#111;
}

.ns-eyebrow::before{
  background:currentColor;
}

.ns-flow__number{
  color:#111;
}

.ns-results>div{
  border-left-color:#111;
}

.ns-tags span::before{
  color:#fff;
}

@media (max-width:720px){
  .ns-hero__media{
    background-position:center;
    background-size:cover;
  }

  #network-services{
    padding-top:54px;
    padding-bottom:58px;
  }
}


/* V5 hero image quality fix */
@media (max-width:1100px){
  .ns-hero__media{
    background-size:min(760px,64vw) auto;
  }
}

@media (max-width:720px){
  .ns-hero__media{
    background-position:72% center;
    background-size:auto 62%;
  }
}


/* V6 hero composition fix */
@media (max-width:1100px){
  .ns-hero{
    min-height:620px;
  }

  .ns-hero__inner{
    min-height:510px;
    padding:88px 0 54px;
  }

  .ns-hero__media{
    background-size:min(900px,72vw) auto;
    background-position:112% center;
  }
}

@media (max-width:720px){
  .ns-hero{
    min-height:auto;
  }

  .ns-hero__inner{
    min-height:590px;
    padding:110px 0 54px;
  }

  .ns-hero__media{
    background-position:70% center;
    background-size:auto 70%;
    -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.18) 0%,#000 28%,#000 100%);
    mask-image:linear-gradient(180deg,rgba(0,0,0,.18) 0%,#000 28%,#000 100%);
  }
}


/* V8 final hero — original rack photo with baked-in edge blending */
@media (max-width:1100px){
  .ns-hero{
    min-height:700px;
  }

  .ns-hero__inner{
    min-height:590px;
    padding:105px 0 68px;
  }

  .ns-hero__media{
    background-size:cover;
    background-position:58% center;
  }
}

@media (max-width:720px){
  .ns-hero{
    min-height:auto;
  }

  .ns-hero__inner{
    min-height:640px;
    padding:112px 0 58px;
  }

  .ns-hero__media{
    background-size:cover;
    background-position:64% center;
  }
}


/* Final Hero photo adjustment
   Fixed visual size across desktop widths.
   The image no longer scales up on wider screens.
*/
.ns-hero__media{
  inset:0;
  background-size:980px auto;
  background-position:right center;
  background-repeat:no-repeat;
  filter:brightness(.80);
}

@media (max-width:1280px){
  .ns-hero__media{
    background-size:900px auto;
  }
}

@media (max-width:1100px){
  .ns-hero__media{
    background-size:820px auto;
  }
}

@media (max-width:720px){
  .ns-hero__media{
    background-size:auto 80%;
    background-position:64% center;
    filter:brightness(.80);
  }
}
