/* Axon Vista — brand tokens */
:root {
  --color-bg: #1a1a1a;
  --color-surface: #242424;
  --color-surface-elevated: #2e2e2e;
  --color-accent: #00aeef;
  --color-accent-hover: #33c1f5;
  --color-text: #f5f5f5;
  --color-text-muted: #a3a3a3;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --header-h: 72px;
  --container: min(1100px, 92vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--color-accent-hover);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: var(--color-bg);
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container--narrow {
  max-width: 560px;
  text-align: center;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 clamp(1rem, 4vw, 2rem);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled .nav {
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 174, 239, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
  font-weight: 600;
}

.nav__brand:hover {
  color: var(--color-accent);
}

.nav__icon {
  border-radius: 6px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav__menu a:hover,
.nav__menu a:focus-visible {
  color: var(--color-text);
}

.nav__cta {
  padding: 0.45rem 1rem;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-accent) !important;
}

.nav__cta:hover {
  background: rgba(0, 174, 239, 0.12);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.nav__toggle-bar {
  position: relative;
}

.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle-bar::before {
  top: -7px;
}

.nav__toggle-bar::after {
  top: 7px;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 40% at 30% 40%, rgba(0, 174, 239, 0.12), transparent 70%),
    radial-gradient(ellipse 45% 35% at 70% 60%, rgba(0, 120, 200, 0.08), transparent 70%);
  animation: mesh-breathe 8s ease-in-out infinite alternate;
}

@keyframes mesh-breathe {
  0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
  100% { transform: scale(1.05) translate(1%, -1%); opacity: 1; }
}

.hero__network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero__node {
  fill: var(--color-accent);
  opacity: 0.5;
}

.hero__link {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1;
  opacity: 0.25;
}

.hero__synapse {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-accent);
  opacity: 0.4;
}

.synapse-line {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: synapse-draw 1.2s ease-out 0.3s forwards;
}

.synapse-dot {
  fill: var(--color-accent);
  opacity: 0;
}

.synapse-dot--l {
  animation: dot-in 0.4s ease 1.2s forwards;
}

.synapse-dot--r {
  animation: dot-in 0.4s ease 1.4s forwards;
}

@keyframes synapse-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes dot-in {
  to { opacity: 1; }
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
}

.hero__logo-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 1rem;
  max-width: min(480px, 88vw);
  border-radius: 12px;
  transition: box-shadow 0.25s ease;
}

.hero__logo-wrap:hover {
  box-shadow: 0 0 20px rgba(0, 174, 239, 0.45);
}

.hero__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin: 0;
  opacity: 0;
  transform: scale(0.96);
  animation: logo-emerge 0.8s ease 0.5s forwards;
  filter: drop-shadow(0 0 12px rgba(0, 174, 239, 0.2));
  transition: filter 0.25s ease;
  cursor: default;
}

.hero__logo-wrap:hover .hero__logo {
  filter: drop-shadow(0 0 12px rgba(0, 174, 239, 0.2));
}

@keyframes logo-emerge {
  to {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 12px rgba(0, 174, 239, 0.2));
  }
}

.hero__tagline {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
}

/* Signal Pathway */
.pathway {
  margin: 0 auto 2rem;
  max-width: 520px;
}

.pathway__nodes {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.pathway__node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.pathway__node:hover,
.pathway__node:focus-visible {
  color: var(--color-text);
  outline: none;
}

.pathway__node.is-active {
  color: var(--color-accent);
}

.pathway__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: var(--color-bg);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.pathway__node.is-active .pathway__dot {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 12px rgba(0, 174, 239, 0.6);
}

.pathway__track {
  position: relative;
  height: 4px;
  margin-bottom: 1rem;
  background: var(--color-surface);
  border-radius: 2px;
  overflow: hidden;
}

.pathway__line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.3;
}

.pathway__traveler {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  margin-left: -5px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent);
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pathway__panel {
  min-height: 3rem;
}

.pathway__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: opacity 0.35s ease;
}

.pathway__text.is-fading {
  opacity: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid var(--color-accent);
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  color: var(--color-bg);
  background: var(--color-accent);
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent-hover);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  z-index: -1;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  color: var(--color-bg);
  box-shadow: 0 0 20px rgba(0, 174, 239, 0.45);
}

.btn--primary:hover::before,
.btn--primary:focus-visible::before {
  transform: scaleX(1);
}

.btn--secondary {
  color: var(--color-accent);
  background: transparent;
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: rgba(0, 174, 239, 0.1);
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
  position: relative;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  text-align: center;
}

.section__lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0 auto 2.5rem;
  max-width: 52ch;
  text-align: center;
}

/* About — dual layer + scan */
.about {
  background: linear-gradient(90deg, #1c1c1e 0%, #1c1c1e 50%, #222228 50%, #222228 100%);
  overflow: hidden;
}

.about.is-visible .about__scan {
  animation: scan-line 1.2s ease 0.2s forwards;
}

.about__scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}

