@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --aub-cyan: #0099B5;
  --aub-night: #003244;
  --aub-white: #ffffff;
  --bg: #001d28;
  --bg-soft: #003244;
  --panel: rgba(0, 50, 68, 0.72);
  --panel-strong: rgba(0, 50, 68, 0.92);
  --line: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: #b9d4dc;
  --cyan: #0099B5;
  --blue: #0099B5;
  --violet: #ffffff;
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 153, 181, 0.32), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.10), transparent 24rem),
    radial-gradient(circle at 50% 92%, rgba(0, 153, 181, 0.16), transparent 30rem),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.aurora {
  position: fixed;
  width: 36rem;
  height: 36rem;
  z-index: -3;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
  animation: floatAurora 12s ease-in-out infinite alternate;
}

.aurora-1 {
  top: -12rem;
  left: -8rem;
  background: var(--aub-cyan);
}

.aurora-2 {
  right: -12rem;
  bottom: 4rem;
  background: var(--aub-white);
  animation-delay: -5s;
}

@keyframes floatAurora {
  to {
    transform: translate3d(5rem, 3rem, 0) scale(1.1);
  }
}

.nav-blur {
  border-bottom: 1px solid var(--line);
  background: rgba(0, 50, 68, 0.86);
  backdrop-filter: blur(20px);
}

.navbar-brand {
  letter-spacing: -0.03em;
}

.brand-logo {
  max-width: 9.8rem;
  max-height: 2.45rem;
  object-fit: contain;
  padding: 0.18rem 0.55rem 0.18rem 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-wording {
  display: inline-grid;
  line-height: 1.05;
}

.brand-wording small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  max-width: 44rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(0, 153, 181, 0.42);
  border-radius: 1.2rem;
  color: var(--aub-white);
  background: rgba(0, 153, 181, 0.12);
  box-shadow: 0 0 34px rgba(0, 153, 181, 0.12);
}

.brand-note i {
  color: var(--aub-cyan);
  font-size: 1.15rem;
}

.brand-mark,
.detail-icon,
.metric-icon {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(0, 153, 181, 0.32);
  color: var(--cyan);
  background: rgba(0, 153, 181, 0.10);
  box-shadow: 0 0 28px rgba(0, 153, 181, 0.18);
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.9rem;
}

.fw-black {
  font-weight: 900;
  letter-spacing: -0.065em;
}

.gradient-text {
  display: block;
  background: linear-gradient(100deg, var(--aub-white), var(--aub-cyan), var(--aub-white));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-section {
  position: relative;
  padding-top: 3.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(0, 153, 181, 0.22);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(0, 153, 181, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-title {
  line-height: 0.92;
}

.btn-glow,
.btn-primary {
  border: 0;
  color: var(--aub-night);
  background: linear-gradient(135deg, var(--aub-cyan), var(--aub-white));
  box-shadow: 0 0 32px rgba(0, 153, 181, 0.24);
}

.btn-glow:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.stat-tile,
.glass-card,
.hero-orb-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.stat-tile {
  padding: 1rem;
  border-radius: 1.35rem;
}

.stat-value {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.stat-unit {
  color: var(--cyan);
  font-weight: 800;
  margin-left: 0.1rem;
}

.stat-tile small {
  display: block;
  color: var(--muted);
}

.hero-orb-card {
  position: relative;
  min-height: 34rem;
  display: grid;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
  border-radius: 2rem;
}

.hero-orb-card::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 153, 181, 0.22), transparent 62%);
  filter: blur(30px);
  animation: pulseHalo 4s ease-in-out infinite;
}

@keyframes pulseHalo {
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

.orb-wrap {
  position: relative;
  width: min(27rem, 78vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.core-orb {
  position: relative;
  z-index: 3;
  width: 13rem;
  height: 13rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.4rem;
  border: 1px solid rgba(0, 153, 181, 0.40);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(145deg, rgba(14, 165, 233, 0.38), rgba(124, 58, 237, 0.24));
  box-shadow:
    inset 0 0 40px rgba(255, 255, 255, 0.12),
    0 0 80px rgba(0, 153, 181, 0.28);
}

.core-orb i {
  font-size: 2.5rem;
  color: var(--cyan);
}

.core-orb strong {
  display: block;
  font-size: 1.3rem;
}

.core-orb small {
  color: #b9d4dc;
}

.orbit {
  position: absolute;
  inset: 1.5rem;
  border: 1px dashed rgba(148, 163, 184, 0.30);
  border-radius: 999px;
  animation: rotateOrbit 16s linear infinite;
}

.orbit-b {
  inset: 3.5rem;
  animation-duration: 12s;
  animation-direction: reverse;
}

.orbit-c {
  inset: 5.5rem;
  animation-duration: 9s;
}

.orbit span {
  position: absolute;
  left: 50%;
  top: -1.1rem;
  transform: translateX(-50%);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: var(--bg);
  background: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(0, 153, 181, 0.36);
}

@keyframes rotateOrbit {
  to {
    transform: rotate(360deg);
  }
}

.glass-caption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(3, 7, 18, 0.62);
  backdrop-filter: blur(18px);
}

.glass-caption span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.glass-caption i {
  color: var(--cyan);
  font-size: 1.7rem;
}

.section-pad {
  padding: 6rem 0;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 3rem;
}

.glass-card {
  border-radius: 1.6rem;
}

.topology-card {
  position: relative;
  padding: 1.2rem;
  overflow: hidden;
}

.topology-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(52, 211, 153, 0.30);
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(52, 211, 153, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
}

.live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
  animation: ping 1.4s infinite;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 0.55rem rgba(52, 211, 153, 0);
  }
}

.svg-shell {
  width: 100%;
  min-height: 29rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 153, 181, 0.08), transparent 34%),
    rgba(2, 6, 23, 0.38);
  overflow: hidden;
}

