/* Tokens from the Kognic design system (kognic-slides plugin, tokens/colors.css and motion.css). */
:root {
  --purple: #826cff;
  --purple-1: #988cff;
  --purple-bg: #f0edff;
  --coral: #ff7a5c;
  --green: #60df5a;
  --ink: #1a1a2e;
  --heading: #111111;
  --body: #4b4b4b;
  --muted: #76768a;
  --border-card: rgba(152, 140, 255, 0.22);
  --border-rule: rgba(130, 108, 255, 0.18);
  --border-rule-inner: rgba(130, 108, 255, 0.12);
  --wash-purple: rgba(130, 108, 255, 0.08);
  --gradient-text: linear-gradient(90deg, #826cff, #ff7a5c);
  --ease-out-quint: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --sweep: 4s;
}

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

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 400;
  color: var(--body);
  line-height: 1.6;
  background:
    radial-gradient(ellipse 45vw 55vh at 12% 35%, rgba(130, 108, 255, 0.32), transparent 55%),
    radial-gradient(ellipse 45vw 55vh at 88% 20%, rgba(255, 140, 122, 0.32), transparent 55%),
    linear-gradient(180deg, var(--purple-bg) 0%, #fff 70%);
  background-repeat: no-repeat;
  min-height: 100vh;
}

h1, h2 { color: var(--heading); font-weight: 500; letter-spacing: normal; line-height: 1.1; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: 1.75rem; }
a { color: var(--purple); }

main, .site-header, .site-footer { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.site-header { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.site-header__logo img { display: block; }
.site-footer { padding-top: 3rem; padding-bottom: 3rem; color: var(--muted); font-size: 0.875rem; border-top: 1px solid var(--border-rule); }

.pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  background: var(--wash-purple);
  border: 1px solid rgba(130, 108, 255, 0.3);
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pill--coral { background: rgba(255, 140, 122, 0.1); border-color: rgba(255, 140, 122, 0.3); color: var(--coral); }

.gradient-text { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 14px;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.5), 0 6px 18px rgba(130, 108, 255, 0.32);
  transition: transform 0.35s var(--ease-out-quint), box-shadow 0.25s ease;
}
.button:hover { transform: translateY(-4px); box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.5), 0 12px 28px rgba(130, 108, 255, 0.3); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; padding: 4rem 0 5rem; }
.hero--center { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.25rem; min-height: 55vh; align-content: center; }
.hero--center h1 { margin: 0; }
.hero__copy > * { animation: rise 0.6s var(--ease-out-quint) both; }
.hero__copy > :nth-child(2) { animation-delay: 60ms; }
.hero__copy > :nth-child(3) { animation-delay: 120ms; }
.hero__copy > :nth-child(4) { animation-delay: 180ms; }
.hero__copy h1 { margin-top: 1.25rem; }
.lede { font-size: 1.2rem; max-width: 34rem; margin: 0 0 2rem; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Flat typographic band, the system's default over card grids */
.band { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border-rule); border-bottom: 1px solid var(--border-rule); }
.band > div { padding: 22px 22px 22px 0; display: flex; flex-direction: column; }
.band > div + div { padding-left: 22px; border-left: 1px solid var(--border-rule-inner); }
.band strong { color: var(--heading); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.02em; }
.band span { color: var(--muted); font-size: 0.875rem; }

/* LiDAR scan: a beam sweeps a point cloud and a cuboid annotation draws itself around the object. */
.scan {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 32px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #23233d 0%, #0e0e18 75%);
  box-shadow: 0 6px 18px rgba(130, 108, 255, 0.16), 0 30px 60px rgba(26, 26, 46, 0.25);
}
.scan__rings {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 calc(12.5cqw - 1px), rgba(152, 140, 255, 0.14) calc(12.5cqw - 1px) 12.5cqw);
}
.scan__beam {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent 0deg 290deg, rgba(130, 108, 255, 0.05) 300deg, rgba(152, 140, 255, 0.55) 360deg);
  border-radius: 50%;
  animation: sweep var(--sweep) linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.pt {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--purple-1);
  color: var(--purple-1);
  transform: rotate(calc(var(--a) * 1deg)) translateX(calc(var(--r) * 0.5cqw));
  /* Light each point the moment the beam's leading edge passes its angle. */
  animation: ping var(--sweep) linear infinite;
  animation-delay: calc((var(--a) + 90) * var(--sweep) / 360 - var(--sweep));
}
.pt--obj { background: var(--coral); color: var(--coral); }
@keyframes ping {
  0% { opacity: 1; box-shadow: 0 0 10px 2px currentColor; scale: 1.6; }
  60%, 100% { opacity: 0.18; box-shadow: none; scale: 1; }
}

.cuboid {
  position: absolute;
  left: 57%;
  top: 9%;
  width: 34%;
  overflow: visible;
}
.cuboid path {
  fill: rgba(255, 122, 92, 0.08);
  stroke: var(--coral);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 400;
  animation: draw 6s var(--ease-out-expo) infinite;
  filter: drop-shadow(0 0 4px rgba(255, 122, 92, 0.6));
}
@keyframes draw {
  0% { stroke-dashoffset: 400; opacity: 0; }
  8% { opacity: 1; }
  45%, 85% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.scan__label {
  position: absolute;
  left: 57%;
  top: 6%;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--coral);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  animation: label 6s var(--ease-out-quint) infinite;
}
@keyframes label {
  0%, 35% { opacity: 0; transform: translateY(6px); }
  45%, 85% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

.scan__ego {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 22px;
  margin: -11px 0 0 -7px;
  border-radius: 4px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(96, 223, 90, 0.2), 0 0 18px rgba(96, 223, 90, 0.6);
}

/* Content sections */
.section { padding: 3rem 0; border-top: 1px solid var(--border-rule); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(130, 108, 255, 0.16);
  transition: transform 0.35s var(--ease-out-quint), box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(130, 108, 255, 0.3); }
.card img, .card video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #0e0e18; }
.card figcaption { padding: 10px 4px 2px; color: var(--muted); font-size: 0.875rem; }

.posts { list-style: none; margin: 0; padding: 0; }
.posts li { display: flex; justify-content: space-between; gap: 1rem; padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.posts a { font-weight: 500; text-decoration: none; }
.posts a:hover { text-decoration: underline; }
.posts time, article time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.875rem; }

article { max-width: 44rem; padding: 4rem 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 2rem; }
  .band { grid-template-columns: 1fr; }
  .band > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--border-rule-inner); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pt { opacity: 0.6; }
}
