:root {
  --apx-midnight: #071725;
  --apx-panel: #0c1e2d;
  --apx-panel-line: #1c3b50;
  --apx-cyan: #1da8f2;
  --apx-wine: #890b45;
  --apx-wine-light: #a71958;
  --apx-online: #43d28a;
}

/* APX Command Center: technical navy structure + restrained APX wine identity. */
.apx-topbar {
  background: linear-gradient(90deg, var(--apx-midnight) 0 72%, var(--apx-wine) 100%);
  border-bottom: 1px solid rgba(29,168,242,.18);
}

.apx-brand__mark {
  position: relative;
  background: linear-gradient(145deg, #173650, var(--apx-midnight));
  box-shadow: inset 0 -3px 0 var(--apx-wine), 0 8px 20px rgba(7,23,37,.18);
}

.apx-home-hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(137,11,69,.26), transparent 29%),
    radial-gradient(circle at 15% 80%, rgba(29,168,242,.11), transparent 30%),
    linear-gradient(125deg, #061522, #0d2639 70%, #172d41);
}

.apx-home-hero::before {
  content: "APX NETWORK OPERATIONS  /  SYSTEM ONLINE";
  position: absolute;
  z-index: 2;
  top: 20px;
  right: max(24px, calc((100% - var(--container))/2 + 24px));
  color: #7fa4b9;
  font: 700 9px/1.2 Consolas, monospace;
  letter-spacing: .14em;
}

.apx-home-hero h1 em { color: #ff9e75; }
.apx-home-hero__content > p { color: #b9cad5; }
.apx-home-hero .apx-kicker { color: #7dcfff; }
.apx-home-hero .apx-kicker::before { background: var(--apx-cyan); }

.apx-hero-slider {
  min-height: 490px;
  padding: 34px 12px 12px;
  border-color: #24475d;
  border-radius: 14px;
  background: var(--apx-panel);
  box-shadow: 0 35px 80px rgba(0,0,0,.34), inset 0 0 0 1px rgba(29,168,242,.05);
}

.apx-hero-slider::after {
  content: "●  APX LIVE MONITOR";
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 18px;
  color: var(--apx-online);
  font: 700 9px/1 Consolas, monospace;
  letter-spacing: .12em;
  text-shadow: 0 0 12px rgba(67,210,138,.5);
}

.apx-hero-slider__track {
  top: 34px;
  right: 12px;
  bottom: 12px;
  left: 12px;
  overflow: hidden;
  border: 1px solid #1a3b50;
  border-radius: 8px;
}

.apx-hero-slider__dots { top: 13px; right: 18px; }
.apx-hero-slider__dots button { background: #315064; }
.apx-hero-slider__dots button.is-active { background: var(--apx-cyan); }
.apx-hero-slide__content small { color: #63c7ff; }

.apx-stats {
  color: #fff;
  border-color: #193448;
  background: var(--apx-midnight);
}
.apx-stats__grid div { border-color: #193448; }
.apx-stats strong { color: #ecf7fd; font-family: Consolas, monospace; }
.apx-stats span { color: #7997aa; }
.apx-stats__grid div::before {
  content: "ONLINE";
  justify-self: start;
  margin-bottom: 10px;
  color: var(--apx-online);
  font: 700 8px/1 Consolas, monospace;
  letter-spacing: .12em;
}

#dich-vu { background: linear-gradient(180deg, #f4f7f9, #fff); }
.apx-service {
  min-height: 350px;
  color: #dceaf2;
  border-color: var(--apx-panel-line);
  border-radius: 10px;
  background: linear-gradient(145deg, #0d2131, #091a28);
  box-shadow: 0 16px 35px rgba(7,23,37,.13);
}
.apx-service::before {
  content: "SERVICE AVAILABLE";
  position: absolute;
  top: 31px;
  right: 28px;
  color: var(--apx-online);
  font: 700 7px/1 Consolas, monospace;
  letter-spacing: .1em;
}
.apx-service:hover {
  border-color: var(--apx-cyan);
  box-shadow: 0 20px 45px rgba(7,23,37,.2), 0 0 0 1px rgba(29,168,242,.14);
}
.apx-service > span { color: var(--apx-cyan); font-family: Consolas, monospace; }
.apx-service h3 { color: #fff; }
.apx-service p { color: #8fa8b7; }
.apx-service a { color: #67caff; }

.apx-process > div { position: relative; }
.apx-process > div::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--apx-cyan), var(--apx-wine));
  opacity: .75;
}

.apx-brands { border-top: 3px solid var(--apx-wine); background: var(--apx-midnight); }
.apx-section--faq { background: linear-gradient(125deg, var(--apx-midnight), #102e43 70%, #3c1230); }
.apx-cta { background: linear-gradient(110deg, var(--apx-wine), var(--apx-wine-light)); }
.apx-footer { position: relative; background: #06141f; }
.apx-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--apx-cyan) 0 68%, var(--apx-wine) 68%);
}

@media (max-width: 800px) {
  .apx-home-hero::before { display: none; }
  .apx-hero-slider { min-height: 390px; }
}

@media (max-width: 520px) {
  .apx-hero-slider { min-height: 320px; padding-top: 32px; }
  .apx-stats__grid div::before { font-size: 7px; }
}

@media (prefers-reduced-motion: no-preference) {
  .apx-hero-slider::after { animation: apx-online-pulse 2.4s ease-in-out infinite; }
  @keyframes apx-online-pulse { 50% { opacity: .62; } }
}
