:root {
  --bg: #ffffff;
  --bg-soft: #f3f6f9;
  --card: #ffffff;
  --border: #d5e0ea;
  --blue: #1d6fb8;
  --blue-hot: #155a96;
  --text: #1b2a3a;
  --muted: #5b6b7c;
  --soft: #3e5163;
  --radius: 14px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

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

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  isolation: isolate;
  transform: translateZ(0);
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand .up {
  color: var(--blue);
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.nav-cta:hover,
.btn:hover {
  background: var(--blue-hot);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: #9bb3c7;
  background: #eef4f9;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  color: var(--blue);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  letter-spacing: -0.04em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.lede {
  color: var(--soft);
  font-size: 1.12rem;
  max-width: 38rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-visual {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
}

.hero-visual img {
  width: 100%;
  height: auto;
  background: #0b0d10;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--soft);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

section {
  padding: 72px 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 8px 0 12px;
}

.section-head p,
.muted {
  color: var(--muted);
}

.band {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.feature-row.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.feature-row.reverse .copy {
  order: 1;
}

.feature-row.reverse .visual {
  order: 2;
}

.visual {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.copy h3 {
  font-size: 1.7rem;
  margin: 8px 0 12px;
}

.copy p {
  color: var(--muted);
  font-size: 1.02rem;
}

.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mode-card,
.tile,
.flow-step {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.visual img,
.mode-card img,
.tile img,
.flow-step img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: top center;
  background: #0b0d10;
}

.mode-card img,
.tile img,
.flow-step img {
  border-bottom: 1px solid var(--border);
}

.tile.photo img {
  object-position: center;
  background: var(--card);
}

.gdpr .visual img {
  object-fit: contain;
}

.visual-composite {
  border: none;
  background: transparent;
  overflow: visible;
  width: min(820px, 76%);
  margin: 0 auto 56px;
}

.visual-composite img {
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}

.mode-card .body,
.tile .body,
.flow-step .body {
  flex: 1;
  padding: 20px;
}

.rooms {
  scroll-margin-top: 68px;
}

.rooms-carousel {
  --room-gap: 24px;
  --room-visible: 3;
}

.rooms-viewport {
  container-type: inline-size;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
  outline: none;
}

.rooms-viewport::-webkit-scrollbar {
  display: none;
}

.rooms-viewport.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}

.rooms-viewport:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 6px;
  border-radius: 18px;
}

.rooms-banner {
  display: flex;
  gap: var(--room-gap);
  width: max-content;
  padding-bottom: 18px;
}

.rooms-banner figure {
  position: relative;
  flex: 0 0 calc((100cqw - (var(--room-visible) - 1) * var(--room-gap)) / var(--room-visible));
  margin: 0;
  overflow: hidden;
  min-height: 0;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0c1622;
  box-shadow: 0 10px 28px rgba(27, 42, 58, 0.08);
}

.rooms-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.55s ease;
}

.rooms-banner figure:hover img {
  transform: scale(1.035);
}

.rooms-banner figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 22px 20px;
  background: linear-gradient(transparent, rgba(12, 22, 34, 0.78));
  color: #fff;
}

.rooms-banner figcaption strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.rooms-banner figcaption span {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  line-height: 1.45;
}

.rooms-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 6px;
}

.rooms-arrow {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.rooms-arrow svg {
  width: 18px;
  height: 18px;
}

.rooms-arrow:hover:not(:disabled),
.rooms-arrow:focus-visible:not(:disabled) {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  outline: none;
}

.rooms-arrow:disabled {
  opacity: 0.38;
  cursor: default;
}

.rooms-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rooms-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c5d3e0;
  cursor: pointer;
  transition: width 0.25s ease, background 0.2s ease;
}

.rooms-dot:hover,
.rooms-dot:focus-visible {
  background: #8aa4ba;
  outline: none;
}

.rooms-dot.is-active {
  width: 22px;
  background: var(--blue);
}

.rooms-carousel.is-static .rooms-controls {
  display: none;
}

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

  .rooms-banner img,
  .rooms-dot,
  .rooms-arrow {
    transition: none;
  }
}

