/**
 * Network as a Service campaign page.
 *
 * Ported from services.zaintech.com/network-as-a-serivce. Every rule is scoped
 * to .naas-page so it cannot touch the shared site header, footer, or nav.
 */

.naas-page {
  --naas-ink: #060d1a;
  --naas-blue: #2b5aa8;
  --naas-blue-hover: #216ba5;
  --naas-accent: #4fc3f7;
  --naas-muted: #5b6474;
  background: var(--naas-ink);
  color: #fff;
  /* 16px floor for every text element on the page (see rules below — no
     font-size on this page is set below 16px). */
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.naas-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.naas-center {
  text-align: center;
}

.naas-grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---------------------------------------------------------------- Typography */
.naas-page h1,
.naas-page h2 {
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
}

.naas-page h1 {
  font-size: clamp(2.4rem * var(--type-scale, 1), 5.5vw * var(--type-scale, 1), 4.2rem * var(--type-scale, 1));
  margin: 0 0 24px;
}

.naas-page h2 {
  font-size: clamp(2rem * var(--type-scale, 1), 4vw * var(--type-scale, 1), 3.4rem * var(--type-scale, 1));
  margin: 0 0 16px;
}

.naas-page h1 span,
.naas-page h2 span {
  color: var(--naas-accent);
}

.naas-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.naas-label--light {
  color: var(--naas-accent);
}

.naas-label--dark {
  color: var(--naas-blue);
}

/* icons */
.naas-ic {
  width: 28px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.naas-ic--sm {
  width: 18px;
  height: 18px;
}

/* ---------------------------------------------------------------- Reveal
   Content is only hidden once the script has added .is-ready, so the page
   stays readable if the script never runs. */
.naas-page.is-ready .naas-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.naas-page.is-ready .naas-reveal.is-in {
  opacity: 1;
  transform: none;
}

.naas-page.is-ready .naas-reveal--1 {
  transition-delay: 0.1s;
}

.naas-page.is-ready .naas-reveal--2 {
  transition-delay: 0.2s;
}

.naas-page.is-ready .naas-reveal--3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .naas-page.is-ready .naas-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------------- Hero */
.naas-hero {
  position: relative;
  background: var(--naas-ink);
  /* Top padding clears the theme's translucent overlay header, which sits on
     top of the hero on hero pages. */
  padding: 140px 0 0;
  overflow: hidden;
}

@media (max-width: 600px) {
  .naas-hero {
    padding-top: 116px;
  }
}

.naas-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.naas-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 26, 0.55);
  pointer-events: none;
}

.naas-hero .naas-container {
  position: relative;
  z-index: 2;
}

.naas-hero__row {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 32px 0 80px;
}

.naas-hero__text {
  flex: 1;
  min-width: 0;
}

.naas-hero__media {
  flex: 1.2;
  max-width: 640px;
  width: 100%;
}

.naas-hero__video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.naas-hero__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.naas-hero__tagline {
  font-size: clamp(1.25rem * var(--type-scale, 1), 2.5vw * var(--type-scale, 1), 1.7rem * var(--type-scale, 1));
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 24px;
}

.naas-hero__tagline strong {
  color: #fff;
  font-weight: 700;
}

.naas-hero__body {
  font-size: calc(18px * var(--type-scale, 1));
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 40px;
  line-height: 1.7;
  max-width: 720px;
}

.naas-hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------- Stats strip */
.naas-stats {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #0b1628 0%, #0a1424 100%);
  border-top: 1px solid rgba(79, 195, 247, 0.25);
}

/* thin brand accent line riding the top edge, aligned to the content column */
.naas-stats::before {
  content: "";
  position: absolute;
  top: -1px;
  left: max(32px, calc((100% - 1280px) / 2 + 32px));
  width: 240px;
  max-width: 40%;
  height: 2px;
  background: linear-gradient(90deg, var(--naas-accent), transparent);
}

/* The numbers sit inside the page content column; the dark band behind them
   still runs full width. */
.naas-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-inline: 1px solid rgba(255, 255, 255, 0.08);
}

