﻿:root {
  color-scheme: light;
  --text: #f8fbff;
  --muted: rgba(248, 251, 255, 0.78);
  --line: rgba(255, 255, 255, 0.24);
  --panel: rgba(17, 24, 39, 0.28);
  --accent: #d9f7ef;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text);
  background: #101827;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

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

button {
  font: inherit;
}

.site-flow {
  min-height: 200vh;
}

.landing-page {
  position: relative;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
}

.landing-video,
.landing-shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landing-video {
  object-fit: cover;
  filter: saturate(0.86) contrast(0.96) brightness(0.76);
}

.landing-shade {
  background:
    linear-gradient(180deg, rgba(12, 18, 30, 0.34), rgba(12, 18, 30, 0.78)),
    linear-gradient(90deg, rgba(12, 18, 30, 0.66), rgba(12, 18, 30, 0.2) 50%, rgba(12, 18, 30, 0.58));
}

.welcome-panel {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(860px, calc(100vw - 36px));
  padding: 0 24px;
  text-align: center;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.48);
}

.welcome-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome-panel h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.5rem, 6.6vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.welcome-panel p:not(.welcome-kicker) {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.75;
}

.scroll-hint {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: hint-float 1.8s ease-in-out infinite;
}

.intro-reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 720ms ease,
    transform 760ms ease;
}

.intro-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.welcome-panel .intro-reveal:nth-child(1) {
  transition-delay: 120ms;
}

.welcome-panel .intro-reveal:nth-child(2) {
  transition-delay: 260ms;
}

.welcome-panel .intro-reveal:nth-child(3) {
  transition-delay: 420ms;
}

.welcome-panel .intro-reveal:nth-child(4) {
  transition-delay: 620ms;
}

.floating-banner {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: clamp(218px, 29vh, 340px);
  overflow: hidden;
  pointer-events: auto;
  user-select: none;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 760ms ease 420ms,
    transform 820ms ease 420ms;
}

.floating-banner.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.banner-track {
  display: flex;
  width: max-content;
  gap: 0;
  padding: 36px 0 48px;
  --banner-shift: 50%;
  animation: float-scroll 52s linear infinite;
  will-change: transform;
}

.banner-set {
  display: flex;
  flex: 0 0 auto;
  gap: clamp(16px, 2vw, 28px);
  padding-right: clamp(16px, 2vw, 28px);
}

.banner-item {
  display: block;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  animation: banner-drift 8.4s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  will-change: transform;
}

.banner-item:nth-child(3n + 1) {
  animation-delay: -1.8s;
}

.banner-item:nth-child(3n + 2) {
  animation-delay: -4.6s;
  animation-duration: 9.6s;
}

.banner-item:nth-child(3n) {
  animation-delay: -6.9s;
  animation-duration: 7.8s;
}

.banner-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: var(--radius);
}

.banner-set img {
  display: block;
  width: clamp(112px, 8.5vw, 166px);
  height: clamp(166px, 22vh, 264px);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform-origin: center;
  transition: transform 160ms ease, filter 160ms ease;
  pointer-events: none;
}

.banner-item:hover img {
  transform: translateY(-4px);
  filter: brightness(1.06) saturate(1.04);
}

@keyframes float-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--banner-shift)));
  }
}

@keyframes banner-drift {
  0% {
    transform: translate3d(0, 7px, 0) rotate(-0.55deg);
  }

  48% {
    transform: translate3d(0, -13px, 0) rotate(0.7deg);
  }

  100% {
    transform: translate3d(0, 4px, 0) rotate(-0.35deg);
  }
}

@keyframes hint-float {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.72;
  }

  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

.dashboard-screen {
  position: relative;
  z-index: 4;
  width: 100vw;
  height: 100svh;
  background: #f6f8fb;
  scroll-snap-align: start;
}

.dashboard-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.image-viewer {
  width: min(88vw, 980px);
  max-width: 980px;
  max-height: 88vh;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.image-viewer::backdrop {
  background: rgba(0, 0, 0, 0.56);
}

.image-viewer img {
  display: block;
  width: 100%;
  max-height: calc(88vh - 56px);
  object-fit: contain;
  border-radius: var(--radius);
}

.viewer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(17, 24, 39, 0.7);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

@media (max-width: 760px) {
  .welcome-panel {
    padding: 0 18px;
  }

  .floating-banner {
    height: clamp(206px, 31vh, 310px);
  }

  .banner-track {
    animation-duration: 32s;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .intro-reveal,
  .floating-banner {
    opacity: 1 !important;
    transform: none !important;
  }
}
