:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef2f7;
  --surface-strong: #e7edf5;
  --text: #182230;
  --muted: #667085;
  --border: #dce3ec;
  --accent: #2563eb;
  --accent-soft: #e0ebff;
  --teal: #0f8a83;
  --teal-soft: #d9f2f0;
  --amber: #d97706;
  --amber-soft: #fff1d6;
  --shadow: 0 18px 50px rgba(24, 34, 48, 0.08);
  --shadow-soft: 0 10px 30px rgba(24, 34, 48, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 138, 131, 0.07), transparent 26%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.65;
  color: var(--muted);
}

h1,
h2,
h3,
strong {
  color: var(--text);
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  letter-spacing: -0.03em;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.page-shell {
  position: relative;
  width: min(1280px, calc(100% - 96px));
  margin: 0 auto;
  padding: 20px 0 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bg-orb {
  position: fixed;
  inset: auto;
  z-index: -1;
  border-radius: 999px;
  filter: blur(12px);
  pointer-events: none;
}

.bg-orb-a {
  top: 90px;
  right: -120px;
  width: 300px;
  height: 300px;
  background: rgba(37, 99, 235, 0.08);
}

.bg-orb-b {
  top: 430px;
  left: -140px;
  width: 340px;
  height: 340px;
  background: rgba(15, 138, 131, 0.06);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 200;
  background: transparent;
}

.scroll-progress-fill {
  height: 100%;
  width: 0%;
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright, var(--accent)) 45%, var(--teal) 75%, var(--amber) 100%);
  transition: width 60ms linear;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(24, 34, 48, 0.08), var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  justify-self: start;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  font-size: 0.84rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a:hover,
.footer-links a:hover,
.footer-credits a:hover {
  color: var(--accent);
}

.topbar-actions,
.button-row,
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-actions {
  grid-column: 3;
  justify-self: end;
}

.menu-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(2px);
}

.mobile-menu[hidden],
.mobile-menu-backdrop[hidden] {
  display: none !important;
}

