/* =========================================================================
   Pacewave Communications — modern static site
   ========================================================================= */

:root {
  /* Surfaces */
  --bg-0: #07080b;
  --bg-1: #0d0f14;
  --bg-2: #12151c;
  --bg-3: #181c26;
  --bg-4: #202533;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Brand */
  --primary: #0ea5e9;
  --primary-600: #0284c7;
  --accent: #06b6d4;
  --teal: #14b8a6;
  --gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(20,184,166,0.05));

  /* Text */
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  /* Type */
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1200px;
  --container-wide: 1400px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 300ms;
  --t-slow: 600ms;
}

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; }

::selection { background: var(--primary); color: white; }

/* ----- layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}
.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.75rem 0;
  background: transparent;
  transition: background var(--t-med), backdrop-filter var(--t-med),
              border-color var(--t-med), padding var(--t-med);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom-color: var(--border);
  padding: 0.5rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand { flex-shrink: 0; display: inline-flex; }
.nav-logo {
  height: 44px;
  width: auto;
  max-width: 220px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.navbar.scrolled .nav-logo { opacity: 1; transform: none; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}
.nav-link.btn-contact {
  margin-left: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--gradient);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
}
.nav-link.btn-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(14, 165, 233, 0.55);
  color: white;
}
.nav-link.btn-contact::after { display: none; }

/* hamburger */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-fast), top var(--t-med);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--bg-0);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 80%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  animation: floatGlow 14s ease-in-out infinite;
}
.glow-a {
  width: 520px; height: 520px;
  top: -120px; left: -140px;
  background: radial-gradient(circle, rgba(14,165,233,0.55), transparent 70%);
}
.glow-b {
  width: 600px; height: 600px;
  bottom: -180px; right: -160px;
  background: radial-gradient(circle, rgba(20,184,166,0.45), transparent 70%);
  animation-delay: -6s;
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}
.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 240px;
  opacity: 0.7;
}
.wave { stroke-linecap: round; animation: waveShift 10s linear infinite; }
.wave-2 { animation-duration: 14s; animation-direction: reverse; }
.wave-3 { animation-duration: 18s; }
@keyframes waveShift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s var(--ease) both;
}
.hero-logo {
  width: 100%;
  max-width: 520px;
  height: auto;
}
.hero-content {
  max-width: 820px;
  animation: fadeUp 0.9s var(--ease) 0.15s both;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.5rem 1rem;
  background: rgba(14,165,233,0.08);
  border: 1px solid rgba(14,165,233,0.25);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
}
.hero-cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
}
.stat { text-align: center; min-width: 120px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}
.stat-div {
  width: 1px; height: 28px;
  background: var(--border);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast),
              background var(--t-fast), border-color var(--t-fast),
              color var(--t-fast);
  white-space: nowrap;
}
.btn .material-icons-outlined { font-size: 1.1rem; }
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 8px 24px -10px rgba(14,165,233,0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(14,165,233,0.65);
  color: white;
}
.btn-outline {
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--primary);
  color: white;
}
.btn-block { width: 100%; }

/* ==========================================================================
   SECTION PRIMITIVES
   ========================================================================== */
.section {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.9rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 1rem auto 0;
}
.section-head-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.section-head-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 900px) {
  .section-head-split { grid-template-columns: 5fr 7fr; align-items: end; }
}
.lead-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.section-about { background: var(--bg-0); }

.feature-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--t-med) var(--ease),
              border-color var(--t-med), box-shadow var(--t-med);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(14,165,233,0.35), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-med);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14,165,233,0.25);
}
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: rgba(14,165,233,0.10);
  border: 1px solid rgba(14,165,233,0.22);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  color: var(--primary);
}
.feature-icon .material-icons-outlined { font-size: 28px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   ADVANTAGE
   ========================================================================== */
.section-advantage {
  background: var(--bg-1);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(14,165,233,0.08), transparent 70%);
}

.advantage-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med);
}
.advantage-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.advantage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14,165,233,0.25);
}
.advantage-card:hover::before { transform: scaleX(1); }