.mode-card h3,
.tile h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.mode-card p,
.tile p {
  color: var(--muted);
  font-size: 0.95rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.gdpr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: #eef5fb;
  border: 1px solid #c5d9ec;
  border-radius: 20px;
  padding: 28px;
}

.gdpr h3 {
  font-size: 1.8rem;
  margin: 8px 0 12px;
}

.lock {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.flow-step {
  min-height: 0;
}

.flow-step span {
  display: block;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.flow-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.flow-step p {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.demo {
  scroll-margin-top: 68px;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.demo-intro {
  margin-bottom: 0;
  max-width: 28rem;
}

.demo-panel {
  max-width: 36rem;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.demo-field .optional {
  font-weight: 500;
  color: var(--muted);
}

.demo-field input,
.demo-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.demo-field textarea {
  resize: vertical;
  min-height: 110px;
}

.demo-field input:focus,
.demo-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 111, 184, 0.16);
}

.demo-field input[aria-invalid="true"],
.demo-field textarea[aria-invalid="true"] {
  border-color: #b42318;
}

.demo-field-error {
  min-height: 1.1em;
  font-size: 0.82rem;
  color: #b42318;
}

.demo-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.demo-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.demo-status[data-state="error"] {
  color: #b42318;
}

.demo-status[data-state="pending"] {
  color: var(--soft);
}

.demo-form .btn {
  align-self: flex-start;
  min-width: 10.5rem;
}

.demo-form .btn[aria-busy="true"] {
  opacity: 0.72;
  cursor: wait;
}

.demo-success {
  padding: 4px 0 8px;
}

.demo-success h3 {
  font-size: 1.45rem;
  margin: 6px 0 10px;
}

.demo-success p {
  color: var(--muted);
  max-width: 32rem;
}

.nav-links-cta {
  display: none;
}

.media-frame {
  position: relative;
  isolation: isolate;
}

.video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: calc(100% - 24px);
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(12, 22, 34, 0.78);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(12, 22, 34, 0.22);
}

.video-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

.video-badge-tip {
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: max-width 0.22s ease, margin 0.22s ease, opacity 0.18s ease;
}

.video-badge:hover,
.video-badge:focus,
.video-badge:focus-visible,
.video-badge.is-expanded {
  background: var(--blue);
  border-color: transparent;
  outline: none;
}

.video-badge:hover .video-badge-tip,
.video-badge:focus .video-badge-tip,
.video-badge:focus-visible .video-badge-tip,
.video-badge.is-expanded .video-badge-tip {
  max-width: 220px;
  margin-left: 8px;
  opacity: 1;
}

.rooms-banner .video-badge {
  top: 14px;
  right: 14px;
}

body.video-open {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 22, 0.86);
}

.video-modal-dialog {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  background: #101820;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.video-modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  z-index: 4;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.video-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  flex: 1;
  min-height: 0;
  height: min(78vh, 760px);
}

.player-stage {
  position: relative;
  overflow: hidden;
  background: #07090c;
  min-height: 280px;
}

.player-stage video,
.player-stage .player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #07090c;
}

.player-stage video {
  z-index: 1;
  color-scheme: dark;
}

.player-stage.is-empty video {
  visibility: hidden;
}

.player-stage.is-empty .player-poster {
  z-index: 1;
}

.player-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(transparent, rgba(7, 9, 12, 0.55));
  color: #fff;
  text-align: center;
  pointer-events: none;
}

.player-stage.is-playable .player-empty {
  pointer-events: auto;
  cursor: pointer;
  background: rgba(7, 9, 12, 0.28);
}

.player-stage.is-playable .player-empty p {
  background: rgba(7, 9, 12, 0.78);
}

