:root {
  color-scheme: light dark;
  --background: #f4f2ff;
  --foreground: #0c0a12;
  --muted: #64748b;
  --card: rgba(255, 255, 255, 0.74);
  --card-strong: rgba(255, 255, 255, 0.9);
  --card-border: rgba(255, 255, 255, 0.86);
  --accent-from: #7c3aed;
  --accent-to: #06b6d4;
  --violet-soft: rgba(124, 58, 237, 0.22);
  --cyan-soft: rgba(6, 182, 212, 0.16);
  --shadow-card: 0 24px 70px rgba(76, 29, 149, 0.16);
  --shadow-glow: 0 22px 60px rgba(124, 58, 237, 0.28);
  --radius-xl: 28px;
  --radius-2xl: 36px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #07060d;
    --foreground: #f1f0f7;
    --muted: #94a3b8;
    --card: rgba(24, 22, 35, 0.72);
    --card-strong: rgba(24, 22, 35, 0.9);
    --card-border: rgba(255, 255, 255, 0.1);
    --accent-from: #a78bfa;
    --accent-to: #22d3ee;
    --violet-soft: rgba(124, 58, 237, 0.42);
    --cyan-soft: rgba(6, 182, 212, 0.16);
    --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.32);
    --shadow-glow: 0 22px 60px rgba(124, 58, 237, 0.2);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--foreground);
  background: var(--background);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.page-shell {
  position: relative;
  isolate: isolate;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px clamp(18px, 4vw, 64px) 56px;
}

.mesh,
.grid,
.glow,
.notes {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -3;
}

.mesh {
  background-color: var(--background);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -30%, var(--violet-soft), transparent 56%),
    radial-gradient(ellipse 70% 50% at 100% 0%, var(--cyan-soft), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(167, 139, 250, 0.13), transparent 50%);
}

.grid {
  z-index: -2;
  background-size: 48px 48px;
  background-image:
    linear-gradient(to right, rgba(100, 116, 139, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(100, 116, 139, 0.09) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.glow {
  z-index: -1;
  width: min(760px, 92vw);
  height: 430px;
  border-radius: 999px;
  filter: blur(54px);
  opacity: 0.72;
}

.glow-primary {
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.38), rgba(6, 182, 212, 0.14), transparent);
}

.glow-secondary {
  right: -260px;
  bottom: 8%;
  background: rgba(6, 182, 212, 0.18);
}

.notes span {
  position: absolute;
  bottom: 4%;
  color: rgba(124, 58, 237, 0.44);
  font-size: clamp(20px, 3vw, 40px);
  text-shadow:
    0 0 18px rgba(124, 58, 237, 0.45),
    0 0 30px rgba(6, 182, 212, 0.22);
  animation: float-note 9s cubic-bezier(0.32, 0.72, 0.36, 1) infinite;
}

.notes span:nth-child(1) {
  left: 8%;
  animation-delay: -1s;
}

.notes span:nth-child(2) {
  left: 21%;
  animation-delay: -5s;
}

.notes span:nth-child(3) {
  left: 77%;
  animation-delay: -2s;
}

.notes span:nth-child(4) {
  left: 88%;
  animation-delay: -7s;
}

.notes span:nth-child(5) {
  left: 45%;
  animation-delay: -4s;
}

.notes span:nth-child(6) {
  left: 63%;
  animation-delay: -8s;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.34);
}

.brand-mark img {
  display: block;
  width: 32px;
  height: 32px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: -0.03em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.header-link,
.cta-link {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  padding: 11px 18px;
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 82px);
  max-width: 1180px;
  min-height: calc(100vh - 130px);
  margin: 0 auto;
  padding: 58px 0 42px;
}

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

.eyebrow {
  margin: 0 0 18px;
  color: #7c3aed;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 8vw, 6.9rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
}

.free-pill {
  display: inline-flex;
  margin-right: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 0.28em;
  padding: 0.02em 0.16em 0.08em;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #06b6d4 48%, #7c3aed);
  box-shadow:
    0 20px 58px rgba(16, 185, 129, 0.24),
    0 18px 60px rgba(124, 58, 237, 0.24);
  letter-spacing: -0.075em;
  transform: rotate(-1deg);
  transform-origin: 50% 80%;
  animation: free-pill-wobble 7.5s ease-in-out infinite;
}

.hero-lead {
  max-width: 590px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.72;
}

.free-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.free-proof strong,
.free-proof span {
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 0.86rem;
  font-weight: 900;
}

.free-proof strong {
  color: #042f2e;
  background: linear-gradient(90deg, #34d399, #22d3ee);
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.22);
}

.free-proof span {
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

.signup-card,
.studio-card,
.feature-grid article,
.closing-card {
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px);
}

