:root {
  --ink-950: #070b14;
  --ink-900: #0b1220;
  --ink-800: #101828;
  --acid-400: #6ee7b7;
  --acid-500: #34d399;
  --plasma-400: #60a5fa;
  --plasma-500: #3b82f6;
  --plasma-600: #2563eb;
  --magenta-400: #f472b6;
  --magenta-500: #ec4899;
  --amber-500: #f59e0b;
}

body {
  background-color: var(--ink-900);
  color: white;
  font-family: sans-serif;
}

::selection {
  background-color: rgba(236, 72, 153, 0.3);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(1.5rem);
  background-color: rgba(11, 18, 32, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
}

header .logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-image: linear-gradient(
    to bottom right,
    var(--plasma-500),
    var(--magenta-500),
    var(--acid-500)
  );
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.6), 0 0 40px rgba(59, 130, 246, 0.4);
}

header .logo-text {
  font-weight: bold;
  letter-spacing: -0.025em;
  font-size: 1.125rem;
}

header nav {
  display: none;
}

@media (min-width: 768px) {
  header nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
  }
}

header nav a {
  text-decoration: none;
  color: white;
  transition: color 0.2s;
}

header nav a:hover {
  color: var(--acid-400);
}

header .cta-button {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-image: linear-gradient(
    to right,
    var(--magenta-500),
    var(--plasma-500),
    var(--acid-500)
  );
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.6), 0 0 40px rgba(59, 130, 246, 0.4);
  transition: opacity 0.2s;
  text-decoration: none;
  color: white;
}

header .cta-button:hover {
  opacity: 0.9;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
}

.hero .aurora {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: conic-gradient(
    from 180deg at 50% 50%,
    #3b82f6 0deg,
    #34d399 120deg,
    #f472b6 240deg,
    #111827 330deg
  );
  opacity: 0.1;
  filter: blur(48px);
}

.hero .noise {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
}

.hero .container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 6rem 1rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .hero .container {
    padding: 8rem 1rem;
  }
}

.hero .grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero .badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: var(--acid-500);
}

.hero h1 {
  margin-top: 1rem;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  background-image: linear-gradient(
    to right,
    var(--plasma-400),
    var(--magenta-400),
    var(--acid-400)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.hero p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 36rem;
}

.hero .buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero .cta-button-main {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background-image: linear-gradient(
    to right,
    var(--plasma-500),
    var(--magenta-500),
    var(--acid-500)
  );
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.6), 0 0 40px rgba(59, 130, 246, 0.4);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  color: white;
  transition: opacity 0.2s;
}

.hero .cta-button-main:hover {
  opacity: 0.9;
}

.hero .cta-button-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s;
  text-decoration: none;
  color: white;
}

.hero .cta-button-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.hero .stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 32rem;
  text-align: center;
}

.hero .stat-item {
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.hero .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero .stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero .image-column {
  position: relative;
}

.hero .image-wrapper {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.hero .image-wrapper img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.hero .blur-1 {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  width: 12rem;
  height: 12rem;
  border-radius: 1.5rem;
  background-image: linear-gradient(
    to bottom right,
    rgba(236, 72, 153, 0.4),
    rgba(59, 130, 246, 0.4)
  );
  filter: blur(24px);
}

.hero .blur-2 {
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 9rem;
  height: 9rem;
  border-radius: 9999px;
  background-image: linear-gradient(
    to bottom right,
    rgba(110, 231, 183, 0.4),
    rgba(59, 130, 246, 0.4)
  );
  filter: blur(24px);
}

/* Marquee Section */
.marquee {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee .container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.marquee p {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.marquee .marquee-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.marquee .marquee-content {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  will-change: transform;
}

.marquee img {
  height: 2rem;
  opacity: 0.7;
}

/* Why BeroLab Section */
.why-berolab {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.why-berolab .container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.why-berolab .grid {
  display: grid;
  gap: 3rem;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .why-berolab .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.why-berolab h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .why-berolab h2 {
    font-size: 2.25rem;
  }
}

.why-berolab .subtitle {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.why-berolab .features {
  margin-top: 2rem;
}

.why-berolab .feature-item {
  display: flex;
  gap: 1rem;
}

.why-berolab .feature-icon {
  font-size: 1.5rem;
}

.why-berolab .feature-title {
  font-weight: 600;
}

.why-berolab .feature-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.why-berolab .cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .why-berolab .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.why-berolab .card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
}

.why-berolab .card-title {
  font-weight: 600;
}

.why-berolab .card-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

/* How it works */
.how-it-works {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.how-it-works .container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.how-it-works .header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.how-it-works h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .how-it-works h2 {
    font-size: 2.25rem;
  }
}

.how-it-works .subtitle {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.how-it-works .steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .how-it-works .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.how-it-works .step {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
}

.how-it-works .step-icon {
  font-size: 1.875rem;
}

.how-it-works .step-title {
  margin-top: 0.75rem;
  font-weight: 600;
}

.how-it-works .step-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Resources Section */
.resources {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.resources .container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.resources .grid {
  display: grid;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .resources .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.resources .main-content {
  grid-column: span 1 / span 1;
}

.resources h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .resources h2 {
    font-size: 2.25rem;
  }
}

.resources .subtitle {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.resources .cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background-color: var(--acid-500);
  color: var(--ink-900);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.25);
}

.resources .cta-button:hover {
  opacity: 0.9;
}

.resources .cards {
  grid-column: span 2 / span 2;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .resources .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.resources .card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
}

.resources .card-title {
  font-weight: 600;
}

.resources .card-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

/* Gallery Section */
.gallery {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery .container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.gallery .header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.gallery h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .gallery h2 {
    font-size: 2.25rem;
  }
}

.gallery .subtitle {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.gallery .cta-button {
  display: none;
}

@media (min-width: 640px) {
  .gallery .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: white;
    transition: background-color 0.2s;
  }

  .gallery .cta-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
}

.gallery .grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .gallery .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gallery .item {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
}

.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Testimonials Section */
.testimonials {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonials .container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.testimonials .header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.testimonials h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .testimonials h2 {
    font-size: 2.25rem;
  }
}

.testimonials .subtitle {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.testimonials .grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.testimonials .testimonial {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
}

.testimonials blockquote {
  color: rgba(255, 255, 255, 0.8);
}

.testimonials figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Final CTA Section */
.final-cta {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.final-cta .aurora {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: conic-gradient(
    from 180deg at 50% 50%,
    #3b82f6 0deg,
    #34d399 120deg,
    #f472b6 240deg,
    #111827 330deg
  );
  opacity: 0.1;
  filter: blur(48px);
}

.final-cta .container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.final-cta h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .final-cta h2 {
    font-size: 2.25rem;
  }
}

.final-cta p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.final-cta .cta-button {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background-image: linear-gradient(
    to right,
    var(--magenta-500),
    var(--plasma-500),
    var(--acid-500)
  );
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.6), 0 0 40px rgba(59, 130, 246, 0.4);
  font-weight: 600;
  text-decoration: none;
  color: white;
  transition: opacity 0.2s;
}

.final-cta .cta-button:hover {
  opacity: 0.9;
}

/* FAQ Section */
.faq {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq .container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.faq h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .faq h2 {
    font-size: 1.875rem;
  }
}

.faq .accordion {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq details {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
}

.faq details[open] {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.25);
}

.faq summary {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  transition: transform 0.2s;
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq .answer {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

footer .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  footer .content {
    flex-direction: row;
  }
}

footer .links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

footer a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

footer a:hover {
  color: white;
}

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

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
