/* Raasano PHP — visual system mirrored from the Next.js product */

:root {
  --navy-950: #040812;
  --navy-900: #0a0f1e;
  --navy-850: #0d1428;
  --navy-800: #121a30;
  --cyber: #00a3ff;
  --cyber-soft: rgba(0, 163, 255, 0.14);
  --cyber-line: rgba(0, 163, 255, 0.28);
  --silver-100: #eef2f7;
  --silver-200: #c8d0dc;
  --silver-400: #8b96a8;
  --silver-600: #5c677a;
  --ink: #02050c;
  --danger: #ff5c7a;
  --ok: #3dd68c;
  --header-h: 4.5rem;
  --announce-h: 0px;
  --chrome-offset: calc(var(--header-h) + var(--announce-h));
  --rail: min(1120px, calc(100% - 2.5rem));
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-fa: "Vazirmatn", "Vazir", Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --surface-glass: rgba(10, 15, 30, 0.6);
  --header-scrolled: rgba(4, 8, 18, 0.78);
  --nav-mobile-bg: rgba(4, 8, 18, 0.96);
  --heading: #ffffff;
}

html.has-announcement {
  /* In modal mode we don't need to push header/content down. */
  --announce-h: 0px;
}

@media (max-width: 720px) {
  html.has-announcement {
    --announce-h: 2rem;
  }
}

html[data-theme="light"] {
  --navy-950: #f4f7fb;
  --navy-900: #ffffff;
  --navy-850: #eef3f9;
  --navy-800: #e4ebf4;
  --cyber: #0077c8;
  --cyber-soft: rgba(0, 119, 200, 0.12);
  --cyber-line: rgba(0, 119, 200, 0.3);
  --silver-100: #0b1220;
  --silver-200: #1a2740;
  --silver-400: #3a4a60;
  --silver-600: #556578;
  --ink: #e8eef6;
  --surface-glass: rgba(255, 255, 255, 0.92);
  --header-scrolled: rgba(244, 247, 251, 0.92);
  --nav-mobile-bg: rgba(255, 255, 255, 0.98);
  --heading: #0b1220;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
  background: var(--navy-950);
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(0, 163, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(0, 100, 180, 0.08), transparent 50%),
    var(--navy-950);
  color: var(--silver-100);
  font-family: var(--font-display);
  line-height: 1.6;
  overflow-x: clip;
}

html[dir="rtl"] body,
html[data-locale="fa"] body {
  font-family: var(--font-fa);
}

::selection {
  background: rgba(0, 163, 255, 0.35);
  color: #fff;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--navy-950), 0 0 0 4px rgba(0, 163, 255, 0.55);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rail {
  width: var(--rail);
  margin-inline: auto;
}

/* Atmosphere grid */
.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 163, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 163, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  opacity: 0.55;
  animation: grid-drift 28s linear infinite;
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 64px 64px, 64px 64px; }
}

.site-shell {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: var(--announce-h);
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s, box-shadow 0.35s, top 0.28s var(--ease);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0);
}

.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 12%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 163, 255, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.site-header.is-scrolled {
  background: var(--header-scrolled);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(0, 163, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 20, 40, 0.35);
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.header-inner {
  width: var(--rail);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  direction: ltr;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
}

.brand-logo-swap {
  display: inline-grid;
  place-items: center;
}

.brand-logo-swap > .brand-logo {
  grid-area: 1 / 1;
}

.brand-logo {
  display: block;
  width: auto;
  height: 3.25rem;
  object-fit: contain;
}

.brand-logo--for-light {
  display: none;
}

html[data-theme="light"] .brand-logo--for-dark {
  display: none;
}

html[data-theme="light"] .brand-logo--for-light {
  display: block;
}

.brand-logo-footer {
  height: 4.2rem;
}

.brand-logo-gateway {
  height: clamp(4.5rem, 18vw, 6.5rem);
  margin-inline: auto;
}

.brand-logo-live {
  animation: brand-logo-float 3.8s ease-in-out infinite;
  filter: drop-shadow(0 0 0 rgba(0, 180, 255, 0));
  transform-origin: center center;
}

.brand:hover .brand-logo-live,
.footer-brand:hover .brand-logo-live {
  animation-duration: 2.4s;
  filter: drop-shadow(0 0 10px rgba(0, 180, 255, 0.45));
}

@keyframes brand-logo-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 2px rgba(0, 180, 255, 0.2));
  }
  50% {
    transform: translateY(-2px) scale(1.03);
    filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.5));
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo-live {
    animation: none !important;
  }
}

.brand span {
  color: var(--cyber);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-desktop a {
  padding: 0.45rem 0.7rem;
  font-size: 0.86rem;
  color: var(--silver-200);
  border-radius: 0.4rem;
  transition: color 0.2s, background 0.2s;
}

.nav-desktop a.is-active {
  color: #fff;
  background: rgba(0, 163, 255, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(200, 208, 220, 0.16);
  background: transparent;
  color: var(--silver-200);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  border-color: var(--cyber-line);
  color: var(--cyber);
  background: var(--cyber-soft);
}

.theme-toggle .theme-icon {
  grid-area: 1 / 1;
}

.theme-toggle .theme-icon-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .theme-icon-moon {
  display: none;
}

html[data-theme="light"] .theme-toggle .theme-icon-sun {
  display: block;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(200, 208, 220, 0.16);
  border-radius: 0.45rem;
  overflow: hidden;
}

.lang-switch a {
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--silver-400);
}

.lang-switch a.is-active {
  background: var(--cyber-soft);
  color: var(--cyber);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active,
.btn.is-pressed {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #00a3ff 0%, #0077cc 100%);
  color: #041018;
  box-shadow: 0 0 0 1px rgba(0, 163, 255, 0.25), 0 10px 30px rgba(0, 120, 200, 0.22);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: btn-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(0, 163, 255, 0.4), 0 14px 36px rgba(0, 120, 200, 0.32);
}

@keyframes btn-shine {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

.btn-ghost {
  background: transparent;
  border-color: rgba(200, 208, 220, 0.18);
  color: var(--silver-100);
}

.btn-ghost:hover {
  border-color: var(--cyber-line);
  background: rgba(0, 163, 255, 0.06);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.menu-toggle {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 208, 220, 0.16);
  border-radius: 0.45rem;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--silver-100);
  position: relative;
  transition: transform 0.25s;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--chrome-offset) 0 auto 0;
  z-index: 39;
  background: var(--nav-mobile-bg);
  border-bottom: 1px solid rgba(0, 163, 255, 0.12);
  padding: 1rem 1.25rem 1.25rem;
  transform-origin: top center;
}

.nav-mobile.is-open {
  display: grid;
  gap: 0.35rem;
  animation: nav-mobile-in 0.32s var(--ease) both;
}

.nav-mobile a {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--silver-200);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.nav-mobile a:active {
  transform: scale(0.98);
  background: rgba(0, 163, 255, 0.08);
  color: #fff;
}

@keyframes nav-mobile-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 920px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--chrome-offset) + 3rem) 0 4.5rem;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 70% 40%, rgba(0, 163, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 35% at 20% 70%, rgba(0, 80, 140, 0.2), transparent 55%),
    linear-gradient(180deg, transparent 40%, var(--navy-950) 95%);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 12% 8% auto auto;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 163, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    inset 0 0 80px rgba(0, 163, 255, 0.08),
    0 0 120px rgba(0, 163, 255, 0.1);
  animation: orbit-pulse 8s ease-in-out infinite;
}

