:root {
  --ink: #14121d;
  --muted: #625f70;
  --paper: #fbfaf7;
  --white: #ffffff;
  --violet: #7d55f7;
  --pink: #ed3bad;
  --red: #ff4f55;
  --orange: #ff9f2f;
  --blue: #1b9bf0;
  --line: rgba(20, 18, 29, 0.1);
  --shadow: 0 24px 70px rgba(50, 32, 87, 0.13);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 13% 12%, rgba(27, 155, 240, 0.11), transparent 26rem),
    radial-gradient(circle at 89% 5%, rgba(237, 59, 173, 0.11), transparent 27rem),
    var(--paper);
}

a {
  color: inherit;
}

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

.page-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 1600px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 30px clamp(24px, 5vw, 80px) 26px;
}

.page-shell::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.38;
  background-image: radial-gradient(rgba(20, 18, 29, 0.22) 0.65px, transparent 0.65px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  outline-offset: 6px;
}

.brand-link:focus-visible,
.home-button:focus-visible {
  outline: 3px solid rgba(27, 155, 240, 0.42);
}

.brand-logo {
  width: clamp(126px, 12vw, 174px);
  height: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(38, 25, 66, 0.06);
  color: #383441;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 0 0 5px rgba(237, 59, 173, 0.1);
  animation: pulse 2.6s ease-out infinite;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(38px, 7vw, 120px);
  min-height: calc(100vh - 150px);
  min-height: calc(100svh - 150px);
  padding: clamp(58px, 7vw, 104px) 0 clamp(54px, 7vw, 90px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 32px;
  height: 2px;
  border-radius: 4px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--pink));
}

h1,
h2,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 6.6vw, 7.35rem);
  font-weight: 850;
  letter-spacing: -0.068em;
  line-height: 0.91;
}

