:root {
  color-scheme: dark;
  --page: #05070d;
  --card: rgba(14, 17, 28, 0.96);
  --card-edge: rgba(255, 255, 255, 0.1);
  --text: #f8f9ff;
  --muted: #aeb4c6;
  --cyan: #38d6ff;
  --focus: #ffe24b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 5%, rgba(73, 60, 255, 0.2), transparent 30rem),
    radial-gradient(circle at 85% 88%, rgba(0, 218, 255, 0.12), transparent 26rem),
    var(--page);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 80%);
}

.page-shell {
  width: min(100% - 28px, 760px);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px) 0 24px;
}

.tester-card {
  overflow: hidden;
  border: 1px solid var(--card-edge);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 55px rgba(82, 77, 255, .1);
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1024 / 500;
  background: #05071b;
}

.hero-image-wrap::after {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(transparent, var(--card));
  content: "";
}

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

.content {
  padding: clamp(22px, 5vw, 42px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 4.6rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.intro {
  max-width: 520px;
  margin: 18px auto 26px;
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.16rem);
  line-height: 1.55;
}

.form-slot {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: #fff;
  color: #252836;
  text-align: left;
}

.tester-form {
  display: block;
  width: 100%;
  min-height: 430px;
  border: 0;
  background: #fff;
}

.form-loading,
.form-unavailable {
  display: grid;
  min-height: 330px;
  place-content: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
}

.form-loading p,
.form-unavailable p { margin: 0; }
.form-unavailable strong { color: #141724; font-size: 1.1rem; }
.form-unavailable p { color: #5d6272; line-height: 1.5; }
.form-unavailable a { color: #5337d9; font-weight: 750; }

.spinner {
  width: 32px;
  height: 32px;
  margin: auto;
  border: 3px solid #dfe3ec;
  border-top-color: #6545ef;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.privacy-note {
  max-width: 560px;
  margin: 18px auto 0;
  color: #858da2;
  font-size: .78rem;
  line-height: 1.55;
}

a { color: #62ddff; }
a:hover { color: #fff; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 3px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 8px 0;
  color: #757d91;
  font-size: .78rem;
}

footer a { color: #9aa2b5; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
  .page-shell { width: min(100% - 16px, 760px); padding-top: 8px; }
  .tester-card { border-radius: 20px; }
  .content { padding: 22px 16px 24px; }
  .intro { margin-bottom: 20px; }
  .form-slot { border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}