.player-empty[hidden],
.player-poster[hidden] {
  display: none;
}

.player-empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(29, 111, 184, 0.92);
}

.player-empty-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  margin-left: 2px;
}

.player-empty p {
  max-width: 18rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  background: rgba(7, 9, 12, 0.72);
  padding: 8px 12px;
  border-radius: 8px;
}

.video-rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: #141c26;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.video-rail-head {
  padding: 22px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.video-rail-head .kicker {
  margin-bottom: 8px;
}

.video-rail-head h2,
.video-rail-head h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.video-rail-copy {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.video-rail-link {
  color: #8ec4ef;
  font-size: 0.86rem;
  font-weight: 600;
}

.video-rail-link:hover {
  color: #fff;
}

.video-rail-list,
.video-group ul {
  list-style: none;
}

.video-rail-list {
  flex: 1;
  overflow: auto;
  padding: 10px;
}

.video-rail-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.video-rail-item img,
.video-rail-placeholder {
  width: 84px;
  height: 52px;
  object-fit: cover;
  border-radius: 7px;
  background: #0b0d10;
}

.video-rail-placeholder {
  display: grid;
  place-items: center;
  align-self: center;
}

.video-rail-placeholder svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.82);
  margin-left: 2px;
}

.video-rail-item strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.video-rail-item em {
  display: block;
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
}

.video-rail-item:hover,
.video-rail-item.is-current {
  background: rgba(29, 111, 184, 0.28);
}

.walkthrough {
  padding: 48px 0 80px;
}

.walkthrough-hero {
  max-width: 40rem;
  margin-bottom: 32px;
}

.walkthrough-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.walkthrough-app {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.walkthrough-side {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-height: calc(100vh - 100px);
}

.walkthrough-side .video-rail-list {
  flex: 1;
  max-height: none;
  padding: 8px;
}

.walkthrough .video-rail-item {
  color: var(--text);
}

.walkthrough .video-rail-item em {
  color: var(--muted);
}

.walkthrough .video-rail-item:hover,
.walkthrough .video-rail-item.is-current {
  background: #eef5fb;
}

.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.chapter-chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--soft);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.chapter-chip.is-current,
.chapter-chip:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.walkthrough-player {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.walkthrough-player .player-stage {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.walkthrough-copy {
  padding: 22px 24px 24px;
}

.walkthrough-copy h2 {
  font-size: 1.5rem;
  margin: 6px 0 10px;
}

.walkthrough-copy p {
  color: var(--muted);
}

.walkthrough-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 980px) {
  .hero-grid,
  .feature-row,
  .feature-row.reverse,
  .modes,
  .grid-3,
  .gdpr,
  .flow,
  .video-modal-layout,
  .walkthrough-app,
  .demo-layout,
  .demo-row {
    grid-template-columns: 1fr;
  }

  .rooms-carousel {
    --room-visible: 2;
    --room-gap: 20px;
  }

  .feature-row.reverse .copy,
  .feature-row.reverse .visual {
    order: unset;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .visual-composite {
    width: 100%;
    max-width: none;
    margin-bottom: 40px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links-cta {
    display: list-item;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 20px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .video-modal {
    padding: 0;
  }

  .video-modal-dialog,
  .walkthrough-side {
    border-radius: 0;
  }

  .video-modal-layout {
    min-height: 0;
    height: auto;
    max-height: 100vh;
  }

  .video-modal-dialog {
    max-height: 100vh;
  }

  .player-stage {
    aspect-ratio: 16 / 9;
  }

  .video-rail,
  .walkthrough-side .video-rail-list {
    max-height: 42vh;
  }

  .walkthrough-side {
    position: static;
  }
}

@media (max-width: 680px) {
  .rooms-carousel {
    --room-visible: 1;
    --room-gap: 16px;
  }

  .rooms-banner figcaption {
    padding: 40px 16px 16px;
  }
}
