:root {
  --site-tab-h: 48px;
  --site-eyebrow-gap: 20px;
  --site-headline-top: 64px;
  --site-headline-bottom: 15px;
  --site-lead-bottom: 80px;
}

.site-hero {
  width: 100%;
  margin-top: calc(-1 * var(--site-tab-h));
  margin-bottom: 24px;
  background: #000;
}

.site-hero__media {
  position: relative;
  width: 100%;
  line-height: 0;
}

.site-hero__video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 720px);
  object-fit: cover;
  vertical-align: top;
  opacity: 1;
  transition: opacity 0.75s ease;
}

.site-hero__video.is-faded {
  opacity: 0;
}

.site-hero__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(58vw, 320px);
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  filter: brightness(0);
  transition: filter 0.75s ease;
}

.site-hero__media.is-faded .site-hero__logo {
  filter: brightness(0) invert(1);
}

.site-top-tabs {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-top-tabs--over-video {
  position: sticky;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.site-top-tabs--solid {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.site-top-tabs__scroll {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 8px;
}

.site-top-tabs__scroll::-webkit-scrollbar {
  display: none;
}

.site-top-tabs__btn {
  flex: 0 0 auto;
  padding: 14px 14px 11px;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #8e8e93;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-top-tabs__btn:hover {
  color: #636366;
}

.site-top-tabs__btn.is-active {
  color: #5b7fff;
  border-bottom-color: #5b7fff;
}

.site-section {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 0;
  box-sizing: border-box;
}

.site-section--intro {
  padding-top: 28px;
}

.site-section__eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b7fff;
}

.site-section__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
}

.site-section__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}

.site-section__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-section__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 12px rgba(91, 127, 255, 0.06);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}

.site-section__list li strong {
  color: var(--text);
}

.site-section__icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.2;
}

.site-section--robot {
  max-width: 1120px;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 96px;
}

.site-section--robot .site-section__eyebrow {
  display: block;
  margin: 0 0 var(--site-eyebrow-gap);
  color: #8e8e93;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.robot-headline {
  margin: var(--site-headline-top) 0 var(--site-headline-bottom);
  font-size: clamp(22px, 3.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.38;
  color: var(--text);
}

.robot-headline strong {
  font-weight: 800;
}

.robot-lead {
  max-width: 720px;
  margin: 0 auto var(--site-lead-bottom);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-2);
}

.robot-hint {
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 700;
  color: #5b7fff;
  letter-spacing: -0.01em;
}

.robot-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.robot-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.robot-picker__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.2s ease;
}

.robot-picker__btn:hover {
  transform: translateY(-1px);
}

.robot-picker__btn:focus-visible {
  outline: 2px solid #5b7fff;
  outline-offset: 4px;
  border-radius: 999px;
}

.robot-picker__dot {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #d5d3eb;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.robot-picker__btn.is-active .robot-picker__dot {
  background: #5b7fff;
  box-shadow: 0 6px 18px rgba(91, 127, 255, 0.28);
}

.robot-picker__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  word-break: keep-all;
}

.robot-room {
  position: relative;
  width: 100%;
  margin-top: 24px;
}