.advantage-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(14,165,233,0.10);
  border: 1px solid rgba(14,165,233,0.22);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  color: var(--primary);
}
.advantage-metric {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.advantage-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.advantage-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* ==========================================================================
   SOLUTION — End-to-End Network Solution diagram
   Style reference: "Core Network Architecture" slide
   (grey = control plane · outlined = subscriber data · teal = user plane ·
    dashed = signalling/management · solid = user traffic)
   ========================================================================== */
.section-topology { background: var(--bg-1); }

.e2e-wrap {
  --e2e-teal: #14a3b8;
  --e2e-teal-soft: rgba(20, 163, 184, 0.14);
  --e2e-cell: #2a2e36;
  --e2e-panel: rgba(255, 255, 255, 0.025);
  --e2e-line: rgba(255, 255, 255, 0.09);
  background: #15171c;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1rem, 1.6vw, 1.5rem);
  box-shadow: 0 30px 80px -40px rgba(14,165,233,0.35);
}

.e2e {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) 58px minmax(0, 1.12fr) 58px minmax(0, 1fr) 58px minmax(0, 1fr) 58px minmax(0, 1.08fr);
  grid-template-rows: auto 20px auto 20px auto;
  align-items: stretch;
}

/* ----- shared link affordance ----- */
.e2e-link { cursor: pointer; }
.e2e-go {
  font-size: 18px !important;
  color: var(--e2e-teal);
  opacity: 0.75;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast);
}
.e2e-link:hover .e2e-go,
.e2e-link:focus-visible .e2e-go { opacity: 1; transform: translate(2px, -2px); }
.e2e-link:focus-visible,
.e2e-node--info:focus-visible {
  outline: 2px solid var(--e2e-teal);
  outline-offset: 3px;
}

/* ----- Management layer (spans every domain) ----- */
.e2e-mgmt {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, var(--e2e-teal-soft), rgba(20,163,184,0.04));
  border: 1.5px solid rgba(20,163,184,0.55);
  border-radius: 14px;
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med) var(--ease);
}
.e2e-mgmt:hover {
  border-color: var(--e2e-teal);
  box-shadow: 0 10px 30px -14px rgba(20,163,184,0.7);
  transform: translateY(-2px);
}
.e2e-mgmt-label,
.e2e-group-label {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--e2e-teal);
  letter-spacing: 0.01em;
}
.e2e-mgmt-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text);
}
.e2e-mgmt-title .material-icons-outlined { color: var(--e2e-teal); font-size: 20px; }
.e2e-mgmt-chips { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.e2e-chip {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--e2e-cell);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
}
.e2e-chip--api {
  color: var(--e2e-teal);
  background: transparent;
  border: 1.5px solid var(--e2e-teal);
  border-radius: 999px;
  font-weight: 700;
}
.e2e-mgmt .e2e-go { margin-left: auto; }


/* ----- OTT Solutions layer (spans every domain) ----- */
.e2e-ott {
  grid-column: 1 / -1;
  grid-row: 5;
  display: grid;
  grid-template-columns: minmax(200px, auto) 1fr;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, rgba(45,212,191,.04), rgba(45,212,191,.12));
  border: 1.5px dashed rgba(45,212,191,.55);
  border-radius: 14px;
}
.e2e-ott .e2e-mgmt-label { color: #2dd4bf; }
.e2e-ott-head { display: flex; flex-direction: column; gap: .15rem; }
.e2e-ott-sub { font-size: .78rem; color: var(--text-muted); }
.e2e-ott-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.e2e-ott .e2e-node-icon { color: #2dd4bf; }

/* ----- domain groups ----- */
.e2e-group {
  grid-row: 3;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--e2e-panel);
  border: 1px solid var(--e2e-line);
  border-radius: 14px;
  min-width: 0;
}
.e2e-group--dn        { grid-column: 1; }
.e2e-group--core      { grid-column: 3; }
.e2e-group--transport { grid-column: 5; }
.e2e-group--ran       { grid-column: 7; }
.e2e-group--apps      { grid-column: 9; }

/* Data Networks: customer network branches to the customer's own internet */
.e2e-branch {
  position: relative;
  height: 14px;
  margin: -0.6rem 0;
}
.e2e-branch::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  border-left: 2px solid var(--e2e-teal);
}
.e2e-node--sub {
  margin-left: 0.6rem;
  padding: 0.55rem 0.7rem;
  background: transparent;
  border: 1.5px dashed rgba(255,255,255,0.16);
}
.e2e-node--sub .e2e-node-icon { font-size: 22px !important; }

