:root {
  --bg: #06101b;
  --bg-soft: rgba(9, 19, 35, 0.82);
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(135, 111, 255, 0.34);
  --text: #f5f7ff;
  --text-muted: #afbbd3;
  --accent: #74efd9;
  --primary: #7e72ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(114, 100, 255, 0.24), transparent 30%),
    radial-gradient(circle at right center, rgba(60, 145, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #07111f 0%, #081521 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
}

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

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

.video-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 28px;
}

.video-page__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.video-page__glow--one {
  top: 40px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: rgba(126, 114, 255, 0.3);
}

.video-page__glow--two {
  bottom: -80px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: rgba(116, 239, 217, 0.14);
}

.brand-bar,
.video-hero {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.brand-bar {
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand__logo {
  width: 48px;
  height: 48px;
  padding: 7px;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
}

.brand__copy {
  display: grid;
  gap: 2px;
}

.brand__name,
.video-hero h1,
.video-stage h2 {
  font-family: "Space Grotesk", sans-serif;
}

.brand__name {
  font-size: 1rem;
  font-weight: 700;
}

.brand__tag {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  color: #06101b;
  background: linear-gradient(135deg, #79f4de 0%, #8fafff 55%, #a074ff 100%);
  box-shadow: 0 18px 40px rgba(111, 188, 255, 0.22);
}

.button--secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.video-hero {
  display: grid;
  gap: 24px;
  align-items: end;
}

.video-hero__copy {
  max-width: 860px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-hero h1 {
  margin: 20px 0 0;
  font-size: clamp(2rem, 4vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.video-hero p,
.video-note,
.video-empty-state span {
  color: var(--text-muted);
  line-height: 1.7;
}

.video-hero p {
  margin: 20px 0 0;
  max-width: 60ch;
  font-size: 1.05rem;
}

.video-stage {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.video-stage__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.video-stage__label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-stage h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1;
}

.video-stage__status {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.84rem;
  white-space: nowrap;
}

.video-frame {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(160deg, rgba(22, 46, 83, 0.86), rgba(8, 15, 28, 0.94)),
    radial-gradient(circle at top right, rgba(116, 239, 217, 0.12), transparent 34%);
  min-height: 540px;
}

.featured-video {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: 100%;
  min-height: 540px;
  object-fit: contain;
  object-position: center;
  background: #02070f;
  opacity: 0;
  transition: opacity 220ms ease;
}

.video-frame.is-loaded .featured-video {
  opacity: 1;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 7, 15, 0.14), rgba(2, 7, 15, 0.48)),
    linear-gradient(90deg, rgba(5, 11, 22, 0.34), transparent 28%, rgba(5, 11, 22, 0.14));
}

.video-empty-state {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
}

.video-empty-state p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.video-frame.is-loaded .video-empty-state {
  display: none;
}

.video-note {
  margin: 18px 0 0;
}

strong {
  color: var(--text);
}

.not-found-page {
  display: grid;
  align-items: center;
}

.not-found-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 24px;
}

.not-found-card,
.not-found-panel {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.not-found-code,
.not-found-card h1 {
  font-family: "Space Grotesk", sans-serif;
}

.not-found-code {
  margin: 18px 0 0;
  color: rgba(245, 247, 255, 0.26);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.not-found-card h1 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.not-found-copy,
.route-list__empty,
.route-link span,
.not-found-path {
  color: var(--text-muted);
  line-height: 1.7;
}

.not-found-copy {
  margin: 18px 0 0;
  max-width: 58ch;
  font-size: 1.02rem;
}

.not-found-path {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.94rem;
  word-break: break-word;
}

.not-found-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.route-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.route-link {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.route-link:hover,
.route-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
}

.route-link strong {
  font-size: 1rem;
}

@media (max-width: 900px) {
  .video-page {
    padding: 18px;
  }

  .video-hero h1 {
    max-width: none;
    font-size: clamp(2.5rem, 12vw, 4.4rem);
  }

  .video-stage {
    padding: 20px;
  }

  .video-frame,
  .featured-video {
    min-height: 320px;
  }

  .not-found-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand {
    width: 100%;
    justify-content: center;
  }

  .brand__copy {
    text-align: left;
  }

  .video-stage__header {
    flex-direction: column;
  }

  .video-frame,
  .featured-video {
    min-height: 220px;
  }

  .not-found-card,
  .not-found-panel {
    padding: 22px;
  }

  .not-found-actions .button {
    width: 100%;
  }
}