@keyframes orbit-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; }
}

.hero-copy {
  position: relative;
  width: var(--rail);
  margin-inline: auto;
  max-width: 44rem;
}

.brand-mark {
  display: block;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 0.95;
  color: #fff;
  margin: 0 0 1.25rem;
}

.brand-mark span { color: var(--cyber); }

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyber);
}

html[dir="rtl"] .eyebrow {
  letter-spacing: normal;
  text-transform: none;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 650;
  line-height: 1.25;
  color: var(--heading);
  max-width: 22ch;
}

.hero .lead {
  margin: 0 0 1.75rem;
  color: var(--silver-200);
  font-size: 1.05rem;
  max-width: 38rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-head {
  width: var(--rail);
  margin: 0 auto 2.5rem;
  max-width: 40rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--silver-400);
  font-size: 1.02rem;
}

/* Services spine */
.services-spine {
  width: var(--rail);
  margin-inline: auto;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(0, 163, 255, 0.16);
}

.services-spine.services-spine-live {
  width: 100%;
  margin-inline: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(200, 208, 220, 0.08);
  align-items: start;
  transition: background 0.3s;
}

.service-row:hover {
  background: linear-gradient(90deg, rgba(0, 163, 255, 0.05), transparent 60%);
}

.service-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyber);
  padding-top: 0.2rem;
}

.service-row h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: var(--heading);
}

.service-row p {
  margin: 0;
  color: var(--silver-400);
  max-width: 42rem;
}

.service-for-line {
  margin: 0.55rem 0 0 !important;
  font-size: 0.86rem;
  color: var(--silver-200) !important;
  max-width: 42rem;
}

.services-hub-note {
  width: 100%;
  margin: 0 0 0.85rem;
  color: var(--silver-400);
  font-size: 0.92rem;
}

a.service-row-link {
  color: inherit;
  text-decoration: none;
}

a.service-row-link:hover {
  background: linear-gradient(90deg, rgba(0, 163, 255, 0.08), transparent 70%);
}

html[dir="rtl"] a.service-row-link:hover {
  background: linear-gradient(270deg, rgba(0, 163, 255, 0.08), transparent 70%);
}

a.service-row-link:hover .service-open {
  color: var(--cyber);
}

.service-open {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(200, 208, 220, 0.72);
  transition: color 0.25s;
}

.service-code {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(0, 163, 255, 0.85);
}

.service-detail-inner {
  max-width: 46rem;
}

.service-audience {
  margin-bottom: 1.75rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(0, 163, 255, 0.18);
  background: rgba(0, 163, 255, 0.05);
}

.service-audience p:last-child {
  margin: 0.35rem 0 0;
  color: var(--silver-200);
  font-size: 1.02rem;
  line-height: 1.75;
}

.service-intro {
  margin-bottom: 2.25rem;
}

.service-intro p {
  margin: 0;
  color: var(--silver-200);
  font-size: 1.05rem;
  line-height: 1.85;
}

.service-outcomes {
  margin-bottom: 2.35rem;
}

.service-outcomes h2 {
  margin: 0.55rem 0 1.1rem;
  color: var(--heading);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

.service-outcomes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.service-outcomes-list li {
  position: relative;
  padding-inline-start: 1.35rem;
  color: var(--silver-200);
  font-size: 0.98rem;
  line-height: 1.65;
}

.service-outcomes-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyber);
  box-shadow: 0 0 8px rgba(0, 163, 255, 0.55);
}

.service-work h2 {
  margin: 0.55rem 0 1.35rem;
  color: var(--heading);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

.service-work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(0, 163, 255, 0.16);
}

.service-work-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.9rem 1.1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(200, 208, 220, 0.08);
}

.service-work-idx {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyber);
  padding-top: 0.2rem;
}

.service-work-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--heading);
}

.service-work-item p {
  margin: 0;
  color: var(--silver-400);
  font-size: 0.94rem;
  line-height: 1.7;
}

.service-detail .section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  margin-top: 2rem;
}

.service-siblings {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-siblings-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

@media (min-width: 640px) {
  .service-siblings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .service-siblings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.service-sibling {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 163, 255, 0.14);
  background: rgba(10, 15, 30, 0.45);
  transition: border-color 0.25s, background 0.25s;
}

.service-sibling span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(0, 163, 255, 0.75);
}

.service-sibling strong {
  font-size: 0.92rem;
  color: #fff;
}

.service-sibling:hover {
  border-color: rgba(0, 163, 255, 0.4);
  background: rgba(0, 163, 255, 0.06);
}

@media (max-width: 640px) {
  .service-row {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1.25rem 0;
  }

  .service-work-item {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.65rem 0.85rem;
  }
}

/* Arsenal */
.arsenal-rail {
  width: var(--rail);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .arsenal-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 1rem;
  border: 1px solid rgba(200, 208, 220, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.brand-tile:hover {
  border-color: var(--cyber-line);
  transform: translateY(-2px);
}

.brand-tile img {
  max-height: 2.4rem;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
  filter: grayscale(0.15) brightness(1.05);
  opacity: 0.9;
}

.brand-tile:hover img {
  opacity: 1;
  filter: none;
}

/* Metrics */
.deck-panel {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding-block: calc(var(--chrome-offset) + 1rem) 2.5rem;
}

.deck-panel-inner {
  width: var(--rail);
  margin-inline: auto;
  max-height: calc(100dvh - var(--chrome-offset) - 2rem);
  overflow-x: hidden;
  overflow-y: auto;
}

.section-metrics.deck-panel .section-head,
.deck-panel#faq .section-head {
  width: 100%;
}

/* Metrics — telemetry board */
.metrics-stage {
  width: 100%;
  position: relative;
}

.metrics-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
}

.metrics-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyber);
}

html[dir="rtl"] .metrics-eyebrow {
  font-family: var(--font-fa);
  letter-spacing: 0.04em;
  text-transform: none;
}

.metrics-title {
  margin: 0.55rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--heading);
}

.metrics-lead {
  margin: 0.65rem 0 0;
  max-width: 32rem;
  color: var(--silver-400);
  font-size: 0.92rem;
  line-height: 1.7;
}

.metrics-live {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(0, 163, 255, 0.28);
  background: rgba(0, 163, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(200, 230, 255, 0.85);
}

.metrics-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyber);
  box-shadow: 0 0 10px rgba(0, 163, 255, 0.8);
  animation: metrics-blink 1.4s ease-in-out infinite;
}

@keyframes metrics-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.metrics-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid rgba(0, 163, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(0, 163, 255, 0.05), transparent 40%),
    linear-gradient(90deg, rgba(0, 163, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(0, 163, 255, 0.04) 1px, transparent 1px),
    rgba(8, 14, 28, 0.72);
  background-size: auto, 28px 28px, 28px 28px, auto;
  overflow: hidden;
}

@media (min-width: 700px) {
  .metrics-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .metrics-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.metrics-board::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  top: -30%;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(0, 163, 255, 0.1), transparent);
  animation: metrics-scan 5.5s linear infinite;
  z-index: 0;
}