.mobile-menu {
  position: fixed;
  top: 68px;
  left: 16px;
  right: 16px;
  z-index: 101;
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.mobile-nav {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  display: block;
  padding: 14px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}

.mobile-menu-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.section-nav {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.section-nav a:hover {
  color: var(--accent);
  background: var(--surface-soft);
}

.layout.layout-with-subnav {
  margin-top: 136px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(-1px) scale(0.97);
}

.button-primary {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.button-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.button-primary:hover::after {
  left: 130%;
}

.button-primary:hover {
  background: #1d4ed8;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.32);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.button-secondary:hover {
  border-color: #c9d5e3;
  background: #fbfcfe;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  margin-top: 92px;
  flex: 1;
}

.layout.layout-compact {
  align-content: start;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  min-width: 0;
}

.hero-copy,
.hero-visual,
.panel,
.stats-strip,
.footer {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 48px;
  min-width: 0;
}

.eyebrow,
.section-kicker,
.panel-label,
.card-label,
.muted,
.stat-label,
.feature-icon {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-copy .lead {
  max-width: 100%;
  margin: 18px 0 30px;
  font-size: 1.02rem;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: #425467;
  font-size: 0.84rem;
  font-weight: 700;
}

.pill.accent {
  background: var(--accent-soft);
  border-color: #c9d9ff;
  color: #2050bb;
}

.pill.teal {
  background: var(--teal-soft);
  border-color: #b8ebe6;
  color: #0e6f69;
}

.hero-visual {
  padding: 18px;
  overflow: hidden;
}

.visual-frame {
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.visual-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

.mono {
  font-family: var(--mono);
  font-size: 0.78rem;
}

.visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
  gap: 16px;
  min-height: 0;
}

.preview-panel {
  display: grid;
  gap: 10px;
}

.preview-surface {
  position: relative;
  min-height: 320px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.12), transparent 35%),
    linear-gradient(180deg, #0f172a 0%, #1f2b42 100%);
  overflow: hidden;
}

.preview-ring {
  position: absolute;
  inset: 18% 14%;
  border-radius: 28px 28px 40px 40px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 14px rgba(255, 255, 255, 0.03);
}

.preview-cutout {
  position: absolute;
  left: 50%;
  bottom: -50px;
  width: 72%;
  height: 160px;
  transform: translateX(-50%);
  border-radius: 60px 60px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.22));
  filter: blur(1px);
}

.preview-overlay {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.preview-overlay span {
  color: var(--muted);
  font-size: 0.82rem;
}

.preview-overlay strong {
  font-size: 1rem;
}

.status-stack {
  display: grid;
  gap: 12px;
}

.info-card {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.info-card strong {
  font-size: 1rem;
}

.info-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.compact {
  align-self: start;
}

.mini-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  color: #425467;
}

.mini-chip.accent {
  background: var(--accent-soft);
  color: #2150bd;
  border-color: #c9d9ff;
}

.visual-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.visual-footer strong {
  display: block;
  margin-top: 3px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 18px;
}

.stat-card {
  padding: 4px 8px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.panel {
  padding: 30px;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.section-head.compact {
  margin-bottom: 18px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-grid {
  display: grid;
  gap: 12px;
}

.card-grid.stacked {
  grid-template-columns: 1fr;
}

.feature-card,
.hardware-card,
.download-card {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, opacity 350ms ease;
}

.feature-card:hover,
.hardware-card:hover,
.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--accent);
}

.feature-card.soft {
  background: linear-gradient(180deg, #fff 0%, #fafcff 100%);
}

.feature-card p,
.hardware-card p,
.download-card p {
  margin: 0;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Overview zigzag timeline */
.zigzag {
  position: relative;
  height: 400px;
  margin: 26px 0 6px;
}

.zz-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.zz-row {
  position: absolute;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.zz-row-top { top: 0; height: 50%; align-items: end; }
.zz-row-bottom { bottom: 0; height: 50%; align-items: start; }

.zz-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.zz-row-top .zz-node { justify-content: flex-end; }
.zz-row-bottom .zz-node { justify-content: flex-start; }

.zz-icon-wrap { position: relative; }

.zz-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--step-color);
  color: #fff;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--step-color) 45%, transparent);
}

.zz-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zz-num {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.zz-node h3 { margin: 2px 0 0; font-size: 0.94rem; letter-spacing: -0.01em; }

.zz-node p {
  margin: 0;
  max-width: 220px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.zz-connector { width: 1px; height: 22px; background: var(--step-color); }

.zz-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--step-color);
  box-shadow: 0 0 0 4px var(--surface);
}

/* Tablets and half-folded desktop windows: vertical center line,
   nodes alternating left/right of it (Connect/Capture on the right,
   Preview on the left). */
@media (max-width: 1024px) and (min-width: 481px) {
  .zigzag {
    height: auto;
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .zz-line {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 1px;
    height: auto;
  }

  .zz-row { display: contents; }
  .zz-row > div:empty { display: none; }

  .zz-node {
    position: relative;
    width: calc(50% - 30px);
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
  }

  .zz-node p {
    max-width: none;
  }

  .zz-node[data-step="1"] { order: 1; margin-left: auto; }
  .zz-node[data-step="2"] { order: 2; margin-right: auto; }
  .zz-node[data-step="3"] { order: 3; margin-left: auto; }
  .zz-node[data-step="4"] { order: 4; margin-right: auto; }

  .zz-node::before {
    content: "";
    position: absolute;
    top: 42px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--step-color);
    box-shadow: 0 0 0 4px var(--surface);
  }

  .zz-node::after {
    content: "";
    position: absolute;
    top: 46px;
    width: 30px;
    height: 1px;
    background: var(--step-color);
  }

  .zz-node[data-step="1"]::before,
  .zz-node[data-step="3"]::before {
    left: -34.5px;
  }
  .zz-node[data-step="1"]::after,
  .zz-node[data-step="3"]::after {
    left: -30px;
  }

  .zz-node[data-step="2"]::before,
  .zz-node[data-step="4"]::before {
    right: -34.5px;
  }
  .zz-node[data-step="2"]::after,
  .zz-node[data-step="4"]::after {
    right: -30px;
  }

  .zz-connector, .zz-dot { display: none; }
}

/* Phones: the alternating layout above has no room to breathe, so fall
   back to plain full-width stacked cards in the correct 1-2-3 order. */
@media (max-width: 480px) {
  .zigzag {
    height: auto;
    margin: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .zz-line { display: none; }
  .zz-row { display: contents; }
  .zz-row > div:empty { display: none; }
  .zz-node {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
  }
  .zz-node p {
    max-width: none;
  }
  .zz-node[data-step="1"] { order: 1; }
  .zz-node[data-step="2"] { order: 2; }
  .zz-node[data-step="3"] { order: 3; }
  .zz-node[data-step="4"] { order: 4; }
  .zz-connector, .zz-dot { display: none; }
}

.sidebar-panel .check-list {
  padding-right: 4px;
}

.check-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--accent), #4f7df4);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.76);
}

.team-panel .section-head {
  margin-bottom: 6px;
}

.team-panel .section-head p {
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
}

.team-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 350ms ease;
}

.team-card:hover,
.team-card:focus-visible {
  outline: none;
  z-index: 3;
}

.team-photo {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: visible;
}

.team-photo-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76%;
  z-index: 1;
  border-radius: 4px;
  background: var(--team-color, var(--accent));
  transform-origin: 50% 50%;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-photo-bg,
.team-card:focus-visible .team-photo-bg {
  transform: scale(0.92);
}

.team-person {
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 78%;
  height: 96%;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: visible;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-person,
.team-card:focus-visible .team-person {
  transform: translateX(-50%) translateY(-4%) scale(1.1);
}

.team-person-img:not([hidden]) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.team-avatar-fallback {
  position: relative;
  font-family: var(--mono);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.94);
}

.team-caption {
  display: block;
  margin-top: 14px;
}

.team-name {
  display: block;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 180ms ease;
}

.team-card:hover .team-name,
.team-card:focus-visible .team-name {
  color: #c5b5ff;
}

.team-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
}

.team-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #0a66c2;
  opacity: 0;
  transform: scale(0.4) translateX(4px);
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 180ms ease;
}

