* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scroll-padding: 5.292rem;
  font-family: "Inter", sans-serif;
}

/* Added comprehensive CSS variables for light/dark mode with better maintainability */
:root {
  --primary-color: #000;
  --secondary-color: #fff;
  --background-color: #fafafa;

  --primary-color-80: rgb(from var(--primary-color) r g b / 0.8);
  --primary-color-70: rgb(from var(--primary-color) r g b / 0.7);
  --primary-color-50: rgb(from var(--primary-color) r g b / 0.5);
  --primary-color-30: rgb(from var(--primary-color) r g b / 0.3);
  --secondary-color-95: rgb(from var(--secondary-color) r g b / 0.95);
  --secondary-color-02: rgb(from var(--secondary-color) r g b / 0.02);

  --text-primary: var(--primary-color);
  --text-secondary: var(--primary-color-70);
  --text-tertiary: var(--primary-color-50);
  --text-on-accent: #000;

  --border-light: rgb(34, 34, 34, 0.08);
  --border-medium: rgb(34, 34, 34, 0.2);
  --shadow-sm: 0 2px 12px rgb(0, 0, 0, 0.04);
  --shadow-md: 0 4px 24px rgb(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgb(0, 0, 0, 0.08);

  --green: #ccffbd;
  --green-hover: #b3ff9c;
  --green-deep: #29be56;
  --yellow: #fff9b7;
  --yellow-hover: #fff491;
  --yellow-deep: #fae952;
  --pink: #ffd1ea;
  --pink-hover: #ffd8e7;
  --pink-deep: #f35894;
}

/* Improved dark mode with better contrast and readability */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #fff;
    --secondary-color: oklch(14.5% 0 0);
    --background-color: oklch(16.5% 0 0);

    --secondary-color-02: rgb(from var(--secondary-color) r g b / 0.02);

    --text-on-accent: #000;

    --border-light: rgb(100, 100, 100, 0.2);
    --border-medium: rgb(100, 100, 100, 0.3);
    --shadow-sm: 0 2px 12px rgb(0, 0, 0, 0.2);
    --shadow-md: 0 4px 24px rgb(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgb(0, 0, 0, 0.4);

    --yellow-deep: rgba(250, 233, 82, 0.6);
  }
}*/

*::-webkit-scrollbar {
  display: none;
}

* {
  scrollbar-width: none;
  color: var(--text-primary);
}