@keyframes metrics-scan {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(380%); opacity: 0; }
}

.metrics-cell {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 163, 255, 0.12);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    background 0.3s;
  transition-delay: calc(var(--i, 0) * 0.08s);
}

.metrics-stage[data-reveal].is-in .metrics-cell {
  opacity: 1;
  transform: none;
}

@media (min-width: 700px) {
  .metrics-cell:nth-child(odd) {
    border-inline-end: 1px solid rgba(0, 163, 255, 0.12);
  }
  .metrics-cell:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .metrics-cell {
    border-bottom: 0;
    border-inline-end: 1px solid rgba(0, 163, 255, 0.12);
  }
  .metrics-cell:last-child {
    border-inline-end: 0;
  }
}

.metrics-cell:hover {
  background: rgba(0, 163, 255, 0.05);
}

.metrics-code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: rgba(0, 163, 255, 0.75);
}

.metrics-value {
  margin: 0.85rem 0 0;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--heading);
  text-shadow: 0 0 28px rgba(0, 163, 255, 0.28);
}

.metrics-value em {
  font-style: normal;
  color: var(--cyber);
  font-size: 0.62em;
  margin-inline: 0.05em;
  font-weight: 650;
}

.metrics-label {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--silver-100);
}

.metrics-detail {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--silver-600);
  max-width: 16rem;
}

.metrics-wave {
  display: block;
  margin-top: 1.1rem;
  height: 2px;
  width: 100%;
  max-width: 5.5rem;
  background: linear-gradient(90deg, var(--cyber), transparent);
  transform-origin: inline-start;
  animation: metrics-wave 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.25s);
}

html[dir="rtl"] .metrics-wave {
  transform-origin: right;
}

@keyframes metrics-wave {
  0%, 100% { transform: scaleX(0.45); opacity: 0.45; }
  50% { transform: scaleX(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .metrics-board::after,
  .metrics-live i,
  .metrics-wave {
    animation: none;
  }
  .metrics-cell {
    opacity: 1;
    transform: none;
  }
}

.faq-list-deck {
  width: 100%;
  max-height: min(58vh, 28rem);
  overflow-y: auto;
  padding-inline-end: 0.25rem;
}

/* Command center — match Next.js TerminalCTA */
.deck-panel-loose .deck-panel-inner {
  max-height: none;
  overflow: visible;
}

.section-command {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.panel-glass {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 1rem;
}

.command-head {
  margin-bottom: 2rem;
  text-align: start;
}

@media (min-width: 768px) {
  .command-head { margin-bottom: 2.5rem; }
}

.command-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyber);
}

html[dir="rtl"] .command-eyebrow {
  letter-spacing: 0.08em;
  text-transform: none;
  font-family: var(--font-fa);
}

.command-title {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  color: var(--heading);
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 700;
  line-height: 1.4;
}

.command-subtitle {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: var(--silver-400);
  font-size: 0.92rem;
  line-height: 1.7;
}

.command-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .command-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: stretch;
  }
}

.command-form {
  order: 2;
  display: grid;
  gap: 1.25rem;
  padding: 1rem;
}

@media (min-width: 640px) {
  .command-form { padding: 1.5rem; }
}

@media (min-width: 768px) {
  .command-form { padding: 2rem; }
}

@media (min-width: 1024px) {
  .command-form { order: 1; }
}

.command-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--silver-400);
}

.command-field input,
.command-field select {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 8, 18, 0.8);
  color: #fff;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  text-align: start;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.command-field input::placeholder {
  color: var(--silver-600);
}

.command-field select {
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--silver-400) 50%),
    linear-gradient(135deg, var(--silver-400) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) calc(50% - 0.15rem), calc(100% - 0.75rem) calc(50% - 0.15rem);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 2.4rem;
}

html[dir="rtl"] .command-field select {
  background-position: 1.1rem calc(50% - 0.15rem), 0.75rem calc(50% - 0.15rem);
}

.command-field input:focus,
.command-field select:focus {
  border-color: rgba(0, 163, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 163, 255, 0.18);
}

.command-field select option {
  background: #0a0f1e;
  color: #fff;
}

.command-form .field-error {
  margin: 0.35rem 0 0;
  color: #f87171;
  font-size: 0.75rem;
}

.command-form .field-error[hidden] {
  display: none;
}

.command-center-submit {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
  border-radius: 0.65rem;
  box-shadow: 0 0 24px rgba(0, 163, 255, 0.28);
}

.command-center-submit:not(:disabled):hover {
  box-shadow: 0 0 32px rgba(0, 163, 255, 0.45);
}

.command-center-submit.is-done {
  opacity: 0.8;
}

.command-terminal {
  order: 1;
  display: flex;
  flex-direction: column;
  min-height: 16rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(0, 163, 255, 0.2);
  background: var(--navy-950);
  box-shadow:
    0 0 0 1px rgba(0, 163, 255, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.45);
}

@media (min-width: 640px) {
  .command-terminal { min-height: 20rem; }
}

@media (min-width: 768px) {
  .command-terminal { min-height: 28rem; }
}

@media (min-width: 1024px) {
  .command-terminal {
    order: 2;
    min-height: 100%;
  }
}

.command-terminal-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.command-terminal-chrome .dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.command-terminal-chrome .dot.red { background: rgba(239, 68, 68, 0.8); }
.command-terminal-chrome .dot.amber { background: rgba(251, 191, 36, 0.8); }
.command-terminal-chrome .dot.green { background: rgba(52, 211, 153, 0.8); }

.command-terminal-chrome span {
  margin-inline-start: 0.5rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-600);
}

.command-terminal-log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  font-size: 0.75rem;
  line-height: 1.65;
  text-align: start;
  unicode-bidi: plaintext;
}

@media (min-width: 768px) {
  .command-terminal-log { font-size: 0.875rem; }
}

html[dir="ltr"] .command-terminal-log {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
}

html[dir="rtl"] .command-terminal-log {
  font-family: var(--font-fa);
}

.command-log-line {
  margin: 0 0 0.4rem;
  color: rgba(52, 211, 153, 0.9);
  word-break: break-word;
}

.command-log-line.is-pulse {
  animation: command-terminal-pulse 1s ease-in-out infinite;
}

.command-log-line.is-success {
  color: var(--cyber);
}

.command-log-cursor {
  display: inline-block;
  width: 0.5rem;
  height: 1rem;
  margin-inline-start: 0.15rem;
  background: rgba(52, 211, 153, 0.8);
  vertical-align: text-bottom;
  animation: command-terminal-pulse 0.8s ease-in-out infinite;
}

@keyframes command-terminal-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.metric {
  text-align: start;
}

.metric strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 750;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.metric strong em {
  font-style: normal;
  color: var(--cyber);
  font-size: 0.7em;
  margin-inline-start: 0.1em;
}

.metric span {
  display: block;
  margin-top: 0.4rem;
  color: var(--silver-400);
  font-size: 0.88rem;
}

/* FAQ */
.faq-list {
  width: var(--rail);
  margin-inline: auto;
  display: grid;
  gap: 0.55rem;
}

.faq-item {
  border: 1px solid rgba(200, 208, 220, 0.1);
  background: rgba(10, 15, 30, 0.45);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.15rem;
  font-weight: 600;
  color: var(--heading);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--cyber);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item .answer {
  padding: 0 1.15rem 1.15rem;
  color: var(--silver-400);
  max-width: 52rem;
}