.team-role-badge svg {
  width: 11px;
  height: 11px;
  fill: #fff;
}

.team-card:hover .team-role-badge,
.team-card:focus-visible .team-role-badge {
  opacity: 1;
  transform: scale(1) translateX(0);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.footer-brand-logo {
  height: 22px;
  width: auto;
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.footer-brand-logo:hover {
  opacity: 1;
}

.footer-credits {
  margin: 18px 4px 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.check-list.compact li {
  padding-left: 24px;
}

.panel > h3 {
  margin-top: 40px;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--text);
}

.code-block {
  margin: 16px 0;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  overflow-x: auto;
}

.code-block code {
  padding: 0;
  background: none;
  white-space: pre;
}

.wf-timeline {
  display: grid;
  gap: 30px;
}

.wf-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px 16px auto 1fr;
  align-items: center;
  transition: opacity 350ms ease;
}

.wf-rail {
  position: absolute;
  top: -30px;
  bottom: -30px;
  left: 14px;
  width: 2px;
  background: var(--border);
  z-index: 0;
}

.wf-row:first-child .wf-rail {
  top: 50%;
}

.wf-row:last-child .wf-rail {
  bottom: 50%;
}

.wf-node {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--bg);
  border: 3px solid var(--step-color, var(--accent));
  display: grid;
  place-items: center;
}

.wf-node::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--step-color, var(--accent));
}

.wf-tail {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 10px solid var(--step-color, var(--accent));
}

.wf-badge {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-right: -22px;
  border-radius: 999px;
  background: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.wf-badge span {
  display: block;
  line-height: 1;
}

.wf-step-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6b6674;
  margin-bottom: 4px;
}

