.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  transition: background 200ms ease, box-shadow 200ms ease;
  background: transparent;
}
.nav.scrolled {
  background: var(--secondary-white);
  color: var(--dark-ink);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.nav .logo {
  font-weight: 500;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}
.nav a {
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent-electric);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.nav a:hover {
  transform: scale(1.03);
}
.nav a:hover::after {
  transform: scaleX(1);
}
.hero {
  min-height: 100vh;
  background: var(--primary-blue);
  background-image: linear-gradient(
      rgba(0, 128, 128, 0.65),
      rgba(10, 15, 20, 0.65)
    ),
    url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}
.hero-inner {
  text-align: center;
  max-width: 840px;
  padding: 24px;
  position: relative;
  z-index: 2;
}
.hero-focus {
  position: relative;
  display: inline-block;
}
.hero-focus::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: calc(100% + 48px);
  aspect-ratio: 1/1;
  border: 3px solid var(--secondary-white);
  border-radius: 0;
  opacity: 0;
  transition: opacity 1200ms ease,
    transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}
.hero-focus.box-reveal::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.hero-focus-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.96;
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1), opacity 900ms ease;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.hero-focus.box-final {
  width: var(--box-size);
  height: var(--box-size);
}
.hero-focus.box-final::before {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  opacity: 1;
}
.hero-focus.box-final .hero-focus-content {
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(0.6);
  transform-origin: left bottom;
  opacity: 1;
}
.hero-explore {
  position: fixed;
  right: 32px;
  bottom: 50px;
  transform: translateX(12px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary-white);
  text-decoration: none;
  opacity: 0;
  transition: opacity 600ms ease,
    transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 10;
}
.hero-arrow {
  color: var(--secondary-white);
}

.cta-visible.hero-explore {
  opacity: 1;
  transform: translateX(0);
}
.hero .btn {
  margin-top: 16px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 64px);
  margin: 0 0 8px;
  white-space: nowrap;
}
.hero-sub {
  font-size: clamp(24px, 4vw, 48px);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  line-height: 1;
}
.glitch,
.typewriter,
.dot {
  line-height: 1;
}
.hero-copy {
  max-width: 720px;
  margin: 100px auto 24px;
}
.section {
  padding: 96px 0;
  background: var(--dark-ink);
}
.services {
  background: linear-gradient(180deg, rgba(0, 128, 128, 0.20), rgba(0, 128, 128, 0.35));
}
.contact {
  background: linear-gradient(180deg, rgba(0, 128, 128, 0.20), rgba(0, 128, 128, 0.35));
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.card {
  background: #0e1620;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.15);
}
.card .icon {
  width: 36px;
  height: 36px;
  color: var(--accent-electric);
}
.card-title {
  font-weight: 700;
  margin-top: 8px;
}
.card-text {
  opacity: 0.9;
}
.feature-list {
  margin: 12px 0 0 0;
  padding-left: 20px;
  opacity: 0.85;
}
.feature-list li {
  margin: 4px 0;
}
.network {
  margin-top: 24px;
}
.network .node {
  fill: var(--accent-electric);
}
.network .link {
  fill: none;
  stroke: var(--accent-electric);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
}
.security-visual {
  position: relative;
  height: 220px;
  border-radius: 12px;
  background: #0e1620;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.security-visual .device {
  position: absolute;
  inset: 24px 24px 24px 24px;
  border-radius: 8px;
  background: #0e1620;
}
.security-image { width:100%; height:100%; object-fit: cover; display:block; border-radius:8px; position:relative; z-index:1; }
.security-illustration { width: 100%; height: 100%; }
.security-visual .beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.7) 50%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0.8;
  transform: translateX(-100%);
  z-index: 2;
}
.security-content {
  margin-top: 16px;
}
.security-subtitle {
  margin: 12px 0 4px;
}
.security-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #0e1620;
}
.panel-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.panel-body { padding: 12px; }
.panel-title { font-weight: 700; }
.panel-desc { opacity: 0.9; }
.contact .btn {
  margin-top: 16px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 8px 0 4px;
}
.site-footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: center;
}
.tracer-canvas {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.preloader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--dark-ink);
  z-index: 100;
}
.preloader-text {
  font-size: 20px;
  color: #fff;
}
.section-title {
  font-size: 28px;
  margin: 0 0 8px;
}
.section-desc {
  opacity: 0.9;
  margin: 0 0 16px;
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 380ms ease, transform 380ms ease;
}
@media (max-width: 768px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .nav-links {
    gap: 16px;
  }
}
