/* Navigation, hero, partner and certification strips */

/* ========== NAV ========== */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2.5rem; height: 64px;
    background: rgba(8,8,8,0.9);
    backdrop-filter: blur(16px);
    border-bottom: 0.5px solid var(--border);
  }

  .nav-logo { display: flex; align-items: center; text-decoration: none; }
  .nav-logo img { height: 44px; width: auto; object-fit: contain; display: block; }
  .nav-logomark {
    width: 34px; height: 34px; background: var(--orange);
    border-radius: 7px; display: flex; align-items: center;
    justify-content: center; font-family: var(--mono); font-size: 12px;
    font-weight: 500; color: #fff; letter-spacing: -0.5px;
  }
  .nav-name {
    font-size: 14px; font-weight: 600; color: var(--off-white);
    letter-spacing: 0.01em;
  }
  .nav-name span { color: var(--muted); font-weight: 400; }

  .nav-links { display: flex; gap: 1.8rem; list-style: none; }
  .nav-links a {
    color: var(--muted); text-decoration: none; font-size: 13px;
    font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--off-white); }

  .nav-cta {
    background: var(--orange); color: #fff; border: none;
    padding: 9px 20px; border-radius: 7px; font-size: 13px; font-weight: 600;
    font-family: var(--sans); cursor: pointer; letter-spacing: 0.02em;
    transition: background 0.2s; text-decoration: none;
  }
  .nav-cta:hover { background: #B84208; }

/* ========== HERO ========== */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--black);
  }
  .hero-video-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 177.78vh;
    min-width: 100%;
    height: 56.25vw;
    min-height: 100%;
    pointer-events: none;
    z-index: 0;
  }
  .hero-video-bg iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
  }
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8,8,8,0.82) 0%, rgba(8,8,8,0.60) 50%, rgba(8,8,8,0.78) 100%);
    z-index: 1;
  }
  .hero-overlay::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--black));
  }
  .hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 7rem 2rem 5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  .hero-glow {
    position: absolute;
    top: 10%; right: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 65%);
    pointer-events: none; z-index: 0;
  }
  .hero-left {
    position: relative;
    z-index: 1;
    max-width: 640px;
  }

  .hero-h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 5.5vw, 5rem);
    line-height: 1.05;
    color: var(--off-white);
    margin: 1.2rem 0 1.5rem;
    letter-spacing: -0.015em;
  }
  .hero-h1 em { font-style: italic; color: var(--orange-light); }

  .hero-sub {
    font-size: 17px; color: var(--muted); line-height: 1.75;
    max-width: 500px; margin-bottom: 2.5rem;
  }

  .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

  .hero-divider {
    border: none; border-top: 0.5px solid var(--border);
    margin-bottom: 2rem;
  }

  .hero-stats { display: flex; gap: 3rem; }
  .stat-n {
    font-family: var(--serif); font-size: 2.2rem;
    color: var(--off-white); line-height: 1;
  }
  .hero-stats > div { display:flex; flex-direction:column; justify-content:flex-start; }
  .stat-l {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted); margin-top: 4px;
  }

  /* Hero Right — terminal */
  .hero-right {
    position: absolute;
    top: 7.25rem;
    right: 2rem;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    width: min(100%, 360px);
    pointer-events: none;
  }

  .terminal {
    width: 100%;
    margin-left: auto;
    background: rgba(10, 14, 22, 0.82);
    border: 0.5px solid rgba(255,255,255,0.16);
    border-radius: 12px;
    overflow: hidden;
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1.58;
    box-shadow: 0 14px 34px rgba(0,0,0,0.24);
    animation: heroTerminalFade 10s ease-in-out infinite;
    transform-origin: top right;
    backdrop-filter: blur(5px);
    pointer-events: auto;
  }
  .term-bar {
    background: rgba(255,255,255,0.04);
    border-bottom: 0.5px solid var(--border);
    padding: 8px 13px;
    display: flex; align-items: center; gap: 6px;
  }
  .dot { width: 9px; height: 9px; border-radius: 50%; }
  .dr { background: #FF5F57; }
  .dy { background: #FEBC2E; }
  .dg { background: #28C840; }
  .term-title { margin-left: 8px; font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }

  .term-body { padding: 1rem 1.15rem; }
  .tc { color: #374151; }
  .tk { color: #93C5FD; }
  .tv { color: #6EE7B7; }
  .tw { color: var(--orange-light); }
  .tok { color: #34D399; }
  .te { color: #FCA5A5; }

  .status-row {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 0.5px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .scard {
    background: rgba(255,255,255,0.03);
    border: 0.5px solid var(--border);
    border-radius: 8px;
    padding: 9px 10px;
  }
  .scard-l { font-size: 9px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
  .scard-v { font-size: 12px; font-weight: 500; margin-top: 2px; }
  .green { color: #34D399; }
  .amber { color: #FCD34D; }
  .orange { color: var(--orange-light); }

  @keyframes heroTerminalFade {
    0%, 100% { opacity: 0.82; }
    18%, 34% { opacity: 0.96; }
    52% { opacity: 0.38; }
    70%, 86% { opacity: 0.96; }
  }

  @media (max-width: 980px) {
    .hero {
      padding-top: 6.5rem;
      padding-bottom: 4rem;
    }

    .hero-left {
      max-width: none;
    }

    .hero-right {
      position: relative;
      top: auto;
      right: auto;
      width: 100%;
      margin-top: 2rem;
      pointer-events: auto;
    }

    .terminal {
      max-width: none;
    }
  }

/* ========== PARTNERS STRIP ========== */
.partners {
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
    padding: 1.4rem 0;
    overflow: hidden;
  }
  .partners-track {
    display: flex; gap: 4rem; align-items: center;
    animation: scroll 28s linear infinite;
    width: max-content;
  }
  @keyframes scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

  /* Certifications strip */
  .certs-section {
    background: var(--mid-dark);
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
    padding: 2.5rem 0 1.8rem;
    overflow: hidden;
  }
  .certs-label {
    text-align: center;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--orange);
    margin-bottom: 1.4rem;
  }
  .certs-track {
    display: flex; gap: 4.5rem; align-items: center;
    animation: scroll-reverse 32s linear infinite;
    width: max-content;
  }
  @keyframes scroll-reverse { 0%{transform:translateX(-50%)} 100%{transform:translateX(0)} }
  .cert-logo-wrap {
    display: flex; align-items: center; gap: 10px;
    opacity: 0.55; transition: opacity 0.2s; flex-shrink: 0;
    white-space: nowrap;
  }
  .cert-logo-wrap:hover { opacity: 1; }
  .cert-badge {
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; flex-shrink: 0;
  }
  .cert-name {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--off-white); white-space: nowrap;
  }
  .partner-logo-wrap {
    display: flex; align-items: center; opacity: 0.45;
    transition: opacity 0.2s; flex-shrink: 0;
  }
  .partner-logo-wrap:hover { opacity: 0.85; }
  .partner-name {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted); white-space: nowrap;
    opacity: 0.7;
  }
  .partner-name span { color: var(--orange); margin-right: 4px; }


/* Theme refresh: dark green reference palette while keeping orange accents */
nav {
  background: rgba(8, 12, 10, 0.88);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}
.hero-overlay {
  background: linear-gradient(135deg, rgba(7,10,9,0.88) 0%, rgba(10,18,12,0.64) 48%, rgba(7,10,9,0.84) 100%);
}
.hero-glow {
  background: radial-gradient(circle, rgba(62, 170, 92, 0.16) 0%, rgba(212,80,10,0.08) 24%, transparent 66%);
}
.terminal {
  background: linear-gradient(180deg, rgba(11,17,16,0.88) 0%, rgba(10,15,15,0.86) 100%);
  border-color: rgba(130, 188, 144, 0.20);
  box-shadow: 0 22px 60px rgba(0,0,0,0.40);
}
.terminal-bar {
  background: linear-gradient(90deg, rgba(20,35,24,0.95) 0%, rgba(23,41,28,0.88) 100%);
}


/* Multicolor glass treatment */
nav::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 50%, rgba(74,225,132,0.08) 0%, rgba(74,225,132,0) 24%),
    radial-gradient(circle at 90% 50%, rgba(212,80,10,0.06) 0%, rgba(212,80,10,0) 24%);
}
.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 18%, rgba(74,225,132,0.10) 0%, rgba(74,225,132,0) 30%),
    radial-gradient(circle at 88% 22%, rgba(180,108,255,0.10) 0%, rgba(180,108,255,0) 34%),
    radial-gradient(circle at 72% 84%, rgba(246,151,70,0.08) 0%, rgba(246,151,70,0) 30%);
}


/* Hero terminal placement + soft transparency */
.hero-right{
  position:absolute;
  top:7.25rem;
  right:2rem;
  z-index:1;
  display:flex;
  justify-content:flex-end;
  width:min(100%,360px);
  pointer-events:none;
}
.hero-right .terminal{
  width:100%;
  margin-left:auto;
  background:rgba(8,12,12,0.38) !important;
  border-color:rgba(255,255,255,0.10) !important;
  box-shadow:0 12px 34px rgba(0,0,0,0.18) !important;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  animation:heroTerminalSoftFadeLong 13s ease-in-out infinite !important;
}
.hero-right .terminal::before{opacity:.38 !important}
@keyframes heroTerminalSoftFadeLong{
  0%{opacity:.55}
  18%{opacity:.5}
  32%{opacity:.18}
  45%{opacity:0}
  68%{opacity:0}
  82%{opacity:.22}
  100%{opacity:.55}
}

/* Hero stats row */
.hero-stats-clean{
  display:grid;
  grid-template-columns:repeat(5,minmax(120px,1fr));
  gap:1.4rem;
  max-width:920px;
  margin-top:1.6rem;
}
.hero-stat-item{
  position:relative;
  min-width:0;
}
.hero-stat-item:not(:last-child)::after{
  content:"";
  position:absolute;
  top:8px;
  right:-0.7rem;
  width:1px;
  height:42px;
  background:linear-gradient(to bottom,rgba(255,255,255,0),rgba(255,255,255,0.16),rgba(255,255,255,0));
}
.hero-stat-item .stat-n{
  font-size:clamp(1.45rem,2vw,2.4rem);
  line-height:1.02;
  letter-spacing:-0.015em;
  white-space:normal;
}
.hero-stat-item .stat-l{
  margin-top:7px;
  font-size:9px;
  line-height:1.5;
  letter-spacing:.12em;
  max-width:14ch;
}
.hero-stat-item:nth-child(4) .stat-n,
.hero-stat-item:nth-child(5) .stat-n{
  font-size:clamp(1.15rem,1.45vw,1.8rem);
}
.hero-stat-item:nth-child(5) .stat-n{line-height:1.04}
.hero-stat-item:nth-child(4) .stat-l,
.hero-stat-item:nth-child(5) .stat-l{
  max-width:15ch;
}

@media (max-width:980px){
  .hero{padding-top:6.5rem;padding-bottom:4rem}
  .hero-left{max-width:none}
  .hero-right{
    position:relative;
    top:auto;
    right:auto;
    width:100%;
    margin-top:1.5rem;
    pointer-events:auto;
  }
  .hero-right .terminal{max-width:420px}
  .hero-stats-clean{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:1rem 1.5rem;
    max-width:none;
  }
  .hero-stat-item::after{display:none}
}
@media (max-width:640px){
  .hero-stats-clean{grid-template-columns:1fr 1fr}
  .hero-stat-item .stat-n{font-size:1.6rem}
  .hero-stat-item:nth-child(4) .stat-n,
  .hero-stat-item:nth-child(5) .stat-n{font-size:1.2rem}
}


/* Force hero terminal flush-right and add subtle right-slide on fade */
.hero-right{
  position:absolute !important;
  top:7.25rem !important;
  right:2rem !important;
  left:auto !important;
  z-index:2 !important;
  display:flex !important;
  justify-content:flex-end !important;
  width:360px !important;
  max-width:40vw !important;
  margin-left:auto !important;
}
.hero .terminal,
.hero-right .terminal,
.hero-terminal{
  margin-left:auto !important;
  margin-right:0 !important;
  transform-origin: top right !important;
}
@keyframes heroTerminalRightFade {
  0%   { opacity: 0.52; transform: translateX(10px); }
  18%  { opacity: 0.50; transform: translateX(8px); }
  34%  { opacity: 0.18; transform: translateX(4px); }
  48%  { opacity: 0.00; transform: translateX(0px); }
  68%  { opacity: 0.00; transform: translateX(0px); }
  84%  { opacity: 0.22; transform: translateX(8px); }
  100% { opacity: 0.52; transform: translateX(10px); }
}
.hero .terminal,
.hero-right .terminal,
.hero-terminal{
  animation: heroTerminalRightFade 13s ease-in-out infinite !important;
}
@media (max-width:980px){
  .hero-right{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    width:100% !important;
    max-width:none !important;
  }
}


/* Hard-right terminal fix */
.hero{position:relative !important;}
.hero-right{
  position:absolute !important;
  top:7rem !important;
  right:0 !important;
  left:auto !important;
  bottom:auto !important;
  z-index:5 !important;
  display:flex !important;
  justify-content:flex-end !important;
  align-items:flex-start !important;
  width:420px !important;
  max-width:42vw !important;
  padding-right:0 !important;
  margin:0 !important;
  transform:none !important;
}
.hero-right .terminal,
.hero .hero-right .terminal{
  margin-left:auto !important;
  margin-right:0 !important;
}
@media (max-width:980px){
  .hero-right{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    width:100% !important;
    max-width:none !important;
  }
}


/* Force hero terminal to the far right of the viewport, not just the centered hero container */
.hero{position:relative !important;}
.hero-right{
  position:absolute !important;
  top:7rem !important;
  right:calc(((100vw - min(1200px, 100vw)) / -2) + 1rem) !important;
  left:auto !important;
  width:min(360px, 34vw) !important;
  max-width:min(360px, 34vw) !important;
  justify-content:flex-end !important;
  z-index:5 !important;
  pointer-events:none !important;
}
.hero-right .terminal{
  width:100% !important;
  margin-left:auto !important;
  margin-right:0 !important;
  transform-origin:top right !important;
  pointer-events:auto !important;
}
@media (max-width:1100px){
  .hero-right{
    top:6.5rem !important;
    width:min(320px, 36vw) !important;
    max-width:min(320px, 36vw) !important;
    right:0.5rem !important;
  }
}
@media (max-width:820px){
  .hero-right{
    top:6.25rem !important;
    width:min(280px, 38vw) !important;
    max-width:min(280px, 38vw) !important;
    right:0.35rem !important;
  }
}
@media (max-width:680px){
  .hero-right{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    width:100% !important;
    max-width:none !important;
    margin-top:2rem !important;
  }
}


/* FINAL hero terminal placement/transparency override */
.hero{
  position: relative !important;
  max-width: none !important;
  width: 100% !important;
  padding-left: 4rem !important;
  padding-right: 4rem !important;
}
.hero-left{
  max-width: 620px !important;
}
.hero-right{
  position: fixed !important;
  top: 7.5rem !important;
  right: 1.25rem !important;
  left: auto !important;
  bottom: auto !important;
  width: 34vw !important;
  max-width: 720px !important;
  min-width: 560px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 4 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  pointer-events: none !important;
}
.hero-right .terminal,
.hero .hero-right .terminal{
  width: 100% !important;
  margin: 0 !important;
  background: rgba(8, 12, 12, 0.30) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.14) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  transform-origin: top right !important;
}
.hero-right .term-bar{
  background: rgba(20, 24, 24, 0.34) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.hero-right .term-body{
  background: rgba(5, 10, 10, 0.16) !important;
}
.hero-right .scard{
  background: rgba(255,255,255,0.02) !important;
  border-color: rgba(255,255,255,0.06) !important;
}
@keyframes heroTerminalLongFadeRight {
  0%   { opacity: 0.42; transform: translateX(0); }
  18%  { opacity: 0.36; transform: translateX(0); }
  34%  { opacity: 0.10; transform: translateX(0); }
  48%  { opacity: 0.00; transform: translateX(0); }
  66%  { opacity: 0.00; transform: translateX(0); }
  82%  { opacity: 0.16; transform: translateX(0); }
  100% { opacity: 0.42; transform: translateX(0); }
}
.hero-right .terminal,
.hero .hero-right .terminal{
  animation: heroTerminalLongFadeRight 13s ease-in-out infinite !important;
}

/* keep it usable on narrower screens */
@media (max-width: 1200px){
  .hero-right{
    right: 0.75rem !important;
    width: 38vw !important;
    min-width: 420px !important;
    max-width: 560px !important;
  }
}
@media (max-width: 980px){
  .hero{
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  .hero-right{
    position: absolute !important;
    top: 6.5rem !important;
    right: 0.5rem !important;
    width: 46vw !important;
    min-width: 340px !important;
    max-width: 440px !important;
  }
}
@media (max-width: 720px){
  .hero-right{
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-top: 1.5rem !important;
  }
}


/* Hero terminal should only exist within hero viewport */
.hero-section{
  overflow: hidden !important;
}
.hero-right{
  position: absolute !important;
  top: 7.5rem !important;
  right: 1.25rem !important;
}
@media (max-width: 980px){
  .hero-right{
    position: absolute !important;
  }
}
@media (max-width: 720px){
  .hero-right{
    position: relative !important;
  }
}


/* Hero terminal: far right within hero only, not sticky */
.hero-section{
  position: relative !important;
  overflow: hidden !important;
}
.hero{
  position: relative !important;
  max-width: none !important;
  width: 100% !important;
  padding-left: 4rem !important;
  padding-right: 4rem !important;
}
.hero-left{
  max-width: 620px !important;
}
.hero-right{
  position: absolute !important;
  top: 7.5rem !important;
  right: 1.25rem !important;
  left: auto !important;
  bottom: auto !important;
  width: min(34vw, 720px) !important;
  max-width: min(34vw, 720px) !important;
  min-width: 560px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 4 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  pointer-events: none !important;
}
.hero-right .terminal,
.hero .hero-right .terminal{
  width: 100% !important;
  margin: 0 !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  transform-origin: top right !important;
  pointer-events: auto !important;
}

/* prevent any old fixed positioning overrides */
.hero-right[style],
.hero .hero-right[style]{
  right: 1.25rem !important;
  left: auto !important;
}

@media (max-width: 1200px){
  .hero{
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
  .hero-right{
    right: 0.75rem !important;
    width: min(38vw, 560px) !important;
    max-width: min(38vw, 560px) !important;
    min-width: 420px !important;
  }
}
@media (max-width: 980px){
  .hero-right{
    top: 6.5rem !important;
    right: 0.5rem !important;
    width: min(46vw, 440px) !important;
    max-width: min(46vw, 440px) !important;
    min-width: 340px !important;
    position: absolute !important;
  }
}
@media (max-width: 720px){
  .hero{
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .hero-right{
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-top: 1.5rem !important;
  }
}


/* TRUE far-right hero terminal anchored to hero-section, not centered hero container */
.hero-section{
  position: relative !important;
  overflow: hidden !important;
}
.hero{
  position: relative !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}
.hero-right{
  position: absolute !important;
  top: 7.5rem !important;
  left: auto !important;
  right: calc((100vw - min(1200px, 100vw)) / 2) !important;
  width: 640px !important;
  max-width: 42vw !important;
  min-width: 540px !important;
  z-index: 5 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  pointer-events: none !important;
}
.hero-right .terminal,
.hero .hero-right .terminal{
  width: 100% !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  pointer-events: auto !important;
  transform-origin: top right !important;
  background: rgba(8, 12, 12, 0.28) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
}
.hero-right .term-bar{
  background: rgba(20,24,24,0.30) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.hero-right .term-body{
  background: rgba(5,10,10,0.14) !important;
}
.hero-right .scard{
  background: rgba(255,255,255,0.02) !important;
  border-color: rgba(255,255,255,0.06) !important;
}

/* Premium subtle float while fading */
@keyframes heroTerminalPremiumFloat {
  0%   { opacity: 0.42; transform: translateX(14px); }
  18%  { opacity: 0.34; transform: translateX(10px); }
  34%  { opacity: 0.10; transform: translateX(6px); }
  48%  { opacity: 0.00; transform: translateX(0px); }
  66%  { opacity: 0.00; transform: translateX(0px); }
  82%  { opacity: 0.14; transform: translateX(10px); }
  100% { opacity: 0.42; transform: translateX(14px); }
}
.hero-right .terminal,
.hero .hero-right .terminal{
  animation: heroTerminalPremiumFloat 13s ease-in-out infinite !important;
}

@media (max-width: 1200px){
  .hero-right{
    right: 0.75rem !important;
    width: min(560px, 42vw) !important;
    max-width: min(560px, 42vw) !important;
    min-width: 420px !important;
  }
}
@media (max-width: 980px){
  .hero-right{
    top: 6.5rem !important;
    right: 0.5rem !important;
    width: min(440px, 46vw) !important;
    max-width: min(440px, 46vw) !important;
    min-width: 340px !important;
  }
}
@media (max-width: 720px){
  .hero-right{
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-top: 1.5rem !important;
  }
}


/* Correct containing block: anchor terminal to full hero section, not centered .hero */
.hero-section{
  position: relative !important;
}
.hero{
  position: static !important;
}
.hero-right{
  position: absolute !important;
  top: 7.5rem !important;
  right: 0.75rem !important;
  left: auto !important;
  width: min(640px, 42vw) !important;
  max-width: min(640px, 42vw) !important;
  min-width: 540px !important;
  z-index: 5 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  pointer-events: none !important;
}
.hero-right .terminal{
  width: 100% !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  transform-origin: top right !important;
  pointer-events: auto !important;
}
@media (max-width: 1200px){
  .hero-right{
    right: 0.5rem !important;
    width: min(560px, 42vw) !important;
    max-width: min(560px, 42vw) !important;
    min-width: 420px !important;
  }
}
@media (max-width: 980px){
  .hero{
    position: relative !important;
  }
  .hero-right{
    top: 6.5rem !important;
    right: 0.5rem !important;
    width: min(440px, 46vw) !important;
    max-width: min(440px, 46vw) !important;
    min-width: 340px !important;
  }
}
@media (max-width: 720px){
  .hero{
    position: relative !important;
  }
  .hero-right{
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-top: 1.5rem !important;
  }
}


/* Structural hero fix: keep terminal as sibling of hero-left */
.hero{
  position: relative !important;
  z-index: 2 !important;
  min-height: 100vh !important;
  padding: 7rem 2rem 5rem !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 4rem !important;
  max-width: 1400px !important;
  width: 100% !important;
  margin: 0 auto !important;
}
.hero-left{
  position: relative !important;
  z-index: 1 !important;
  max-width: 680px !important;
}
.hero-right{
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  justify-self: end !important;
  align-self: start !important;
  width: 640px !important;
  max-width: 42vw !important;
  min-width: 540px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 4 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  pointer-events: none !important;
}
.hero-right .terminal,
.hero .hero-right .terminal{
  width: 100% !important;
  margin: 0 !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  pointer-events: auto !important;
  transform-origin: top right !important;
  background: rgba(8, 12, 12, 0.28) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
}
.hero-right .term-bar{
  background: rgba(20,24,24,0.30) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.hero-right .term-body{
  background: rgba(5,10,10,0.14) !important;
}
.hero-right .scard{
  background: rgba(255,255,255,0.02) !important;
  border-color: rgba(255,255,255,0.06) !important;
}
@keyframes heroTerminalPremiumFloat {
  0%   { opacity: 0.42; transform: translateX(14px); }
  18%  { opacity: 0.34; transform: translateX(10px); }
  34%  { opacity: 0.10; transform: translateX(6px); }
  48%  { opacity: 0.00; transform: translateX(0px); }
  66%  { opacity: 0.00; transform: translateX(0px); }
  82%  { opacity: 0.14; transform: translateX(10px); }
  100% { opacity: 0.42; transform: translateX(14px); }
}
.hero-right .terminal,
.hero .hero-right .terminal{
  animation: heroTerminalPremiumFloat 13s ease-in-out infinite !important;
}
@media (max-width: 1200px){
  .hero{
    max-width: 100% !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    gap: 2rem !important;
  }
  .hero-right{
    width: min(560px, 42vw) !important;
    max-width: min(560px, 42vw) !important;
    min-width: 420px !important;
  }
}
@media (max-width: 980px){
  .hero{
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }
  .hero-right{
    position: relative !important;
    justify-self: end !important;
    width: min(440px, 70vw) !important;
    max-width: min(440px, 70vw) !important;
    min-width: 340px !important;
    margin-top: 0.5rem !important;
  }
}
@media (max-width: 720px){
  .hero{
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .hero-right{
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-top: 1.5rem !important;
  }
}



/* AI Consulting card subtle glow highlight */
.ai-card{
  position: relative;
  overflow: hidden;
}

.ai-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:12px;
  background: radial-gradient(circle at 30% 40%, rgba(255,140,60,0.18), transparent 60%);
  opacity:.35;
  pointer-events:none;
  animation: aiGlow 6s ease-in-out infinite;
}

@keyframes aiGlow{
  0%{opacity:.15; transform:scale(1)}
  50%{opacity:.45; transform:scale(1.04)}
  100%{opacity:.15; transform:scale(1)}
}

.ai-highlight{
  position:relative;
}

.ai-highlight::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:42px;
  height:2px;
  background:linear-gradient(90deg,#ff7a2f,#ffb36a);
  animation: aiUnderline 4s ease-in-out infinite;
}

@keyframes aiUnderline{
  0%{width:20px; opacity:.5}
  50%{width:60px; opacity:1}
  100%{width:20px; opacity:.5}
}


/* Mouse-follow glow for service cards */
.svc-card{
  position:relative;
  overflow:hidden;
}

.svc-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(600px circle at var(--x,50%) var(--y,50%), rgba(255,140,60,0.18), transparent 40%);
  opacity:0;
  transition:opacity .25s ease;
  pointer-events:none;
}

.svc-card:hover::after{
  opacity:1;
}



/* Subtle animated gradient background inside service cards */
.svc-card{
  background: linear-gradient(
      120deg,
      rgba(255,120,50,0.03),
      rgba(255,160,80,0.05),
      rgba(255,120,50,0.03)
  );
  background-size: 200% 200%;
  animation: svcGradientMove 12s ease-in-out infinite;
}

@keyframes svcGradientMove{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}


/* SmartKit more detail button arrow animation */
.btn-more-detail .btn-arrow{
  display:inline-block;
  margin-left:6px;
  transition:transform .25s ease;
}

.btn-more-detail:hover .btn-arrow{
  transform:translateX(4px);
}



/* SmartKit More Detail pulse animation */
.btn-more-detail{
  animation: smartkitPulse 3s ease-in-out infinite;
}

@keyframes smartkitPulse{
  0%{ transform:scale(1); box-shadow:0 0 0 rgba(255,140,60,0); }
  50%{ transform:scale(1.05); box-shadow:0 0 12px rgba(255,140,60,0.45); }
  100%{ transform:scale(1); box-shadow:0 0 0 rgba(255,140,60,0); }
}



/* Stable rolling stats + hero terminal glass fix */
.rolling-stat,
.stat-n,
.as-num{
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  white-space: nowrap;
}

.hero-stats-clean .rolling-stat{
  display: inline-flex;
  justify-content: flex-start;
  align-items: baseline;
  min-width: 6ch;
}

.about-right-stats .rolling-stat{
  display: inline-flex;
  justify-content: flex-start;
  align-items: baseline;
  min-width: 7ch;
}

.hero{
  position: relative !important;
}

.hero-right{
  position: absolute !important;
  right: 1rem !important;
  top: 7.5rem !important;
  left: auto !important;
  transform: none !important;
  z-index: 4 !important;
  will-change: opacity, transform;
}

.hero-right .terminal,
.hero .hero-right .terminal{
  background: rgba(8, 12, 12, 0.26) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  transform: translateZ(0);
}

.hero-right .term-bar{
  background: rgba(20,24,24,0.30) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.hero-right .term-body{
  background: rgba(5,10,10,0.12) !important;
}

.hero-right .scard{
  background: rgba(255,255,255,0.02) !important;
  border-color: rgba(255,255,255,0.06) !important;
}

@media (max-width: 980px){
  .hero-right{
    position: relative !important;
    right: auto !important;
    top: auto !important;
  }
}


/* Vertical LAN rail */
.cm-vertical-lan{
  position: fixed;
  left: 10px;
  top: 78px;
  bottom: 18px;
  width: 84px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}
.cm-lan-line{
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(73,222,132,0.14) 0%,
    rgba(180,108,255,0.18) 22%,
    rgba(246,151,70,0.18) 48%,
    rgba(73,222,132,0.18) 72%,
    rgba(223,234,82,0.14) 100%
  );
  box-shadow:
    0 0 10px rgba(73,222,132,0.16),
    0 0 18px rgba(246,151,70,0.08);
}
.cm-lan-line::before,
.cm-lan-line::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  width:8px;
  height:8px;
  border-radius:999px;
  background: rgba(255,255,255,0.14);
  box-shadow: 0 0 10px rgba(73,222,132,0.18);
}
.cm-lan-line::before{ top: 0; }
.cm-lan-line::after{ bottom: 0; }

.cm-lan-node{
  position: absolute;
  left: 0;
  width: 84px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 5px;
  color: var(--muted);
}

.cm-lan-node svg{
  width: 22px;
  height: 22px;
  color: var(--orange-light);
  background: rgba(11,16,14,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}
.cm-lan-node span{
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(11,16,14,0.5);
  padding: 2px 5px;
  border-radius: 999px;
}

.node-router{ top: 0%; }
.node-plc{ top: 10%; }
.node-hmi{ top: 21%; }
.node-servo{ top: 33%; }
.node-server{ top: 45%; }
.node-pc{ top: 58%; }
.node-camera{ top: 71%; }
.node-sensor{ top: 83%; }
.node-cloud{ top: 94%; }

body{
  overflow-x: hidden;
}

@media (max-width: 1280px){
  .cm-vertical-lan{
    left: 4px;
    width: 72px;
  }
  .cm-lan-node{
    width: 72px;
  }
  .cm-lan-node span{
    font-size: 8px;
  }
}
@media (max-width: 1100px){
  .cm-vertical-lan{
    display:none;
  }
}


/* Larger vertical LAN icons (icons only) */
.cm-lan-node{
  width:90px;
}



.cm-lan-node svg{
  width:38px;
  height:38px;
  padding:12px;
  border-radius:14px;
  background:rgba(10,14,14,0.55);
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:0 10px 26px rgba(0,0,0,0.22);
}

.cm-lan-node span{
  display:none;
}

.cm-lan-line{
  left:45px;
}


/* Animated data pulses for vertical LAN */
.cm-lan-line{
  position:absolute;
  overflow:visible;
}

.cm-lan-line::after{
  content:"";
  position:absolute;
  left:-3px;
  width:8px;
  height:40px;
  border-radius:6px;
  background:linear-gradient(
    to bottom,
    rgba(73,222,132,0.0),
    rgba(73,222,132,0.8),
    rgba(246,151,70,0.9),
    rgba(73,222,132,0.0)
  );
  animation:cmLanPulse 4s linear infinite;
  box-shadow:
    0 0 10px rgba(73,222,132,0.6),
    0 0 20px rgba(246,151,70,0.4);
}

@keyframes cmLanPulse{
  0%{ top:-40px; opacity:0; }
  10%{ opacity:1; }
  90%{ opacity:1; }
  100%{ top:100%; opacity:0; }
}

.cm-lan-node svg{
  transition:transform .35s ease, box-shadow .35s ease;
}

.cm-lan-node svg:hover{
  transform:scale(1.1);
  box-shadow:
    0 0 12px rgba(73,222,132,0.5),
    0 0 24px rgba(246,151,70,0.4);
}

.cm-lan-node svg{
  box-shadow:
    0 0 8px rgba(73,222,132,0.15),
    0 10px 26px rgba(0,0,0,0.25);
}



/* Branching OT pulse effects */
.cm-lan-node{
  position:absolute;
}

.cm-lan-node::after{
  content:"";
  position:absolute;
  top: 31px;
  left: 40px;
  width: 18px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(73,222,132,0.0),
    rgba(73,222,132,0.8),
    rgba(246,151,70,0.8)
  );
  transform-origin: left center;
  animation: cmLanBranchPulse 4.8s ease-in-out infinite;
  opacity: .18;
  box-shadow: 0 0 8px rgba(73,222,132,0.25);
}

.cm-lan-node:nth-child(2)::after{ animation-delay: .2s; }
.cm-lan-node:nth-child(3)::after{ animation-delay: .7s; }
.cm-lan-node:nth-child(4)::after{ animation-delay: 1.1s; }
.cm-lan-node:nth-child(5)::after{ animation-delay: 1.5s; }
.cm-lan-node:nth-child(6)::after{ animation-delay: 1.9s; }
.cm-lan-node:nth-child(7)::after{ animation-delay: 2.3s; }
.cm-lan-node:nth-child(8)::after{ animation-delay: 2.7s; }
.cm-lan-node:nth-child(9)::after{ animation-delay: 3.1s; }
.cm-lan-node:nth-child(10)::after{ animation-delay: 3.5s; }

@keyframes cmLanBranchPulse{
  0%{ opacity:0; transform:scaleX(.15); }
  12%{ opacity:.9; transform:scaleX(1); }
  24%{ opacity:.18; transform:scaleX(1); }
  100%{ opacity:.18; transform:scaleX(1); }
}

.cm-lan-node svg{
  animation: cmLanNodeBreath 6s ease-in-out infinite;
}
.cm-lan-node:nth-child(2) svg{ animation-delay: .15s; }
.cm-lan-node:nth-child(3) svg{ animation-delay: .55s; }
.cm-lan-node:nth-child(4) svg{ animation-delay: .95s; }
.cm-lan-node:nth-child(5) svg{ animation-delay: 1.35s; }
.cm-lan-node:nth-child(6) svg{ animation-delay: 1.75s; }
.cm-lan-node:nth-child(7) svg{ animation-delay: 2.15s; }
.cm-lan-node:nth-child(8) svg{ animation-delay: 2.55s; }
.cm-lan-node:nth-child(9) svg{ animation-delay: 2.95s; }
.cm-lan-node:nth-child(10) svg{ animation-delay: 3.35s; }

@keyframes cmLanNodeBreath{
  0%,100%{
    box-shadow:
      0 0 8px rgba(73,222,132,0.15),
      0 10px 26px rgba(0,0,0,0.25);
  }
  15%{
    box-shadow:
      0 0 16px rgba(73,222,132,0.42),
      0 0 28px rgba(246,151,70,0.22),
      0 10px 26px rgba(0,0,0,0.25);
  }
  30%{
    box-shadow:
      0 0 10px rgba(73,222,132,0.18),
      0 10px 26px rgba(0,0,0,0.25);
  }
}

/* OT protocol tags */
.cm-lan-proto{
  position:absolute;
  left: 54px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(234,243,238,0.65);
  background: rgba(10,14,14,0.42);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 999px;
  padding: 2px 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: cmProtoBlink 8s ease-in-out infinite;
}
.cm-proto-1{ top: 15%; animation-delay: .4s; }
.cm-proto-2{ top: 39%; animation-delay: 2.2s; }
.cm-proto-3{ top: 64%; animation-delay: 4.4s; }
.cm-proto-4{ top: 88%; animation-delay: 6.2s; }

@keyframes cmProtoBlink{
  0%, 100%{ opacity: .14; transform: translateX(0); }
  8%, 14%{ opacity: .92; transform: translateX(3px); }
  20%{ opacity: .18; transform: translateX(0); }
}

@media (max-width: 1280px){
  .cm-lan-proto{ display:none; }
}


/* Larger LAN icons for visibility */
.cm-vertical-lan{
  width:120px;
}

.cm-lan-line{
  left:60px;
}

.cm-lan-node{
  width:120px;
}

.cm-lan-node svg{
  width:56px;
  height:56px;
  padding:14px;
  border-radius:16px;
  background:rgba(10,14,14,0.65);
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 12px rgba(73,222,132,0.25),
    0 0 20px rgba(246,151,70,0.15),
    0 12px 30px rgba(0,0,0,0.35);
}

.cm-lan-node::after{
  left:56px;
  width:26px;
  top:40px;
}



/* Premium topology-style vertical LAN */
.cm-vertical-lan{
  width: 150px;
  transform: translateZ(0);
}

.cm-lan-line{
  left: 74px;
  width: 3px;
  background: linear-gradient(
    to bottom,
    rgba(73,222,132,0.18) 0%,
    rgba(89,180,255,0.18) 24%,
    rgba(246,151,70,0.18) 52%,
    rgba(180,108,255,0.18) 76%,
    rgba(223,234,82,0.16) 100%
  );
}

.cm-lan-node{
  width: 150px;
}

.cm-lan-node:nth-child(2),
.cm-lan-node:nth-child(4),
.cm-lan-node:nth-child(6),
.cm-lan-node:nth-child(8),
.cm-lan-node:nth-child(10){
  left: 0;
  align-items: flex-start;
}

.cm-lan-node:nth-child(3),
.cm-lan-node:nth-child(5),
.cm-lan-node:nth-child(7),
.cm-lan-node:nth-child(9){
  left: 18px;
  align-items: flex-end;
}

.cm-lan-node:nth-child(2)::after,
.cm-lan-node:nth-child(4)::after,
.cm-lan-node:nth-child(6)::after,
.cm-lan-node:nth-child(8)::after,
.cm-lan-node:nth-child(10)::after{
  left: 70px;
  width: 26px;
}

.cm-lan-node:nth-child(3)::after,
.cm-lan-node:nth-child(5)::after,
.cm-lan-node:nth-child(7)::after,
.cm-lan-node:nth-child(9)::after{
  left: 56px;
  width: 18px;
}

.node-router svg{
  color:#49de84;
  box-shadow:0 0 14px rgba(73,222,132,0.32),0 12px 30px rgba(0,0,0,0.35);
}
.node-plc svg,
.node-hmi svg{
  color:#89b4ff;
  box-shadow:0 0 14px rgba(137,180,255,0.28),0 12px 30px rgba(0,0,0,0.35);
}
.node-servo svg{
  color:#f69746;
  box-shadow:0 0 14px rgba(246,151,70,0.30),0 12px 30px rgba(0,0,0,0.35);
}
.node-server svg,
.node-pc svg{
  color:#b46cff;
  box-shadow:0 0 14px rgba(180,108,255,0.30),0 12px 30px rgba(0,0,0,0.35);
}
.node-camera svg,
.node-sensor svg{
  color:#dfea52;
  box-shadow:0 0 14px rgba(223,234,82,0.28),0 12px 30px rgba(0,0,0,0.35);
}
.node-cloud svg{
  color:#49de84;
  box-shadow:0 0 14px rgba(73,222,132,0.32),0 12px 30px rgba(0,0,0,0.35);
}

/* subtle parallax feel */
.cm-vertical-lan{
  animation: cmLanDrift 12s ease-in-out infinite;
}
@keyframes cmLanDrift{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}

/* stronger pulse beam */
.cm-lan-line::after{
  left:-4px;
  width:11px;
  height:54px;
  border-radius:10px;
  background:linear-gradient(
    to bottom,
    rgba(73,222,132,0),
    rgba(73,222,132,.95),
    rgba(137,180,255,.9),
    rgba(246,151,70,.95),
    rgba(180,108,255,.82),
    rgba(73,222,132,0)
  );
  box-shadow:
    0 0 14px rgba(73,222,132,.7),
    0 0 24px rgba(246,151,70,.45),
    0 0 34px rgba(180,108,255,.25);
}

.cm-lan-proto{
  left: 90px;
  background: rgba(10,14,14,0.58);
  border-color: rgba(255,255,255,0.07);
}

@media (max-width: 1280px){
  .cm-vertical-lan{
    width: 130px;
  }
  .cm-lan-node{
    width: 130px;
  }
  .cm-lan-line{
    left: 64px;
  }
}


/* Device health indicator balls */
.cm-lan-node svg{
  position:relative;
}

/* status dot */


/* majority green */


/* warning orange */


/* camera moderate orange */


/* sensor red */


@keyframes cmStatusPulse{
  0%{
    transform:scale(.7);
    opacity:.6;
  }
  50%{
    transform:scale(1.25);
    opacity:1;
  }
  100%{
    transform:scale(.7);
    opacity:.6;
  }
}



/* Dynamic status behavior */






@keyframes cmGreenBlinkBlue{
  0%, 72%, 100%{
    background:#49de84;
    box-shadow:0 0 8px rgba(73,222,132,.9);
  }
  75%, 79%{
    background:#5bbcff;
    box-shadow:0 0 10px rgba(91,188,255,.95), 0 0 18px rgba(91,188,255,.45);
  }
  82%{
    background:#49de84;
    box-shadow:0 0 8px rgba(73,222,132,.9);
  }
}

@keyframes cmOrangeSpike{
  0%, 68%, 100%{
    transform:scale(.7);
    opacity:.7;
    background:#f69746;
    box-shadow:0 0 8px rgba(246,151,70,.9);
  }
  74%{
    transform:scale(1.45);
    opacity:1;
    background:#ffd84d;
    box-shadow:0 0 12px rgba(255,216,77,.95), 0 0 22px rgba(255,216,77,.35);
  }
  80%{
    transform:scale(.95);
    opacity:.95;
    background:#f69746;
    box-shadow:0 0 8px rgba(246,151,70,.9);
  }
}

@keyframes cmRedAlert{
  0%, 78%, 100%{
    transform:scale(.78);
    opacity:.55;
    background:#ff4d4d;
    box-shadow:0 0 8px rgba(255,77,77,.85);
  }
  82%{
    transform:scale(1.35);
    opacity:1;
    background:#ff4d4d;
    box-shadow:0 0 14px rgba(255,77,77,1), 0 0 24px rgba(255,77,77,.45);
  }
  86%{
    transform:scale(.88);
    opacity:.85;
    background:#ff4d4d;
    box-shadow:0 0 9px rgba(255,77,77,.9);
  }
  90%{
    transform:scale(1.22);
    opacity:1;
    background:#ff4d4d;
    box-shadow:0 0 14px rgba(255,77,77,1), 0 0 24px rgba(255,77,77,.45);
  }
}


/* FIX: force status balls to render above icons and branches */
.cm-lan-node{
  position: absolute !important;
  overflow: visible !important;
}









/* Make sure branch lines stay behind the status balls */
.cm-lan-node::after{
  z-index: 5 !important;
}

/* Stronger visible animation states */
@keyframes cmGreenBlinkBlue{
  0%, 72%, 100%{
    background:#49de84;
    box-shadow:0 0 8px rgba(73,222,132,.95), 0 0 16px rgba(73,222,132,.35);
  }
  75%, 79%{
    background:#5bbcff;
    box-shadow:0 0 10px rgba(91,188,255,1), 0 0 22px rgba(91,188,255,.5);
  }
  82%{
    background:#49de84;
    box-shadow:0 0 8px rgba(73,222,132,.95), 0 0 16px rgba(73,222,132,.35);
  }
}

@keyframes cmOrangeSpike{
  0%, 68%, 100%{
    background:#f69746;
    box-shadow:0 0 8px rgba(246,151,70,.95), 0 0 16px rgba(246,151,70,.35);
  }
  74%{
    background:#ffd84d;
    box-shadow:0 0 12px rgba(255,216,77,1), 0 0 24px rgba(255,216,77,.45);
  }
  80%{
    background:#f69746;
    box-shadow:0 0 8px rgba(246,151,70,.95), 0 0 16px rgba(246,151,70,.35);
  }
}

@keyframes cmRedAlert{
  0%, 78%, 100%{
    background:#ff4d4d;
    box-shadow:0 0 8px rgba(255,77,77,1), 0 0 16px rgba(255,77,77,.4);
    transform: scale(.8);
  }
  82%{
    background:#ff4d4d;
    box-shadow:0 0 14px rgba(255,77,77,1), 0 0 26px rgba(255,77,77,.55);
    transform: scale(1.3);
  }
  90%{
    background:#ff4d4d;
    box-shadow:0 0 14px rgba(255,77,77,1), 0 0 26px rgba(255,77,77,.55);
    transform: scale(1.15);
  }
}



/* Resize vertical LAN so it does not overlap page content */
.cm-vertical-lan{
  width: 110px !important;
  left: 6px !important;
}

.cm-lan-line{
  left: 52px !important;
}

.cm-lan-node{
  width:110px !important;
}

.cm-lan-node svg{
  width:42px !important;
  height:42px !important;
  padding:10px !important;
  border-radius:12px !important;
}



.cm-lan-node::after{
  left:48px !important;
}

@media (max-width:1400px){
  .cm-vertical-lan{
    width:95px !important;
  }
  .cm-lan-node svg{
    width:36px !important;
    height:36px !important;
  }
}


/* Status balls locked inside lower-right corner of each icon */
.cm-lan-node{
  position:absolute !important;
}
.cm-lan-node svg{
  position:relative !important;
  overflow:visible !important;
}


/* For smaller viewport override sizes */
@media (max-width:1400px){
  
}

/* Protocol text that rides with the traffic vertically */
.cm-lan-flow-label{
  position: fixed;
  left: 24px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(234,243,238,0.82);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: rgba(10,14,14,0.52);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 8px 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.16);
  pointer-events: none;
}
.flow-modbus{
  animation: cmFlowModbus 10s linear infinite;
}
.flow-opcua{
  animation: cmFlowOpcua 12s linear infinite;
}
.flow-enip{
  animation: cmFlowEnip 11s linear infinite;
}
.flow-mqtt{
  animation: cmFlowMqtt 13s linear infinite;
}

@keyframes cmFlowModbus{
  0%{ top: 86px; opacity: 0; }
  8%{ opacity: .95; }
  92%{ opacity: .95; }
  100%{ top: calc(100vh - 120px); opacity: 0; }
}
@keyframes cmFlowOpcua{
  0%{ top: 160px; opacity: 0; }
  8%{ opacity: .92; }
  92%{ opacity: .92; }
  100%{ top: calc(100vh - 150px); opacity: 0; }
}
@keyframes cmFlowEnip{
  0%{ top: 250px; opacity: 0; }
  8%{ opacity: .92; }
  92%{ opacity: .92; }
  100%{ top: calc(100vh - 180px); opacity: 0; }
}
@keyframes cmFlowMqtt{
  0%{ top: 320px; opacity: 0; }
  8%{ opacity: .92; }
  92%{ opacity: .92; }
  100%{ top: calc(100vh - 210px); opacity: 0; }
}

@media (max-width:1100px){
  .cm-lan-flow-label{
    display:none;
  }
}



/* Protocol labels aligned on main traffic spine */
.cm-lan-flow-label{
  left: 51px !important;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 7px !important;
  letter-spacing: .06em !important;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: rgba(10,14,14,0.42) !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
  padding: 7px 3px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.14);
}

/* stagger labels directly down the same main line path */
.flow-modbus{ animation: cmFlowMain1 12s linear infinite; }
.flow-opcua{ animation: cmFlowMain2 11s linear infinite; }
.flow-enip{ animation: cmFlowMain3 13s linear infinite; }
.flow-mqtt{ animation: cmFlowMain4 10s linear infinite; }
.flow-scada{ animation: cmFlowMain5 12.5s linear infinite; }
.flow-tcpip{ animation: cmFlowMain6 11.5s linear infinite; }

@keyframes cmFlowMain1{
  0%{ top: 82px; opacity: 0; }
  7%{ opacity: .9; }
  93%{ opacity: .9; }
  100%{ top: calc(100vh - 110px); opacity: 0; }
}
@keyframes cmFlowMain2{
  0%{ top: 132px; opacity: 0; }
  7%{ opacity: .88; }
  93%{ opacity: .88; }
  100%{ top: calc(100vh - 130px); opacity: 0; }
}
@keyframes cmFlowMain3{
  0%{ top: 188px; opacity: 0; }
  7%{ opacity: .88; }
  93%{ opacity: .88; }
  100%{ top: calc(100vh - 150px); opacity: 0; }
}
@keyframes cmFlowMain4{
  0%{ top: 248px; opacity: 0; }
  7%{ opacity: .88; }
  93%{ opacity: .88; }
  100%{ top: calc(100vh - 170px); opacity: 0; }
}
@keyframes cmFlowMain5{
  0%{ top: 308px; opacity: 0; }
  7%{ opacity: .88; }
  93%{ opacity: .88; }
  100%{ top: calc(100vh - 190px); opacity: 0; }
}
@keyframes cmFlowMain6{
  0%{ top: 368px; opacity: 0; }
  7%{ opacity: .88; }
  93%{ opacity: .88; }
  100%{ top: calc(100vh - 210px); opacity: 0; }
}

@media (max-width:1400px){
  .cm-lan-flow-label{
    left: 49px !important;
    font-size: 6px !important;
  }
}



/* Plant-floor device palette */
.node-machine svg,
.node-plc svg,
.node-hmi svg{
  color:#89b4ff;
  box-shadow:0 0 14px rgba(137,180,255,0.28),0 12px 30px rgba(0,0,0,0.35);
}
.node-robot svg,
.node-drive svg{
  color:#f69746;
  box-shadow:0 0 14px rgba(246,151,70,0.30),0 12px 30px rgba(0,0,0,0.35);
}
.node-scada svg,
.node-server svg{
  color:#b46cff;
  box-shadow:0 0 14px rgba(180,108,255,0.30),0 12px 30px rgba(0,0,0,0.35);
}
.node-camera svg,
.node-sensor svg{
  color:#dfea52;
  box-shadow:0 0 14px rgba(223,234,82,0.28),0 12px 30px rgba(0,0,0,0.35);
}

/* Status mapping for plant-floor devices */





/* Remove status balls completely */
.cm-lan-node::before{
  display:none !important;
  content:none !important;
}




/* Evenly stagger plant-floor rail icons and keep branches only where icons exist */
.cm-vertical-lan{
  display: block !important;
}

.node-machine{ top: 0% !important; }
.node-plc{ top: 12.5% !important; }
.node-hmi{ top: 25% !important; }
.node-robot{ top: 37.5% !important; }
.node-drive{ top: 50% !important; }
.node-scada{ top: 62.5% !important; }
.node-camera{ top: 75% !important; }
.node-sensor{ top: 87.5% !important; }
.node-server{ top: 100% !important; transform: translateY(-100%) !important; }

.cm-lan-node{
  height: auto !important;
}

/* Connection branches only on actual icons */
.cm-lan-node::after{
  display: block !important;
}
.cm-vertical-lan > :not(.cm-lan-node)::after{
  display: none !important;
}

/* tighten branch lengths so they visually terminate at icons only */
.cm-lan-node:nth-child(2)::after,
.cm-lan-node:nth-child(4)::after,
.cm-lan-node:nth-child(6)::after,
.cm-lan-node:nth-child(8)::after,
.cm-lan-node:nth-child(10)::after{
  width: 22px !important;
}
.cm-lan-node:nth-child(3)::after,
.cm-lan-node:nth-child(5)::after,
.cm-lan-node:nth-child(7)::after,
.cm-lan-node:nth-child(9)::after{
  width: 14px !important;
}



/* Refine rail size/alignment and mobile stacking */
.cm-vertical-lan{
  width: 86px !important;
  left: 2px !important;
}
.cm-lan-line{
  left: 40px !important;
  width: 2px !important;
}
.cm-lan-node{
  width: 86px !important;
}
.cm-lan-node svg{
  width: 30px !important;
  height: 30px !important;
  padding: 8px !important;
  border-radius: 10px !important;
}
.cm-lan-node:nth-child(2),
.cm-lan-node:nth-child(4),
.cm-lan-node:nth-child(6),
.cm-lan-node:nth-child(8),
.cm-lan-node:nth-child(10){
  left: 0 !important;
  align-items: flex-start !important;
}
.cm-lan-node:nth-child(3),
.cm-lan-node:nth-child(5),
.cm-lan-node:nth-child(7),
.cm-lan-node:nth-child(9){
  left: 8px !important;
  align-items: flex-end !important;
}

/* Branches aligned to icon centers */
.cm-lan-node::after{
  top: 24px !important;
  height: 2px !important;
}
.cm-lan-node:nth-child(2)::after,
.cm-lan-node:nth-child(4)::after,
.cm-lan-node:nth-child(6)::after,
.cm-lan-node:nth-child(8)::after,
.cm-lan-node:nth-child(10)::after{
  left: 38px !important;
  width: 14px !important;
}
.cm-lan-node:nth-child(3)::after,
.cm-lan-node:nth-child(5)::after,
.cm-lan-node:nth-child(7)::after,
.cm-lan-node:nth-child(9)::after{
  left: 34px !important;
  width: 10px !important;
}

/* Protocol tags centered on the main line */
.cm-lan-flow-label{
  left: 40px !important;
  transform: translateX(-50%) !important;
  padding: 6px 2px !important;
  font-size: 6px !important;
  letter-spacing: .04em !important;
  line-height: 1 !important;
}

/* Mobile: no stagger, all inline vertically */
@media (max-width: 1100px){
  .cm-vertical-lan{
    display:block !important;
    width: 62px !important;
    left: 0 !important;
  }
  .cm-lan-line{
    left: 28px !important;
  }
  .cm-lan-node{
    width: 62px !important;
    left: 0 !important;
    align-items: center !important;
  }
  .cm-lan-node svg{
    width: 24px !important;
    height: 24px !important;
    padding: 6px !important;
  }
  .cm-lan-node:nth-child(2),
  .cm-lan-node:nth-child(3),
  .cm-lan-node:nth-child(4),
  .cm-lan-node:nth-child(5),
  .cm-lan-node:nth-child(6),
  .cm-lan-node:nth-child(7),
  .cm-lan-node:nth-child(8),
  .cm-lan-node:nth-child(9),
  .cm-lan-node:nth-child(10){
    left: 0 !important;
    align-items: center !important;
  }
  .cm-lan-node::after{
    left: 28px !important;
    width: 0 !important;
    display: none !important;
  }
  .cm-lan-flow-label{
    left: 28px !important;
    font-size: 5px !important;
  }
}
@media (max-width: 760px){
  .cm-vertical-lan{
    display:none !important;
  }
  .cm-lan-flow-label{
    display:none !important;
  }
}


/* Mobile menu */
.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border:none;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:10px;
  padding:0;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  background:var(--off-white);
  border-radius:999px;
  transition:transform .2s ease, opacity .2s ease;
}
nav.is-open .nav-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
nav.is-open .nav-toggle span:nth-child(2){ opacity:0; }
nav.is-open .nav-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* Improve background while content loads and during overscroll */
html, body{
  background:#080B0A !important;
}
body{
  overscroll-behavior-y:none;
}

@media (max-width:980px){
  nav{
    padding:0 1rem;
    height:64px;
  }
  .nav-toggle{
    display:inline-flex;
    order:3;
  }
  .nav-cta{
    display:none !important;
  }
  .nav-links{
    position:absolute;
    top:64px;
    left:1rem;
    right:1rem;
    display:none !important;
    flex-direction:column;
    gap:0;
    background:rgba(8,12,10,0.96);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 16px 36px rgba(0,0,0,0.28);
    padding:.4rem 0;
  }
  nav.is-open .nav-links{
    display:flex !important;
  }
  .nav-links li{
    width:100%;
  }
  .nav-links a{
    display:block;
    padding:.9rem 1rem;
    font-size:13px;
  }

  /* hide LAN rail on mobile/tablet */
  .cm-vertical-lan,
  .cm-lan-flow-label{
    display:none !important;
  }
}


/* Mobile menu - corrected */
nav{
  position:fixed;
}
.nav-toggle{
  display:none;
  width:42px;
  height:42px;
  border:none;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:10px;
  padding:0;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  margin-left:auto;
}
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  background:var(--off-white);
  border-radius:999px;
  transition:transform .2s ease, opacity .2s ease;
}
nav.is-open .nav-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
nav.is-open .nav-toggle span:nth-child(2){ opacity:0; }
nav.is-open .nav-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

html, body{
  background:#080B0A !important;
}
body{
  overscroll-behavior-y:none;
}

@media (max-width:980px){
  nav{
    padding:0 1rem !important;
    height:64px !important;
    gap:.75rem;
  }
  .nav-logo{
    flex:1 1 auto;
    min-width:0;
  }
  .nav-logo img{
    max-width:170px;
    height:auto;
    max-height:40px;
  }
  .nav-toggle{
    display:inline-flex !important;
    order:3;
    flex:0 0 auto;
  }
  .nav-cta{
    display:none !important;
  }
  .nav-links{
    position:absolute !important;
    top:64px !important;
    left:1rem !important;
    right:1rem !important;
    display:none !important;
    flex-direction:column !important;
    gap:0 !important;
    background:rgba(8,12,10,0.97) !important;
    border:1px solid rgba(255,255,255,0.08) !important;
    border-radius:16px !important;
    overflow:hidden !important;
    box-shadow:0 16px 36px rgba(0,0,0,0.28) !important;
    padding:.4rem 0 !important;
    z-index:1001;
  }
  nav.is-open .nav-links{
    display:flex !important;
  }
  .nav-links li{
    width:100% !important;
  }
  .nav-links a{
    display:block !important;
    padding:.9rem 1rem !important;
    font-size:13px !important;
  }

  /* hide LAN rail and protocol labels on mobile/tablet */
  .cm-vertical-lan,
  .cm-lan-flow-label{
    display:none !important;
  }
}


/* Mobile nav + performance/background fixes */
html, body{
  background:#080B0A !important;
}
body{
  overscroll-behavior-y:none;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:#080B0A;
  z-index:-1;
}

.nav-toggle{
  display:none;
  width:42px;
  height:42px;
  padding:0;
  margin-left:auto;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  border:none;
  border-radius:10px;
  background:rgba(255,255,255,0.04);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.08);
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  border-radius:999px;
  background:var(--off-white);
  transition:transform .2s ease, opacity .2s ease;
}
nav.is-open .nav-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
nav.is-open .nav-toggle span:nth-child(2){ opacity:0; }
nav.is-open .nav-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:980px){
  nav{
    padding:0 1rem !important;
    height:64px !important;
    gap:.75rem !important;
  }
  .nav-logo{
    flex:1 1 auto !important;
    min-width:0 !important;
  }
  .nav-logo img{
    max-width:170px !important;
    max-height:40px !important;
    height:auto !important;
    width:auto !important;
  }
  .nav-cta{
    display:none !important;
  }
  .nav-toggle{
    display:inline-flex !important;
    flex:0 0 auto !important;
  }
  .nav-links{
    position:absolute !important;
    top:64px !important;
    left:1rem !important;
    right:1rem !important;
    display:none !important;
    flex-direction:column !important;
    gap:0 !important;
    list-style:none !important;
    margin:0 !important;
    padding:.35rem 0 !important;
    background:rgba(8,12,10,0.98) !important;
    border-radius:16px !important;
    box-shadow:0 16px 36px rgba(0,0,0,0.28), inset 0 0 0 1px rgba(255,255,255,0.08) !important;
    z-index:1002 !important;
  }
  nav.is-open .nav-links{
    display:flex !important;
  }
  .nav-links li{
    width:100% !important;
  }
  .nav-links a{
    display:block !important;
    padding:.9rem 1rem !important;
  }

  /* Hide the left LAN rail on mobile/tablet */
  .cm-vertical-lan,
  .cm-lan-flow-label{
    display:none !important;
  }

  /* Reduce heavy visual effects on mobile */
  .hero-video-bg iframe,
  .hero-right .terminal,
  .hero .hero-right .terminal{
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }
}
