:root {
  color-scheme: dark;
  --blue: #214bc9;
  --blue-deep: #17389f;
  --blue-line: rgba(126, 164, 255, 0.18);
  --white: #fffaf2;
  --ink: #0d1b4c;
  --panel: rgba(7, 24, 83, 0.52);
  --panel-strong: rgba(6, 20, 68, 0.86);
  --yellow: #ffd84d;
  --green: #3db556;
  --red: #ff5f57;
  --cyan: #86daff;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  background: var(--blue);
  font-family:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  letter-spacing: 0;
}

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

.stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(50, 98, 230, 0.64), transparent 34rem),
    linear-gradient(180deg, #244bc6 0%, #2148c2 52%, #1c43bd 100%);
  color: var(--white);
  isolation: isolate;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--blue-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-line) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(to bottom, black 0%, black 78%, rgba(0, 0, 0, 0.72) 100%);
  z-index: -2;
}

.stage::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 18%, transparent 82%, rgba(9, 24, 84, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 30%);
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1360px);
  margin: 0 auto;
  padding: 32px 0 0;
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 250, 242, 0.82);
}

.demo-label {
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mark img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 250, 242, 0.72);
  border-radius: 12px;
  background: rgba(255, 250, 242, 0.96);
  object-fit: contain;
  box-shadow: 0 10px 22px rgba(0, 18, 94, 0.22);
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(100% - 48px, 980px);
  margin: clamp(76px, 14vh, 150px) auto 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 clamp(20px, 3vw, 32px);
  color: #e8dc79;
  font-size: clamp(11px, 1.3vw, 14px);
  font-weight: 900;
  line-height: 1.5;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(12, 25, 83, 0.32);
}

.logo-lockup {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 22px);
  min-width: 0;
}

.logo-lockup h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 164px;
  font-style: italic;
  font-weight: 500;
  line-height: 0.82;
  color: var(--white);
  white-space: nowrap;
  text-shadow: 0 22px 50px rgba(2, 16, 75, 0.16);
}

.tagline {
  margin: clamp(22px, 3vw, 34px) 0 0;
  color: rgba(255, 250, 242, 0.95);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(24px, 4vw, 54px);
  font-weight: 760;
  line-height: 1.02;
}

.summary {
  width: min(650px, 100%);
  margin: 16px 0 0;
  color: rgba(255, 250, 242, 0.77);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 520;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 34px rgba(0, 15, 74, 0.18);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.action-demo {
  padding: 3px 7px 4px;
  border-radius: 999px;
  background: rgba(33, 75, 201, 0.12);
  color: #214bc9;
  font-size: 10px;
  font-weight: 900;
}

.primary-action:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 216, 77, 0.7);
}

.pixel {
  position: absolute;
  z-index: 1;
  width: 14px;
  height: 14px;
  --base-scale: 1;
  --pulse-scale: 1.04;
  --mid-x: 0px;
  --mid-y: -5px;
  --float-x: 0px;
  --float-y: -10px;
  --float-duration: 7s;
  --float-delay: 0s;
  color: var(--yellow);
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 0 rgba(4, 20, 86, 0.18));
  box-shadow:
    0 -14px currentColor,
    0 14px var(--green),
    -14px 0 var(--red),
    14px 0 var(--yellow);
  animation: pixel-drift var(--float-duration) ease-in-out var(--float-delay) infinite alternate;
  transform: translate3d(0, 0, 0) scale(var(--base-scale));
  will-change: transform, opacity;
}

.pixel::after {
  position: absolute;
  inset: 3px;
  content: "";
  background: #5b2d47;
}

.pixel-a {
  top: 20%;
  left: 23%;
  --base-scale: 0.72;
  --pulse-scale: 0.78;
  --mid-x: 8px;
  --mid-y: -10px;
  --float-x: 16px;
  --float-y: -18px;
  --float-duration: 6.8s;
}

.pixel-b {
  top: 66%;
  left: 11%;
  --base-scale: 0.86;
  --pulse-scale: 0.92;
  --mid-x: -7px;
  --mid-y: 9px;
  --float-x: -14px;
  --float-y: 15px;
  --float-duration: 8.2s;
  --float-delay: -1.7s;
}

.pixel-c {
  top: 52%;
  right: 25%;
  --base-scale: 0.78;
  --pulse-scale: 0.84;
  --mid-x: 7px;
  --mid-y: 8px;
  --float-x: 14px;
  --float-y: 13px;
  --float-duration: 7.6s;
  --float-delay: -3.2s;
}

.pixel-d {
  right: 16%;
  bottom: 14%;
  --base-scale: 0.9;
  --pulse-scale: 0.96;
  --mid-x: -9px;
  --mid-y: -8px;
  --float-x: -18px;
  --float-y: -15px;
  --float-duration: 8.8s;
  --float-delay: -2.4s;
}

.pixel-e {
  top: 23%;
  right: 21%;
  --base-scale: 0.82;
  --pulse-scale: 0.88;
  --mid-x: 6px;
  --mid-y: -8px;
  --float-x: 12px;
  --float-y: -16px;
  --float-duration: 7.1s;
  --float-delay: -4.1s;
}

@keyframes pixel-drift {
  0% {
    opacity: 0.78;
    transform: translate3d(0, 0, 0) scale(var(--base-scale)) rotate(-2deg);
  }

  48% {
    opacity: 1;
    transform: translate3d(var(--mid-x), var(--mid-y), 0) scale(var(--pulse-scale)) rotate(2deg);
  }

  100% {
    opacity: 0.86;
    transform: translate3d(var(--float-x), var(--float-y), 0) scale(var(--base-scale)) rotate(-1deg);
  }
}

@media (max-width: 1100px) {
  .logo-lockup h1 {
    font-size: 132px;
  }
}

@media (max-width: 680px) {
  .topbar {
    width: min(100% - 32px, 1360px);
    padding-top: 18px;
  }

  .hero {
    width: min(100% - 32px, 980px);
    margin-top: 82px;
  }

  .logo-lockup {
    flex-direction: column;
    gap: 4px;
  }

  .logo-lockup h1 {
    font-size: 64px;
  }

  .summary {
    font-size: 15px;
  }

  .actions {
    width: 100%;
  }

  .primary-action {
    width: 100%;
  }

  .pixel-a,
  .pixel-c {
    display: none;
  }

  .pixel-b {
    top: 72%;
    left: 8%;
  }

  .pixel-d {
    right: 12%;
    bottom: 11%;
  }
}

@media (max-width: 430px) {
  .logo-lockup h1 {
    font-size: 56px;
  }
}

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

  .pixel {
    opacity: 1;
    animation: none;
    transform: translate3d(0, 0, 0) scale(var(--base-scale));
  }
}
