/* NIM's public presentation page: plain CSS, the Peach palette in light mode, no build step. */

@font-face {
  font-family: 'Inter';
  src: url('/landing/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --ink: #18181b;
  --ink-contrast: #ffffff;
  --text: #18181b;
  --text-2: #52525b;
  --text-3: #71717a;
  --line: #e4e4e7;
  --peach: #f59e6c;
  --peach-text: #b8562a;
  --peach-tint: #fff1e8;
  --radius: 18px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ------------------------------------------------------------------ top bar */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
}

.top nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 15px;
}

.top nav a {
  color: var(--text-2);
  text-decoration: none;
}

.top nav a:hover {
  color: var(--text);
}

.langs {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: var(--surface-2);
}

.langs button {
  min-width: 34px;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.langs button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
}

.mark {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.mark span {
  color: var(--peach);
}

.mark--small {
  font-size: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.pill:hover {
  transform: translateY(-1px);
}

.pill--ink {
  background: var(--ink);
  color: var(--ink-contrast);
}

.pill--lg {
  min-height: 52px;
  padding: 0 30px;
  font-size: 17px;
}

/* --------------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--peach-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 64px);
  overflow-wrap: break-word;
  font-weight: 700;
}

.lede {
  max-width: 34em;
  margin: 24px 0 36px;
  color: var(--text-2);
  font-size: clamp(18px, 1.6vw, 21px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.note {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--peach-tint);
  color: var(--peach-text);
  font-size: 14px;
  font-weight: 500;
}

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow:
    0 1px 2px rgb(24 24 27 / 6%),
    0 30px 80px -20px rgb(24 24 27 / 25%);
}

.shot__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.shot__dots {
  display: flex;
  gap: 6px;
}

.shot__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.shot__title {
  font-weight: 600;
}

.shot__title b {
  color: var(--peach);
}

.shot__modes {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 2px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 12px;
}

.shot__modes span {
  padding: 3px 10px;
  border-radius: 999px;
}

.shot__modes .is-on {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
}

/* The camera stage: dark, as the video is, with NIM's tracking drawn over it. */
.stage {
  position: relative;
  aspect-ratio: 360 / 440;
  max-height: 560px;
  margin: 0 auto;
  background: radial-gradient(ellipse 60% 50% at 50% 42%, #2a2a30 0%, #17171a 70%), #17171a;
}

.stage__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage__live {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  color: #e4e4e7;
  font-size: 12px;
  backdrop-filter: blur(6px);
}

.stage__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgb(74 222 128 / 20%);
}

.centerline {
  stroke: #f7ad80;
  stroke-width: 1;
  stroke-dasharray: 3 6;
  opacity: 0.55;
}

.floor {
  fill: rgb(255 255 255 / 4%);
}

.bones {
  fill: none;
  stroke: rgb(244 244 245 / 55%);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bones--guard {
  stroke: rgb(244 244 245 / 72%);
}

.bones--active {
  stroke: #f7ad80;
  stroke-width: 3;
  filter: drop-shadow(0 0 6px rgb(247 173 128 / 55%));
}

.joints circle {
  fill: #17171a;
  stroke: #f4f4f5;
  stroke-width: 1.6;
}

.joints--hand circle {
  fill: #f4f4f5;
  stroke: none;
}

.joints--active circle {
  fill: #f7ad80;
  stroke: #17171a;
  stroke-width: 1.5;
}

.joints--hand.joints--active circle {
  fill: #fbd2b8;
  stroke: none;
}

.chip {
  position: absolute;
  padding: 3px 9px;
  border: 1px solid rgb(247 173 128 / 35%);
  border-radius: 999px;
  background: rgb(23 23 26 / 75%);
  color: #fbd2b8;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.card {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 10px 30px rgb(0 0 0 / 25%);
  backdrop-filter: blur(10px);
}

.card__label {
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card__name {
  font-size: 22px;
  letter-spacing: -0.02em;
}

/* ----------------------------------------------------------------- sections */

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 88px 24px;
  border-top: 1px solid var(--line);
}

.section h2 {
  max-width: 18em;
  font-size: clamp(32px, 4vw, 48px);
}

.section__lede {
  max-width: 38em;
  margin: 20px 0 0;
  color: var(--text-2);
  font-size: 19px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.step {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step__number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--peach-tint);
  color: var(--peach-text);
  font-weight: 700;
}

.step h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.step p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}

.section--quote {
  text-align: center;
}

blockquote {
  margin: 0;
}

blockquote p {
  max-width: 22em;
  margin: 0 auto;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

cite {
  display: block;
  margin-top: 20px;
  color: var(--text-3);
  font-style: normal;
}

.levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: level;
}

.levels li {
  position: relative;
  padding: 24px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: level;
}

.levels li::after {
  content: counter(level, decimal-leading-zero);
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--text-3);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.levels__step {
  color: var(--peach-text);
  font-size: 13px;
  font-weight: 600;
}

.levels h3 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.levels p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

.facts {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
}

.facts strong {
  color: var(--text);
}

.section--cta {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.section--cta p {
  margin: 0 0 16px;
  color: var(--text-2);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 14px;
}

/* The carousel: six real captures, one after another, four seconds each. */
.slides {
  position: absolute;
  inset: 0;
}

.slide,
.slide-text {
  opacity: 0;
  animation: slide 24s infinite;
}

.slide {
  position: absolute;
  inset: 0;
}

.slide:nth-child(2),
.slide-text:nth-child(2) {
  animation-delay: 4s;
}

.slide:nth-child(3),
.slide-text:nth-child(3) {
  animation-delay: 8s;
}

.slide:nth-child(4),
.slide-text:nth-child(4) {
  animation-delay: 12s;
}

.slide:nth-child(5),
.slide-text:nth-child(5) {
  animation-delay: 16s;
}

.slide:nth-child(6),
.slide-text:nth-child(6) {
  animation-delay: 20s;
}

@keyframes slide {
  0% {
    opacity: 0;
  }
  2%,
  15% {
    opacity: 1;
  }
  17%,
  100% {
    opacity: 0;
  }
}

.card__names {
  display: grid;
}

.card__names .slide-text {
  grid-area: 1 / 1;
}

.card__note {
  color: var(--text-2);
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  .slide-text {
    animation: none;
  }

  .slide:first-child,
  .slide-text:first-child {
    opacity: 1;
  }
}

/* --------------------------------------------------------------- features */

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.tiles li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.tile__tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--peach-tint);
  color: var(--peach-text);
  font-size: 12px;
  font-weight: 600;
}

.tiles h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.tiles p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

/* --------------------------------------------------------------- showcases */

.showcase {
  display: grid;
  gap: 40px;
}

.showcase__text h2 {
  max-width: 16em;
}

.shot--wide {
  width: 100%;
}

.canvas {
  padding: 24px;
  background-color: #fcfcfc;
  background-image: radial-gradient(circle, #e4e4e7 1px, transparent 1px);
  background-size: 22px 22px;
}

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

.wire {
  fill: none;
  stroke: #d4d4d8;
  stroke-width: 1.4;
}

.wire--on {
  stroke: var(--peach);
  stroke-width: 2;
}

.node rect {
  fill: #ffffff;
  stroke: #e4e4e7;
}

.node--on rect {
  stroke: var(--peach);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 0 rgb(245 158 108 / 0%)) drop-shadow(0 0 6px rgb(245 158 108 / 30%));
}

.node__k {
  fill: #71717a;
  font-size: 10px;
}

.node__n {
  fill: #18181b;
  font-size: 13px;
  font-weight: 600;
}

.side {
  fill: var(--peach-tint);
}

.side__t {
  fill: var(--peach-text);
  font-size: 8px;
  font-weight: 700;
  text-anchor: middle;
}

.lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
}