/* Licenses / blog teasers */
.card-grid {
  width: var(--rail);
  margin-inline: auto;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.teaser {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.2rem;
  border: 1px solid rgba(200, 208, 220, 0.1);
  background: linear-gradient(165deg, rgba(0, 163, 255, 0.05), transparent 55%);
  transition: border-color 0.3s, transform 0.3s var(--ease);
  min-height: 100%;
  border-radius: 0;
}

.teaser:hover {
  border-color: var(--cyber-line);
  transform: translateY(-2px);
}

.teaser h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--heading);
  line-height: 1.35;
}

.teaser p {
  margin: 0;
  color: var(--silver-400);
  flex: 1;
  font-size: 0.94rem;
}

/* —— Topology systems map —— */
.topo-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: calc(var(--chrome-offset) + 1.5rem) 2.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.topo-section::before {
  content: "";
  position: absolute;
  inset: 10% -10% auto;
  height: 55%;
  background: radial-gradient(ellipse at 70% 40%, rgba(0, 163, 255, 0.14), transparent 60%);
  pointer-events: none;
}

.topo-shell {
  width: var(--rail);
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 980px) {
  .topo-shell {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 2.5rem;
  }
}

.topo-copy h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  color: var(--heading);
  line-height: 1.35;
}

.topo-copy > p {
  margin: 0;
  color: var(--silver-400);
  max-width: 28rem;
  line-height: 1.7;
}

.topo-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(0, 163, 255, 0.28);
  background: rgba(0, 163, 255, 0.06);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--cyber);
}

.topo-status i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyber);
  box-shadow: 0 0 10px rgba(0, 163, 255, 0.9);
  animation: topo-blink 1.4s ease-in-out infinite;
}

.topo-status em {
  font-style: normal;
  color: var(--silver-600);
  margin-inline-start: 0.35rem;
}

@keyframes topo-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.topo-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 34rem;
  margin-inline: auto;
  border: 1px solid rgba(0, 163, 255, 0.18);
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 163, 255, 0.08), transparent 42%),
    rgba(4, 10, 22, 0.72);
  overflow: hidden;
  isolation: isolate;
}

.topo-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 163, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 163, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, #000 35%, transparent 78%);
  opacity: 0.7;
  animation: topo-grid-drift 18s linear infinite;
}

@keyframes topo-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 28px 28px, 28px 28px; }
}

.topo-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 163, 255, 0.45);
  background:
    radial-gradient(circle at 40% 35%, rgba(0, 163, 255, 0.35), transparent 55%),
    rgba(4, 8, 18, 0.95);
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow:
    0 0 0 10px rgba(0, 163, 255, 0.04),
    0 0 36px rgba(0, 163, 255, 0.28);
  animation: topo-core-pulse 3.2s ease-in-out infinite;
}

.topo-core strong {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: #fff;
}

.topo-core span {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.58rem;
  color: var(--cyber);
  letter-spacing: 0.2em;
}

@keyframes topo-core-pulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(0, 163, 255, 0.04), 0 0 36px rgba(0, 163, 255, 0.28); }
  50% { box-shadow: 0 0 0 16px rgba(0, 163, 255, 0.07), 0 0 52px rgba(0, 163, 255, 0.4); }
}

.topo-fibers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.topo-fiber {
  fill: none;
  stroke: rgba(0, 163, 255, 0.28);
  stroke-width: 0.45;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: topo-draw 1.4s ease forwards;
  transition: stroke 0.3s, filter 0.3s;
}

.topo-fiber.is-hot {
  stroke: rgba(0, 163, 255, 0.95);
  filter: drop-shadow(0 0 4px rgba(0, 163, 255, 0.8));
}

@keyframes topo-draw {
  to { stroke-dashoffset: 0; }
}

.topo-packet {
  fill: #7dd3ff;
  filter: drop-shadow(0 0 3px rgba(0, 163, 255, 0.95));
}

.topo-node {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: min(42%, 8.2rem);
  padding: 0.7rem 0.65rem 0.75rem;
  border: 1px solid rgba(0, 163, 255, 0.22);
  background: rgba(6, 12, 26, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.topo-node:hover,
.topo-node.is-hot {
  transform: translate(-50%, -50%) scale(1.05);
  border-color: rgba(0, 163, 255, 0.75);
  background: rgba(8, 18, 36, 0.96);
  box-shadow: 0 0 28px rgba(0, 163, 255, 0.28);
  z-index: 5;
}

.topo-node-code {
  display: block;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--cyber);
  margin-bottom: 0.25rem;
}

.topo-node strong {
  display: block;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.topo-node em {
  display: none;
  margin-top: 0.35rem;
  font-style: normal;
  color: var(--silver-400);
  font-size: 0.68rem;
  line-height: 1.45;
}

.topo-node-cta {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.68rem;
  color: rgba(200, 208, 220, 0.55);
  transition: color 0.25s;
}

.topo-node:hover .topo-node-cta,
.topo-node.is-hot .topo-node-cta {
  color: var(--cyber);
}

.topo-list {
  display: grid;
  gap: 0.45rem;
}

@media (max-width: 719px) {
  .topo-stage { display: none; }
}

@media (min-width: 720px) {
  .topo-list { display: none; }
  .topo-node em {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.topo-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(0, 163, 255, 0.14);
  background: linear-gradient(90deg, rgba(0, 163, 255, 0.06), transparent 55%);
  transition: border-color 0.25s, transform 0.25s;
}

.topo-list-item span {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.68rem;
  color: var(--cyber);
  letter-spacing: 0.08em;
}

.topo-list-item strong {
  color: #fff;
  font-size: 0.92rem;
}

.topo-list-item:hover {
  border-color: rgba(0, 163, 255, 0.45);
  transform: translateX(-3px);
}

html[dir="ltr"] .topo-list-item:hover {
  transform: translateX(3px);
}

/* —— Signal blog deck —— */
.signal-section.deck-panel .signal-head,
.signal-section.deck-panel .signal-deck {
  width: 100%;
  margin-inline: 0;
}

.signal-section::before {
  content: "";
  position: absolute;
  inset: auto 0 -20% ;
  height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 163, 255, 0.12), transparent 65%);
  pointer-events: none;
}

.signal-head {
  width: var(--rail);
  margin: 0 auto 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
}

.signal-head h2 {
  margin: 0.3rem 0 0.55rem;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.signal-head p:last-child {
  margin: 0;
  color: var(--silver-400);
  max-width: 34rem;
}

.signal-wave {
  display: flex;
  align-items: end;
  gap: 0.28rem;
  height: 2.4rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(0, 163, 255, 0.2);
  background: rgba(0, 163, 255, 0.04);
}

.signal-wave span {
  width: 0.22rem;
  background: linear-gradient(180deg, #7dd3ff, var(--cyber));
  border-radius: 1px;
  transform-origin: bottom;
  animation: signal-bar 1.1s ease-in-out infinite;
}

.signal-wave span:nth-child(1) { height: 35%; animation-delay: 0s; }
.signal-wave span:nth-child(2) { height: 65%; animation-delay: 0.08s; }
.signal-wave span:nth-child(3) { height: 45%; animation-delay: 0.16s; }
.signal-wave span:nth-child(4) { height: 90%; animation-delay: 0.24s; }
.signal-wave span:nth-child(5) { height: 55%; animation-delay: 0.32s; }
.signal-wave span:nth-child(6) { height: 75%; animation-delay: 0.4s; }
.signal-wave span:nth-child(7) { height: 40%; animation-delay: 0.48s; }
.signal-wave span:nth-child(8) { height: 60%; animation-delay: 0.56s; }

@keyframes signal-bar {
  0%, 100% { transform: scaleY(0.55); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

.signal-deck {
  width: var(--rail);
  margin-inline: auto;
  display: grid;
  gap: 1rem;
}

@media (min-width: 920px) {
  .signal-deck {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.15rem;
    align-items: stretch;
  }
}

.signal-featured {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 18rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(0, 163, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(0, 163, 255, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(8, 14, 28, 0.95), rgba(4, 8, 18, 0.9));
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}

.signal-featured:hover {
  border-color: rgba(0, 163, 255, 0.65);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0, 30, 60, 0.35), 0 0 40px rgba(0, 163, 255, 0.12);
}

.signal-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 163, 255, 0.08) 48%,
    transparent 52%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: signal-scan 4.5s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

@keyframes signal-scan {
  from { background-position: 0 -40%; }
  to { background-position: 0 140%; }
}

.signal-featured > *:not(.signal-scan) {
  position: relative;
  z-index: 1;
}

.signal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--cyber);
  text-transform: uppercase;
}

.signal-meta time { color: var(--silver-600); letter-spacing: 0.06em; }

.signal-featured h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  max-width: 22ch;
}

.signal-featured p {
  margin: 0;
  color: var(--silver-400);
  line-height: 1.7;
  max-width: 42rem;
  flex: 1;
}

.signal-cta {
  margin-top: auto;
  color: var(--cyber);
  font-weight: 600;
  font-size: 0.9rem;
}

.signal-channels {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
}

.signal-channels-label {
  margin: 0 0 0.15rem;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--silver-600);
  text-transform: uppercase;
}

