:root {
  color-scheme: dark;
  --bg: #05060b;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.18);
  --text: #fbfcff;
  --muted: rgba(232, 238, 250, 0.72);
  --soft: rgba(232, 238, 250, 0.52);
  --cyan: #4df4ff;
  --mint: #6cffdf;
  --blue: #168dff;
  --violet: #a36dff;
  --pink: #ff4eb8;
  --peach: #ff8752;
  --gold: #ffe66d;
  --white-glow: #fbfdff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 18rem),
    linear-gradient(180deg, #070812 0%, #05060b 50%, #080910 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(251, 253, 255, 0.16), transparent 34rem),
    radial-gradient(ellipse at 18% 24%, rgba(77, 244, 255, 0.13), transparent 28rem),
    radial-gradient(ellipse at 86% 22%, rgba(255, 78, 184, 0.15), transparent 30rem);
  filter: saturate(1.25);
}

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

main {
  position: relative;
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 84vh;
  padding: clamp(18px, 2.6vw, 36px);
  display: grid;
  align-content: space-between;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: clamp(14px, 2vw, 28px);
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035) 42%, rgba(255, 255, 255, 0.075)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 48px 160px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px) saturate(1.2);
}

.aurora {
  position: absolute;
  inset: -30% -24% auto -24%;
  height: 82vh;
  z-index: -2;
  filter: blur(15px) saturate(1.58);
  opacity: 0.98;
  transform: rotate(-7deg);
  animation: auroraField 12s ease-in-out infinite alternate;
}

.ribbon {
  position: absolute;
  left: -12%;
  width: 136%;
  height: 13.5rem;
  border-radius: 999px;
  transform-origin: center;
  mix-blend-mode: lighten;
  background-size: 260% 100%;
  box-shadow:
    0 0 42px rgba(251, 253, 255, 0.14),
    0 0 78px rgba(77, 244, 255, 0.10);
  will-change: transform, background-position, opacity, filter;
}

.ribbon-one {
  top: 5%;
  background: linear-gradient(90deg, transparent 0%, rgba(251,253,255,0.72) 10%, rgba(77,244,255,0.70) 28%, rgba(22,141,255,0.56) 48%, rgba(163,109,255,0.46) 65%, transparent 86%);
  animation: ribbonOneMotion 9.5s ease-in-out infinite alternate, auroraGlow 5.6s ease-in-out infinite alternate, waveFlow 11s ease-in-out infinite alternate;
}

.ribbon-two {
  top: 24%;
  background: linear-gradient(90deg, transparent 4%, rgba(77,244,255,0.48) 16%, rgba(251,253,255,0.64) 34%, rgba(255,78,184,0.70) 56%, rgba(255,135,82,0.48) 74%, transparent 92%);
  animation: ribbonTwoMotion 11s ease-in-out infinite alternate, auroraGlow 6.2s ease-in-out infinite alternate-reverse, waveFlow 13s ease-in-out infinite alternate-reverse;
}

.ribbon-three {
  top: 42%;
  background: linear-gradient(90deg, transparent 7%, rgba(22,141,255,0.58) 18%, rgba(77,244,255,0.62) 36%, rgba(108,255,223,0.48) 53%, rgba(255,230,109,0.52) 70%, transparent 90%);
  animation: ribbonThreeMotion 12s ease-in-out infinite alternate, auroraGlow 7s ease-in-out infinite alternate, waveFlow 15s ease-in-out infinite alternate;
}

.ribbon-four {
  top: 60%;
  height: 10rem;
  background: linear-gradient(90deg, transparent 10%, rgba(163,109,255,0.45) 22%, rgba(255,78,184,0.56) 42%, rgba(255,135,82,0.58) 61%, rgba(255,230,109,0.38) 78%, transparent 94%);
  animation: ribbonFourMotion 13s ease-in-out infinite alternate, auroraGlow 7.4s ease-in-out infinite alternate-reverse, waveFlow 16s ease-in-out infinite alternate-reverse;
}

@keyframes auroraField {
  0% {
    transform: translate3d(-4%, -2.5%, 0) rotate(-11deg) scale(1.04);
  }
  50% {
    transform: translate3d(2%, 1%, 0) rotate(-6deg) scale(1.1);
  }
  100% {
    transform: translate3d(5%, 3%, 0) rotate(-3deg) scale(1.16);
  }
}