.robot-room__panel {
  width: 100%;
  animation: robotRoomIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.robot-room__panel[hidden] {
  display: none;
}

.robot-scene {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  user-select: none;
}

.robot-scene__img {
  display: block;
  width: 100%;
  height: auto;
}

.robot-scene__hotspot {
  position: absolute;
  top: var(--hotspot-top);
  left: var(--hotspot-left);
  width: var(--hotspot-width);
  height: var(--hotspot-height);
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(91, 127, 255, 0);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}

.robot-scene__hotspot:hover,
.robot-scene__hotspot:focus-visible {
  background: rgba(91, 127, 255, 0.12);
  border-color: rgba(91, 127, 255, 0.45);
  outline: none;
}

.robot-scene.is-moving .robot-scene__hotspot {
  pointer-events: none;
  cursor: default;
}

.robot-scene__hotspot-label {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(91, 127, 255, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.robot-scene__hotspot:hover .robot-scene__hotspot-label,
.robot-scene__hotspot:focus-visible .robot-scene__hotspot-label {
  opacity: 1;
}

.robot-scene__robot {
  position: absolute;
  left: 48%;
  top: 52%;
  width: 9%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
  will-change: left, top;
}

.robot-scene__robot img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
  transition: transform 0.15s ease;
}

.robot-scene__robot.is-flipped img {
  transform: scaleX(-1);
}

.robot-scene__bubble {
  position: absolute;
  left: 48%;
  top: 42%;
  z-index: 4;
  max-width: min(300px, 48%);
  margin: 0;
  padding: 14px 18px 16px;
  border-radius: 16px;
  background: #5b7fff;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-align: center;
  box-shadow: 0 10px 28px rgba(91, 127, 255, 0.35);
  transform: translate(-50%, -100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, top 0.35s ease, left 0.35s ease;
}

.robot-scene__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, calc(100% - 1px));
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #5b7fff;
}

.robot-scene__bubble.is-below {
  transform: translate(-50%, 0);
  padding: 16px 18px 14px;
}

.robot-scene__bubble.is-below::after {
  bottom: auto;
  top: 0;
  transform: translate(-50%, calc(-100% + 1px));
  border-top: none;
  border-bottom: 9px solid #5b7fff;
}

.robot-scene__bubble.is-wide {
  max-width: min(380px, 64%);
  padding-left: 22px;
  padding-right: 22px;
}

.robot-scene__bubble.is-visible {
  opacity: 1;
}

.robot-scene__bubble[hidden] {
  display: block;
  opacity: 0;
  visibility: hidden;
}

.robot-room__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

@keyframes robotRoomIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-section--app {
  max-width: 1120px;
  text-align: left;
  padding-top: 80px;
  padding-bottom: 64px;
  background: #ffffff;
}

.site-section--app .site-section__eyebrow {
  display: block;
  margin: 0 0 var(--site-eyebrow-gap);
  color: #8e8e93;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.app-experience__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.app-headline {
  margin: var(--site-headline-top) 0 var(--site-headline-bottom);
  font-size: clamp(22px, 3.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.38;
  color: var(--text);
}

.app-lead {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-2);
  word-break: keep-all;
}

.app-lead--intro {
  margin-bottom: var(--site-lead-bottom);
}

.app-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 22px;
}

.app-feature__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.4;
  color: var(--text);
}

.app-feature__desc {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
  word-break: keep-all;
}

.app-feature__desc:last-child {
  margin-bottom: 0;
}

.app-experience__device {
  position: sticky;
  top: calc(var(--site-tab-h) + 16px);
}

.app-experience__device.demo-stage {
  padding: 0;
  background: transparent;
}

.app-experience__device .viewport {
  min-height: auto;
  padding: 0;
  justify-content: flex-start;
}

.app-experience__device .viewport-label {
  text-align: center;
}

.site-section--app .survey-scroll-hint {
  width: 100%;
  margin-top: 28px;
  text-align: center;
}

.site-section--anchor {
  height: 0;
  padding: 0;
  margin: 0;
}

.site-section--overview {
  max-width: 1120px;
  text-align: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.site-section--overview .site-section__eyebrow {
  display: block;
  margin: 0 0 var(--site-eyebrow-gap);
  color: #8e8e93;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.overview-headline {
  margin: var(--site-headline-top) 0 var(--site-headline-bottom);
  font-size: clamp(24px, 4.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.38;
  color: var(--text);
}

.overview-lead {
  max-width: 700px;
  margin: 0 auto var(--site-lead-bottom);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-2);
}

.overview-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.overview-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 3 / 4.6;
  min-height: 360px;
  cursor: default;
  outline: none;
}

.overview-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.42;
  transition: filter 0.5s ease, opacity 0.5s ease;
}

.overview-card:hover .overview-card__img,
.overview-card:focus-visible .overview-card__img {
  filter: grayscale(0%);
  opacity: 1;
}

.site-section--service {
  max-width: 1120px;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 96px;
}

.site-section--service .site-section__eyebrow {
  display: block;
  margin: 0 0 var(--site-eyebrow-gap);
  color: #8e8e93;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-headline {
  margin: var(--site-headline-top) 0 var(--site-headline-bottom);
  font-size: clamp(22px, 3.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.38;
  color: var(--text);
}

.service-headline strong {
  font-weight: 800;
}

.service-lead {
  max-width: 720px;
  margin: 0 auto var(--site-lead-bottom);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-2);
}

.service-hint {
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 700;
  color: #5b7fff;
  letter-spacing: -0.01em;
}

.service-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.service-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.service-bubble {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 14px 20px 16px;
  border: none;
  border-radius: 14px;
  background: #5b7fff;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(91, 127, 255, 0.28);
  animation: serviceBubblePulse 2.8s ease-in-out infinite;
  box-sizing: border-box;
}

.service-bubble__label {
  line-height: 1.3;
  text-align: center;
}

.service-bubble__chev {
  flex-shrink: 0;
  font-size: 9px;
  opacity: 0.85;
  transition: transform 0.25s ease;
}

.service-panel.is-open .service-bubble {
  animation: none;
}