.naas-stats__item {
  padding: 40px clamp(20px, 2.4vw, 36px);
  background: #0b1628;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.naas-stats__num {
  font-size: clamp(2.25rem * var(--type-scale, 1), 3.4vw * var(--type-scale, 1), 3rem * var(--type-scale, 1));
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.01em;
}

.naas-stats__num::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--naas-accent);
}

.naas-stats__label {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
}

/* ---------------------------------------------------------------- Challenge */
.naas-challenge {
  padding: 112px 0;
  background: #fff;
  color: var(--naas-ink);
}

.naas-challenge h2 {
  color: var(--naas-ink);
  text-align: center;
  margin: 0 auto 16px;
}

.naas-challenge__sub {
  font-size: calc(18px * var(--type-scale, 1));
  color: var(--naas-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}

.naas-challenge__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.naas-challenge__card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e5e7eb;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.naas-challenge__card:hover {
  border-color: rgba(43, 90, 168, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.naas-challenge__num {
  font-size: 16px;
  font-weight: 700;
  color: var(--naas-blue);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.naas-challenge__title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--naas-ink);
  margin-bottom: 10px;
}

.naas-challenge__desc {
  font-size: 16px;
  color: var(--naas-muted);
  line-height: 1.6;
  margin: 0;
}

.naas-challenge__footer {
  text-align: center;
  font-size: calc(18px * var(--type-scale, 1));
  font-weight: 600;
  color: var(--naas-blue);
  margin: 56px auto 0;
  max-width: 640px;
}

/* ---------------------------------------------------------------- Features */
.naas-features {
  padding: 112px 0;
  background: #f7f9fc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  color: var(--naas-ink);
}

.naas-features h2 {
  color: var(--naas-ink);
  margin: 0 0 16px;
}

.naas-features__sub {
  font-size: 17px;
  color: var(--naas-muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 80px;
}

.naas-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.naas-features__card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.naas-features__card:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
  border-color: rgba(43, 90, 168, 0.2);
  transform: translateY(-2px);
}

.naas-features__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.naas-features__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(43, 90, 168, 0.08);
  color: var(--naas-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.naas-features__card:hover .naas-features__icon {
  background: var(--naas-blue);
  color: #fff;
}

.naas-features__num {
  font-size: 16px;
  font-weight: 700;
  color: var(--naas-blue);
  letter-spacing: 0.1em;
  padding-top: 10px;
}

.naas-features__title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--naas-ink);
  margin-bottom: 10px;
}

.naas-features__desc {
  font-size: 16px;
  color: var(--naas-muted);
  line-height: 1.65;
  margin: 0;
}

/* ---------------------------------------------------------------- Outcomes */
.naas-outcomes {
  padding: 112px 0;
  background: var(--naas-ink);
  position: relative;
  overflow: hidden;
}

.naas-outcomes .naas-container {
  position: relative;
  z-index: 2;
}

.naas-outcomes h2 {
  color: #fff;
  margin: 0 0 64px;
  max-width: 640px;
}

.naas-outcomes__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.naas-outcomes__orb--1 {
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: rgba(43, 90, 168, 0.15);
  filter: blur(100px);
}

.naas-outcomes__orb--2 {
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: rgba(26, 58, 110, 0.3);
  filter: blur(80px);
}

.naas-outcomes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.naas-outcomes__stat {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  transition: background 0.3s ease;
}

.naas-outcomes__stat:hover {
  background: rgba(255, 255, 255, 0.1);
}

.naas-outcomes__num {
  font-size: calc(3.4rem * var(--type-scale, 1));
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.naas-outcomes__stat-label {
  font-size: 16px;
  color: var(--naas-accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.naas-outcomes__stat-sub {
  color: rgba(255, 255, 255, 0.45);
  font-size: 16px;
}

.naas-outcomes__bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.naas-outcomes__bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  font-weight: 500;
}

.naas-outcomes__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(79, 195, 247, 0.2);
  border: 1px solid rgba(79, 195, 247, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.naas-outcomes__dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--naas-accent);
}

/* ---------------------------------------------------------------- Industries */
.naas-industries {
  padding: 112px 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  color: var(--naas-ink);
}

.naas-industries h2 {
  color: var(--naas-ink);
  margin: 0 0 16px;
}

.naas-industries__sub {
  font-size: 17px;
  color: var(--naas-muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 64px;
}

.naas-industries__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.naas-industries__pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.naas-industries__pill .naas-ic {
  width: 20px;
  height: 20px;
  color: var(--naas-blue);
}

.naas-industries__pill:hover {
  border-color: var(--naas-blue);
  background: rgba(43, 90, 168, 0.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  color: var(--naas-blue);
}

/* ---------------------------------------------------------------- Why */
.naas-why {
  padding: 112px 0;
  background: var(--naas-ink);
  position: relative;
  overflow: hidden;
}

.naas-why .naas-container {
  position: relative;
  z-index: 2;
}

.naas-why h2 {
  color: #fff;
  margin: 0 0 16px;
}

.naas-why__sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.naas-why__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.naas-why__ring--1 {
  width: 600px;
  height: 600px;
}

.naas-why__ring--2 {
  width: 900px;
  height: 900px;
}

.naas-why__ring--3 {
  width: 1200px;
  height: 1200px;
}

.naas-why__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.naas-why__glow--1 {
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: rgba(43, 90, 168, 0.12);
  filter: blur(100px);
}

.naas-why__glow--2 {
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: rgba(79, 195, 247, 0.06);
  filter: blur(80px);
}

.naas-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.naas-why__card {
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.naas-why__card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
}

.naas-why__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.naas-why__icon .naas-ic {
  width: 24px;
  height: 24px;
}

.naas-why__icon--1 { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.naas-why__icon--2 { background: rgba(6, 182, 212, 0.2); color: #67e8f9; }
.naas-why__icon--3 { background: rgba(139, 92, 246, 0.2); color: #c4b5fd; }
.naas-why__icon--4 { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.naas-why__icon--5 { background: rgba(249, 115, 22, 0.2); color: #fdba74; }
.naas-why__icon--6 { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.naas-why__title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}

.naas-why__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  margin: 0;
}

/* ---------------------------------------------------------------- Closing CTA */
.naas-cta {
  background: linear-gradient(135deg, #0f1829 0%, #1a3560 50%, #0a1a3a 100%);
  padding: 112px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.naas-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(43, 90, 168, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.naas-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.naas-cta h2 {
  color: #fff;
  margin: 0 0 24px;
  font-size: clamp(2rem * var(--type-scale, 1), 4vw * var(--type-scale, 1), 3rem * var(--type-scale, 1));
}

.naas-cta__body {
  font-size: calc(18px * var(--type-scale, 1));
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 40px;
  line-height: 1.7;
}

/* Buttons: the theme's default .btn-primary is dark sapphire (#281F51) meant
   for light backgrounds and disappears on this dark hero, so the campaign uses
   the brighter blue from the source design. */
.naas-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: auto;
  padding: 15px 34px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.naas-page .btn .naas-ic {
  width: 18px;
  height: 18px;
}

.naas-page .btn-primary {
  background-image: none;
  background-color: var(--naas-blue);
  color: #fff;
}

.naas-page .btn-primary:hover {
  background-image: none;
  background-color: var(--naas-blue-hover);
  color: #fff;
  box-shadow: 0 8px 24px rgba(43, 90, 168, 0.4);
  transform: translateY(-2px);
}

.naas-page .btn-white {
  background-image: none;
  background-color: #fff;
  color: var(--naas-blue);
}

.naas-page .btn-white:hover {
  background-image: none;
  background-color: #f0f4ff;
  color: var(--naas-blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 960px) {
  .naas-hero__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .naas-hero__media {
    max-width: 100%;
  }

  .naas-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .naas-challenge__grid,
  .naas-features__grid,
  .naas-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .naas-outcomes__grid,
  .naas-outcomes__bullets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .naas-container {
    padding: 0 20px;
  }

  .naas-challenge,
  .naas-features,
  .naas-outcomes,
  .naas-industries,
  .naas-why {
    padding: 72px 0;
  }

  .naas-stats__grid,
  .naas-challenge__grid,
  .naas-features__grid,
  .naas-why__grid {
    grid-template-columns: 1fr;
  }

  .naas-stats__item {
    padding: 28px 20px;
  }
}
