/* =============================================
   PREGLOBAL-CYBERCONNECT — MAIN STYLESHEET
   Theme: Blue & White | Plain HTML/CSS/JS
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --blue-900: #0a1f44;
  --blue-800: #0d2d6b;
  --blue-700: #0b3a8f;
  --blue-600: #0f4eb5;
  --blue-500: #1562d6;
  --blue-400: #3a80e8;
  --blue-300: #6fa8f0;
  --blue-100: #ddeeff;
  --blue-50:  #f0f7ff;

  --white:    #ffffff;
  --gray-100: #f4f6f9;
  --gray-200: #e8ecf2;
  --gray-400: #9aaac0;
  --gray-600: #5a6a82;
  --gray-800: #1e2d45;

  --accent:   #00d0ff;

  --font:     'Inter', system-ui, -apple-system, sans-serif;
  --radius:   12px;
  --shadow-sm: 0 2px 8px rgba(10,31,68,.08);
  --shadow-md: 0 6px 24px rgba(10,31,68,.12);
  --shadow-lg: 0 16px 48px rgba(10,31,68,.18);

  --transition: 0.25s ease;

  --nav-height: 70px;
}

/* ---- Skip link (accessibility + SEO) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--blue-500);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: .9rem;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-500); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hidden { display: none !important; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(10, 31, 68, 0.96);
  backdrop-filter: blur(8px);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(10,31,68,.4);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
  font-size: 1.875rem;
  letter-spacing: -.01em;
}
.logo-icon {
  color: var(--accent);
  font-size: 2.25rem;
}
.logo-text strong { color: var(--accent); font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-link {
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link.active {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.btn-nav {
  background: var(--blue-500);
  color: var(--white) !important;
  padding: .45rem 1.1rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.btn-nav:hover { background: var(--blue-400); transform: translateY(-1px); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
/* Hamburger → X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--blue-500);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21,98,214,.35);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.6);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.btn-plan {
  display: block;
  width: 100%;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 2px solid var(--blue-200, #c0d8f5);
  padding: .7rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
}
.btn-plan:hover { background: var(--blue-100); color: var(--blue-800); }
.btn-plan-featured {
  display: block;
  width: 100%;
  background: var(--blue-500);
  color: var(--white);
  padding: .7rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
}
.btn-plan-featured:hover { background: var(--blue-400); color: var(--white); }
.btn-submit {
  width: 100%;
  padding: .85rem;
  font-size: 1rem;
  border-radius: 8px;
  margin-top: .5rem;
  border: none;
}

/* =============================================
   SECTION SHARED STYLES
   ============================================= */
section { padding: 5rem 0; }
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: .75rem;
}
.section-header p {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}
.section-header--light h2 { color: var(--white); }
.section-header--light p  { color: rgba(255,255,255,.8); }

.section-tag {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('../images/bg-hero.jpg') center center / cover no-repeat;
  background-image: image-set(
    url('../images/bg-hero.webp') type('image/webp'),
    url('../images/bg-hero.jpg')  type('image/jpeg')
  );
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Dark overlay — keeps text legible while letting the image show through */
  background: linear-gradient(
    135deg,
    rgba(4, 10, 30, 0.68) 0%,
    rgba(6, 18, 52, 0.55) 50%,
    rgba(4, 10, 30, 0.65) 100%
  );
}
.hero-overlay { display: none; }
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 6rem;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: .03em;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-highlight {
  background: linear-gradient(90deg, var(--accent), #a0ecff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,.82);
  max-width: 580px;
  margin: 0 auto 2rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: rgba(4, 12, 40, 0.45);
  border: 1px solid rgba(0, 208, 255, 0.22);
  border-radius: var(--radius);
  padding: 1.25rem 2.5rem;
  display: inline-flex;
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}
.stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  letter-spacing: .03em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
}
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
}
.hero-wave svg { width: 100%; height: 80px; display: block; }

/* =============================================
   FEATURES
   ============================================= */