.wf-step-number {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--step-color, var(--accent));
}

.wf-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  padding: 14px 16px 14px 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--step-color, var(--accent)) 0%, color-mix(in srgb, var(--step-color, var(--accent)) 65%, var(--bg)) 100%);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.55);
}

.wf-pill-copy h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.wf-pill-copy p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.wf-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.wf-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hardware-grid,
.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.panel-foot {
  margin-top: 24px;
}

.device-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0 12px;
}

.device-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.device-tab:hover,
.device-tab:focus-visible {
  border-color: #a9c1f7;
  color: var(--accent);
  outline: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.device-tab.is-active {
  border-color: #9bb8ff;
  background: var(--accent-soft);
  color: #2150bd;
}

.device-number {
  color: #8da3c8;
  font-family: var(--mono);
  font-size: 0.76rem;
}

.device-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
  animation: device-panel-in 260ms ease both;
}

.device-panel[hidden] {
  display: none;
}

.device-preview {
  position: relative;
  display: block;
  height: 300px;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 30%, #f5f8ff 0%, #e9effb 100%);
}

.device-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  cursor: zoom-in;
}

.device-preview figcaption {
  padding: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 48px;
  background: rgba(12, 22, 39, 0.58);
  backdrop-filter: blur(5px);
}

.lightbox-image {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(8, 16, 29, 0.34);
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font: 400 1.8rem/1 Arial, sans-serif;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: #fff;
  color: var(--accent);
  outline: 3px solid rgba(255, 255, 255, 0.32);
}

body.lightbox-open {
  overflow: hidden;
}

.device-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px 8px 0;
}

.device-content .section-kicker {
  margin-bottom: 14px;
  font-size: 0.7rem;
}

.device-content .hardware-head {
  margin-bottom: 10px;
}

.device-content .hardware-head p {
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
}

@keyframes device-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hardware-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.hardware-head p {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.spec-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.more-info {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
  overflow: hidden;
}

.more-info-label {
  margin: 0;
  padding: 18px 20px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.more-info p {
  margin: 0;
  padding: 16px 20px 20px;
}

.more-info.inset {
  margin-top: 18px;
}

.spec-list dt {
  color: var(--muted);
}

.spec-list dd {
  margin: 0;
  font-weight: 800;
}

.muted-card {
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fd 100%);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: opacity 350ms ease;
}

.faq-q {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  margin-top: 2px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
}

.faq-copy {
  min-width: 0;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--text);
}

.faq-item p {
  margin: 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 18px 22px;
  margin-top: 26px;
}

.footer strong,
.footer span {
  display: block;
}

.footer span {
  color: var(--muted);
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
  color: var(--muted);
}

.footer-links a {
  font-weight: 700;
}

