:root {
  --bg: #050505;
  --bg-soft: #090909;
  --panel: rgba(255,255,255,.065);
  --panel-strong: rgba(255,255,255,.11);
  --text: #f5f5f5;
  --muted: rgba(245,245,245,.72);
  --muted-soft: rgba(245,245,245,.56);
  --border: rgba(255,255,255,.12);
  --red: #e30613;
  --red-dark: #98000b;
  --max: 1180px;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 520px at 18% -6%, rgba(227,6,19,.26), transparent 62%),
    radial-gradient(900px 560px at 86% 0%, rgba(152,0,11,.22), transparent 62%),
    linear-gradient(180deg, #050505 0%, #070707 42%, #050505 100%);
  color: var(--text);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5,5,5,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 96px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 76px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(227,6,19,.18));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 750;
  padding: 10px 13px;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--panel);
  transform: translateY(-1px);
}

.hero,
.page-hero {
  padding: 58px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 34px;
  align-items: stretch;
}

.hero-copy {
  padding: 16px 0 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(227,6,19,.8);
}

.eyebrow.small {
  font-size: 12px;
  padding: 7px 11px;
}

h1 {
  margin: 18px 0 16px;
  max-width: 900px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .96;
  letter-spacing: -2.2px;
}

h2 {
  margin: 12px 0 14px;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -1.2px;
}

h3 {
  margin: 0 0 10px;
  line-height: 1.18;
}

.lead {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 19px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.07);
  color: var(--text);
  font-weight: 850;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.095);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.btn.primary:hover {
  background: linear-gradient(135deg, #ff1020, var(--red-dark));
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-points span {
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(0,0,0,.26);
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.045)),
    radial-gradient(480px 220px at 20% 0%, rgba(227,6,19,.22), transparent 60%);
  padding: 28px;
  box-shadow: 0 28px 90px rgba(0,0,0,.40);
}

.card-glow {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(227,6,19,.22);
  filter: blur(54px);
}

.hero-card > *:not(.card-glow) {
  position: relative;
  z-index: 1;
}

.hero-card p {
  color: var(--muted);
  max-width: 44ch;
}

.proof-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.proof-list div {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  padding: 14px;
}

.proof-list strong,
.proof-list span {
  display: block;
}

.proof-list span {
  color: var(--muted);
  margin-top: 3px;
  font-size: 14px;
}

.stats-section {
  padding: 12px 0 38px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}

.stat {
  background: rgba(255,255,255,.055);
  padding: 22px;
}

.stat strong {
  display: block;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -1px;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 650;
}

.cards-section,
.sectors-section,
.content-section,
.cta-section {
  padding: 54px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading p,
.section-text,
.cta-card p,
.content {
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  min-height: 188px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.04));
  padding: 22px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(227,6,19,.42);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.045));
}

.card-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #ff4450;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.split-section {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 34px;
  align-items: start;
}

.sector-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sector-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  padding: 12px 15px;
  color: var(--muted);
  font-weight: 750;
}

.cta-card {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(227,6,19,.38);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(135deg, rgba(227,6,19,.22), rgba(255,255,255,.06)),
    radial-gradient(500px 240px at 100% 0%, rgba(227,6,19,.22), transparent 60%);
  padding: 30px;
  box-shadow: 0 28px 90px rgba(0,0,0,.30);
}

.cta-card h2 {
  max-width: 760px;
}

.content {
  max-width: 900px;
}

.content a {
  color: #fff;
  border-bottom: 1px solid var(--red);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 38px 0 46px;
  color: var(--muted);
  background: rgba(0,0,0,.20);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.site-footer h4 {
  margin: 0 0 12px;
  color: var(--text);
}

.site-footer p {
  margin: 7px 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: auto;
  }

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

  .cta-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .nav {
    min-height: 64px;
  }

  .brand img {
    height: 54px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .page-hero {
    padding: 58px 0 28px;
  }

  h1 {
    letter-spacing: -1.4px;
  }

  .stats-grid,
  .cards-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .cta-card {
    padding: 22px;
  }
}

.contact-section {
  padding: 28px 0 70px;
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-panel,
.form-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.055);
  padding: 26px;
}

.contact-panel {
  color: var(--muted);
}

.contact-panel h2,
.contact-panel h3 {
  color: var(--text);
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  padding: 16px;
}