.features { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: .5rem;
}
.feature-card p {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* =============================================
   PLANS
   ============================================= */
.plans { background: var(--blue-50); }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.toggle-label {
  font-weight: 600;
  color: var(--gray-400);
  transition: color var(--transition);
  cursor: pointer;
}
.toggle-label.active { color: var(--blue-700); }
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: var(--blue-300);
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition);
}
.slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 4px; top: 4px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--transition);
}
input:checked + .slider { background: var(--blue-600); }
input:checked + .slider::before { transform: translateX(24px); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.plan-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 2px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.plan-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.plan-card.featured {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.plan-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.plan-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue-500);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 50px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-800);
}
.plan-price {
  font-size: 1rem;
  color: var(--gray-600);
}
.price-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue-700);
  line-height: 1;
}
.price-period { font-size: .85rem; color: var(--gray-400); }
.plan-speed {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-500);
  background: var(--blue-50);
  padding: .4rem .8rem;
  border-radius: 6px;
}
.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.plan-features li {
  font-size: .88rem;
  color: var(--gray-600);
  padding: .2rem 0;
  border-bottom: 1px dashed var(--gray-200);
}
.plan-features li:last-child { border-bottom: none; }
.plans-note {
  text-align: center;
  margin-top: 2rem;
  font-size: .85rem;
  color: var(--gray-400);
}
.plans-note a { color: var(--blue-500); font-weight: 600; }

/* =============================================
   COVERAGE MAP
   ============================================= */
.coverage {
  background:
    linear-gradient(rgba(4, 10, 30, 0.86), rgba(4, 10, 30, 0.86)),
    url('../images/bg-hero.jpg') center center / cover no-repeat;
  background-image:
    linear-gradient(rgba(4, 10, 30, 0.86), rgba(4, 10, 30, 0.86)),
    image-set(
      url('../images/bg-hero.webp') type('image/webp'),
      url('../images/bg-hero.jpg')  type('image/jpeg')
    );
  color: var(--white);
}
.coverage-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}
#map {
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.coverage-legend {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.coverage-legend h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}
.coverage-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1rem;
}
.coverage-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
}
.dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-active { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,.6); }
.coverage-note {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-top: .5rem;
}
.coverage-note a { color: var(--accent); font-weight: 600; }

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.about-text p {
  color: var(--gray-600);
  font-size: .95rem;
  margin-bottom: .9rem;
  line-height: 1.7;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: 1.5rem;
}
.value-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: .6rem .9rem;
  border-radius: 8px;
}

/* Signal animation graphic */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-graphic {
  position: relative;
  width: 280px; height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.signal-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--blue-300);
  opacity: 0;
  animation: pulse-ring 3s ease-out infinite;
}
.c1 { width: 100px; height: 100px; animation-delay: 0s; }
.c2 { width: 180px; height: 180px; animation-delay: 1s; }
.c3 { width: 260px; height: 260px; animation-delay: 2s; }
@keyframes pulse-ring {
  0%   { opacity: .7; transform: scale(.8); }
  100% { opacity: 0;  transform: scale(1.05); }
}
.tower-icon {
  font-size: 4rem;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(15,78,181,.3));
}

/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--gray-100); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: .75rem;
  line-height: 1.25;
}
.contact-info > p {
  color: var(--gray-600);
  font-size: .95rem;
  margin-bottom: 1.75rem;
}
.contact-details { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.contact-item strong { display: block; font-size: .85rem; color: var(--blue-700); font-weight: 700; margin-bottom: .2rem; }
.contact-item p { font-size: .9rem; color: var(--gray-600); margin: 0; line-height: 1.5; }
.contact-item a { color: var(--blue-500); font-weight: 500; }
.contact-item a:hover { color: var(--blue-700); }

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-group.full-width { grid-column: 1 / -1; margin-bottom: 1rem; }
.form-group label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--blue-800);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: .65rem .9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .9rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(58,128,232,.15);
}
.form-group textarea { resize: vertical; }
.form-feedback {
  margin-top: .75rem;
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.4rem;
}
.form-feedback.success { color: #16a34a; }
.form-feedback.error   { color: #dc2626; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #04081e;
  color: rgba(255,255,255,.75);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding: 3.5rem 1.5rem 2rem;
}
.footer-brand p {
  font-size: .88rem;
  margin-top: .75rem;
  max-width: 240px;
  line-height: 1.6;
}
.footer-logo { margin-bottom: .25rem; }
.footer-links h4,
.footer-contact h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-links li a {
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-links li a:hover { color: var(--accent); }
.footer-contact p { font-size: .88rem; margin-bottom: .4rem; }
.footer-contact a { transition: color var(--transition); }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--blue-900);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Hero */
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.2rem;
    padding: 1rem 1.5rem;
  }
  .stat-divider { display: none; }

  /* Coverage */
  .coverage-body {
    grid-template-columns: 1fr;
  }
  #map { height: 300px; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-visual { order: -1; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  section { padding: 3.5rem 0; }
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .about-values { grid-template-columns: 1fr; }
}