.e2e-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Applications head: link to SIM cards */
.e2e-group--apps .e2e-group-head { flex-wrap: wrap; row-gap: 0.4rem; }
.e2e-head-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--e2e-teal);
  border: 1px solid rgba(20,163,184,0.5);
  border-radius: 999px;
  background: rgba(20,163,184,0.08);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.e2e-head-link .material-icons-outlined { font-size: 15px; }
.e2e-head-link:hover,
.e2e-head-link:focus-visible { background: rgba(20,163,184,0.18); border-color: var(--e2e-teal); }
@media (pointer: coarse), (max-width: 640px) { .e2e-head-link { min-height: 40px; padding: 0.2rem 0.8rem; } }

/* Core group is itself the link */
.e2e-group--core {
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med) var(--ease);
}
.e2e-group--core:hover {
  border-color: rgba(20,163,184,0.7);
  box-shadow: 0 14px 40px -18px rgba(20,163,184,0.6);
  transform: translateY(-2px);
}

.e2e-sub {
  display: block;
  position: relative;
  padding: 1.6rem 0.65rem 0.65rem;
  border: 1px solid var(--e2e-line);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}
.e2e-sub-label {
  position: absolute;
  top: 0.4rem; right: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--e2e-teal);
}
.e2e-cells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.e2e-cell {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  background: var(--e2e-cell);
  border: 1.5px solid transparent;
  border-radius: 6px;
  padding: 0.5rem 0.25rem;
}
.e2e-cell--data { background: #23272e; border-color: var(--e2e-teal); }
.e2e-cell--span { grid-column: 1 / -1; }

.e2e-up {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--e2e-teal);
  border-radius: 6px;
  padding: 0.55rem 0.5rem;
}
.e2e-up small { font-weight: 600; opacity: 0.85; }

/* ----- connectors between domains (user traffic) ----- */
.e2e-conn {
  grid-row: 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.e2e-conn--0 { grid-column: 2; }
.e2e-conn--1 { grid-column: 4; }
.e2e-conn--2 { grid-column: 6; }
.e2e-conn--3 { grid-column: 8; }
/* bi-directional: line drawn as background, arrowheads on both ends */
.e2e-conn {
  background: linear-gradient(var(--e2e-teal), var(--e2e-teal)) center / calc(100% - 12px) 2px no-repeat;
}
.e2e-conn::before,
.e2e-conn::after {
  content: '';
  position: absolute;
  top: calc(50% - 5px);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.e2e-conn::before { left: 0;  border-right: 8px solid var(--e2e-teal); }
.e2e-conn::after  { right: 0; border-left: 8px solid var(--e2e-teal); }
.e2e-conn em {
  position: relative;
  transform: translateY(-14px);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--e2e-teal);
  white-space: nowrap;
}

/* ----- nodes (transport / RAN) ----- */
.e2e-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}
.e2e-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.8rem;
  background: var(--e2e-cell);
  border: 1.5px solid transparent;
  border-radius: 10px;
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med) var(--ease);
}
.e2e-node:hover,
.e2e-node:focus-visible {
  border-color: var(--e2e-teal);
  box-shadow: 0 10px 26px -14px rgba(20,163,184,0.7);
  transform: translateY(-2px);
}
.e2e-node-icon { color: var(--e2e-teal); font-size: 26px !important; flex-shrink: 0; }
.e2e-node-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.e2e-node-text strong { font-weight: 600; font-size: 0.93rem; color: var(--text); line-height: 1.25; }
.e2e-node-text small { font-size: 0.74rem; color: var(--text-muted); line-height: 1.35; }
.e2e-info { font-size: 17px !important; color: var(--text-subtle); }
.e2e-node--info { cursor: help; padding-right: 1.7rem; }
.e2e-node--info > .e2e-info { position: absolute; top: 0.55rem; right: 0.55rem; }
.e2e-node--info:hover,
.e2e-node--info:focus { z-index: 6; }
.e2e-node--info:hover .e2e-info,
.e2e-node--info:focus-visible .e2e-info { color: var(--e2e-teal); }

.e2e-node--tall {
  flex-direction: column;
  text-align: center;
  padding: 1.25rem 0.8rem 1rem;
  min-height: 150px;
  justify-content: center;
}
.e2e-node--tall .e2e-node-icon { font-size: 40px !important; }
.e2e-node--tall .e2e-node-text { flex: 0; align-items: center; }
.e2e-node--tall .e2e-go { position: absolute; top: 0.6rem; right: 0.6rem; }