.contact-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-weight: 750;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0,0,0,.28);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: rgba(227,6,19,.65);
  box-shadow: 0 0 0 3px rgba(227,6,19,.16);
}

.form-field .required {
  color: #ff4450;
}

.form-actions {
  margin-top: 18px;
}

.form-message,
.alert {
  border: 1px solid rgba(227,6,19,.35);
  border-radius: 16px;
  background: rgba(227,6,19,.12);
  color: var(--text);
  padding: 14px 16px;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid {
  grid-template-columns: 1.3fr 1fr 1.1fr 1.3fr;
}

.site-footer a {
  color: var(--muted);
  transition: color .18s ease;
}

.site-footer a:hover {
  color: var(--text);
}

.footer-brand p {
  max-width: 34ch;
}

.footer-subhead {
  margin-top: 22px !important;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 18px;
  color: var(--muted-soft);
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Homepage above-the-fold placement */
.hero {
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  padding: 38px 0 42px;
}

.hero .container {
  width: 100%;
}

.stats-section {
  padding: 34px 0 48px;
}

/* Hide hero point wrapper if Admin leaves empty items behind */
.hero-points:empty {
  display: none;
}

/* Desktop dropdown navigation */
.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
}

.has-dropdown > a::after {
  content: "▾";
  margin-left: 7px;
  font-size: 11px;
  color: var(--muted-soft);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 12px 8px 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(8,8,8,.96);
  box-shadow: 0 22px 60px rgba(0,0,0,.42);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--muted);
}

.nav-dropdown a:hover {
  color: var(--text);
  background: rgba(255,255,255,.075);
}

/* Services overview page */
.services-hero {
  min-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 0 42px;
}

.services-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .75fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.services-summary-card,
.landing-summary-card {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.045)),
    radial-gradient(480px 220px at 20% 0%, rgba(227,6,19,.20), transparent 60%);
  padding: 26px;
  box-shadow: 0 28px 90px rgba(0,0,0,.40);
}

.services-summary-card p,
.landing-summary-card p {
  color: var(--muted);
}

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

.services-card {
  display: grid;
  grid-template-rows: 150px 1fr;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255,255,255,.055);
  box-shadow: 0 22px 70px rgba(0,0,0,.24);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.services-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227,6,19,.44);
  background: rgba(255,255,255,.075);
}

.services-card-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background:
    radial-gradient(240px 140px at 20% 20%, rgba(227,6,19,.36), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.035));
}

.services-card-connectivity .services-card-visual {
  background:
    linear-gradient(135deg, rgba(227,6,19,.34), rgba(255,255,255,.04)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 1px, transparent 1px 22px);
}

.services-card-voice .services-card-visual {
  background:
    radial-gradient(circle at 24% 36%, rgba(227,6,19,.34), transparent 20%),
    radial-gradient(circle at 68% 62%, rgba(255,255,255,.16), transparent 18%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
}

.services-card-cloud .services-card-visual {
  background:
    radial-gradient(220px 120px at 28% 36%, rgba(255,255,255,.16), transparent 62%),
    radial-gradient(300px 180px at 74% 18%, rgba(227,6,19,.30), transparent 62%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
}

.services-card-visual span {
  color: rgba(255,255,255,.86);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.services-card-body {
  padding: 22px;
}

.services-card-body p {
  color: var(--muted);
}

.service-card-link,
.services-card-body strong {
  display: inline-flex;
  margin-top: 8px;
  color: var(--text);
}

/* Service child landing pages */
.landing-hero {
  padding: 72px 0 46px;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 34px;
  align-items: stretch;
}

.landing-process-section,
.services-support-section {
  padding: 54px 0;
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.055);
  padding: 18px;
}

.process-step > span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-weight: 900;
}

.process-step h3 {
  margin-bottom: 5px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .services-hero,
  .landing-hero {
    min-height: auto;
  }

  .services-hero-grid,
  .landing-hero-grid {
    grid-template-columns: 1fr;
  }

  .services-card-row {
    grid-template-columns: 1fr;
  }

  .nav-dropdown {
    display: none;
  }
}

.linked-card {
  display: block;
  color: inherit;
}

.card-link-text {
  display: inline-flex;
  margin-top: 12px;
  color: var(--text);
  font-size: 14px;
}

.proof-list a {
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.proof-list a:hover {
  border-color: rgba(227,6,19,.42);
  background: rgba(255,255,255,.07);
  transform: translateY(-2px);
}