.signup-card {
  max-width: 620px;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.signup-card label {
  display: block;
  margin: 0 0 10px 4px;
  color: var(--foreground);
  font-size: 0.88rem;
  font-weight: 800;
}

.email-row {
  display: flex;
  gap: 10px;
}

.email-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  padding: 16px 17px;
  color: var(--foreground);
  outline: none;
  background: rgba(255, 255, 255, 0.82);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.email-row input:focus {
  border-color: rgba(124, 58, 237, 0.72);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}

.email-row button {
  border: 0;
  border-radius: 18px;
  padding: 0 22px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(90deg, #10b981, #06b6d4 48%, #7c3aed);
  box-shadow: var(--shadow-glow);
  transform-origin: 50% 70%;
  animation: join-button-wobble 7.5s ease-in-out infinite;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.email-row button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.email-row button:active {
  transform: translateY(0) scale(0.99);
}

.form-note {
  min-height: 1.35rem;
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-note.is-success {
  color: #059669;
}

.form-note.is-error {
  color: #dc2626;
}

.note-burst {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.note-burst span {
  --burst-x: 0px;
  --burst-y: -120px;
  --burst-rotate: 0deg;

  position: absolute;
  color: #7c3aed;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 900;
  text-shadow:
    0 0 16px rgba(124, 58, 237, 0.6),
    0 0 26px rgba(6, 182, 212, 0.36);
  transform: translate(-50%, -50%);
  animation: note-burst-pop 2s cubic-bezier(0.18, 0.86, 0.3, 1) forwards;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.84rem;
  font-weight: 800;
}

.studio-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius-2xl);
}

.studio-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: radial-gradient(circle at 20% 0%, rgba(124, 58, 237, 0.24), transparent 34%),
    radial-gradient(circle at 100% 20%, rgba(6, 182, 212, 0.18), transparent 36%);
}

.card-topline,
.player-list article {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-topline {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.12), 0 0 24px rgba(34, 211, 238, 0.86);
}

.wave-panel {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 12px;
  height: 260px;
  margin: 28px 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));
}

.wave-panel span {
  width: 14px;
  height: var(--height, 60%);
  border-radius: 999px;
  background: linear-gradient(180deg, #22d3ee, #8b5cf6);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.28);
  animation: pulse-bar 1.8s ease-in-out infinite alternate;
}

.wave-panel span:nth-child(2n) {
  animation-delay: -0.45s;
}

.wave-panel span:nth-child(3n) {
  animation-delay: -0.9s;
}

.player-list {
  display: grid;
  gap: 12px;
}

.player-list article {
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 22px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.48);
}

.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.avatar-one {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
}

.avatar-two {
  background: linear-gradient(135deg, #f472b6, #8b5cf6);
}

.avatar-three {
  background: linear-gradient(135deg, #10b981, #22d3ee);
}

.player-list strong,
.player-list small {
  display: block;
}

.player-list small {
  margin-top: 3px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.feature-grid article {
  border-radius: 28px;
  padding: 26px;
}

.feature-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
}

.feature-grid h2 {
  margin: 22px 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.closing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 18px auto 0;
  border-radius: var(--radius-2xl);
  padding: 30px;
}

.closing-card .eyebrow {
  margin-bottom: 8px;
}

.closing-card h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: -0.06em;
}

.cta-link {
  background: linear-gradient(90deg, #10b981, #06b6d4 48%, #7c3aed);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

@keyframes float-note {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 40px, 0) rotate(-8deg) scale(0.9);
  }
  15%,
  62% {
    opacity: 0.88;
  }
  50% {
    transform: translate3d(-20%, -42vh, 0) rotate(10deg) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, -70vh, 0) rotate(-6deg) scale(0.92);
  }
}

@keyframes pulse-bar {
  from {
    transform: scaleY(0.72);
  }
  to {
    transform: scaleY(1.08);
  }
}

@keyframes note-burst-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  74% {
    opacity: 0.94;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--burst-x, 0px)), calc(-50% + var(--burst-y, -120px)))
      scale(1.15) rotate(var(--burst-rotate, 0deg));
  }
}

@keyframes free-pill-wobble {
  0%,
  9% {
    transform: rotate(-1deg) translateY(0) scale(1);
  }
  2% {
    transform: rotate(-4deg) translateY(-2px) scale(1.035);
  }
  4% {
    transform: rotate(3deg) translateY(0) scale(1.025);
  }
  6% {
    transform: rotate(-2deg) translateY(-1px) scale(1.015);
  }
  12%,
  100% {
    transform: rotate(-1deg) translateY(0) scale(1);
  }
}

@keyframes join-button-wobble {
  0%,
  28% {
    transform: translateY(0) rotate(0) scale(1);
  }
  31% {
    transform: translateY(-2px) rotate(-2deg) scale(1.035);
  }
  34% {
    transform: translateY(0) rotate(2deg) scale(1.025);
  }
  37% {
    transform: translateY(-1px) rotate(-1deg) scale(1.015);
  }
  40%,
  100% {
    transform: translateY(0) rotate(0) scale(1);
  }
}

@media (prefers-color-scheme: dark) {
  .header-link,
  .free-proof span,
  .trust-row span,
  .email-row input,
  .player-list article {
    background: rgba(24, 22, 35, 0.62);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .studio-card {
    order: -1;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px 14px 38px;
  }

  .site-header,
  .closing-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-link,
  .cta-link {
    width: 100%;
    text-align: center;
  }

  h1 {
    font-size: clamp(2.7rem, 18vw, 4.2rem);
  }

  .email-row {
    flex-direction: column;
  }

  .email-row button {
    padding: 16px 18px;
  }

  .wave-panel {
    height: 210px;
  }
}
