:root {
  --ink: #f3f7fb;
  --muted: rgba(230, 238, 246, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --shadow: rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: "BIZ UDPGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

body {
  overflow-x: hidden;
}

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

.preview-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: clamp(28px, 5vw, 68px);
  background: #000 url("./assets/hero-static-bg.jpg") center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -16%;
  z-index: 0;
  background:
    url("./assets/hero-static-bg.jpg") center center / cover no-repeat,
    radial-gradient(circle at 18% 18%, rgba(255, 92, 66, 0.1), transparent 32%),
    radial-gradient(circle at 86% 42%, rgba(0, 222, 236, 0.12), transparent 44%),
    #000;
  animation: baseWash 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0.02)),
    radial-gradient(circle at 46% 52%, transparent 0 44%, rgba(0, 0, 0, 0.02) 70%, rgba(0, 0, 0, 0.26) 100%);
  pointer-events: none;
}

.motion,
.motion-canvas,
.grain {
  position: absolute;
  pointer-events: none;
}

.motion-canvas {
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 1;
  mix-blend-mode: normal;
}

.motion {
  z-index: 1;
  display: block;
  opacity: 0.76;
  filter: blur(22px);
  mix-blend-mode: screen;
}

.grain {
  inset: 0;
  z-index: 4;
  opacity: 0.025;
  background-image:
    linear-gradient(115deg, transparent 0 20%, rgba(255, 255, 255, 0.04) 24%, transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.035), transparent 18%),
    radial-gradient(circle at 70% 64%, rgba(255, 255, 255, 0.03), transparent 18%);
  background-size: 190px 190px, 240px 240px, 310px 310px;
  animation: grainShift 7s steps(4) infinite;
}

.motion-a {
  width: min(70vw, 920px);
  aspect-ratio: 1;
  right: -2vw;
  top: 2vh;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(239, 128, 108, 0.3), transparent 28%),
    radial-gradient(circle at 70% 34%, rgba(169, 138, 192, 0.34), transparent 30%),
    radial-gradient(circle at 66% 70%, rgba(39, 184, 192, 0.42), transparent 34%),
    radial-gradient(circle at 42% 78%, rgba(245, 181, 27, 0.28), transparent 30%);
  animation: pulseAuraBreath 10s ease-in-out infinite alternate;
}

.motion-b {
  width: 54vw;
  height: 38vw;
  right: 10vw;
  top: 22vh;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 70% 44%, rgba(15, 118, 183, 0.32), transparent 42%),
    radial-gradient(ellipse at 38% 58%, rgba(130, 191, 47, 0.24), transparent 44%);
  animation: fogDrift 12s ease-in-out infinite alternate;
}

.motion-c {
  width: 42vw;
  height: 32vw;
  right: 28vw;
  top: 38vh;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 46% 48%, rgba(0, 229, 238, 0.28), transparent 48%),
    radial-gradient(ellipse at 66% 72%, rgba(255, 185, 28, 0.18), transparent 42%);
  animation: colorMurmur 11s ease-in-out infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: min(760px, 90vw);
  padding-top: 10px;
}

.hero-brand {
  position: absolute;
  top: clamp(24px, 3.6vw, 42px);
  left: clamp(20px, 3.2vw, 44px);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  width: clamp(360px, 36vw, 540px);
  opacity: 0.92;
}

.hero-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.kicker {
  margin: 0 0 22px;
  color: rgba(185, 215, 230, 0.76);
  font-size: clamp(12px, 1.3vw, 14px);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero h1 {
  margin: 0;
  line-height: 1;
}

.hero-wordmark-title {
  width: min(700px, 52vw);
  max-width: calc(100vw - clamp(56px, 10vw, 136px));
}

.hero-wordmark {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 46px rgba(0, 0, 0, 0.52));
}

.hero .lead {
  width: min(620px, 84vw);
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.9;
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.7);
  white-space: normal;
}

.mobile-lead-break {
  display: none;
}

.hero-actions {
  position: absolute;
  left: clamp(28px, 5vw, 68px);
  bottom: clamp(30px, 5vw, 64px);
  z-index: 5;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .primary-action,
.hero .secondary-action {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.hero .primary-action {
  color: #07101c !important;
  background: #f4f8fb;
  box-shadow: 0 20px 42px rgba(79, 190, 214, 0.12);
}

.hero .secondary-action {
  color: rgba(244, 248, 252, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

@keyframes baseWash {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1.02);
    opacity: 0.78;
  }
  100% {
    transform: translate3d(1.5%, 1%, 0) scale(1.06);
    opacity: 1;
  }
}

@keyframes pulseAuraBreath {
  0% {
    opacity: 0.42;
    transform: translate3d(-2vw, -2vh, 0) scale(0.94) rotate(-5deg);
  }
  100% {
    opacity: 0.78;
    transform: translate3d(3vw, 2vh, 0) scale(1.08) rotate(8deg);
  }
}

@keyframes fogDrift {
  0% {
    opacity: 0.38;
    transform: translate3d(-4vw, -2vh, 0) scale(0.95);
  }
  100% {
    opacity: 0.7;
    transform: translate3d(4vw, 4vh, 0) scale(1.09);
  }
}

@keyframes colorMurmur {
  0% {
    opacity: 0.18;
    transform: translate3d(1vw, 4vh, 0) rotate(-7deg) scale(0.95);
  }
  100% {
    opacity: 0.56;
    transform: translate3d(-5vw, -3vh, 0) rotate(8deg) scale(1.1);
  }
}

@keyframes grainShift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(1.5%, -1%, 0);
  }
  50% {
    transform: translate3d(-1%, 1%, 0);
  }
  75% {
    transform: translate3d(0.5%, 1.5%, 0);
  }
}

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

  .hero {
    width: 100%;
    max-width: 100vw;
    min-height: 100svh;
    padding: 112px 22px 132px;
    align-items: center;
  }

  .hero::after {
    background:
      radial-gradient(ellipse at 30% 56%, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.22) 38%, rgba(0, 0, 0, 0.04) 66%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.34) 46%, rgba(0, 0, 0, 0.08) 76%, rgba(0, 0, 0, 0.2)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.06) 28%, rgba(0, 0, 0, 0.2));
  }

  .hero-copy {
    width: min(100%, 560px);
    max-width: calc(100vw - 44px);
    padding-top: 0;
    transform: translateY(2svh);
  }

  .hero-brand {
    top: 24px;
    left: 18px;
    width: min(280px, calc(100vw - 44px));
  }

  .hero-wordmark-title {
    width: min(330px, calc(100vw - 44px));
    max-width: calc(100vw - 44px);
  }

  .hero .lead {
    width: min(100%, calc(100vw - 44px));
    margin-top: 24px;
    line-height: 1.75;
    line-break: strict;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    left: 22px;
    right: 22px;
    bottom: 42px;
    width: calc(100vw - 44px);
    gap: 10px;
  }

  .hero .primary-action,
  .hero .secondary-action {
    flex: 1 1 150px;
    min-height: 48px;
    padding: 0 18px;
  }

  .motion-a {
    width: 92vw;
    right: -28vw;
    top: 14vh;
  }

  .hero,
  .hero::before {
    background-position: 58% center;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-bottom: 204px;
  }

  .hero-actions {
    bottom: 34px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero .lead {
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.75;
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal !important;
  }

  .mobile-lead-break {
    display: block;
  }

  .hero .primary-action,
  .hero .secondary-action {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero .secondary-action {
    color: #f4f8fb !important;
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion,
  .grain {
    animation: none !important;
  }
}