svg {
  display: block;
  width: 100%;
  height: auto;
}

.flow-line {
  fill: none;
  stroke: rgba(148, 163, 184, 0.34);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 12;
  animation: dashFlow 2.4s linear infinite;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -40;
  }
}

.packet {
  fill: var(--cyan);
  filter: url(#softGlow);
  opacity: 0.9;
}

.packet-b {
  fill: var(--green);
}

.packet-c {
  fill: var(--violet);
}

.node,
.service-node,
.cap-card,
.control-chip {
  cursor: pointer;
}

.node circle {
  fill: rgba(15, 23, 42, 0.92);
  stroke: rgba(0, 153, 181, 0.38);
  stroke-width: 2;
  transition: 250ms ease;
}

.node:hover circle,
.node.active circle,
.service-node:hover circle,
.service-node.active circle {
  stroke: var(--cyan);
  filter: url(#softGlow);
}

.external-node:hover {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodeBump 650ms ease;
}

@keyframes nodeBump {
  45% {
    scale: 1.06;
  }
}

.edge-ring {
  fill: transparent !important;
  stroke: url(#edgeGradient) !important;
  stroke-width: 3 !important;
  stroke-dasharray: 14 10;
  animation: rotateStroke 12s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.edge-core {
  fill: rgba(3, 7, 18, 0.78) !important;
  stroke: rgba(0, 153, 181, 0.55) !important;
}

@keyframes rotateStroke {
  to {
    transform: rotate(360deg);
  }
}

.node-html {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.1rem;
  color: var(--text);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.node-html i {
  color: var(--cyan);
  font-size: 1.55rem;
}

.node-html small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
}

.edge-html span {
  font-size: 0.92rem;
}

.service-node circle {
  fill: rgba(0, 153, 181, 0.10);
  stroke: rgba(0, 153, 181, 0.35);
  stroke-width: 2;
  transition: 220ms ease;
}

.service-node text {
  text-anchor: middle;
  fill: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  pointer-events: none;
}

.service-node.active circle {
  fill: rgba(0, 153, 181, 0.22);
}

.threat-particle {
  opacity: 0;
  filter: url(#softGlow);
  transition: opacity 300ms ease;
}

.threat-particle.active {
  opacity: 1;
}

.threat-particle circle:first-child {
  fill: var(--red);
}

.threat-pulse {
  fill: transparent;
  stroke: var(--red);
  stroke-width: 2;
  transform-origin: center;
  animation: threatPulse 850ms ease-out infinite;
}

@keyframes threatPulse {
  to {
    r: 27;
    opacity: 0;
  }
}

.topology-card.threat-mode .flow-line {
  stroke: rgba(251, 113, 133, 0.58);
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.legend-dot {
  display: inline-block;
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 999px;
  margin-right: 0.35rem;
}

.legend-dot.normal {
  background: var(--cyan);
}

.legend-dot.inspect {
  background: var(--yellow);
}

.legend-dot.threat {
  background: var(--red);
}

.detail-card {
  padding: 1.35rem;
}

.detail-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1.1rem;
  font-size: 1.45rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tag-cloud span {
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
}

.trust-panel {
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.2rem;
  background: rgba(2, 6, 23, 0.34);
}

.form-range::-webkit-slider-thumb {
  background: var(--cyan);
  box-shadow: 0 0 0 0.35rem rgba(0, 153, 181, 0.16);
}

.form-range::-moz-range-thumb {
  background: var(--cyan);
  box-shadow: 0 0 0 0.35rem rgba(0, 153, 181, 0.16);
}

.trust-meter {
  height: 0.6rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.trust-meter span {
  display: block;
  width: 22%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
  transition: width 240ms ease;
}

.timeline-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  font-weight: 800;
}

.event-log {
  display: grid;
  gap: 0.75rem;
  max-height: 15.5rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.event-item {
  position: relative;
  padding: 0.85rem 0.85rem 0.85rem 2.35rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.52);
  animation: slideIn 360ms ease both;
}

.event-item::before {
  content: "";
  position: absolute;
  left: 0.86rem;
  top: 1rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 153, 181, 0.32);
}

.event-item.danger::before {
  background: var(--red);
  box-shadow: 0 0 18px rgba(251, 113, 133, 0.36);
}

.event-item.success::before {
  background: var(--green);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.36);
}

.event-item strong {
  display: block;
  font-size: 0.88rem;
}

.event-item small {
  color: var(--muted);
}

@keyframes slideIn {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
}

.cap-card {
  position: relative;
  min-height: 15rem;
  padding: 1.35rem;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.cap-card::after {
  content: "";
  position: absolute;
  right: -3rem;
  top: -3rem;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: rgba(0, 153, 181, 0.10);
  filter: blur(8px);
}

.cap-card:hover,
.cap-card.active {
  transform: translateY(-6px);
  border-color: rgba(0, 153, 181, 0.45);
  background:
    linear-gradient(145deg, rgba(0, 153, 181, 0.12), rgba(167, 139, 250, 0.06)),
    var(--panel);
}

.cap-card > i {
  display: inline-grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 153, 181, 0.28);
  border-radius: 1rem;
  color: var(--cyan);
  background: rgba(0, 153, 181, 0.08);
  font-size: 1.35rem;
}

.cap-card h3 {
  font-size: 1.3rem;
  font-weight: 900;
}

.cap-card p {
  color: var(--muted);
}

.control-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.control-chip {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  padding: 0.6rem 0.9rem;
  font-weight: 800;
  transition: 200ms ease;
}

.control-chip:hover,
.control-chip.active {
  border-color: rgba(0, 153, 181, 0.46);
  color: #06111f;
  background: var(--cyan);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  height: 100%;
}

.metric-card {
  position: relative;
  min-height: 12.5rem;
  padding: 1.2rem;
  overflow: hidden;
  transition: 220ms ease;
}

.metric-card.hide {
  opacity: 0.16;
  transform: scale(0.98);
  filter: grayscale(1);
}

.metric-icon {
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
}

.metric-icon.success {
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
}

.metric-icon.info {
  border-color: rgba(0, 153, 181, 0.35);
  color: var(--cyan);
  background: rgba(0, 153, 181, 0.08);
}

.metric-icon.danger {
  border-color: rgba(251, 113, 133, 0.35);
  color: var(--red);
  background: rgba(251, 113, 133, 0.08);
}

.metric-icon.warning {
  border-color: rgba(251, 191, 36, 0.35);
  color: var(--yellow);
  background: rgba(251, 191, 36, 0.08);
}

.metric-card small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.spark {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  height: 2.4rem;
  opacity: 0.8;
  background:
    linear-gradient(110deg, transparent 0 8%, rgba(0, 153, 181, 0.0) 8%),
    repeating-linear-gradient(90deg, transparent 0 8%, rgba(0, 153, 181, 0.24) 8% 10%, transparent 10% 18%);
  clip-path: polygon(0 78%, 8% 58%, 17% 66%, 26% 36%, 37% 55%, 48% 25%, 62% 44%, 72% 20%, 85% 36%, 100% 12%, 100% 100%, 0 100%);
  animation: sparkMove 3.3s ease-in-out infinite alternate;
}

.spark-b {
  animation-delay: -0.9s;
}

.spark-c {
  animation-delay: -1.7s;
}

.spark-d {
  animation-delay: -2.4s;
}

@keyframes sparkMove {
  to {
    transform: translateX(0.8rem) scaleY(1.12);
    opacity: 1;
  }
}

footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.38);
}

@media (max-width: 991.98px) {
  .hero-stats,
  .telemetry-grid {
    grid-template-columns: 1fr;
  }

  .hero-orb-card {
    min-height: 28rem;
  }

  .topology-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .svg-shell {
    min-height: 20rem;
  }
}

@media (max-width: 575.98px) {
  .section-pad {
    padding: 4rem 0;
  }

  .hero-section {
    padding-top: 5rem;
  }

  .glass-caption {
    position: static;
    margin-top: 1rem;
  }

  .hero-orb-card {
    min-height: auto;
  }

  .orb-wrap {
    width: 19rem;
  }

  .core-orb {
    width: 10rem;
    height: 10rem;
  }
}


.footer-brand {
  display: grid;
  gap: 0.25rem;
}

.footer-brand strong {
  color: var(--aub-white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.footer-links a {
  color: var(--aub-white);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--aub-cyan);
}

.legal-main {
  padding-top: 7.5rem;
  padding-bottom: 5rem;
}

.legal-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.legal-card h1,
.legal-card h2 {
  font-weight: 900;
}

.legal-card h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card .important-note {
  border: 1px solid rgba(0, 153, 181, 0.44);
  border-radius: 1.2rem;
  padding: 1rem;
  color: var(--aub-white);
  background: rgba(0, 153, 181, 0.12);
}

.legal-card a {
  color: var(--aub-white);
  font-weight: 800;
}

.legal-card a:hover {
  color: var(--aub-cyan);
}

@media (max-width: 575.98px) {
  .brand-logo {
    max-width: 6.5rem;
  }

  .brand-wording small {
    display: none;
  }
}