.signal-channel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(200, 208, 220, 0.1);
  background: rgba(6, 12, 24, 0.65);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
  animation: signal-channel-in 0.6s ease both;
  animation-delay: calc(var(--i, 0) * 0.08s);
}

@keyframes signal-channel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.signal-channel:hover {
  border-color: rgba(0, 163, 255, 0.45);
  background: rgba(0, 163, 255, 0.06);
  transform: translateX(-4px);
}

html[dir="ltr"] .signal-channel:hover {
  transform: translateX(4px);
}

.signal-idx {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--cyber);
  padding-top: 0.15rem;
}

.signal-channel time {
  display: block;
  font-size: 0.72rem;
  color: var(--silver-600);
  margin-bottom: 0.25rem;
}

.signal-channel strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.signal-channel span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--silver-400);
  font-size: 0.86rem;
  line-height: 1.5;
}

.signal-all {
  margin-top: auto;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(0, 163, 255, 0.35);
  color: var(--cyber);
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  transition: background 0.25s, border-color 0.25s;
}

.signal-all:hover {
  background: rgba(0, 163, 255, 0.08);
  border-style: solid;
}

.meta-line {
  font-size: 0.78rem;
  color: var(--silver-600);
}

.link-arrow {
  color: var(--cyber);
  font-weight: 600;
  font-size: 0.88rem;
}

.section-cta {
  width: var(--rail);
  margin: 1.75rem auto 0;
}

.services-hub + .section-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* Contact */
.contact-shell {
  width: var(--rail);
  margin-inline: auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .contact-shell {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
  border: 1px solid rgba(0, 163, 255, 0.18);
  background: rgba(10, 15, 30, 0.55);
}

.contact-aside-brand {
  font-size: 2rem;
  margin: 0 0 1rem;
}

.contact-aside-tag {
  margin: 0;
  max-width: 28rem;
  color: var(--silver-400);
  line-height: 1.7;
}

.contact-channels {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(0, 163, 255, 0.14);
}

.contact-channels-title {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyber);
}

html[dir="rtl"] .contact-channels-title {
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--font-fa);
}

.contact-channels-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-channels-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-channels-label {
  font-size: 0.75rem;
  color: var(--silver-600);
}

.contact-channels-value {
  color: var(--heading);
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-channels-value:hover {
  color: var(--cyber);
}

html[data-theme="light"] .contact-form {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 40, 70, 0.12);
  box-shadow: 0 10px 28px rgba(20, 45, 80, 0.06);
}

html[data-theme="light"] .contact-channels {
  border-top-color: rgba(15, 40, 70, 0.1);
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  color: var(--silver-400);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(200, 208, 220, 0.14);
  background: rgba(2, 5, 12, 0.55);
  color: var(--silver-100);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cyber-line);
  outline: none;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 0.4rem;
  font-size: 0.92rem;
}

.alert-ok {
  background: rgba(61, 214, 140, 0.12);
  border: 1px solid rgba(61, 214, 140, 0.35);
  color: var(--ok);
}

.alert-err {
  background: rgba(255, 92, 122, 0.1);
  border: 1px solid rgba(255, 92, 122, 0.35);
  color: var(--danger);
}

/* Page hero (inner) */
.page-hero {
  padding: calc(var(--chrome-offset) + 3.5rem) 0 2.5rem;
}

.page-hero .rail h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--heading);
}

.page-hero .rail p {
  margin: 0;
  color: var(--silver-400);
  max-width: 38rem;
}

.article {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto 4rem;
}

.article .meta-line { margin-bottom: 1.5rem; }

.article .body {
  color: var(--silver-200);
  font-size: 1.05rem;
  line-height: 1.85;
  white-space: pre-wrap;
}

/* —— Blog hub —— */
.blog-hub {
  position: relative;
  overflow: hidden;
  padding: calc(var(--chrome-offset) + 3rem) 0 4.5rem;
  min-height: 100vh;
}

.blog-hub-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 45% at 50% -5%, rgba(0, 163, 255, 0.16), transparent 60%);
}

.blog-hub-grid-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 163, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 163, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  opacity: 0.55;
}

.blog-hub-inner {
  position: relative;
  z-index: 1;
}

.blog-hub-head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.blog-hub-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyber);
}

html[dir="rtl"] .blog-hub-eyebrow {
  letter-spacing: 0.06em;
  text-transform: none;
  font-family: var(--font-fa);
}

.blog-hub-head h1 {
  margin: 1rem 0 0;
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
}

.blog-hub-head p {
  margin: 1rem 0 0;
  color: var(--silver-400);
  font-size: 1.05rem;
  line-height: 1.7;
}

.blog-hub-empty {
  color: var(--silver-600);
}

.blog-featured {
  display: grid;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 163, 255, 0.2);
  background: rgba(10, 15, 30, 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transition: border-color 0.35s, transform 0.35s var(--ease);
}

.blog-featured:hover {
  border-color: rgba(0, 163, 255, 0.45);
  transform: translateY(-2px);
}

@media (min-width: 860px) {
  .blog-featured {
    grid-template-columns: 1.05fr 1fr;
    min-height: 20rem;
  }
}

.blog-featured-visual,
.blog-post-card-visual {
  position: relative;
  min-height: 13.5rem;
  overflow: hidden;
  background: #02050c;
}