@media (max-width: 1100px) {
  .visual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1300px) {
  .nav {
    display: none;
  }

  .topbar-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 1280px);
    padding-top: 10px;
  }

  .topbar {
    padding: 12px 16px;
  }

  .nav {
    display: none;
  }

  .topbar-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .section-nav {
    top: 68px;
    padding: 8px 16px;
    justify-content: flex-start;
  }

  .layout.layout-with-subnav {
    margin-top: 124px;
  }

  .hero-copy,
  .panel {
    padding: 24px;
  }

  .stats-strip,
  .hardware-grid,
  .download-grid,
  .card-grid.stacked {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .device-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .device-panel {
    grid-template-columns: 1fr;
  }

  .device-content {
    padding: 4px;
  }

  .visual-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-surface {
    min-height: 260px;
  }

  .device-preview {
    height: 240px;
    min-height: 240px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .hero-actions,
  .topbar-actions,
  .button-row {
    width: 100%;
  }

  .button {
    flex: 1 1 auto;
  }

  .wf-row {
    grid-template-columns: 22px 10px auto 1fr;
  }

  .wf-rail {
    left: 10px;
  }

  .wf-node {
    width: 22px;
    height: 22px;
    border-width: 2.5px;
  }

  .wf-badge {
    width: 64px;
    height: 64px;
    margin-right: -16px;
  }

  .wf-step-number {
    font-size: 1.05rem;
  }

  .wf-pill {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 64px 16px 30px;
    border-radius: 26px;
    position: relative;
  }

  .wf-icon {
    position: absolute;
    right: 16px;
    bottom: 16px;
  }

  .hardware-head {
    flex-direction: column;
  }

  .device-tabs {
    grid-template-columns: 1fr;
  }

  .device-tab {
    min-height: 54px;
  }

  .image-lightbox {
    padding: 32px 16px;
  }
}

/* App-inspired dark violet theme */
:root {
  --bg: #171719;
  --surface: #242428;
  --surface-soft: #2d2d33;
  --surface-strong: #36363e;
  --text: #f6f4f8;
  --muted: #b8b3c1;
  --border: #46434d;
  --accent: #7655d8;
  --accent-soft: #34275c;
  --teal: #71c9bf;
  --teal-soft: #203f3d;
  --amber: #f39a3d;
  --amber-soft: #4b321f;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.22);
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(118, 85, 216, 0.2), transparent 30%),
    radial-gradient(circle at 90% 14%, rgba(243, 154, 61, 0.08), transparent 24%),
    var(--bg);
}

h1,
h2,
h3,
strong,
.nav,
.brand-copy strong,
.mobile-nav a,
.button-secondary,
.more-info-label {
  color: var(--text);
}

.bg-orb-a {
  background: rgba(118, 85, 216, 0.16);
}

.bg-orb-b {
  background: rgba(243, 154, 61, 0.08);
}

.topbar {
  background: rgba(23, 23, 25, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-soft);
}

.section-nav {
  background: rgba(23, 23, 25, 0.82);
  border-color: var(--border);
}

.brand-mark {
  box-shadow: 0 12px 24px rgba(118, 85, 216, 0.28);
}

.nav a:hover,
.footer-links a:hover,
.footer-credits a:hover {
  color: #a88ff4;
}

.menu-toggle,
.mobile-menu,
.mobile-nav a {
  background: var(--surface);
  border-color: var(--border);
}

.menu-toggle span {
  background: var(--text);
}

.mobile-menu-backdrop {
  background: rgba(0, 0, 0, 0.56);
}