/* Placeholder node (e.g. Field Space Optics): no link, no tooltip, so no hover lift */
.e2e-node--static:hover { border-color: transparent; box-shadow: none; transform: none; }
.e2e-node--static { opacity: .8; }

/* Transport: PTP / PMP card with a two-tower illustration */
.e2e-node--ptp { flex-direction: column; align-items: stretch; gap: 0.45rem; padding: 0.8rem 0.8rem 0.75rem; }
.e2e-node--ptp .e2e-go { position: absolute; top: 0.55rem; right: 0.55rem; }
.e2e-ptp-art { display: block; width: 100%; max-width: 200px; height: auto; margin: 0.15rem auto 0; color: var(--e2e-teal); }
.e2e-ptp-art .e2e-ptp-ground { stroke: rgba(255,255,255,0.22); }
.e2e-ptp-art .e2e-ptp-beam { animation: e2e-ptp-flow 1.6s linear infinite; }
@keyframes e2e-ptp-flow { to { stroke-dashoffset: -16; } }
@media (prefers-reduced-motion: reduce) { .e2e-ptp-art .e2e-ptp-beam { animation: none; } }
.e2e-node--ptp .e2e-node-text { text-align: center; align-items: center; }

/* Edge column: Off-Grid and RAN sub-containers (same language as EPC / 5GC) */
.e2e-sub--edge { padding: 0.6rem 0.55rem 0.55rem; }
.e2e-sub--edge .e2e-sub-label { position: static; display: block; margin: 0 0.15rem 0.5rem; line-height: 1.25; }
.e2e-sub--edge .e2e-node--tall { min-height: 128px; padding: 1rem 0.7rem 0.85rem; }

/* hover / focus tooltip */
.e2e-tip {
  position: absolute;
  z-index: 5;
  left: 0; right: 0;
  top: calc(100% + 10px);
  padding: 0.65rem 0.8rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text);
  background: #0b0d11;
  border: 1px solid var(--e2e-teal);
  border-radius: 8px;
  box-shadow: 0 16px 30px -12px rgba(0,0,0,0.8);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.e2e-tip::before {
  content: '';
  position: absolute;
  top: -6px; left: 22px;
  width: 10px; height: 10px;
  background: #0b0d11;
  border-left: 1px solid var(--e2e-teal);
  border-top: 1px solid var(--e2e-teal);
  transform: rotate(45deg);
}
.e2e-node--info:hover .e2e-tip,
.e2e-node--info:focus .e2e-tip { opacity: 1; transform: none; }

/* ----- applications ----- */
.e2e-apps { display: flex; flex-direction: column; gap: 0.4rem; }
.e2e-app,
.e2e-app--link a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  background: var(--e2e-cell);
  border-radius: 8px;
}
.e2e-app > .material-icons-outlined,
.e2e-app--link a > .material-icons-outlined:first-child { color: var(--e2e-teal); font-size: 20px; }
.e2e-app span:not(.material-icons-outlined) { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.e2e-app strong { font-size: 0.84rem; font-weight: 600; color: var(--text); }
.e2e-app small { font-size: 0.7rem; color: var(--text-muted); }
.e2e-app--link { padding: 0; background: none; }
.e2e-app--link a {
  width: 100%;
  background: linear-gradient(90deg, var(--e2e-teal-soft), rgba(20,163,184,0.03));
  border: 1.5px solid rgba(20,163,184,0.6);
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med) var(--ease);
}
.e2e-app--link a:hover {
  border-color: var(--e2e-teal);
  box-shadow: 0 10px 26px -14px rgba(20,163,184,0.7);
  transform: translateY(-2px);
}