.service-panel.is-open .service-bubble__chev {
  transform: rotate(180deg);
}

.service-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #5b7fff;
  transition: border-top-color 0.2s ease;
}

.service-bubble:hover {
  background: #4a6ef5;
  transform: translateY(-1px);
}

.service-bubble:hover::after {
  border-top-color: #4a6ef5;
}

.service-panel.is-open .service-bubble {
  background: #3d5fe8;
  box-shadow: 0 10px 28px rgba(61, 95, 232, 0.35);
}

.service-panel.is-open .service-bubble::after {
  border-top-color: #3d5fe8;
}

.service-slot {
  position: relative;
  width: 100%;
  height: 420px;
  min-height: 420px;
  margin-top: 24px;
  flex: 1;
}

.service-slot__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
  border: 2px dashed rgba(91, 127, 255, 0.28);
  border-radius: 22px;
  background: rgba(91, 127, 255, 0.05);
  color: #8e8e93;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-panel.is-open .service-slot__placeholder {
  opacity: 0;
  visibility: hidden;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 32px 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  box-sizing: border-box;
  animation: serviceCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card__title {
  margin: 0;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: var(--text);
  word-break: keep-all;
  text-align: center;
}

.service-card[hidden] {
  display: none;
}

@keyframes serviceBubblePulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(91, 127, 255, 0.28);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 12px 32px rgba(91, 127, 255, 0.42);
    transform: translateY(-2px);
  }
}

@keyframes serviceCardIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card__badge {
  display: inline-block;
  flex-shrink: 0;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-card__icon {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  margin: 0;
  color: #111;
}

.service-card__icon svg {
  display: block;
}

.service-card__desc {
  flex-shrink: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
  word-break: keep-all;
}

@media (max-width: 900px) {
  .service-panels {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 400px;
    margin: 0 auto;
  }

  .service-bubble {
    width: 100%;
    max-width: 320px;
  }

  .robot-panels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
  }

  .robot-picker__dot {
    width: 36px;
    height: 36px;
  }

  .robot-picker__label {
    font-size: 10px;
  }

  .app-experience__layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .app-experience__device {
    position: static;
    justify-self: center;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .site-section--service {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .service-headline {
    margin-top: 40px;
    margin-bottom: var(--site-headline-bottom);
  }

  .service-lead {
    margin-bottom: 52px;
    font-size: 14px;
  }

  .service-slot {
    height: 380px;
    min-height: 380px;
  }

  .service-card {
    padding: 28px 18px;
    gap: 12px;
  }

  .site-section--robot {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .robot-headline {
    margin-top: 40px;
    margin-bottom: var(--site-headline-bottom);
  }

  .robot-lead {
    margin-bottom: 52px;
    font-size: 14px;
  }

  .robot-room {
    margin-top: 20px;
  }

  .robot-scene__robot {
    width: 12%;
  }

  .robot-scene__bubble {
    max-width: 58%;
    font-size: 12px;
    padding: 12px 14px;
  }

  .robot-scene__bubble.is-wide {
    max-width: 72%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-section--app {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .app-experience__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .app-headline {
    margin-top: 40px;
  }

  .app-lead--intro {
    margin-bottom: 52px;
  }

  .app-experience__device {
    position: static;
    justify-self: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card {
    animation: none;
  }

  .service-bubble {
    transition: none;
    animation: none;
  }

  .robot-room__panel {
    animation: none;
  }

  .robot-picker__btn {
    transition: none;
  }

  .robot-picker__dot {
    transition: none;
  }
}

@media (max-width: 900px) {
  .overview-cards {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 380px;
    margin: 0 auto;
  }

  .overview-card {
    min-height: 400px;
  }
}

@media (max-width: 520px) {
  .site-section--overview {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .site-section--overview .site-section__eyebrow {
    margin-bottom: 16px;
  }

  .overview-headline {
    margin-top: 40px;
    margin-bottom: var(--site-headline-bottom);
  }

  .overview-lead {
    margin-bottom: 52px;
    font-size: 14px;
  }
}

@media (min-width: 521px) {
  .site-top-tabs__scroll {
    overflow-x: visible;
    padding: 0;
    justify-content: stretch;
  }

  .site-top-tabs__btn {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 520px) {
  .site-top-tabs {
    top: 0;
  }

  .site-top-tabs__btn {
    font-size: 13px;
    padding: 12px 12px 10px;
  }

  .site-section {
    padding: 24px 16px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-hero__video,
  .site-hero__logo,
  .overview-card__img {
    transition: none;
  }

  .site-top-tabs__btn {
    transition: none;
  }
}