@keyframes auroraGlow {
  from {
    opacity: 0.64;
    filter: saturate(1.04) brightness(0.95);
  }
  to {
    opacity: 1;
    filter: saturate(1.5) brightness(1.08);
  }
}

@keyframes waveFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 18% 50%;
  }
}

@keyframes ribbonOneMotion {
  0% { transform: translate3d(-7%, -8%, 0) rotate(9deg) scaleX(0.96) scaleY(0.9); }
  50% { transform: translate3d(1%, 6%, 0) rotate(3deg) scaleX(1.08) scaleY(1.05); }
  100% { transform: translate3d(8%, -1%, 0) rotate(12deg) scaleX(1.16) scaleY(0.96); }
}

@keyframes ribbonTwoMotion {
  0% { transform: translate3d(5%, 8%, 0) rotate(-8deg) scaleX(1.04) scaleY(0.92); }
  50% { transform: translate3d(-3%, -4%, 0) rotate(-2deg) scaleX(1.14) scaleY(1.08); }
  100% { transform: translate3d(-9%, 5%, 0) rotate(-12deg) scaleX(0.98) scaleY(0.98); }
}

@keyframes ribbonThreeMotion {
  0% { transform: translate3d(-8%, 4%, 0) rotate(5deg) scaleX(1.1) scaleY(0.94); }
  50% { transform: translate3d(3%, -7%, 0) rotate(11deg) scaleX(1.18) scaleY(1.06); }
  100% { transform: translate3d(9%, 6%, 0) rotate(2deg) scaleX(1.02) scaleY(1); }
}

@keyframes ribbonFourMotion {
  0% { transform: translate3d(6%, -5%, 0) rotate(-12deg) scaleX(1.08) scaleY(0.9); }
  50% { transform: translate3d(-2%, 5%, 0) rotate(-6deg) scaleX(1.18) scaleY(1.08); }
  100% { transform: translate3d(-10%, -2%, 0) rotate(-15deg) scaleX(1) scaleY(0.96); }
}

@keyframes magicPillFlow {
  0%,
  100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes magicOrbBreathe {
  0%,
  100% {
    transform: scale(0.96);
    filter: saturate(1.05);
  }
  50% {
    transform: scale(1.04);
    filter: saturate(1.28) brightness(1.08);
  }
}

@keyframes haloSpin {
  to {
    rotate: 1turn;
  }
}

@keyframes haloBreathe {
  0%,
  100% {
    scale: 0.92;
    opacity: 0.40;
  }
  50% {
    scale: 1.08;
    opacity: 0.72;
  }
}

@keyframes pillGradient {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow:
      0 18px 54px rgba(120, 231, 255, 0.18),
      0 0 0 rgba(255, 139, 216, 0);
  }
  50% {
    background-position: 100% 50%;
    box-shadow:
      0 18px 62px rgba(255, 139, 216, 0.22),
      0 0 38px rgba(255, 227, 143, 0.16);
  }
}

.topbar,
.hero-content,
.studio-strip,
.apps {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}

.brand,
.nav-actions {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 680;
  font-size: 1.12rem;
}

.brand img,
.app-icon {
  display: block;
  border-radius: 8px;
  box-shadow:
    0 18px 48px rgba(120, 231, 255, 0.18),
    0 10px 32px rgba(255, 139, 216, 0.14);
}

.nav-actions {
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px) saturate(1.2);
}

