:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(18, 18, 18, 0.78);
  --panel-strong: #0d0d0d;
  --text: #f7f7f7;
  --muted: #a2a2a2;
  --hairline: rgba(255, 255, 255, 0.12);
  --hairline-strong: rgba(255, 255, 255, 0.22);
  --accent: #70e1ff;
  --accent-2: #c9f2ff;
  --danger: #ff6b6b;
  --ok: #8dffbd;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --font-sans: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 430;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 24rem);
  z-index: -3;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
  padding: 0 2rem;
  border-bottom: 1px solid var(--hairline);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(22px);
}

.brand,
.nav-links,
.nav-cta,
.button,
.scenario-tab,
.trial-source {
  min-height: 2.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 720;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.1rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

.brand-mark span:first-child {
  width: 0.85rem;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(112, 225, 255, 0.45);
}

.brand-mark span:last-child {
  position: absolute;
  width: 150%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: rotate(-28deg);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 1.25vw, 1.2rem);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 520;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 0 1.1rem;
  font-size: 0.88rem;
  font-weight: 680;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-cta:hover,
.button:hover,
.scenario-tab:hover,
.trial-source:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.42);
}

.button-primary {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.hero {
  position: relative;
  min-height: calc(78vh - 4.5rem);
  overflow: hidden;
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem) 1.5rem;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.company-hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(78vh - 9rem);
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

.company-hero-inner .hero-copy {
  display: grid;
  justify-items: center;
}

.company-logo-large {
  display: grid;
  place-items: center;
  width: 5rem;
  aspect-ratio: 1;
  margin-bottom: 1.5rem;
}

.company-logo-large .brand-mark {
  width: 5rem;
}

.company-logo-large .brand-mark span:first-child {
  width: 2rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 720;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(4rem, 8vw, 7.1rem);
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.75rem);
  font-weight: 620;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 37rem;
  color: #d5d5d5;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.ai-video-layout {
  max-width: 980px;
  margin: 0 auto;
}

.hero-console,
.scenario-shell,
.trial-console,
.case-dialog {
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-console {
  border-radius: 8px;
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
}

.status-dot {
  width: 0.55rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 18px rgba(141, 255, 189, 0.8);
}

.platform-video-frame,
.video-stack {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
}

.platform-video-frame {
  position: relative;
  background: #030303;
}

.platform-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(70vh, 42rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  object-fit: contain;
  cursor: pointer;
}

.platform-video-overlay {
  position: absolute;
  inset: 0.75rem;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.08);
  color: #fff;
  cursor: pointer;
  transition: opacity 180ms ease, background 180ms ease;
}

.platform-video-overlay:hover {
  background: rgba(0, 0, 0, 0.18);
}

.platform-video-overlay span {
  width: 4.25rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.4);
  clip-path: polygon(35% 25%, 35% 75%, 78% 50%);
}

.platform-video-frame.is-playing .platform-video-overlay {
  opacity: 0;
  pointer-events: none;
}

.video-feed,
.demo-video,
.trial-view {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 30% 25%, rgba(112, 225, 255, 0.2), transparent 22%),
    linear-gradient(135deg, #111, #050505 58%, #181818);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.feed-main {
  min-height: clamp(20rem, 44vw, 34rem);
}

.mini-feeds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.feed-small {
  min-height: 8rem;
  display: flex;
  align-items: flex-end;
  padding: 0.9rem;
  color: #ddd;
  font-size: 0.8rem;
}

.feed-small.alt {
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(135deg, #0d0d0d, #050505 60%, #191919);
  background-size: 36px 36px, 36px 36px, auto, auto;
}

.feed-label,
.trial-log {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  max-width: calc(100% - 2rem);
}

.feed-label,
.trial-log {
  color: #f1f1f1;
  font-size: 0.82rem;
  font-weight: 650;
}

.scan-line {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(112, 225, 255, 0.22), transparent);
  height: 26%;
  animation: scan 4.5s linear infinite;
}

.bbox {
  position: absolute;
  border: 1px solid var(--accent);
  box-shadow: 0 0 18px rgba(112, 225, 255, 0.3);
}

.bbox span {
  position: absolute;
  left: -1px;
  top: -1.7rem;
  max-width: 11rem;
  padding: 0.3rem 0.45rem;
  background: rgba(112, 225, 255, 0.92);
  color: #001014;
  font-size: 0.68rem;
  font-weight: 720;
  white-space: nowrap;
}

.bbox-a {
  width: 21%;
  height: 29%;
  left: 20%;
  top: 35%;
}

.bbox-b {
  width: 30%;
  height: 20%;
  right: 12%;
  bottom: 18%;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1240px;
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  border: 1px solid var(--hairline);
  background: var(--hairline);
}

.metrics-strip div {
  min-height: 6.5rem;
  padding: 1.15rem;
  background: rgba(8, 8, 8, 0.82);
}

.metrics-strip strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.metrics-strip span {
  color: var(--muted);
  font-size: 0.85rem;
}

.section {
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 4vw, 4rem);
}

.section-heading {
  max-width: 920px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
}

.section-heading p:not(.eyebrow) {
  margin-top: 1rem;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.65;
}

.platform-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid var(--hairline);
  background: var(--hairline);
}

.platform-grid article,
.case-card {
  min-height: 17rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: #080808;
}