.gradient-text {
  display: inline-block;
  padding-right: 0.09em;
  color: transparent;
  background: linear-gradient(105deg, var(--blue) 2%, var(--violet) 34%, var(--pink) 60%, var(--red) 77%, var(--orange));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-intro {
  max-width: 580px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  letter-spacing: -0.018em;
  line-height: 1.65;
}

.launch-note {
  display: inline-grid;
  grid-template-columns: auto 1px auto;
  align-items: center;
  gap: 18px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 40px rgba(40, 28, 72, 0.07);
  backdrop-filter: blur(14px);
}

.launch-note strong {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.launch-note .divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.launch-note span:last-child {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 580px;
}

.color-cloud {
  position: absolute;
  inset: 8% 0 6% 5%;
  overflow: hidden;
  border-radius: 48% 52% 45% 55% / 50% 42% 58% 50%;
  background:
    radial-gradient(circle at 28% 23%, rgba(255, 255, 255, 0.86) 0 3%, transparent 3.5%),
    radial-gradient(circle at 70% 22%, #ffa638 0 12%, transparent 28%),
    radial-gradient(circle at 68% 72%, #fc4167 0 20%, transparent 42%),
    radial-gradient(circle at 25% 75%, #6558f4 0 20%, transparent 43%),
    linear-gradient(135deg, #13a8f5 2%, #8d55ee 42%, #ef43ad 68%, #ff8e2d 100%);
  box-shadow: 0 40px 90px rgba(107, 64, 196, 0.24);
  transform: rotate(4deg);
  animation: cloud-float 8s ease-in-out infinite;
}

.color-cloud::before {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: inherit;
  content: "";
}

.color-cloud::after {
  position: absolute;
  width: 55%;
  height: 55%;
  top: -18%;
  left: -12%;
  border-radius: 50%;
  content: "";
  background: rgba(255, 255, 255, 0.19);
  filter: blur(2px);
}

.art-logo-card {
  position: absolute;
  z-index: 3;
  top: 45%;
  left: 48%;
  display: grid;
  place-items: center;
  width: min(82%, 470px);
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.19);
  box-shadow: 0 30px 70px rgba(36, 20, 75, 0.21);
  transform: translate(-50%, -50%) rotate(-4deg);
  backdrop-filter: blur(18px) saturate(120%);
  animation: card-float 7s ease-in-out infinite;
}

.art-logo-card img {
  width: min(100%, 390px);
  height: auto;
}

.mini-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(20, 18, 29, 0.08);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.mini-card--top {
  top: 9%;
  right: -2%;
  padding: 14px 18px 14px 14px;
  transform: rotate(6deg);
  animation: mini-float 6s ease-in-out -1.2s infinite;
}

.mini-card--bottom {
  bottom: 7%;
  left: -1%;
  max-width: 240px;
  padding: 16px 18px;
  transform: rotate(-5deg);
  animation: mini-float 6.8s ease-in-out -2.1s infinite;
}

.avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background:
    radial-gradient(circle at 55% 35%, #fff 0 7%, transparent 8%),
    linear-gradient(140deg, #10aaf4, #8c55ef 50%, #f43da7);
  box-shadow: 0 0 0 1px rgba(20, 18, 29, 0.08);
}

.mini-copy {
  display: grid;
  gap: 5px;
}

.mini-copy span {
  height: 7px;
  border-radius: 999px;
  background: #dedbe4;
}

.mini-copy span:first-child {
  width: 66px;
  background: #24212b;
}

.mini-copy span:last-child {
  width: 91px;
}

.sparkle {
  color: var(--orange);
  font-size: 1.85rem;
  line-height: 1;
}

.mini-card--bottom p {
  margin: 0;
  color: #383441;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.38;
}

.heart {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--red));
  box-shadow: 0 9px 20px rgba(239, 59, 126, 0.26);
  font-size: 1rem;
}

.orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  box-shadow: inset -8px -10px 20px rgba(77, 24, 95, 0.08), 0 18px 30px rgba(57, 39, 89, 0.13);
}

.orb--blue {
  top: 2%;
  left: 4%;
  width: 54px;
  height: 54px;
  background: linear-gradient(145deg, #62d0ff, #148bf2);
  animation: orb-float 6s ease-in-out infinite;
}

.orb--orange {
  right: 6%;
  bottom: 5%;
  width: 76px;
  height: 76px;
  background: linear-gradient(145deg, #ffc754, #ff8b28);
  animation: orb-float 7s ease-in-out -2s infinite;
}

.site-footer {
  position: absolute;
  z-index: 10;
  bottom: 26px;
  left: clamp(24px, 5vw, 80px);
  right: clamp(24px, 5vw, 80px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #777280;
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

/* 404 */
.error-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.error-main {
  display: grid;
  place-items: center;
  padding: clamp(72px, 10vw, 130px) 0;
  text-align: center;
}

.error-content {
  position: relative;
  width: min(100%, 760px);
}

.error-code {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: transparent;
  background: linear-gradient(105deg, var(--blue), var(--violet) 34%, var(--pink) 58%, var(--red) 76%, var(--orange));
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(6.8rem, 18vw, 13rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.error-code::before,
.error-code::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  filter: blur(0.2px);
}

.error-code::before {
  width: 24px;
  height: 24px;
  top: -22px;
  left: 11%;
  background: var(--orange);
  box-shadow: 420px 98px 0 -5px var(--blue);
}

.error-code::after {
  width: 13px;
  height: 13px;
  right: 23%;
  bottom: -25px;
  background: var(--pink);
  box-shadow: -350px -45px 0 2px var(--violet);
}

.error-content h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1;
}

.error-content p {
  max-width: 520px;
  margin-right: auto;
  margin-bottom: 32px;
  margin-left: auto;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 15px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 14px 28px rgba(20, 18, 29, 0.18);
  font-size: 0.91rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-button::after {
  content: "\2192";
  transition: transform 180ms ease;
}

.home-button:hover {
  box-shadow: 0 18px 34px rgba(20, 18, 29, 0.23);
  transform: translateY(-2px);
}

.home-button:hover::after {
  transform: translateX(3px);
}

.error-footer {
  position: static;
  align-self: end;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(237, 59, 173, 0.1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(237, 59, 173, 0);
  }
}

@keyframes cloud-float {
  0%,
  100% {
    transform: rotate(4deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-10px);
  }
}

@keyframes card-float {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-4deg);
  }
  50% {
    transform: translate(-50%, calc(-50% - 9px)) rotate(-2deg);
  }
}

@keyframes mini-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes orb-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 4px -12px;
  }
}

@media (max-width: 980px) {
  .page-shell {
    min-height: auto;
    padding-bottom: 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 106px;
  }

  .hero-copy {
    max-width: 790px;
  }

  .hero h1 {
    font-size: clamp(4rem, 12vw, 7.2rem);
  }

  .hero-art {
    width: min(100%, 700px);
    min-height: 590px;
    margin: 0 auto;
  }

  .site-footer {
    position: static;
    margin-top: 0;
  }

  .error-shell {
    min-height: 100vh;
    min-height: 100svh;
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 22px 20px 24px;
  }

  .brand-logo {
    width: 118px;
  }

  .status-pill {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .status-dot {
    width: 7px;
    height: 7px;
  }

  .hero {
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 78px;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: clamp(3.25rem, 17vw, 5rem);
    letter-spacing: -0.064em;
  }

  .hero-intro {
    margin-bottom: 28px;
    font-size: 1rem;
  }

  .launch-note {
    grid-template-columns: 1fr;
    gap: 4px;
    width: 100%;
    padding: 15px 16px;
  }

  .launch-note .divider {
    display: none;
  }

  .hero-art {
    min-height: 400px;
  }

  .color-cloud {
    inset: 7% 2% 5%;
  }

  .art-logo-card {
    width: 83%;
    padding: 25px;
    border-radius: 22px;
  }

  .mini-card--top {
    top: 3%;
    right: -5%;
    scale: 0.88;
  }

  .mini-card--bottom {
    bottom: 0;
    left: -5%;
    max-width: 208px;
    scale: 0.88;
  }

  .orb--blue {
    left: 0;
    width: 42px;
    height: 42px;
  }

  .orb--orange {
    right: 0;
    width: 55px;
    height: 55px;
  }

  .site-footer {
    flex-direction: column;
    gap: 7px;
  }

  .error-main {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .error-code::before {
    box-shadow: 230px 76px 0 -5px var(--blue);
  }

  .error-code::after {
    box-shadow: -200px -36px 0 2px var(--violet);
  }
}

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