: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: #78e7ff;
  --mint: #8dffd8;
  --violet: #a99dff;
  --pink: #ff8bd8;
  --peach: #ffc48f;
  --gold: #ffe38f;
  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(255, 227, 143, 0.16), transparent 34rem),
    radial-gradient(ellipse at 18% 24%, rgba(120, 231, 255, 0.12), transparent 28rem),
    radial-gradient(ellipse at 86% 22%, rgba(255, 139, 216, 0.14), transparent 30rem);
  filter: saturate(1.18);
}

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: -24% -18% auto -18%;
  height: 70vh;
  z-index: -2;
  filter: blur(12px) saturate(1.36);
  opacity: 0.96;
  transform: rotate(-7deg);
  animation: auroraField 16s ease-in-out infinite alternate;
}

.ribbon {
  position: absolute;
  left: -8%;
  width: 128%;
  height: 11rem;
  border-radius: 999px;
  transform-origin: center;
  mix-blend-mode: lighten;
  background-size: 165% 100%;
  animation: drift 12s ease-in-out infinite alternate;
}

.ribbon-one {
  top: 12%;
  background: linear-gradient(90deg, transparent 2%, rgba(120, 231, 255, 0.72), rgba(169, 157, 255, 0.54), transparent 76%);
  transform: translateY(0) rotate(8deg);
}

.ribbon-two {
  top: 30%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 227, 143, 0.66), rgba(255, 139, 216, 0.58), rgba(141, 255, 216, 0.36), transparent 82%);
  transform: rotate(-4deg);
  animation-duration: 22s;
}

.ribbon-three {
  top: 46%;
  background: linear-gradient(90deg, transparent 8%, rgba(141, 255, 216, 0.44), rgba(120, 231, 255, 0.46), rgba(255, 196, 143, 0.58), transparent 86%);
  transform: rotate(5deg);
  animation-duration: 26s;
}

.ribbon-four {
  top: 62%;
  height: 8rem;
  background: linear-gradient(90deg, transparent 12%, rgba(255, 139, 216, 0.44), rgba(169, 157, 255, 0.52), transparent 78%);
  transform: rotate(-9deg);
  animation-duration: 30s;
}

.ribbon-one,
.ribbon-three {
  animation-name: drift, auroraGlow, waveFlow;
  animation-duration: 12s, 6.8s, 18s;
  animation-timing-function: ease-in-out, ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite, infinite;
  animation-direction: alternate, alternate, alternate;
}

.ribbon-two,
.ribbon-four {
  animation-name: drift, auroraGlow, waveFlow;
  animation-duration: 15s, 8s, 22s;
  animation-timing-function: ease-in-out, ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite, infinite;
  animation-direction: alternate, alternate-reverse, alternate-reverse;
}

@keyframes drift {
  from {
    translate: -5% -5%;
  }
  to {
    translate: 5% 7%;
  }
}

@keyframes auroraField {
  from {
    transform: translate3d(-2.5%, -1.5%, 0) rotate(-9deg) scale(1.02);
  }
  to {
    transform: translate3d(2.5%, 2.5%, 0) rotate(-4deg) scale(1.08);
  }
}

@keyframes auroraGlow {
  from {
    opacity: 0.72;
    filter: saturate(1.02);
  }
  to {
    opacity: 1;
    filter: saturate(1.34);
  }
}

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

@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 0 0 1px rgba(255, 255, 255, 0.12),
    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,
.icon-aura::after {
  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;
}

.icon-aura::after {
  inset: -12%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.24), transparent 34%);
  opacity: 0.48;
  animation: haloBreathe 6.6s ease-in-out infinite reverse;
}

.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.45rem, 7.1vw, 6.8rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

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

.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,
  .icon-aura::after,
  .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);
  }

  .actions {
    flex-direction: column;
  }

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

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