.platform-grid p,
.case-card p {
  color: var(--muted);
  line-height: 1.65;
}

.module-icon,
.case-card span,
.panel-kicker {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 720;
  text-transform: uppercase;
}

.scenario-shell {
  max-width: 1240px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
}

.scenario-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--hairline);
}

.scenario-tab,
.trial-source {
  border: 0;
  border-right: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  font-weight: 650;
}

.scenario-tab:last-child {
  border-right: 0;
}

.scenario-tab.is-active,
.trial-source.is-active {
  background: #fff;
  color: #000;
}

.scenario-tab:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.scenario-content {
  display: grid;
  grid-template-columns: minmax(18rem, 0.86fr) minmax(0, 1.14fr);
  min-height: 35rem;
}

.library-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  border-right: 1px solid var(--hairline);
}

.analytic-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.analytic-chip {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  text-align: left;
}

.analytic-chip span:last-child {
  color: var(--muted);
  font-size: 0.8rem;
}

.demo-panel {
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0.75rem;
}

.demo-video {
  min-height: 31rem;
  background: #000;
}

.scenario-demo-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: cover;
}

.demo-video .bbox {
  z-index: 3;
}

.demo-grid-overlay {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.demo-grid-overlay::before,
.demo-grid-overlay::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
}

.demo-grid-overlay::before {
  left: 33.3%;
  top: 0;
  bottom: 0;
  width: 1px;
  box-shadow: 12rem 0 rgba(255, 255, 255, 0.12);
}

.demo-grid-overlay::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.case-card {
  border: 0;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.case-card:hover {
  background: #101010;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid var(--hairline);
  background: var(--hairline);
}

.request-form label,
.request-form button {
  background: #080808;
}

.request-form .button-primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.request-form label {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.request-form span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  text-transform: uppercase;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 0.9rem;
  outline: 0;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: rgba(112, 225, 255, 0.75);
}

.wide {
  grid-column: 1 / -1;
}

.trial-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

.trial-layout .section-heading {
  margin: 0;
}

.trial-console {
  border-radius: 8px;
  overflow: hidden;
}

.trial-toolbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 1px;
  background: var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.trial-toolbar .button {
  border-radius: 0;
  min-height: 3rem;
}

.trial-view {
  min-height: 28rem;
}

.trial-view.is-running .scan-line {
  animation-duration: 1.25s;
}

.trial-box-one {
  width: 19%;
  height: 26%;
  left: 18%;
  top: 30%;
  border-color: var(--danger);
}

.trial-box-one span {
  background: var(--danger);
  color: #140000;
}

.trial-box-two {
  width: 31%;
  height: 17%;
  right: 13%;
  bottom: 24%;
  border-color: var(--ok);
}

.trial-box-two span {
  background: var(--ok);
  color: #001407;
}

.partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  max-width: 1000px;
  margin: 0 auto;
}

.partner-card {
  flex: 1 1 9rem;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 0.75rem;
  min-height: 8rem;
  padding: 1rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.partner-logo {
  width: min(6.5rem, 100%);
  max-height: 3.5rem;
  object-fit: contain;
}

.partner-name {
  color: #d8d8d8;
  font-size: 0.9rem;
  font-weight: 720;
  text-align: center;
}

.faq-list {
  display: grid;
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 1.35rem 0;
  text-align: left;
}

.faq-item span {
  display: block;
  font-size: 1.05rem;
  font-weight: 650;
}

.faq-item p {
  display: none;
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.faq-item.is-open p {
  display: block;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--hairline);
}

.contact-section h2 {
  max-width: 58rem;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(10rem, 1fr));
  gap: 1px;
  min-width: min(44rem, 100%);
  border: 1px solid var(--hairline);
  background: var(--hairline);
}

.contact-card {
  display: grid;
  gap: 0.55rem;
  min-height: 6rem;
  padding: 1rem;
  background: #080808;
}

.contact-card span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 720;
  text-transform: uppercase;
}

.contact-card strong {
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.45;
}

.case-dialog {
  width: min(680px, calc(100vw - 2rem));
  border-radius: 8px;
  color: #fff;
  padding: 2rem;
}

.case-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-close {
  float: right;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.dialog-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.dialog-stats figure {
  margin: 0;
  background: #080808;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
}

.dialog-stats img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
  object-fit: cover;
}

.dialog-stats figcaption {
  padding: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

@keyframes scan {
  0% {
    transform: translateY(-120%);
  }
  100% {
    transform: translateY(420%);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .scenario-content,
  .trial-layout {
    grid-template-columns: 1fr;
  }

  .library-panel {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .platform-grid,
  .case-grid,
  .request-form {
    grid-template-columns: 1fr;
  }

  .scenario-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 0 1rem;
  }

  .nav-cta {
    display: none;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5.5rem);
  }

  .hero {
    min-height: auto;
  }

  .metrics-strip {
    grid-template-columns: 1fr 1fr;
  }

  .scenario-tabs,
  .trial-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .trial-toolbar .button {
    grid-column: 1 / -1;
  }

  .mini-feeds,
  .dialog-stats,
  .contact-details {
    grid-template-columns: 1fr;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-video,
  .trial-view {
    min-height: 22rem;
  }

  .bbox span {
    max-width: 7.5rem;
    white-space: normal;
    line-height: 1.1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