.button-primary {
  background: linear-gradient(135deg, #8060e2, #6040bd);
  box-shadow: 0 12px 26px rgba(118, 85, 216, 0.3);
}

.button-primary:hover {
  background: linear-gradient(135deg, #906ff0, #6b49cf);
  box-shadow: 0 18px 36px rgba(118, 85, 216, 0.42);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--border);
}

.button-secondary:hover {
  border-color: #70648c;
  background: var(--surface-soft);
}

.hero-copy,
.hero-visual,
.panel,
.stats-strip,
.footer {
  background: rgba(31, 31, 35, 0.94);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker {
  background: var(--surface-soft);
  border-color: var(--border);
}

.pill {
  background: var(--surface-soft);
  border-color: var(--border);
  color: #d5d0dc;
}

.pill.accent,
.mini-chip.accent,
.faq-q {
  background: var(--accent-soft);
  border-color: #6349a8;
  color: #c5b5ff;
}

.pill.teal {
  background: var(--teal-soft);
  border-color: #32645f;
  color: #9be4dc;
}

.feature-card,
.hardware-card,
.download-card,
.faq-item,
.info-card {
  background: linear-gradient(180deg, #29292e 0%, #232327 100%);
  border-color: var(--border);
}

.feature-card.soft,
.muted-card,
.visual-frame {
  background: linear-gradient(180deg, #29292e 0%, #202024 100%);
}

.feature-icon {
  background: var(--surface-soft);
  border-color: var(--border);
  color: #c5b5ff;
}

.device-tab {
  background: var(--surface-soft);
  border-color: var(--border);
  color: var(--muted);
}

.device-tab:hover,
.device-tab:focus-visible {
  border-color: #8069bb;
  color: #c5b5ff;
}

.device-tab.is-active {
  background: var(--accent-soft);
  border-color: #7655d8;
  color: #d5caff;
}

.device-panel {
  background: linear-gradient(135deg, #2a292f 0%, #202024 100%);
  border-color: var(--border);
}

.device-preview {
  background: radial-gradient(circle at 50% 30%, #393344 0%, #222228 100%);
}

.spec-list div,
.visual-topline,
.visual-footer {
  border-color: var(--border);
}

.more-info {
  background: var(--surface-soft);
  border-color: var(--border);
}

.more-info-label {
  border-color: var(--border);
}

.status-dot {
  background: #f39a3d;
  box-shadow: 0 0 0 5px rgba(243, 154, 61, 0.14);
}

.stat-value,
.card-label,
.panel-label {
  color: var(--text);
}

.footer {
  color: var(--text);
}

.footer span,
.brand-copy span {
  color: var(--muted);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 420ms cubic-bezier(0.2, 0.7, 0.3, 1), transform 420ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item {
  opacity: 0;
}

.is-visible .reveal-item {
  opacity: 1;
}

.is-visible .reveal-item:nth-child(1) { transition-delay: 0ms; }
.is-visible .reveal-item:nth-child(2) { transition-delay: 60ms; }
.is-visible .reveal-item:nth-child(3) { transition-delay: 120ms; }
.is-visible .reveal-item:nth-child(4) { transition-delay: 180ms; }
.is-visible .reveal-item:nth-child(5) { transition-delay: 240ms; }
.is-visible .reveal-item:nth-child(6) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-item {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Capabilities showcase (Features section) */
.capabilities-showcase {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 6px;
}

.cap-phone-col {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.cap-phone {
  position: relative;
  width: 200px;
  height: 416px;
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(160deg, #2c2c32, #18181b);
  border: 1px solid #3a3a41;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
}

.cap-phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 15px;
  border-radius: 0 0 10px 10px;
  background: #18181b;
  z-index: 5;
}

.cap-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: #0f0f12;
}

.cap-status-bar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 3px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: #e7e4ec;
}

.cap-status-icons { display: flex; gap: 4px; align-items: center; }
.cap-status-icons span { width: 10px; height: 6px; border: 1px solid #e7e4ec; border-radius: 2px; }

.cap-app-bar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 14px 8px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #f6f4f8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cap-app-bar .cap-device-chip {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 700;
  color: #b8b3c1;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.cap-screen-stack { position: relative; height: calc(100% - 60px); }

.cap-screen-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 380ms ease, transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cap-screen-panel.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.cap-feed {
  position: relative;
  flex: 1;
  margin: 8px 10px;
  border-radius: 15px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(118, 85, 216, 0.32), transparent 60%),
    linear-gradient(180deg, #0e0e11 0%, #1a1a1f 100%);
}

.cap-feed-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.4px);
  background-size: 11px 11px;
  opacity: 0.6;
}

.cap-feed-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, rgba(168, 143, 244, 0.16) 50%, transparent 100%);
  animation: cap-scan-sweep 3.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes cap-scan-sweep {
  0% { top: -40%; }
  100% { top: 100%; }
}

.cap-live-chip {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 15, 18, 0.6);
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d9d5e0;
}

.cap-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #4ade80;
  animation: cap-dot-breathe 2s ease-in-out infinite;
}

@keyframes cap-dot-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.cap-readout {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(15, 15, 18, 0.6);
  font-family: var(--mono);
  font-size: 0.54rem;
  color: #b8b3c1;
}

.cap-capture-bar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 0 12px;
}

.cap-shutter {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 3px solid #f6f4f8;
  background: transparent;
  display: grid;
  place-items: center;
}

.cap-shutter::after {
  content: "";
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #f6f4f8;
}

.cap-shutter.is-recording { border-color: #f0645f; }

.cap-shutter.is-recording::after {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: #f0645f;
  animation: cap-rec-pulse 1.4s ease-in-out infinite;
}

@keyframes cap-rec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.cap-rec-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(240, 100, 95, 0.16);
  border: 1px solid rgba(240, 100, 95, 0.4);
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 700;
  color: #ffb3b0;
}

.cap-thumb-pop {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 2px solid #f6f4f8;
  background: linear-gradient(160deg, #7a6bb0, #3d3556);
  animation: cap-thumb-in 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cap-thumb-in {
  from { transform: scale(0.4) translateY(6px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.cap-rgb-panel {
  margin: 6px 10px 10px;
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 8px;
}

.cap-slider-row {
  display: grid;
  grid-template-columns: 14px 1fr 22px;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: #b8b3c1;
}

.cap-slider-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.cap-slider-fill { height: 100%; border-radius: 999px; }
.cap-slider-row.r .cap-slider-fill { background: #f0645f; width: 72%; }
.cap-slider-row.g .cap-slider-fill { background: #4ade80; width: 45%; }
.cap-slider-row.b .cap-slider-fill { background: #7dc9f0; width: 88%; }

.cap-fps-panel {
  margin: 6px 10px 10px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.cap-fps-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: #b8b3c1;
  margin-bottom: 7px;
}

.cap-fps-head strong { color: #f6f4f8; }

.cap-fps-track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.cap-fps-fill {
  position: absolute;
  inset: 0;
  width: 82%;
  border-radius: 999px;
  background: #a88ff4;
}

.cap-fps-knob {
  position: absolute;
  top: 50%;
  left: 82%;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.cap-gallery-grid {
  margin: 8px 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  flex: 1;
}

.cap-gallery-grid div {
  border-radius: 7px;
  background: linear-gradient(160deg, var(--tile-a, #6a5aa0), var(--tile-b, #35304a));
}

.cap-gallery-open {
  margin: 0 10px 10px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.56rem;
  color: #b8b3c1;
}

.cap-dots { display: flex; gap: 7px; }

.cap-dots button {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  padding: 0;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.cap-dots button.is-active {
  background: var(--accent);
  transform: scale(1.3);
}

.cap-swipe-arrows { display: flex; gap: 8px; }

.cap-swipe-arrows button {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
}

.cap-swipe-arrows button:hover { border-color: var(--accent); color: var(--accent); }
.cap-swipe-arrows button:disabled { opacity: 0.35; cursor: default; }

.cap-track-outer {
  min-width: 0;
  width: 100%;
  justify-self: stretch;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.cap-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.cap-track::-webkit-scrollbar { display: none; }

.cap-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 30px 32px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 18px;
  border-left: 4px solid var(--slide-color, var(--accent));
}

.cap-slide .cap-number {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--slide-color, var(--accent));
  font-weight: 600;
  margin-bottom: 10px;
}

.cap-slide h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.cap-slide p {
  margin: 0;
  max-width: 48ch;
}

@media (prefers-reduced-motion: reduce) {
  .cap-screen-panel,
  .cap-feed-scan,
  .cap-live-dot,
  .cap-shutter.is-recording::after,
  .cap-thumb-pop {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 820px) {
  .capabilities-showcase {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
}

/* Project hub landing page */

.hub-hero {
  padding: 52px 48px;
  max-width: 760px;
}

.hub-hero .eyebrow {
  margin-bottom: 18px;
}

.hub-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hub-hero p {
  margin: 0 0 26px;
  font-size: 1.05rem;
  max-width: 62ch;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

@media (max-width: 720px) {
  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #29292e 0%, #232327 100%);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--card-color, var(--accent)) 55%, var(--border));
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--card-color, var(--accent));
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--card-color, var(--accent)) 22%, var(--surface-soft));
}

.project-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--card-color, var(--accent));
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.project-status.is-live {
  background: var(--teal-soft);
  color: var(--teal);
}

.project-status.is-soon {
  background: var(--surface-soft);
  color: var(--muted);
}

.project-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.project-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.project-card-cta {
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--card-color, var(--accent));
}
