/* Manta Labs — ARK + ARK Commander site */
@import url("colors_and_type.css");

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body {
  background: var(--c-deep-navy);
  color: var(--fg);
  min-height: 100vh;
  font: var(--type-body-md);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ================ NAV ================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(11, 19, 38, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav .brand {
  display: flex; align-items: center; gap: 10px;
  font: 700 17px/1 var(--font-display);
  letter-spacing: 0.04em;
  color: var(--fg);
  cursor: pointer;
}
.nav .brand img { width: 26px; height: 26px; }
.nav .brand .labs { color: var(--c-aqua); font-weight: 500; letter-spacing: 0.18em; font-size: 11px; margin-left: 4px; }
.nav .links { list-style: none; display: flex; gap: 28px; margin-left: 8px; }
.nav .links a {
  font: 500 14px/1 var(--font-body);
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 220ms var(--ease-out);
  background: none; border: none; padding: 0;
}
.nav .links a:hover, .nav .links a.active { color: var(--c-aqua); }
.nav .spacer { margin-left: auto; }
.nav .sign-in {
  font: 500 14px/1 var(--font-body);
  color: var(--fg-muted);
  cursor: pointer;
}
.nav .sign-in:hover { color: var(--c-aqua); }
.nav .cta {
  font: 600 14px/1 var(--font-body);
  background: var(--c-deep-teal);
  color: var(--fg);
  padding: 10px 16px; border-radius: 8px; border: none;
  cursor: pointer;
  transition: all 220ms var(--ease-out);
}
.nav .cta:hover { background: var(--primary-hover); box-shadow: 0 0 24px rgba(73,197,182,0.25); }
.nav .menu-btn {
  display: none;
  background: transparent; border: 1px solid var(--border);
  width: 40px; height: 40px; border-radius: 8px;
  align-items: center; justify-content: center;
  color: var(--fg); cursor: pointer;
}

/* Mobile nav */
@media (max-width: 880px) {
  .nav .links, .nav .sign-in { display: none; }
  .nav .cta { display: none; }
  .nav .menu-btn { display: inline-flex; margin-left: auto; }
  .nav .spacer { display: none; }
}
.mobile-menu {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 49;
  background: rgba(6, 11, 26, 0.96);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-100%); opacity: 0;
  transition: transform 320ms var(--ease-out), opacity 320ms var(--ease-out);
  pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font: 500 18px/1 var(--font-body);
  color: var(--fg);
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  background: none; border-left: 0; border-right: 0; border-top: 0;
  text-align: left;
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .mobile-cta {
  margin-top: 12px;
  font: 600 15px/1 var(--font-body);
  background: var(--c-deep-teal);
  color: var(--fg);
  padding: 14px 18px; border-radius: 10px; border: none;
  cursor: pointer;
}

/* ================ Layout primitives ================ */
.container { max-width: 1200px; margin: 0 auto; width: 100%; }
.eyebrow {
  font: var(--type-label-sm); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--c-aqua);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow.dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--c-aqua); box-shadow: 0 0 10px var(--c-aqua);
}
.btn {
  font: 600 15px/1 var(--font-body);
  padding: 14px 22px; border-radius: 10px; border: none;
  cursor: pointer;
  transition: all 220ms var(--ease-out);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--c-deep-teal); color: var(--fg); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 0 28px rgba(73,197,182,0.3); }
.btn-secondary { background: transparent; color: var(--c-aqua); border: 1px solid var(--c-aqua); }
.btn-secondary:hover { background: rgba(73,197,182,0.08); }
.btn-ghost { background: transparent; color: var(--fg-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--fg); border-color: var(--border-strong); }

/* ================ HERO ================ */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 6vh, 80px) clamp(20px, 4vw, 56px) clamp(64px, 10vh, 120px);
  min-height: auto;
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,130,143,0.28), rgba(6,132,201,0.20));
  opacity: 0.65;
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 80% 30%, rgba(73,197,182,0.18), transparent 70%);
  pointer-events: none;
}
.hero .inner {
  position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font: 700 clamp(40px, 7vw, 86px)/1.05 var(--font-display);
  letter-spacing: -0.02em;
  margin: 22px 0 24px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--c-aqua); }
.hero p.lede {
  font: 400 clamp(16px, 1.5vw, 19px)/1.55 var(--font-body);
  color: var(--fg);
  max-width: 52ch;
}
.hero .ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero .meta {
  margin-top: 32px;
  display: flex; gap: 24px; flex-wrap: wrap;
  font: var(--type-mono-md); color: var(--fg-subtle);
}
.hero .meta b { color: var(--c-aqua); font-weight: 500; }

@media (max-width: 880px) {
  .hero { min-height: auto; padding-top: 110px; }
  .hero .inner { grid-template-columns: 1fr; }
}