@media (min-width: 860px) {
  .blog-featured-visual { min-height: 100%; }
}

.blog-cover-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 163, 255, 0.28), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(0, 100, 180, 0.18), transparent 50%),
    linear-gradient(145deg, rgba(0, 163, 255, 0.12), transparent 55%);
  opacity: 0.95;
}

.blog-cover-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 163, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 163, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.55;
}

.blog-cover-pattern.dense::before {
  background-size: 18px 18px;
}

[data-cat="security"] .blog-cover-pattern {
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 92, 122, 0.22), transparent 48%),
    radial-gradient(circle at 75% 60%, rgba(0, 163, 255, 0.2), transparent 50%),
    linear-gradient(145deg, rgba(0, 163, 255, 0.1), transparent 55%);
}

[data-cat="software"] .blog-cover-pattern {
  background:
    radial-gradient(circle at 70% 25%, rgba(61, 214, 140, 0.18), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(0, 163, 255, 0.22), transparent 50%),
    linear-gradient(145deg, rgba(0, 163, 255, 0.1), transparent 55%);
}

[data-cat="network"] .blog-cover-pattern,
[data-cat="voip"] .blog-cover-pattern {
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 163, 255, 0.3), transparent 50%),
    linear-gradient(160deg, rgba(0, 120, 200, 0.16), transparent 60%);
}

.blog-cover-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(4, 8, 18, 0.85));
}

@media (min-width: 860px) {
  .blog-featured .blog-cover-fade {
    background: linear-gradient(90deg, transparent 20%, rgba(4, 8, 18, 0.55) 70%, rgba(4, 8, 18, 0.92));
  }
  html[dir="rtl"] .blog-featured .blog-cover-fade {
    background: linear-gradient(270deg, transparent 20%, rgba(4, 8, 18, 0.55) 70%, rgba(4, 8, 18, 0.92));
  }
}

.blog-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.35rem 1.75rem;
  gap: 0.85rem;
}

@media (min-width: 860px) {
  .blog-featured-copy { padding: 2.25rem; }
}

.blog-featured-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.4;
}

.blog-featured-copy > p {
  margin: 0;
  color: var(--silver-400);
  line-height: 1.7;
}

.blog-pill {
  display: inline-flex;
  width: fit-content;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 163, 255, 0.3);
  background: rgba(0, 163, 255, 0.1);
  color: var(--cyber);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-pill.soft {
  background: transparent;
  border-color: transparent;
  padding: 0;
  letter-spacing: 0.12em;
  color: rgba(0, 163, 255, 0.8);
}

html[dir="rtl"] .blog-pill {
  letter-spacing: 0.04em;
  text-transform: none;
}

.blog-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-size: 0.78rem;
  color: var(--silver-600);
}

.blog-read-link {
  margin-top: 0.35rem;
  color: var(--cyber);
  font-weight: 700;
  font-size: 0.92rem;
  transition: letter-spacing 0.25s;
}

.blog-featured:hover .blog-read-link {
  letter-spacing: 0.02em;
}

.blog-card-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .blog-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1020px) {
  .blog-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.blog-post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 15, 30, 0.45);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
  animation: blog-card-in 0.55s ease both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

@keyframes blog-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.blog-post-card:hover {
  border-color: rgba(0, 163, 255, 0.3);
  box-shadow: 0 0 28px rgba(0, 163, 255, 0.12);
  transform: translateY(-3px);
}

.blog-post-card-visual {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.blog-post-card:hover .blog-cover-pattern {
  transform: scale(1.04);
  transition: transform 0.5s var(--ease);
}

.blog-cover-pattern {
  transition: transform 0.5s var(--ease);
}

.blog-post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
  padding: 1.15rem 1.15rem 1.25rem;
}

.blog-post-card-body h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-card-body > p {
  margin: 0;
  color: var(--silver-600);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— Blog article —— */
.blog-article {
  position: relative;
  overflow: visible;
  padding-bottom: 4rem;
}

.blog-article-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 163, 255, 0.14), transparent 65%);
}

.blog-article-banner {
  position: relative;
  height: min(42vh, 22rem);
  overflow: hidden;
  background: #02050c;
}

.blog-article-banner-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 18, 0.2), rgba(4, 8, 18, 0.55) 45%, var(--navy-950));
}

.blog-article-inner {
  position: relative;
  z-index: 1;
  margin-top: -5.5rem;
}

@media (min-width: 768px) {
  .blog-article-inner { margin-top: -7rem; }
}

.blog-back {
  display: inline-flex;
  color: var(--cyber);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.blog-back:hover { color: #7dd3ff; }

.blog-article-head {
  width: 100%;
  margin-bottom: 1.75rem;
}

.blog-article-head h1 {
  margin: 1rem 0 0;
  color: #fff;
  font-size: clamp(1.7rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.45;
}

.blog-article-excerpt {
  margin: 1rem 0 0;
  color: var(--silver-400);
  font-size: 1.08rem;
  line-height: 1.85;
}

.blog-article-head .blog-meta-row {
  margin-top: 1.1rem;
}

.blog-article-panel {
  width: 100%;
  padding: 1.5rem 1.2rem 1.75rem;
  margin-bottom: 1.75rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .blog-article-panel { padding: 2.35rem 2.5rem 2.5rem; }
}

.blog-article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-tags span {
  font-size: 0.75rem;
  color: var(--silver-600);
  border: 1px solid rgba(200, 208, 220, 0.12);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.md-body,
.news-prose {
  color: var(--silver-200);
  font-size: 1.06rem;
  line-height: 2;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.md-body h2 {
  margin: 2.15rem 0 0.85rem;
  color: #fff;
  font-size: 1.32rem;
  line-height: 1.55;
}

.md-body h2:first-child,
.md-body h3:first-child {
  margin-top: 0;
}

.md-body h3 {
  margin: 1.7rem 0 0.65rem;
  color: #fff;
  font-size: 1.12rem;
  line-height: 1.55;
}

.md-body p { margin: 0 0 1.15rem; }

.md-body ul,
.md-body ol {
  margin: 0 0 1.25rem;
  padding-inline-start: 1.4rem;
}

.md-body li { margin: 0.45rem 0; }

.md-body blockquote {
  margin: 1.35rem 0;
  padding: 0.95rem 1.1rem;
  border-inline-start: 3px solid var(--cyber);
  background: rgba(0, 163, 255, 0.06);
  color: var(--silver-100);
  border-radius: 0 0.65rem 0.65rem 0;
}

html[dir="rtl"] .md-body blockquote {
  border-radius: 0.65rem 0 0 0.65rem;
}

.md-body code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.88em;
  color: var(--cyber);
  background: rgba(4, 8, 18, 0.85);
  padding: 0.12rem 0.4rem;
  border-radius: 0.3rem;
}

.md-body strong { color: var(--heading); }

.md-table-wrap {
  overflow-x: auto;
  margin: 1.35rem 0 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.md-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.65;
}

.md-table th,
.md-table td {
  padding: 0.75rem 0.9rem;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.md-table th {
  color: var(--heading);
  font-weight: 700;
  background: rgba(0, 163, 255, 0.08);
}

.md-table tr:last-child td { border-bottom: 0; }

html[data-theme="light"] .md-table-wrap {
  border-color: rgba(15, 40, 70, 0.12);
}

html[data-theme="light"] .md-table th,
html[data-theme="light"] .md-table td {
  border-bottom-color: rgba(15, 40, 70, 0.1);
}

html[data-theme="light"] .md-table th {
  background: rgba(0, 119, 200, 0.08);
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: 2.5rem;
  padding: 2.75rem 0 1.75rem;
  border-top: 1px solid rgba(0, 163, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(0, 163, 255, 0.05), transparent 42%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 163, 255, 0.55), transparent);
  pointer-events: none;
}

.footer-rich {
  display: grid;
  gap: 1.6rem;
  align-items: start;
}

.footer-inner {
  width: var(--rail);
  margin-inline: auto;
}

.footer-main {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 860px) {
  .footer-main {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 2rem 2.5rem;
  }
}

.footer-brand-block {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-tag {
  margin: 0;
  color: var(--silver-600);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 26rem;
}

.footer-cta {
  margin-top: 0.15rem;
}

.footer-col-label {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyber);
}

.footer-nav {
  display: grid;
  gap: 0;
}

.footer-nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
}

.footer-nav-links a {
  color: var(--silver-400);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-links a:hover {
  color: var(--cyber);
}

.footer-contact {
  display: grid;
  gap: 0.45rem;
  justify-items: start;
}

.footer-contact-link {
  color: var(--silver-200);
  font-size: 0.9rem;
  text-decoration: none;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: var(--cyber);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(0, 163, 255, 0.1);
}

.footer-copy {
  margin: 0;
  color: var(--silver-600);
  font-size: 0.82rem;
}

.custom-dev-line {
  margin: 0.9rem 0 0;
  max-width: 40rem;
  color: var(--cyber);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.55;
}

.custom-dev-banner {
  padding: 1.5rem 1.35rem;
  border: 1px solid rgba(0, 163, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 163, 255, 0.1), transparent 55%),
    rgba(10, 15, 30, 0.55);
}

.custom-dev-banner h2 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.35;
}

.custom-dev-banner p {
  margin: 0 0 1.15rem;
  color: var(--silver-400);
  max-width: 42rem;
  line-height: 1.7;
}

.journey-rail-dots a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
}

.journey-rail-dots a::before {
  content: "";
  position: absolute;
  inset: -8px;
}

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal].is-in.fx-shimmer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 30%, rgba(0, 180, 255, 0.12) 50%, transparent 70%);
  animation: reveal-shimmer 1.1s ease both;
  pointer-events: none;
}

