:root {
  --background: #f8f5ff;
  --foreground: #1e1436;
  --card: #ffffff;
  --primary: #5a2faa;
  --secondary: #ede6fb;
  --muted-foreground: #5d5475;
  --accent: #ed4a79;
  --border: #e2d8f7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.logo {
  height: 3rem;
  width: auto;
}

.btn-outline {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(90, 47, 170, 0.2);
  border-radius: 9999px;
  background: var(--card);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-outline:hover {
  background: var(--secondary);
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-md {
  width: 1.25rem;
  height: 1.25rem;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--accent);
}

h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.description {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.description strong {
  color: var(--foreground);
  font-weight: 600;
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
}

.highlights li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
}

.check svg {
  width: 0.75rem;
  height: 0.75rem;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 2rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 1rem 2rem;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(237, 74, 121, 0.3), 0 4px 6px -4px rgba(237, 74, 121, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(237, 74, 121, 0.4), 0 8px 10px -6px rgba(237, 74, 121, 0.4);
}

.btn-cta:focus-visible,
.btn-outline:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cta-note {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.stack {
  width: 100%;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.stack-title {
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.stack-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(30, 20, 54, 0.08);
  transition: transform 0.2s;
}

.stack-list li:hover {
  transform: translateY(-2px);
}

.stack-list img {
  width: 1.5rem;
  height: 1.5rem;
}

.stack-list img.icon-wide {
  width: 2.5rem;
  height: 2.5rem;
}

/* Mascot */
.mascot {
  position: relative;
  order: -1;
  width: 100%;
  max-width: 11rem;
  margin: 0 auto;
}

.mascot-shadow {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0.5rem;
  height: 2rem;
  border-radius: 100%;
  background: rgba(90, 47, 170, 0.25);
  filter: blur(24px);
}

.mascot-img {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* Animated background */
.aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  filter: blur(70px) saturate(1.3);
}

.aurora-blob {
  position: absolute;
  border-radius: 9999px;
  opacity: 0.55;
  will-change: transform;
}

.aurora-blob-1 {
  top: 5%;
  left: 15%;
  width: 52rem;
  height: 52rem;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 68%);
  transform-origin: 70% 90%;
  animation: aurora-orbit-a 22s ease-in-out infinite;
}

.aurora-blob-2 {
  top: 35%;
  right: 5%;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle, #ed4a79 0%, transparent 68%);
  transform-origin: 10% 30%;
  animation: aurora-orbit-b 26s ease-in-out infinite;
}

.aurora-blob-3 {
  bottom: -10%;
  left: 30%;
  width: 44rem;
  height: 44rem;
  background: radial-gradient(circle, #5a2faa 0%, transparent 68%);
  transform-origin: 50% -20%;
  animation: aurora-orbit-c 30s ease-in-out infinite;
  opacity: 0.45;
}

.aurora-blob-4 {
  top: -10%;
  right: 25%;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle, #f59ec0 0%, transparent 68%);
  transform-origin: -30% 120%;
  animation: aurora-orbit-d 24s ease-in-out infinite;
}

@keyframes aurora-orbit-a {
  0%,
  100% {
    transform: rotate(0deg) translate(0, 0) scale(1);
  }
  33% {
    transform: rotate(60deg) translate(8rem, -2rem) scale(1.15);
  }
  66% {
    transform: rotate(-30deg) translate(14rem, 6rem) scale(0.9);
  }
}

@keyframes aurora-orbit-b {
  0%,
  100% {
    transform: rotate(0deg) translate(0, 0) scale(1);
  }
  40% {
    transform: rotate(-70deg) translate(-12rem, 4rem) scale(1.2);
  }
  70% {
    transform: rotate(25deg) translate(-6rem, -8rem) scale(0.85);
  }
}

@keyframes aurora-orbit-c {
  0%,
  100% {
    transform: rotate(0deg) translate(0, 0) scale(1);
  }
  50% {
    transform: rotate(90deg) translate(10rem, -10rem) scale(1.25);
  }
}

@keyframes aurora-orbit-d {
  0%,
  100% {
    transform: rotate(0deg) translate(0, 0) scale(1);
  }
  30% {
    transform: rotate(-45deg) translate(-10rem, 8rem) scale(1.1);
  }
  65% {
    transform: rotate(50deg) translate(-16rem, 2rem) scale(0.95);
  }
}

/* >= 640px */
@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .header {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .logo {
    height: 3.5rem;
  }

  .btn-outline {
    display: inline-flex;
  }

  .tag {
    font-size: 0.875rem;
  }

  h1 {
    font-size: 3rem;
  }

  .description {
    font-size: 1.125rem;
  }

  .cta-row {
    flex-direction: row;
    width: auto;
    gap: 1rem;
  }

  .btn-cta {
    width: auto;
  }

  .stack-list li {
    width: 3.5rem;
    height: 3.5rem;
  }

  .stack-list img {
    width: 1.75rem;
    height: 1.75rem;
  }

  .stack-list img.icon-wide {
    width: 2.75rem;
    height: 2.75rem;
  }

  .mascot {
    max-width: 15rem;
  }
}

/* < 640px */
@media (max-width: 639px) {
  .aurora-blob {
    width: 28rem;
    height: 28rem;
  }
}

/* >= 1024px */
@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 3rem;
    padding-bottom: 4rem;
  }

  .hero-content {
    align-items: flex-start;
    text-align: left;
  }

  h1 {
    font-size: 3.75rem;
    line-height: 1.15;
  }

  .highlights,
  .stack-list {
    justify-content: flex-start;
  }

  .mascot {
    order: 0;
    max-width: 28rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-img,
  .aurora-blob {
    animation: none;
  }
}
