:root {
  --white: #ffffff;
  --glass: rgba(8, 32, 58, 0.28);
  --line: rgba(255, 255, 255, 0.72);
  --muted: rgba(255, 255, 255, 0.78);
  --shadow: rgba(0, 10, 24, 0.42);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background: #08233d;
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  padding: clamp(10px, 2.2vw, 28px) clamp(24px, 5vw, 88px) clamp(22px, 4.6vw, 72px);
}

.ambient-bg,
.blue-wash {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.ambient-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  filter: blur(5px) saturate(1.06);
  opacity: 0.9;
  transition: opacity 420ms ease, transform 900ms ease;
}

.ambient-bg.is-changing img {
  opacity: 0.2;
  transform: scale(1.18);
}

.blue-wash {
  z-index: -1;
  background:
    radial-gradient(circle at 25% 22%, rgba(101, 169, 228, 0.36), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(40, 137, 211, 0.28), transparent 26%),
    linear-gradient(120deg, rgba(5, 16, 35, 0.72), rgba(3, 72, 130, 0.48) 48%, rgba(3, 23, 48, 0.78));
  backdrop-filter: blur(2px);
}

.site-header {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: 28px;
  max-width: 1500px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(22px, 1.8vw, 30px);
  letter-spacing: 0.12em;
}

.brand-logo {
  width: clamp(34px, 3vw, 46px);
  height: clamp(34px, 3vw, 46px);
  flex: 0 0 auto;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 10, 24, 0.24);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(32px, 4vw, 68px);
}

.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  height: 3px;
  background: var(--white);
  border-radius: 999px;
}

.header-actions {
  justify-self: end;
  display: flex;
  gap: 24px;
}

.icon-button,
.nav-arrow {
  display: inline-grid;
  place-items: center;
  border: 2.4px solid #ffffff;
  background: transparent;
  appearance: none;
  outline: none;
  box-shadow: none;
  cursor: pointer;
}

.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button svg {
  display: block;
  width: 27px;
  height: 27px;
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 1500px;
  margin: clamp(24px, 4vh, 48px) auto 0;
}

.hero-card {
  position: relative;
  width: min(74vw, 1248px);
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: clamp(20px, 2vw, 34px);
  background: var(--glass);
  box-shadow: 0 34px 72px var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 360ms ease, transform 900ms ease;
}

.hero-card.is-changing .hero-image {
  opacity: 0.28;
  transform: scale(1.04);
}

.hero-copy {
  position: absolute;
  top: 12.5%;
  right: 1.6%;
  width: min(43%, 560px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Segoe UI", sans-serif;
  font-size: clamp(76px, 6.4vw, 132px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span {
  display: block;
  white-space: nowrap;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

h1 .outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9);
  text-stroke: 2px rgba(255, 255, 255, 0.9);
}

.hero-description {
  max-width: 500px;
  margin: 0;
  font-size: clamp(14px, 0.9vw, 16px);
  line-height: 1.55;
  color: #ffffff;
  white-space: nowrap;
}

.hero-description-wrap {
  position: absolute;
  right: 3.1%;
  bottom: 8.2%;
  width: min(68%, 820px);
  text-align: right;
}

.nav-arrow:hover,
.icon-button:hover,
.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-arrow:hover {
  transform: translateY(-1px);
}

.nav-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(0, 15, 31, 0.36);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background-color 180ms ease;
}

.nav-arrow svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.7;
}

.nav-arrow-left {
  left: 0;
  transform: translate(-50%, -50%);
}

.nav-arrow-right {
  right: 0;
  transform: translate(50%, -50%);
}

.nav-arrow-left:hover {
  transform: translate(-50%, calc(-50% - 1px));
}

.nav-arrow-right:hover {
  transform: translate(50%, calc(-50% - 1px));
}

.pager {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 42px;
}

.pager button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 220ms ease, background-color 220ms ease;
}

.pager button[aria-current="true"] {
  width: 38px;
  background: var(--white);
}

.page-footer {
  position: fixed;
  left: clamp(24px, 5vw, 88px);
  right: clamp(24px, 5vw, 88px);
  bottom: clamp(22px, 4vh, 48px);
  display: flex;
  justify-content: space-between;
  align-items: end;
  pointer-events: none;
}

.social-links,
.icp-link,
.scroll-hint {
  pointer-events: auto;
}

.social-links {
  display: flex;
  gap: 22px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.52);
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.social-links img {
  display: block;
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.icp-link {
  position: absolute;
  left: 50%;
  bottom: -28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transform: translateX(-50%);
  transition: color 180ms ease;
  white-space: nowrap;
}

.icp-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.mouse-icon {
  position: relative;
  width: 30px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
}

.mouse-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
  animation: wheel 1.6s ease-in-out infinite;
}

@keyframes wheel {
  0%,
  100% {
    opacity: 0.35;
    transform: translate(-50%, 0);
  }
  45% {
    opacity: 1;
    transform: translate(-50%, 8px);
  }
}

@media (max-width: 1180px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .page-shell {
    min-height: 100svh;
    padding-bottom: 96px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: center;
  }

  .main-nav a.active::after {
    top: calc(100% + 7px);
  }

  .hero-card {
    width: min(88vw, 940px);
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .hero-copy {
    top: auto;
    left: 7%;
    right: 7%;
    bottom: 18%;
    width: auto;
  }

  .hero-description-wrap {
    left: 7%;
    right: 7%;
    bottom: 8%;
    width: auto;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 14px 18px 92px;
  }

  .site-header {
    gap: 16px;
  }

  .brand {
    font-size: 21px;
  }

  .header-actions {
    gap: 12px;
  }

  .main-nav {
    gap: 22px;
    overflow-x: auto;
    justify-content: start;
    padding-bottom: 8px;
  }

  .main-nav a {
    font-size: 14px;
  }

  .hero-stage {
    margin-top: 22px;
  }

  .hero-card {
    width: 100%;
    min-height: 0;
    border-radius: 22px;
  }

  .hero-copy {
    left: 22px;
    right: 22px;
    top: 18px;
    bottom: auto;
  }

  .hero-description-wrap {
    left: 22px;
    right: 22px;
    bottom: 18px;
    width: auto;
    text-align: right;
  }

  h1 {
    font-size: clamp(34px, 10.8vw, 42px);
    line-height: 0.96;
  }

  .hero-description {
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
  }

  .nav-arrow {
    display: none;
  }

  .pager {
    margin-top: 24px;
  }

  .page-footer {
    position: static;
    margin-top: 28px;
    flex-wrap: wrap;
    gap: 18px 22px;
    align-items: center;
  }

  .icp-link {
    position: static;
    order: 3;
    width: 100%;
    text-align: center;
    transform: none;
  }

  .scroll-hint span:first-child {
    display: none;
  }
}