@keyframes reveal-shimmer {
  from { opacity: 0; transform: translateX(-30%); }
  40% { opacity: 1; }
  to { opacity: 0; transform: translateX(30%); }
}

.brand-tile,
.clients-mobile-chip,
.topo-node,
.metrics-cell,
.signal-channel,
.teaser {
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s, opacity 0.25s;
}

.brand-tile:active,
.clients-mobile-chip:active,
.topo-node:active,
.metrics-cell:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .hero-visual::after,
  .topo-grid,
  .topo-core,
  .topo-status i,
  .topo-packet,
  .signal-wave span,
  .signal-scan,
  .metrics-board::after,
  .metrics-live i,
  .metrics-wave,
  .btn-primary::after,
  .live-pulse { animation: none !important; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav-mobile.is-open { animation: none; }
}

/* —— Mobile / phone layout —— */
@media (max-width: 859px) {
  :root {
    --rail: calc(100% - 1.5rem);
    --header-h: 4rem;
  }

  .header-inner {
    gap: 0.55rem;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-logo {
    height: 2.95rem;
  }

  .header-actions .btn-sm {
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
  }

  .nav-mobile {
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    padding: 0.75rem 0.85rem 1rem;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 163, 255, 0.14);
  }

  .nav-mobile a {
    padding: 0.8rem 0.85rem;
    font-size: 0.95rem;
    min-height: 2.75rem;
  }

  .topo-section {
    min-height: 0;
    padding-block: calc(var(--chrome-offset) + 1.25rem) 2.25rem;
  }

  .topo-shell {
    gap: 1.1rem;
  }

  .topo-copy h2 {
    font-size: clamp(1.25rem, 6vw, 1.6rem);
  }

  .topo-list {
    display: grid;
    gap: 0.55rem;
  }

  .topo-list-item {
    padding: 0.85rem 0.9rem;
  }

  .deck-panel {
    min-height: 0;
    align-items: stretch;
    padding-block: calc(var(--chrome-offset) + 1.15rem) 2.35rem;
  }

  .deck-panel-inner {
    max-height: none;
    overflow: visible;
  }

  .metrics-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.15rem;
    gap: 0.85rem;
  }

  .metrics-title {
    font-size: clamp(1.2rem, 5.5vw, 1.5rem);
  }

  .metrics-lead {
    font-size: 0.88rem;
  }

  .metrics-live {
    align-self: flex-start;
  }

  .metrics-board {
    background-size: auto, 22px 22px, 22px 22px, auto;
  }

  .metrics-cell {
    padding: 1.05rem 0.95rem 1.15rem;
  }

  .metrics-value {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
    margin-top: 0.65rem;
  }

  .metrics-label {
    font-size: 0.86rem;
  }

  .metrics-detail {
    font-size: 0.74rem;
    max-width: none;
  }

  .faq-list,
  .faq-list-deck {
    width: 100%;
    max-height: none;
    overflow: visible;
  }

  .faq-item summary {
    padding: 0.95rem 0;
    font-size: 0.95rem;
    min-height: 2.75rem;
  }

  .signal-head {
    margin-bottom: 1.15rem;
  }

  .signal-head h2 {
    font-size: clamp(1.25rem, 5.5vw, 1.65rem);
  }

  .signal-wave {
    display: none;
  }

  .signal-deck {
    gap: 0.85rem;
  }

  .signal-featured {
    padding: 1.1rem 1rem 1.2rem;
  }

  .signal-featured h3 {
    font-size: 1.05rem;
  }

  .signal-channel {
    padding: 0.85rem 0.8rem;
    gap: 0.75rem;
  }

  .command-head {
    margin-bottom: 1.25rem;
  }

  .command-title {
    font-size: clamp(1.2rem, 5.5vw, 1.55rem);
  }

  .command-subtitle {
    font-size: 0.88rem;
  }

  .command-grid {
    gap: 1rem;
  }

  .command-form {
    padding: 1rem;
    gap: 1rem;
  }

  .command-field input,
  .command-field select {
    min-height: 2.85rem;
    font-size: 1rem; /* iOS zoom prevention */
  }

  .command-terminal {
    min-height: 14rem;
    order: 0;
  }

  .command-terminal-log {
    font-size: 0.78rem;
    max-height: 11rem;
  }

  .site-footer {
    padding: 2.1rem 0 1.5rem;
  }

  .footer-rich {
    gap: 1.25rem;
  }

  .footer-main {
    gap: 1.35rem;
  }

  .footer-nav-links {
    gap: 0.5rem 0.85rem;
  }
}

@media (max-width: 480px) {
  :root {
    --rail: calc(100% - 1.15rem);
  }

  .header-actions .btn-sm {
    display: none;
  }

  .metrics-cell:not(:last-child) {
    border-bottom: 1px solid rgba(0, 163, 255, 0.12);
  }

  .command-terminal-chrome span {
    font-size: 0.65rem;
  }
}