@keyframes scan-line {
  0% { transform: scaleX(0); opacity: 1; left: 0; }
  100% { transform: scaleX(1); opacity: 0; left: 0; }
}

.about__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.about__grid p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Cards */
.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards--product {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  position: relative;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(0, 174, 239, 0.35);
}

.card:hover::before,
.card:focus-within::before {
  width: 200%;
  height: 200%;
  opacity: 1;
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--color-accent);
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.product__pricing {
  text-align: center;
  color: var(--color-text-muted);
  margin: 2rem 0 1.5rem;
}

.product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Tech landscape */
.tech-landscape {
  margin-top: 0.5rem;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.tech-landscape__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 auto 0;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.tech-landscape__brand:hover {
  border-color: rgba(0, 174, 239, 0.35);
  background: rgba(0, 174, 239, 0.04);
  box-shadow:
    0 0 0 1px rgba(0, 174, 239, 0.15),
    0 0 20px rgba(0, 174, 239, 0.18),
    0 0 40px rgba(0, 174, 239, 0.08);
}

.tech-landscape__icon {
  border-radius: 8px;
  transition: filter 0.25s ease;
}

.tech-landscape__brand:hover .tech-landscape__icon {
  filter: brightness(1.12) drop-shadow(0 0 10px rgba(0, 174, 239, 0.45));
}

.tech-landscape__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.tech-landscape__badge-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.tech-landscape__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.tech-landscape__row--cloud {
  max-width: 420px;
}

.tech-landscape__row .reveal:nth-child(1) { transition-delay: 0ms; }
.tech-landscape__row .reveal:nth-child(2) { transition-delay: 50ms; }
.tech-landscape__row .reveal:nth-child(3) { transition-delay: 100ms; }
.tech-landscape__row .reveal:nth-child(4) { transition-delay: 150ms; }
.tech-landscape__row .reveal:nth-child(5) { transition-delay: 200ms; }
.tech-landscape__row .reveal:nth-child(6) { transition-delay: 250ms; }

.tech-landscape__row--cloud .reveal:nth-child(1) { transition-delay: 300ms; }
.tech-landscape__row--cloud .reveal:nth-child(2) { transition-delay: 350ms; }
.tech-landscape__row--cloud .reveal:nth-child(3) { transition-delay: 400ms; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 7.25rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface-elevated);
  border: 1px solid rgba(0, 174, 239, 0.2);
  border-radius: 999px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.badge__icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  object-fit: contain;
}

.badge__label {
  line-height: 1;
}

.badge:hover,
.badge:focus-visible {
  border-color: rgba(0, 174, 239, 0.55);
  background: #2a2a2e;
  box-shadow:
    0 0 0 1px rgba(0, 174, 239, 0.2),
    0 0 20px rgba(0, 174, 239, 0.18),
    0 0 40px rgba(0, 174, 239, 0.08);
  transform: none;
  outline: none;
}

.badge:hover .badge__icon,
.badge:focus-visible .badge__icon {
  filter: brightness(1.12);
}

/* Contact */
.contact__lead {
  margin-bottom: 1.5rem;
  max-width: none;
}

.contact__rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 340px;
  margin-inline: auto;
}

.contact__row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1rem;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  color: var(--color-text);
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact__row:hover,
.contact__row:focus-visible {
  color: var(--color-text);
  border-color: rgba(0, 174, 239, 0.4);
  box-shadow: 0 0 16px rgba(0, 174, 239, 0.15);
  transform: translateY(-1px);
  outline: none;
}

.contact__icon {
  flex-shrink: 0;
  color: var(--color-accent);
}

.contact__text {
  font-size: 1rem;
}

/* Footer */
.site-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer__inner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section.reveal.is-visible {
  animation: vista-flash 0.4s ease;
}

@keyframes vista-flash {
  0% { box-shadow: inset 0 2px 0 var(--color-accent); }
  100% { box-shadow: inset 0 0 0 transparent; }
}

.cards .reveal:nth-child(1) { transition-delay: 0ms; }
.cards .reveal:nth-child(2) { transition-delay: 80ms; }
.cards .reveal:nth-child(3) { transition-delay: 160ms; }
.cards .reveal:nth-child(4) { transition-delay: 240ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__logo {
    opacity: 1;
    transform: none;
  }

  .synapse-line {
    stroke-dashoffset: 0;
  }

  .synapse-dot {
    opacity: 1;
  }

  .hero__mesh {
    animation: none;
  }
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 174, 239, 0.2);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }

  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__menu li {
    width: 100%;
    text-align: center;
  }

  .nav__menu a {
    display: block;
    padding: 0.85rem 1.5rem;
  }
}