body {
  background-color: var(--background-color);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  width: fit-content;
  padding: 0.625rem 1.25rem;
  gap: 6rem;
  border-radius: 0.5rem;
  background-color: var(--secondary-color-95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  z-index: 100;
}

.nav__logo {
  height: 1.5rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

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

.nav__button {
  padding: 0.625rem 1.5rem;
  background-color: var(--yellow);
  color: var(--text-on-accent);
  border-radius: 99rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
}

.nav__button:hover {
  background-color: var(--yellow-hover);
}

/* Hero Section */
.hero {
  display: flex;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 2rem;
  margin: 0 auto;
  border-bottom: 1px solid var(--border-light);
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

@keyframes slight-float--blob-left {
  0%,
  100% {
    transform: translate(-25%,50%);
  }
  50% {
    transform: translate(-25%,calc(50% + 10px));
  }
}

@keyframes slight-float--blob-center {
  0%,
  100% {
    transform: translate(-50%,90%);
  }
  50% {
    transform: translate(-50%,calc(90% + 10px));
  }
}

@keyframes slight-float--blob-right {
  50% {
    transform: translate(25%,50%);
  }
  0%, 100% {
    transform: translate(25%,calc(50% + 10px));
  }
}

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

.hero__blob {
  position: absolute;
  bottom: 0;
  width: 40rem;
  height: 8rem;
  border-radius: 99%;
  filter: blur(50px);
  opacity: 0.2;
}

.hero__blob--left {
  left: 0;
  transform: translate(-25%,50%);
  background-color: var(--pink-deep);
  rotate: 4deg;
  animation: slight-float--blob-left 6s ease-in-out infinite;
}

.hero__blob--center {
  left: 50%;
  transform: translate(-50%,75%);
  background-color: var(--yellow-deep);
  opacity: 0.2;
  animation: slight-float--blob-center 6s ease-in-out infinite;
}

.hero__blob--right {
  right: 0;
  rotate: -4deg;
  transform: translate(25%,50%);
  background-color: var(--green-deep);
  animation: slight-float--blob-right 6s ease-in-out infinite;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  padding-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero__description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
  max-width: 32rem;
}

.hero__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.hero__button {
  padding: 0.75rem 2rem;
  border-radius: 99rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.hero__button--primary {
  background-color: var(--yellow);
  color: var(--text-on-accent);
}

.hero__button--primary:hover {
  background-color: var(--yellow-hover);
}

.hero__button--secondary {
  background-color: var(--secondary-color);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.hero__button--secondary:hover {
  background-color: var(--secondary-color-02);
}

.hero__visual {
  position: relative;
  width: 100%;
  height: 15rem;
  padding-bottom: 2rem;
}

.hero__card-container {
  position: absolute;
  display: flex;
  gap: 0.375rem;
  background-color: var(--secondary-color);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  border-radius: 1rem;
  width: fit-content;
  padding: 0.5rem;
  animation: slight-float 6s ease-in-out infinite;
  transition: all 0.4s;
}

.hero__card-container--yellow {
  left: 50%;
  translate: -50% 0;
  rotate: -2deg;
}

.hero__card-container--pink {
  display: none;
  left: 50%;
  bottom: 0;
  translate: calc(-50% - 33rem) 0;
  rotate: 3deg;
  animation-delay: 2s;
}

.hero__card-container--green {
  display: none;
  left: 50%;
  bottom: 0;
  translate: calc(-50% + 33rem) 0;
  rotate: 5deg;
  animation-delay: 3s;
}

.hero__card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  width: 100%;
}

.hero__card:first-child {
  width: 9999px;
  max-width: 24rem;
}

.hero__card:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0 0.5rem 0.25rem 0;
}

.hero__card-image {
  max-height: 9rem;
}

.hero__card--yellow {
  background-color: var(--yellow);
}

.hero__card--pink {
  background-color: var(--pink);
}

.hero__card--green {
  background-color: var(--green);
}

.hero__card-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero__card-title {
  font-size: 1.75rem;
  font-weight: 700;
  border-bottom: 1px dashed var(--text-on-accent);
  color: var(--text-on-accent);
  width: fit-content;
}

.hero__card-capacity {
  font-size: 0.875rem;
  color: var(--text-on-accent);
  font-weight: 500;
}

.hero__card-groups {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero__card-group {
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px dashed var(--border-medium);
  border-radius: 0.25rem;
  font-weight: 700;
  color: var(--text-on-accent);
}

.hero__card-group--filled {
  background-color: var(--text-on-accent);
  color: var(--yellow);
  border: none;
}

@media (min-width: 900px) {
    /* Target both the base container AND the specific color class */
    .hero__card-container--pink,
    .hero__card-container--green { 
        /* The specific selector for the pink/green element */
        display: flex; /* Restore the original layout */
    }
}

/* Features Section */
.features {
  padding: 6rem 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

.features__title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--text-primary);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
}

.features__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-light);
  background-color: var(--secondary-color-95);
  box-shadow: var(--shadow-sm);
}

.features__icon {
  font-size: 2.5rem;
}

.features__card-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.features__card-description {
  font-size: 0.875rem;
  line-height: 1.6;
  opacity: 0.8;
}

.features__card--yellow {
  background: radial-gradient(
    circle at 5% 0%,
    var(--secondary-color-95) 80%, 
    rgb(from var(--yellow-deep) r g b / 0.2) 100%
  );
}

.features__card--pink {
  background: radial-gradient(
    circle at 5% 0%, 
    var(--secondary-color-95) 80%, 
    rgb(from var(--pink-deep) r g b / 0.2) 100%
  );
}

.features__card--green {
  background: radial-gradient(
    circle at 5% 0%, 
    var(--secondary-color-95) 80%, 
    rgb(from var(--green-deep) r g b / 0.2) 100%
  );
}

/* How It Works Section */
.how-it-works {
  padding: 6rem 2rem;
  background-color: var(--secondary-color);
}

.how-it-works__title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--text-primary);
}

.how-it-works__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
  flex-wrap: wrap;
}

.how-it-works__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  flex: 1;
  min-width: 12rem;
}

.how-it-works__number {
  width: 4rem;
  height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-on-accent);
  box-shadow: var(--shadow-sm);
}

.how-it-works__number--green {
  color: var(--green);
  background-color: rgb(from var(--green-deep) r g b / 0.1);
}

.how-it-works__number--pink {
  color: var(--pink);
  background-color: rgb(from var(--pink-deep) r g b / 0.1);
}

.how-it-works__number--yellow {
  color: var(--yellow);
  background-color: rgb(from var(--yellow-deep) r g b / 0.1);
}

.how-it-works__step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.how-it-works__step-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.how-it-works__arrow {
  font-size: 2rem;
  color: var(--text-tertiary);
}

/* CTA Section */
.cta {
  padding: 6rem 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

.cta__content {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 4rem 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background-color: var(--secondary-color-95);
  border-radius: 1rem;
  overflow: hidden;
  text-align: center;
}

.cta__blob {
  position: absolute;
  pointer-events: none;
  top: -4rem;
  left: -5rem;
  width: 40rem;
  height: 12rem;
  border-radius: 99%;
  filter: blur(50px);
  rotate: -4deg;
  background-color: var(--yellow-deep);
  opacity: 0.2;
}

.cta__title {
  font-size: 2.5rem;
  font-weight: 700;
}

.cta__description {
  font-size: 1.125rem;
  opacity: 0.8;
}

.cta__button {
  padding: 0.875rem 2rem;
  background-color: var(--yellow);
  color: var(--secondary-color);
  border-radius: 99rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1rem;
  transition: transform 0.3s;
}

.cta__button:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
  padding: 3rem 2rem;
  background-color: var(--secondary-color);
  border-top: 1px solid var(--border-light);
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

.footer__logo {
  height: 1.5rem;
}

.footer__text {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 4rem 1rem;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .features {
    padding: 4rem 1rem;
  }

  .features__title,
  .how-it-works__title,
  .cta__title {
    font-size: 2rem;
  }

  .how-it-works__arrow {
    display: none;
  }

  .nav__links {
    gap: 1rem;
  }

  .nav__link {
    display: none;
  }
}
