@layer base {
  html,
  body {
    width: 100vw;
    margin: 0;
    padding: 0;
  }

  body {
    overscroll-behavior: none;
    background-color: #080e19;
    background-image:
      radial-gradient(circle at 15% 8%, rgba(79, 240, 127, 0.08), transparent 24rem),
      radial-gradient(circle at 90% 28%, rgba(253, 165, 24, 0.06), transparent 22rem),
      linear-gradient(180deg, #080e19 0%, #0d131f 46%, #080e19 100%);
    color: #dde2f3;
    overflow-x: hidden;
  }

  .pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .pt-safe {
    padding-top: env(safe-area-inset-top, 0px);
  }

  main>:first-child {
    margin-top: 0 !important;
  }

  main>:last-child {
    margin-bottom: 0 !important;
  }

  a:focus-visible {
    outline: 2px solid #66ff8e;
    outline-offset: 3px;
  }
}

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

.page-shell {
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    rgba(13, 19, 31, 0.94);
  background-size: 28px 28px;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.48);
  border-inline: 1px solid rgba(255, 255, 255, 0.045);
}

.brand-mark {
  background: linear-gradient(145deg, rgba(79, 240, 127, 0.2), rgba(79, 240, 127, 0.04));
  border: 1px solid rgba(102, 255, 142, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.24);
}

.market-strip,
.glass-panel {
  border: 1px solid rgba(187, 203, 185, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 14px 36px rgba(0, 0, 0, 0.2);
}

.hero-image {
  position: relative;
  min-height: 232px;
  overflow: hidden;
  border-radius: 14px;
  background-image:
    linear-gradient(180deg, rgba(7, 13, 23, 0.04) 16%, rgba(7, 13, 23, 0.32) 56%, rgba(7, 13, 23, 0.92) 100%),
    url("../assets/hero-madrid-market.webp");
  background-position: 67% center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(79, 240, 127, 0.09), transparent 34%, rgba(253, 165, 24, 0.08));
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(8, 14, 25, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-title {
  text-wrap: balance;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.38);
}

.hero-benefits {
  background: linear-gradient(145deg, rgba(36, 42, 54, 0.94), rgba(22, 28, 39, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.primary-cta {
  background: linear-gradient(135deg, #66ff8e 0%, #25d366 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.primary-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.metric-card {
  border: 1px solid rgba(102, 255, 142, 0.1);
  background: linear-gradient(180deg, rgba(47, 53, 65, 0.94), rgba(26, 32, 43, 0.94));
}

.bg-surface-container,
.bg-surface-container-low,
.bg-surface-container-high {
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.section-heading {
  text-wrap: balance;
  letter-spacing: -0.02em;
}

.legal-disclosure summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

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

.legal-disclosure summary:focus-visible {
  outline: 2px solid #ffca8c;
  outline-offset: 4px;
  border-radius: 6px;
}

.legal-chevron {
  transition: transform 180ms ease;
}

.legal-disclosure[open] .legal-chevron {
  transform: rotate(180deg);
}

.legal-disclosure[open] .legal-copy {
  animation: disclosure-in 220ms ease both;
}

@keyframes disclosure-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sticky-cta {
  background: linear-gradient(180deg, rgba(13, 19, 31, 0.9), rgba(8, 14, 25, 0.98));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 0;
  padding-top: 10px !important;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (min-width: 640px) {
  .hero-image {
    min-height: 310px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
