:root {
  --bg: #05070c;
  --bg-alt: #0a0f1a;
  --blue: #3b6eff;
  --blue-bright: #6f93ff;
  --silver: #e8ecf3;
  --muted: #8993a8;
  --border: rgba(59, 110, 255, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59, 110, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(59, 110, 255, 0.1), transparent 60%),
    linear-gradient(rgba(5, 7, 12, 0.5), rgba(5, 7, 12, 0.68)),
    url("../images/bg-track.jpg") center / cover no-repeat,
    var(--bg);
  color: var(--silver);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6vh 1.5rem;
  position: relative;
  overflow-x: hidden;
}

/* subtle speed-line accents */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 45vw;
  max-width: 480px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-repeat: repeat-y;
  background-size: 100% 140px;
}

body::before {
  left: -10vw;
  background-image: repeating-linear-gradient(
    100deg,
    transparent 0 60px,
    rgba(59, 110, 255, 0.06) 60px 63px,
    transparent 63px 120px
  );
}

body::after {
  right: -10vw;
  background-image: repeating-linear-gradient(
    80deg,
    transparent 0 60px,
    rgba(59, 110, 255, 0.06) 60px 63px,
    transparent 63px 120px
  );
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.logo {
  width: min(90%, 420px);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(59, 110, 255, 0.28));
}

.tagline {
  margin: 0;
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tagline .accent {
  color: var(--blue-bright);
}

.description {
  margin: -0.75rem 0 0;
  max-width: 480px;
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.55;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(59, 110, 255, 0.08);
  color: var(--blue-bright);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(59, 110, 255, 0.18);
}

.badge-inline {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(59, 110, 255, 0.1);
  color: var(--blue-bright);
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.callout {
  width: 100%;
  max-width: 660px;
  margin: -0.75rem auto 0;
  padding: 1.1rem 1.3rem 1.3rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(59, 110, 255, 0.06);
  box-shadow: 0 0 20px rgba(59, 110, 255, 0.1);
  color: var(--silver);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: left;
}

.callout strong {
  color: var(--blue-bright);
}

.callout-image {
  display: block;
  width: 100%;
  max-width: 615px;
  height: auto;
  margin: 1.1rem 0 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 0 24px rgba(59, 110, 255, 0.15);
}

.signup {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.signup[hidden] {
  display: none;
}

.signup-row {
  display: flex;
  gap: 0.6rem;
}

.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--silver);
  font-size: 1rem;
}

.signup input[type="email"]::placeholder {
  color: var(--muted);
}

.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(59, 110, 255, 0.22);
}

.signup button {
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.signup button:hover {
  filter: brightness(1.1);
}

.signup button:active {
  transform: translateY(1px);
}

.signup-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.signup-success {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(59, 110, 255, 0.06);
}

.signup-success[hidden] {
  display: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

footer {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .signup-row {
    flex-direction: column;
  }
}