.canvas--lab {
  display: grid;
  align-items: center;
  border-right: 1px solid var(--line);
}

.code {
  margin: 0;
  padding: 24px;
  overflow: auto;
  background: #18181b;
  color: #e4e4e7;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.65;
}

.code .k {
  color: #f7ad80;
}

.code .s {
  color: #a7d7a0;
}

.code .c {
  color: #8a8a93;
}

/* ------------------------------------------------------------------- about */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.about__who {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.social:hover {
  border-color: var(--peach);
}

.social svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--peach-text);
  stroke-width: 1.8;
}

.social svg .social__dot {
  fill: var(--peach-text);
  stroke: none;
}

.about__text p {
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: 18px;
}

/* ------------------------------------------------------------------ narrow */

@media (max-width: 900px) {
  .hero,
  .section--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 40px;
  }

  .steps,
  .levels {
    grid-template-columns: minmax(0, 1fr);
  }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .lab {
    grid-template-columns: minmax(0, 1fr);
  }

  .canvas--lab {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .top nav {
    display: none;
  }

  .top {
    gap: 12px;
  }

  .langs {
    margin-left: auto;
  }

  .section {
    padding: 64px 16px;
  }

  .hero {
    padding-inline: 16px;
  }

  .shot__modes {
    display: none;
  }

  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .top {
    padding-inline: 12px;
  }

  .top .pill {
    padding: 0 14px;
  }

  .langs button {
    min-width: 28px;
    padding: 0 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pill {
    transition: none;
  }
}