/* ----- key + note ----- */
.e2e-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--e2e-line);
}
.e2e-note {
  flex: 1 1 320px;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-muted);
}
.e2e-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.e2e-key li { display: inline-flex; align-items: center; gap: 0.45rem; }
.e2e-key i { display: inline-block; width: 22px; flex-shrink: 0; }
.e2e-key .k-cp      { height: 13px; border-radius: 3px; background: var(--e2e-cell); }
.e2e-key .k-data    { height: 13px; border-radius: 3px; border: 1.5px solid var(--e2e-teal); }
.e2e-key .k-up      { height: 13px; border-radius: 3px; background: var(--e2e-teal); }
.e2e-key .k-traffic { position: relative; width: 26px; height: 2px; background: var(--e2e-teal); margin: 0 3px; }
.e2e-key .k-traffic::before,
.e2e-key .k-traffic::after { content: ''; position: absolute; top: -4px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.e2e-key .k-traffic::before { left: -5px; border-right: 6px solid var(--e2e-teal); }
.e2e-key .k-traffic::after  { right: -5px; border-left: 6px solid var(--e2e-teal); }
.e2e-key .material-icons-outlined { font-size: 16px; color: var(--e2e-teal); width: 22px; text-align: center; }

/* ----- stacked layout for tablets & phones ----- */
@media (max-width: 1320px) {
  .e2e-mgmt { position: relative; padding-right: 2.75rem; }
  .e2e-mgmt .e2e-go { position: absolute; top: 1rem; right: 1rem; }
  .e2e {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }
  .e2e > * { grid-column: 1 !important; grid-row: auto !important; }
  .e2e-group--dn { margin-top: 1.25rem; }
  .e2e-ott { grid-template-columns: 1fr; margin-top: 1.25rem; }
  .e2e-ott-items { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .e2e-conn {
    height: 52px;
    justify-content: flex-start;
    background-size: 2px calc(100% - 12px);
  }
  .e2e-conn::before,
  .e2e-conn::after {
    left: calc(50% - 5px); right: auto;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
  }
  .e2e-conn::before { top: 0; bottom: auto; border-top: 0; border-bottom: 8px solid var(--e2e-teal); }
  .e2e-conn::after  { top: auto; bottom: 0; border-bottom: 0; border-top: 8px solid var(--e2e-teal); }
  .e2e-conn em { transform: none; margin-left: calc(50% + 12px); }
  .e2e-stack { flex-direction: row; flex-wrap: wrap; }
  .e2e-group--dn .e2e-stack { flex-direction: column; flex-wrap: nowrap; }
  .e2e-group--dn .e2e-stack > * { flex: none; }
  .e2e-stack > * { flex: 1 1 220px; }
  .e2e-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .e2e-app--link { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .e2e-cells { grid-template-columns: 1fr 1fr; }
  .e2e-mgmt-chips { display: none; }
  .e2e-node--tall { min-height: 0; }
}

/* Wave product cards briefly highlighted when arriving from the eNB/gNB node */
.product-card.is-highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(6,182,212,0.45), 0 18px 40px -18px rgba(6,182,212,0.7);
}

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
.section-products { background: var(--bg-0); }
.section-products .section-head-center { margin-bottom: 2.5rem; }
.section-products .tech-badges { justify-content: center; margin-top: 1.5rem; }

.tech-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(14,165,233,0.08);
  border: 1px solid rgba(14,165,233,0.22);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

/* two groups: Radio access / Devices, SIMs & services */
.products-group + .products-group { margin-top: 2.5rem; }
.products-group-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.products-group-label .material-icons-outlined { font-size: 20px; color: var(--accent); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.4rem 1.4rem 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--t-med), border-color var(--t-med);
}
.product-card:not(.product-card--soon):hover {
  transform: translateY(-3px);
  border-color: rgba(14,165,233,0.35);
}
.product-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
.product-card p {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--t-fast), gap var(--t-fast);
}
.product-link .material-icons-outlined { font-size: 18px; }
.product-link:hover { color: #7ee3f1; gap: 0.55rem; }

/* not yet available: quieter card */
.product-card--soon {
  background: transparent;
  border-style: dashed;
}
.product-card--soon .product-name { color: var(--text-muted); }
.product-coming-soon {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle, var(--text-muted));
}

@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .products-grid { grid-template-columns: minmax(0, 1fr); }
  .product-card { padding: 1.2rem; }
}

/* ==========================================================================
   INDUSTRIES
   ========================================================================== */
