:root {
  color-scheme: dark;
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  --bg-overlay: rgba(12, 6, 22, 0.78);
  --card-bg: rgba(23, 12, 40, 0.75);
  --border: rgba(255, 255, 255, 0.2);
  --accent: #fdee21;
  --accent-dark: #f0b90b;
  --text: #f2eefc;
  --muted: rgba(242, 238, 252, 0.8);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background-image: url('./lemonad-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: stretch;
  color: var(--text);
}

.page {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  width: min(1200px, 100%);
  padding: 2.5rem 3rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero {
  display: flex;
  gap: 2.5rem;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.content {
  flex: 0 0 auto;
  background: var(--bg-overlay);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 30px 60px rgba(6, 2, 10, 0.5);
  text-align: center;
  width: min(600px, 95%);
}

.eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

h1 {
  font-size: clamp(2.3rem, 3vw, 3rem);
  line-height: 1.15;
  margin: 0;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 auto;
  max-width: 38ch;
}

.cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: #1f142a;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn.disabled {
  cursor: not-allowed;
  opacity: 0.85;
  position: relative;
}

.btn.disabled:hover {
  transform: none;
}

.btn.disabled::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 0.75rem);
  left: 50%;
  transform: translate(-50%, 5px);
  background: rgba(0, 0, 0, 0.8);
  color: var(--text);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn.disabled:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.btn:hover {
  transform: translateY(-2px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
  margin: 0;
  width: 100%;
  justify-items: center;
}

.metrics li {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
}

.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.metrics strong {
  font-size: 1rem;
  letter-spacing: 0.03em;
}

footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  gap: 2rem;
  text-align: left;
  width: 100%;
  margin-top: auto;
}

.links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.links a:hover {
  color: var(--accent);
}

@media (max-width: 1080px) {
  .hero {
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  body {
    overflow: auto;
    align-items: flex-start;
    background-size: auto 130%;
    background-position: top center;
  }

  .page {
    height: auto;
    padding: 1.75rem 1.25rem 1rem;
    gap: 1.75rem;
  }

  .hero {
    align-items: stretch;
  }

  .content {
    width: 100%;
    padding: 1.5rem;
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .lead {
    font-size: 0.95rem;
  }

  .cta {
    flex-direction: column;
    width: 100%;
  }

  .cta .btn {
    width: 100%;
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    text-align: center;
  }

  .links {
    justify-content: center;
    width: 100%;
  }
}