@media (max-width: 359px) {
  .lang-switch a {
    padding: 0.3rem 0.4rem;
  }
}

/* Admin */
.admin-body {
  background: var(--navy-950);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.admin-card {
  width: min(420px, 100%);
  padding: 1.75rem;
  border: 1px solid rgba(0, 163, 255, 0.2);
  background: var(--navy-900);
}

.admin-card h1 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: #fff;
}

.admin-wrap {
  width: min(960px, calc(100% - 2rem));
  margin: 2rem auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  text-align: start;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table th { color: var(--silver-400); font-weight: 600; }

/* Announcement banner (Modal mode) */
.site-announcement {
  position: fixed;
  inset: 0;
  z-index: 80;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 1.25rem;
  border-bottom: 0;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--cyber);
}

html[data-announcement-dismissed="1"] .site-announcement {
  display: none !important;
}

.site-announcement-inner {
  position: relative;
  width: min(var(--rail), 52rem);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: auto;
  padding: 1.25rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 163, 255, 0.22);
  background: rgba(10, 15, 30, 0.78);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

.site-announcement-thumb {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  border-radius: 0.7rem;
  flex: none;
}

.site-announcement-text {
  margin: 0;
  flex: none;
  min-width: 0;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: normal;
  overflow: visible;
  color: inherit;
}

@media (max-width: 720px) {
  .site-announcement-text {
    font-size: 0.88rem;
  }
}

.site-announcement-close {
  position: absolute;
  inset-inline-end: 0.75rem;
  inset-block-start: 0.75rem;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(200, 208, 220, 0.16);
  border-radius: 0.45rem;
  background: rgba(0, 163, 255, 0.08);
  color: inherit;
  cursor: pointer;
  opacity: 0.95;
}

.site-announcement-close:hover {
  opacity: 1;
  background: rgba(0, 163, 255, 0.18);
}

/* Light theme surface overrides */
html[data-theme="light"] body {
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(0, 119, 200, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(0, 100, 180, 0.05), transparent 50%),
    var(--navy-950);
}

html[data-theme="light"] .atmosphere {
  opacity: 0.22;
}

html[data-theme="light"] .site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(15, 40, 70, 0.08);
  border-bottom-color: rgba(0, 119, 200, 0.14);
}

html[data-theme="light"] .site-announcement {
  background: rgba(244, 247, 251, 0.58);
  color: #0066ad;
}

html[data-theme="light"] .nav-desktop a.is-active,
html[data-theme="light"] .nav-mobile a:active {
  color: var(--heading);
}

html[data-theme="light"] .panel-glass,
html[data-theme="light"] .brand-tile,
html[data-theme="light"] .signal-featured,
html[data-theme="light"] .signal-channel,
html[data-theme="light"] .client-panel,
html[data-theme="light"] .topo-card,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .blog-article-panel,
html[data-theme="light"] .license-card,
html[data-theme="light"] .program-card,
html[data-theme="light"] .teaser,
html[data-theme="light"] .deck-panel-inner {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 40, 70, 0.12);
  box-shadow: 0 10px 28px rgba(20, 45, 80, 0.06);
}

html[data-theme="light"] .faq-item summary,
html[data-theme="light"] .faq-item .answer,
html[data-theme="light"] .teaser p,
html[data-theme="light"] .signal-meta,
html[data-theme="light"] .command-subtitle,
html[data-theme="light"] .metrics-lead,
html[data-theme="light"] .topo-copy > p,
html[data-theme="light"] .section-lead,
html[data-theme="light"] .hero-lead,
html[data-theme="light"] .footer-tag {
  color: var(--silver-400);
}

html[data-theme="light"] .faq-item summary,
html[data-theme="light"] .command-title,
html[data-theme="light"] .section-title,
html[data-theme="light"] .hero-title,
html[data-theme="light"] .page-title,
html[data-theme="light"] .signal-title,
html[data-theme="light"] .metrics-title,
html[data-theme="light"] .teaser h3,
html[data-theme="light"] .footer-copy,
html[data-theme="light"] .md-body strong,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3 {
  color: var(--heading);
}

/* Metrics board → light surface (was dark-on-dark) */
html[data-theme="light"] .metrics-board {
  background:
    linear-gradient(180deg, rgba(0, 119, 200, 0.06), transparent 40%),
    linear-gradient(90deg, rgba(0, 119, 200, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(0, 119, 200, 0.05) 1px, transparent 1px),
    #ffffff;
  background-size: auto, 28px 28px, 28px 28px, auto;
  border-color: rgba(0, 119, 200, 0.18);
}

html[data-theme="light"] .metrics-value {
  color: var(--heading);
  text-shadow: none;
}

html[data-theme="light"] .metrics-label {
  color: var(--silver-100);
}

html[data-theme="light"] .metrics-detail {
  color: var(--silver-400);
}

html[data-theme="light"] .metrics-live {
  color: var(--cyber);
  background: rgba(0, 119, 200, 0.08);
  border-color: rgba(0, 119, 200, 0.28);
}

html[data-theme="light"] .metrics-code {
  color: rgba(0, 119, 200, 0.85);
}

html[data-theme="light"] .metrics-cell:hover {
  background: rgba(0, 119, 200, 0.05);
}

/* Topo stage stays dark HUD — keep light glyphs */
html[data-theme="light"] .topo-stage {
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 119, 200, 0.1), transparent 42%),
    #0a1222;
  border-color: rgba(0, 119, 200, 0.28);
}

html[data-theme="light"] .topo-core strong,
html[data-theme="light"] .topo-node strong,
html[data-theme="light"] .topo-node-cta {
  color: #eef2f7;
}

html[data-theme="light"] .topo-status {
  color: var(--cyber);
  border-color: rgba(0, 119, 200, 0.3);
  background: rgba(0, 119, 200, 0.08);
}

html[data-theme="light"] .topo-status em {
  color: var(--silver-600);
}

html[data-theme="light"] .site-footer {
  border-top-color: rgba(15, 40, 70, 0.08);
  background:
    linear-gradient(180deg, rgba(0, 119, 200, 0.04), transparent 42%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.72));
}

html[data-theme="light"] .site-footer::before {
  background: linear-gradient(90deg, transparent, rgba(0, 119, 200, 0.35), transparent);
}

html[data-theme="light"] .footer-bar {
  border-top-color: rgba(15, 40, 70, 0.08);
}

html[data-theme="light"] .footer-contact-link {
  color: var(--heading);
}

html[data-theme="light"] .menu-toggle,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .lang-switch {
  border-color: rgba(15, 40, 70, 0.12);
}

html[data-theme="light"] .command-field input,
html[data-theme="light"] .command-field select,
html[data-theme="light"] .command-field textarea,
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: #fff;
  border-color: rgba(15, 40, 70, 0.16);
  color: var(--silver-100);
}

html[data-theme="light"] .service-audience {
  background: rgba(0, 119, 200, 0.06);
  border-color: rgba(0, 119, 200, 0.2);
}

html[data-theme="light"] :focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0, 119, 200, 0.45);
}

html[data-theme="light"] .text-gradient {
  background: linear-gradient(120deg, #0b1220 10%, #3a4a60 45%, #0077c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

