@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #fbfbff;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.90);
  --text: #101746;
  --text-soft: #596080;
  --border: rgba(34, 45, 110, 0.10);
  --shadow: 0 28px 80px rgba(102, 76, 190, 0.18);
  --pink: #ff4e9d;
  --violet: #9a4dff;
  --blue: #2588ff;
  --cyan: #19d9e8;
  --orange: #ff9a4a;
  --header-height: 86px;
}

html[data-theme="dark"] {
  --bg: #080a22;
  --surface: rgba(15, 18, 52, 0.68);
  --surface-strong: rgba(17, 20, 58, 0.92);
  --text: #f7f8ff;
  --text-soft: #b8bdd8;
  --border: rgba(214, 220, 255, 0.12);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 87, 168, 0.13), transparent 26rem),
    radial-gradient(circle at 88% 20%, rgba(34, 202, 255, 0.14), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background-color .35s ease, color .35s ease;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(99, 76, 190, .18);
}

.slashes {
  background: linear-gradient(135deg, var(--pink), var(--violet), var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.theme-toggle {
  position: relative;
  width: 58px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 8px 28px rgba(73, 62, 155, .12);
  cursor: pointer;
  backdrop-filter: blur(20px);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb24d, #ff5a9b);
  transition: transform .3s ease;
}

html[data-theme="dark"] .theme-toggle::before {
  transform: translateX(24px);
  background: linear-gradient(135deg, #8a5cff, #32c9ff);
}

.theme-toggle__sun,
.theme-toggle__moon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: .82rem;
  line-height: 1;
}

.theme-toggle__sun { left: 10px; }
.theme-toggle__moon { right: 10px; }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 34px) 20px 76px;
  isolation: isolate;
}

.hero__background {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 93%, transparent), color-mix(in srgb, var(--bg) 70%, transparent)),
    url("../images/wishai-hero.jpg") center / cover no-repeat;
  opacity: .29;
  filter: saturate(.95);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.92), rgba(0,0,0,.72) 70%, transparent);
}

html[data-theme="dark"] .hero__background {
  opacity: .12;
  filter: saturate(.75) brightness(.75);
}

.hero__content {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(440px, 1.08fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
}

.hero__visual {
  display: grid;
  place-items: center;
}

.logo-orbit {
  position: relative;
  width: min(100%, 510px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.logo-orbit::before,
.logo-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(114, 76, 234, .15);
  animation: orbit 16s linear infinite;
}

.logo-orbit::before {
  inset: -8px;
}

.logo-orbit::after {
  inset: 8%;
  animation-direction: reverse;
  animation-duration: 22s;
}

.logo-orbit__glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 89, 165, .32), transparent 40%),
    radial-gradient(circle at 72% 66%, rgba(37, 154, 255, .32), transparent 42%);
  filter: blur(34px);
  animation: breathe 6s ease-in-out infinite;
}

.logo-orbit img {
  position: relative;
  z-index: 2;
  width: 86%;
  height: 86%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transform: translateZ(0);
  animation: float 7s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--violet);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 800;
}

.tagline {
  margin: 24px 0 18px;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
  background: linear-gradient(100deg, var(--orange), var(--pink), var(--violet), var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.description {
  max-width: 690px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 25px;
  border-radius: 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button--primary {
  color: white;
  background: linear-gradient(110deg, #ff5a98, #a14eff 50%, #1e9cff);
  box-shadow: 0 18px 46px rgba(116, 69, 223, .28);
}

.button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(116, 69, 223, .38);
  filter: saturate(1.08);
}

.button--primary:focus-visible,
.theme-toggle:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 60%, white);
  outline-offset: 4px;
}

.social-handle {
  color: var(--text-soft);
  font-weight: 700;
  letter-spacing: .03em;
}

.equalizer {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: min(760px, 80vw);
  height: 52px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  opacity: .17;
}

.equalizer span {
  width: 5px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(to top, var(--pink), var(--violet), var(--blue), var(--cyan));
  animation: equalize 2.8s ease-in-out infinite;
}

.equalizer span:nth-child(2n) { animation-delay: -.35s; }
.equalizer span:nth-child(3n) { animation-delay: -.7s; }
.equalizer span:nth-child(4n) { animation-delay: -1.1s; }
.equalizer span:nth-child(5n) { animation-delay: -1.45s; }

.site-footer {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: .78rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 18px;
  background: var(--bg);
  color: var(--text);
  transition: opacity .55s ease, visibility .55s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader p {
  margin: 0;
  text-align: center;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.loader__mark {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.loader__mark span {
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(to top, var(--pink), var(--violet), var(--blue), var(--cyan));
  animation: loaderBars .9s ease-in-out infinite alternate;
}

.loader__mark span:nth-child(2) { animation-delay: .12s; }
.loader__mark span:nth-child(3) { animation-delay: .24s; }
.loader__mark span:nth-child(4) { animation-delay: .36s; }
.loader__mark span:nth-child(5) { animation-delay: .48s; }

.ambient {
  position: fixed;
  z-index: -5;
  width: 42vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .12;
  pointer-events: none;
}

.ambient--one {
  top: -18vw;
  left: -10vw;
  background: var(--pink);
  animation: driftOne 18s ease-in-out infinite alternate;
}

.ambient--two {
  right: -14vw;
  bottom: -24vw;
  background: var(--cyan);
  animation: driftTwo 22s ease-in-out infinite alternate;
}

.noscript {
  position: fixed;
  z-index: 200;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  color: #111;
  box-shadow: 0 12px 34px rgba(0,0,0,.15);
  text-align: center;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-.3deg); }
  50% { transform: translateY(-12px) rotate(.3deg); }
}

@keyframes breathe {
  0%, 100% { transform: scale(.96); opacity: .7; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes equalize {
  0%, 100% { height: 10px; }
  50% { height: 46px; }
}

@keyframes loaderBars {
  to { height: 46px; }
}

@keyframes driftOne {
  to { transform: translate(10vw, 12vh) scale(1.12); }
}

@keyframes driftTwo {
  to { transform: translate(-8vw, -10vh) scale(.9); }
}

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
  }

  .site-header {
    width: min(100% - 28px, 720px);
  }

  .hero {
    min-height: auto;
    padding: 104px 20px 96px;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .hero__visual {
    order: -1;
  }

  .logo-orbit {
    width: min(74vw, 400px);
  }

  .hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .description {
    max-width: 620px;
  }

  .hero__actions {
    justify-content: center;
  }

  .site-footer {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    padding: 0 20px 22px;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .theme-toggle {
    display: none;
  }

  .site-header {
    justify-content: flex-start;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand {
    font-size: .92rem;
  }

  .hero {
    padding-inline: 16px;
  }

  .logo-orbit {
    width: min(88vw, 360px);
  }

  .hero h1 {
    font-size: clamp(3.25rem, 18vw, 5rem);
  }

  .tagline {
    margin-top: 18px;
  }

  .description {
    line-height: 1.65;
  }

  .hero__actions {
    width: 100%;
  }

  .button {
    width: 100%;
    min-height: 56px;
    border-radius: 16px;
  }

  .social-handle {
    width: 100%;
  }

  .equalizer {
    bottom: 14px;
    gap: 6px;
  }

  .site-footer {
    justify-content: center;
    gap: 20px;
  }
}

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