:root {
  --bg-fallback: #0a101c;
  --text: #f4f7ff;
  --muted: rgba(244, 247, 255, 0.9);
  --button-bg: #ffffff;
  --button-text: #0a101c;
  --button-border: rgba(255, 255, 255, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-fallback);
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  text-align: center;
  background-color: var(--bg-fallback);
  background-image:
    linear-gradient(to bottom, rgba(7, 12, 22, 0.32), rgba(7, 12, 22, 0.82)),
    url("../assets/prediction-market-settlement-hero.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__content {
  width: min(92vw, 860px);
}

.brand-badge {
  position: absolute;
  top: clamp(0.9rem, 2.2vw, 1.5rem);
  right: clamp(0.9rem, 2.2vw, 1.5rem);
  margin: 0;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(10, 16, 28, 0.56);
  color: #ffffff;
  font-size: clamp(0.76rem, 1.5vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.tagline {
  margin: clamp(0.7rem, 2vw, 1.15rem) 0 0;
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
  line-height: 1.25;
  color: var(--muted);
}

.micro {
  margin: clamp(0.5rem, 1.6vw, 0.85rem) 0 0;
  font-size: clamp(0.86rem, 1.7vw, 1rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: rgba(244, 247, 255, 0.82);
}

.cta {
  display: inline-block;
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: var(--button-text);
  text-decoration: none;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 16, 0.74);
  backdrop-filter: blur(3px);
}

.modal__panel {
  position: relative;
  width: min(92vw, 34rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  background: rgba(10, 16, 28, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  padding: 1.25rem;
}

.modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal__panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  color: #ffffff;
}

.lead-form {
  display: grid;
  gap: 0.52rem;
}

.lead-form label {
  font-size: 0.82rem;
  color: rgba(244, 247, 255, 0.86);
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.66rem;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding: 0.68rem 0.75rem;
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus-visible,
.lead-form textarea:focus-visible,
.modal__close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.modal__submit {
  margin-top: 0.3rem;
  border: 1px solid var(--button-border);
  border-radius: 999px;
  background: #ffffff;
  color: #0a101c;
  padding: 0.72rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.form-status {
  min-height: 1.2em;
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: rgba(244, 247, 255, 0.88);
}

@media (max-width: 640px) {
  .hero {
    min-height: 95vh;
  }

  .cta {
    width: min(100%, 22rem);
  }

  .modal__panel {
    padding: 1rem;
  }

  .brand-badge {
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.36rem 0.62rem;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}