.section-industries {
  background: var(--bg-1);
  background-image: radial-gradient(ellipse 60% 40% at 80% 100%, rgba(20,184,166,0.08), transparent 70%);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.industry-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform var(--t-med), border-color var(--t-med);
}
.industry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14,165,233,0.28);
}
.industry-card .material-icons-outlined {
  font-size: 38px;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.industry-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.industry-stat {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.75rem;
}
.industry-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.section-contact { background: var(--bg-0); }

.contact-wrapper {
  background:
    linear-gradient(180deg, rgba(14,165,233,0.06), rgba(20,184,166,0.02)),
    var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.contact-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(14,165,233,0.18), transparent 60%);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.contact-copy .section-tag { margin-bottom: 0.6rem; }
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.contact-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.contact-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.contact-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
}
.contact-benefits .material-icons-outlined {
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-direct {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.contact-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 500;
  transition: color var(--t-fast);
}
.contact-direct-link:hover { color: var(--primary); }
.contact-direct-link .material-icons-outlined { color: var(--primary); font-size: 20px; }

/* form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field-full { grid-column: 1 / -1; }
.field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.contact-form textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-subtle); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-3);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.18);
}
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.25rem;
}
.contact-form .btn { grid-column: 1 / -1; }
.form-note {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--text-subtle);
  text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1.2fr 1.2fr; }
}
.footer-brand .footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 0.85rem;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 360px;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 40px;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.footer-social svg {
  flex-shrink: 0;
  padding: 7px;
  width: 34px; height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.footer-social:hover, .footer-social:focus-visible { color: var(--text); }
.footer-brand .footer-social { display: inline-flex; padding: 0; } /* beats the mobile .footer-col a rule */
.footer-social:hover svg, .footer-social:focus-visible svg { border-color: var(--primary); background: rgba(14,165,233,0.1); }

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 0.9rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
}
.footer-copy, .footer-meta {
  color: var(--text-subtle);
  font-size: 0.82rem;
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-on-scroll { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: rgba(7,8,11,0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-med) var(--ease), opacity var(--t-med);
  }
  .nav-menu.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  .nav-link.btn-contact { margin-left: 0; margin-top: 0.25rem; text-align: center; }
  .nav-toggle { display: block; }
  .navbar .nav-logo { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .hero { padding-top: 100px; }
  .hero-cta { flex-direction: column; width: 100%; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .stat-div { display: none; }
  .contact-form { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SUBPAGES (PSTI · Security Advisories)
   ========================================================================== */

.subpage {
  padding-top: 120px;
  padding-bottom: clamp(3rem, 6vw, 6rem);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}
.subpage::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  background:
    radial-gradient(ellipse 70% 60% at 30% 0%, rgba(14,165,233,0.14), transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(20,184,166,0.08), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
/* Subtle grid mesh, mirroring hero on landing page */
.subpage::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 2rem;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--text-subtle); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* Subpage hero */
.subpage-hero {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.subpage-hero .hero-tag { margin-bottom: 1.25rem; }
/* Suppress the glowing dot pseudo when an icon is provided inline */
.subpage-hero .hero-tag::before { display: none; }
.subpage-hero .hero-tag .tag-icon {
  font-size: 14px;
  color: var(--primary);
}
.subpage-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 820px;
}
.subpage-hero .lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.65;
}

/* Content primitives */
.subpage h2.sub-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  margin: 3rem 0 1.25rem;
  letter-spacing: -0.015em;
  color: var(--text);
}
.subpage h2.sub-h2:first-of-type { margin-top: 0; }
/* Small utility for inline material icons (replaces inline style attrs) */
.icon-xs { font-size: 12px !important; }
.icon-sm { font-size: 14px !important; }
.icon-md { font-size: 16px !important; }
.icon-lg { font-size: 20px !important; }
.subpage p.sub-body {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 860px;
  margin-bottom: 1rem;
}
.subpage p.sub-body strong { color: var(--text); font-weight: 600; }
.subpage a.inline-link {
  color: var(--primary);
  border-bottom: 1px solid rgba(14,165,233,0.35);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.subpage a.inline-link:hover { color: #7dd3fc; border-bottom-color: var(--primary); }

.sub-divider {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* Callout banner */
.callout {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--gradient-soft);
  border: 1px solid rgba(14,165,233,0.22);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
.callout-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: grid;
  place-items: center;
}
.callout-icon .material-icons-outlined { font-size: 20px; }
.callout p {
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout p.ref {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Numbered requirement list */
.req-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 0;
}
.req-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med);
}
.req-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14,165,233,0.28);
}
.req-num {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(14,165,233,0.12);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.req-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.req-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Signatory grid */
.sig-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1rem;
}
.sig-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.sig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.sig-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  margin-bottom: 0.25rem;
}
.sig-field p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* PDF placeholder card */
.pdf-card {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1rem;
}
@media (max-width: 600px) {
  .pdf-card { grid-template-columns: 1fr; text-align: center; }
}
.pdf-thumb {
  width: 60px; height: 76px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  position: relative;
}
.pdf-thumb::before {
  content: 'PDF';
  position: absolute;
  top: 6px; left: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.1em;
}
.pdf-thumb span {
  display: block;
  height: 2px;
  background: var(--border-strong);
  border-radius: 2px;
}
.pdf-thumb span:nth-child(2) { width: 80%; }
.pdf-thumb span:nth-child(3) { width: 60%; }
.pdf-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.pdf-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}
.pdf-filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-subtle);
}
.pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-3);
  color: var(--text-subtle);
  cursor: not-allowed;
}
.pdf-download-btn.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.pdf-download-btn.active:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(14,165,233,0.6);
}

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(20,184,166,0.05));
  border: 1px solid rgba(14,165,233,0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.cta-box-text { flex: 1 1 320px; }
.cta-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.cta-box p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Related card */
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1rem;
  transition: transform var(--t-med), border-color var(--t-med);
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14,165,233,0.3);
  color: inherit;
}
.related-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.related-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}
.related-arrow {
  color: var(--primary);
  font-size: 1.5rem;
  transition: transform var(--t-fast);
}
.related-card:hover .related-arrow { transform: translateX(4px); }
.coming-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Contact info table (advisory page) */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.5rem 0;
}
.info-table td {
  padding: 1.1rem 1.25rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.6;
}
.info-table tr:last-child td { border-bottom: 0; }
.info-table td:first-child {
  width: 180px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
}
.info-table td:last-child { color: var(--text); }
.info-table td strong { color: var(--text); }
.info-table .note {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-top: 0.4rem;
}
@media (max-width: 640px) {
  .info-table, .info-table tbody, .info-table tr, .info-table td {
    display: block;
    width: 100%;
  }
  .info-table td:first-child {
    width: auto;
    padding-bottom: 0.25rem;
    border-bottom: 0;
    background: transparent;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }
  .info-table td:last-child { padding-top: 0; }
}
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 500;
  border-bottom: 1px dashed rgba(14,165,233,0.35);
  transition: color var(--t-fast);
}
.email-link:hover { color: #7dd3fc; }
.email-link .material-icons-outlined { font-size: 18px; }

/* Process flow (advisory) */
.process-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.process-step {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  position: relative;
  transition: border-color var(--t-med), transform var(--t-med);
}
.process-step:hover {
  border-color: rgba(14,165,233,0.3);
  transform: translateY(-2px);
}
.process-step-num {
  width: 36px; height: 36px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.process-step p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.process-ref {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.process-ref a {
  color: var(--primary);
  border-bottom: 1px dashed rgba(14,165,233,0.35);
}

/* Detail grid (2-col cards) */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.detail-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med);
}
.detail-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14,165,233,0.28);
}
.detail-card h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.detail-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}
.detail-card strong { color: var(--text); }

/* Guideline list */
.guideline-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.guideline-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  align-items: start;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  transition: border-color var(--t-med);
}
.guideline-item:hover { border-color: rgba(14,165,233,0.28); }
.guideline-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(14,165,233,0.12);
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
.guideline-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  padding-top: 2px;
}
.guideline-item strong { color: var(--text); }



/* ==========================================================================
   MOBILE POLISH (site-wide)
   ========================================================================== */

@media (max-width: 900px) {
  /* comfortable tap targets (≥ 40px tall) for stacked link lists */
  .footer-col ul { gap: 0; }
  .footer-col a { display: inline-block; padding: 0.55rem 0; }
  .breadcrumb a { display: inline-block; padding: 0.5rem 0; }
  .contact-direct-link, .email-link { padding: 0.5rem 0; }
  .product-datasheet-btn { padding: 0.6rem 0.9rem; } /* support.html download buttons */
}
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .section-head-center { margin-bottom: 2rem; }
  .hero-stats { width: 100%; }
  .cta-box .btn { width: 100%; }
  /* long words / emails never force horizontal scroll */
  p, li, td, a { overflow-wrap: break-word; }
}