.nav-actions a {
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-actions a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.hero-content {
  padding: clamp(58px, 7.5vw, 118px) 0 clamp(34px, 5vw, 68px);
}

.icon-aura {
  position: relative;
  width: clamp(84px, 9vw, 112px);
  height: clamp(84px, 9vw, 112px);
  margin-bottom: clamp(30px, 5vw, 54px);
}

.icon-aura::before {
  content: "";
  position: absolute;
  inset: -26%;
  border-radius: 30%;
  pointer-events: none;
}

.icon-aura::before {
  background: conic-gradient(from 0deg, var(--cyan), var(--mint), var(--gold), var(--pink), var(--violet), var(--cyan));
  filter: blur(18px);
  opacity: 0.54;
  animation:
    haloSpin 10s linear infinite,
    haloBreathe 5.4s ease-in-out infinite;
}

.app-icon {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.eyebrow,
.status {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 920px;
  margin: 16px 0 0;
  font-size: clamp(3.05rem, 6.1vw, 5.8rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.9vw, 1.42rem);
  font-weight: 400;
  line-height: 1.58;
}

.magic-pill {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: min(100%, 660px);
  margin-top: 22px;
  padding: 12px 20px 12px 12px;
  border: 1px solid rgba(251, 253, 255, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(105deg, rgba(77,244,255,0.48), rgba(251,253,255,0.42), rgba(163,109,255,0.40), rgba(255,78,184,0.42), rgba(255,135,82,0.32), rgba(77,244,255,0.44));
  background-size: 260% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 22px 70px rgba(77, 244, 255, 0.18),
    0 16px 58px rgba(255, 78, 184, 0.16);
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(1.28);
  animation: magicPillFlow 7.5s ease-in-out infinite;
}

.magic-pill::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 12% 50%, rgba(251,253,255,0.36), transparent 24%),
    linear-gradient(90deg, rgba(4, 6, 11, 0.18), rgba(4, 6, 11, 0.04), rgba(4, 6, 11, 0.18));
  opacity: 0.72;
}

.magic-pill-orb {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(251,253,255,0.22), rgba(77,244,255,0.12) 42%, rgba(5,6,11,0.18));
  box-shadow:
    0 0 26px rgba(77, 244, 255, 0.34),
    0 0 34px rgba(255, 78, 184, 0.22);
}

.magic-pill-orb img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  animation: magicOrbBreathe 4.8s ease-in-out infinite;
}

.magic-pill p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.92rem, 1.35vw, 1.02rem);
  line-height: 1.35;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.38);
}

.magic-pill strong,
.magic-pill span {
  display: block;
}

.magic-pill strong {
  color: white;
  font-weight: 760;
}

.magic-pill span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.app-card a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 650;
}

.primary-action,
.secondary-action {
  padding: 0 20px;
}

.primary-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #071015;
  background: linear-gradient(105deg, var(--cyan), var(--mint), var(--gold), var(--pink), var(--violet), var(--cyan));
  background-size: 260% 100%;
  box-shadow:
    0 18px 54px rgba(120, 231, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  animation: pillGradient 7.5s ease-in-out infinite;
}

.primary-action span {
  position: relative;
  z-index: 1;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(1.16);
}

.studio-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: clamp(22px, 4vw, 42px);
}

.studio-strip span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.74);
  font-weight: 560;
  backdrop-filter: blur(12px) saturate(1.14);
}

.apps {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  padding: 16px 0 clamp(42px, 8vw, 110px);
}

.app-card {
  min-height: 310px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px) saturate(1.16);
}

.app-card-featured {
  background:
    linear-gradient(145deg, rgba(120, 231, 255, 0.15), rgba(255, 139, 216, 0.11) 48%, rgba(255, 227, 143, 0.08)),
    rgba(255, 255, 255, 0.055);
}

.app-card h2 {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: clamp(2.1rem, 4vw, 4.25rem);
  line-height: 1;
  font-weight: 680;
  letter-spacing: 0;
  text-wrap: balance;
}

.app-card p {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  font-weight: 400;
  line-height: 1.62;
}

.app-card a {
  margin-top: 30px;
  padding: 0;
  color: var(--cyan);
}

@media (prefers-reduced-motion: reduce) {
  .aurora,
  .ribbon,
  .icon-aura::before,
  .magic-pill,
  .magic-pill-orb img,
  .primary-action {
    animation: none;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 14px;
  }

  .hero::before {
    inset: 8px;
  }

  .topbar,
  .hero-content,
  .studio-strip,
  .apps {
    width: min(100% - 22px, 1180px);
  }

  .topbar,
  .studio-strip,
  .apps {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav-actions a {
    flex: 1;
    justify-content: center;
  }

  .hero-content {
    padding: 72px 0 44px;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5.1rem);
  }

  .magic-pill {
    grid-template-columns: 1fr;
    align-items: flex-start;
    border-radius: 30px;
    padding: 14px;
  }

  .magic-pill-orb {
    width: 52px;
    height: 52px;
  }

  .actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .apps {
    padding-top: 12px;
  }
}