/* ================ HERO VISUAL ================ */
.viz {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--c-abyss);
  overflow: hidden;
  padding: 24px;
}
.viz::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(73,197,182,0.15), transparent 70%);
}
.viz .frame {
  position: relative; width: 100%; height: 100%;
  border: 1px dashed rgba(73,197,182,0.28);
  border-radius: 8px;
  overflow: hidden;
}

/* Headcam SVG illustration centered in viz */
.viz .headcam {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.viz .headcam svg { width: 78%; height: auto; }

/* Mocap markers */
.viz .markers {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
}
.viz .markers span {
  width: 4px; height: 4px; border-radius: 999px;
  background: var(--c-aqua);
  box-shadow: 0 0 8px var(--c-aqua);
  align-self: center; justify-self: center;
  animation: pulse 2400ms var(--ease-out) infinite;
  opacity: 0.7;
}
.viz .markers span:nth-child(odd) { animation-delay: 200ms; }
.viz .markers span:nth-child(3n) { animation-delay: 600ms; opacity: 0.45; }
.viz .markers span:nth-child(5n) { animation-delay: 1100ms; opacity: 0.3; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.4); opacity: 1; }
}

.viz .crosshair { position: absolute; pointer-events: none; }
.viz .crosshair.tl { top: 18px; left: 18px; }
.viz .crosshair.tr { top: 18px; right: 18px; transform: scaleX(-1); }
.viz .crosshair.bl { bottom: 18px; left: 18px; transform: scaleY(-1); }
.viz .crosshair.br { bottom: 18px; right: 18px; transform: scale(-1,-1); }
.viz .crosshair span { display: block; background: var(--c-aqua); position: absolute; }
.viz .crosshair span:nth-child(1) { width: 14px; height: 1px; }
.viz .crosshair span:nth-child(2) { width: 1px; height: 14px; }

.viz .hud {
  position: absolute; left: 24px; bottom: 24px; right: 24px;
  display: flex; justify-content: space-between; gap: 16px;
  font: var(--type-mono-md); font-size: 11px; color: var(--fg-muted);
}
.viz .hud .row { display: flex; flex-direction: column; gap: 6px; }
.viz .hud b { color: var(--c-aqua); font-weight: 500; letter-spacing: 0.06em; }
.viz .rec {
  position: absolute; top: 24px; right: 24px;
  display: flex; align-items: center; gap: 8px;
  font: var(--type-mono-md); font-size: 11px; color: var(--c-aqua);
  letter-spacing: 0.08em;
}
.viz .rec .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #E26A6A; box-shadow: 0 0 10px rgba(226,106,106,0.7);
  animation: rec-blink 1400ms var(--ease-out) infinite;
}
@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}


/* Hero lede sub-lines */
.hero p.lede-sub {
  margin-top: 12px;
  font-size: clamp(16px, 1.5vw, 19px);
  opacity: 1;
  color: var(--fg-muted);
  padding-left: 16px;
  border-left: 2px solid var(--c-aqua);
}
.hero p.lede-sub em {
  font-style: normal;
  color: var(--c-aqua);
  font-weight: 600;
}


/* ============ SPLIT HERO VISUAL ============ */
.split-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  aspect-ratio: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--c-deep-navy);
}
.split-hero::before { display: none; }
.split-half {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.split-hardware {
  background: var(--c-deep-navy);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-hardware img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: lighten;
  opacity: 0.92;
}
.split-software {
  background: var(--c-abyss);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.split-commander {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--c-abyss);
}
.split-divider {
  width: 1px;
  background: var(--border);
}
.split-label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font: var(--type-label-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-aqua);
  opacity: 0.7;
}
@media (max-width: 600px) {
  .split-hero {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto 1fr;
  }
  .split-divider {
    width: 100%;
    height: 1px;
  }
  .split-half { min-height: 200px; }
}


/* ============ COMPANY BANNER ============ */
.company-banner {
  padding: clamp(100px, 12vh, 140px) clamp(20px, 4vw, 56px) clamp(32px, 4vh, 48px);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.company-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 70% at 15% 50%, rgba(73,197,182,0.08), transparent 70%);
  pointer-events: none;
}
.company-banner-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  position: relative;
}
.company-banner-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.company-banner p {
  font: 400 clamp(17px, 1.8vw, 22px)/1.5 var(--font-body);
  color: var(--fg-muted);
  margin: 0;
  max-width: 55ch;
}
.company-glyph {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  background: rgba(73, 197, 182, 0.06);
  border: 1px solid rgba(73, 197, 182, 0.2);
  box-shadow: 0 0 48px rgba(73, 197, 182, 0.1);
}
.company-glyph img {
  width: 80px;
  height: 80px;
}
@media (max-width: 600px) {
  .company-banner-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .company-banner-text { align-items: center; }
  .company-glyph {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }
  .company-glyph img { width: 56px; height: 56px; }
}
