@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg-1: #091017;
  --bg-2: #102c3a;
  --card-bg: rgba(6, 14, 20, 0.78);
  --card-border: rgba(152, 215, 228, 0.25);
  --text-main: #f6fcff;
  --text-subtle: #adc7cf;
  --accent: #17c1ad;
  --accent-strong: #39e3a4;
  --danger: #ff6565;
  --success: #1fd29a;
  --input-bg: rgba(11, 22, 30, 0.9);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 10%, #1a596f 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, #743b18 0%, transparent 35%),
    linear-gradient(130deg, var(--bg-1), var(--bg-2));
  color: var(--text-main);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  filter: blur(45px);
  opacity: 0.35;
  pointer-events: none;
}

.ambient-one {
  background: #00c8b8;
  top: -8rem;
  left: -4rem;
  animation: drift-a 8s ease-in-out infinite alternate;
}

.ambient-two {
  background: #ff7a21;
  bottom: -10rem;
  right: -5rem;
  animation: drift-b 9s ease-in-out infinite alternate;
}

.page-shell {
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: 6rem 0 3rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.hero-card,
.result-panel {
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  border-radius: 1.2rem;
  padding: 1.4rem;
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.35);
  animation: rise-in 550ms ease-out both;
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.73rem;
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  margin: 0.7rem 0 0.7rem;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.1;
  font-family: "Space Grotesk", sans-serif;
}

.hero-copy {
  margin: 0 0 1.2rem;
  color: var(--text-subtle);
}

.test-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.field-label {
  font-size: 0.9rem;
  color: #d5e8ee;
}

.provider-picker {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.55rem;
}

.provider-picker legend {
  padding: 0;
  font-size: 0.9rem;
  color: #d5e8ee;
}

.provider-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
}

.provider-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.provider-option {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.35rem 0.65rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(173, 213, 227, 0.22);
  background: rgba(9, 20, 28, 0.82);
  cursor: pointer;
  user-select: none;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.provider-option:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 250, 210, 0.45);
}

.provider-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(6, 17, 23, 0.18);
}

.provider-avatar img {
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.provider-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  color: #d5e8ee;
  line-height: 1.1;
}

.provider-input:checked + .provider-option {
  border-color: rgba(83, 244, 155, 0.7);
  background: rgba(17, 40, 49, 0.92);
}

.provider-input:checked + .provider-option .provider-avatar {
  box-shadow: 0 0 0 3px rgba(83, 244, 155, 0.28);
}

.provider-input:focus-visible + .provider-option {
  outline: 2px solid rgba(57, 227, 164, 0.52);
  outline-offset: 1px;
}

input,
select,
button {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid rgba(173, 213, 227, 0.2);
  font-size: 1rem;
}

input,
select {
  background: var(--input-bg);
  color: var(--text-main);
  padding: 0.82rem 0.95rem;
}

input::placeholder {
  color: rgba(192, 220, 228, 0.62);
}

input:focus,
select:focus,
button:focus {
  outline: 2px solid rgba(57, 227, 164, 0.45);
  outline-offset: 1px;
}

button {
  margin-top: 0.5rem;
  border: 0;
  padding: 0.9rem 1rem;
  cursor: pointer;
  color: #061117;
  background: linear-gradient(100deg, var(--accent), #53f49b);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

button:hover:enabled {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(82, 244, 155, 0.23);
}

button:disabled {
  opacity: 0.75;
  cursor: wait;
}

.disclaimer {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.result-panel {
  animation-delay: 90ms;
  min-height: 100%;
}

.result-panel > * {
  min-width: 0;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  font-size: 0.78rem;
  font-family: "Space Grotesk", sans-serif;
  background: rgba(255, 255, 255, 0.08);
}

.result-badge.success {
  background: rgba(31, 210, 154, 0.16);
  color: #8ffad2;
}

.result-badge.fail {
  background: rgba(255, 101, 101, 0.18);
  color: #ffc0c0;
}

h2 {
  margin: 0.65rem 0 0.3rem;
  font-size: clamp(1.08rem, 1.55vw, 1.35rem);
  line-height: 1.28;
  font-family: "Space Grotesk", sans-serif;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.result-meta {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.result-sample {
  margin: 0.95rem 0 0;
  max-height: 12rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9rem;
  padding: 0.9rem;
  border-radius: 0.8rem;
  background: rgba(2, 7, 10, 0.62);
  border: 1px solid rgba(157, 190, 199, 0.25);
}

@media (min-width: 900px) {
  .page-shell {
    width: min(1220px, 94vw);
    padding-top: 7rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
  }

  .hero-card,
  .result-panel {
    padding: 1.8rem;
  }

  .result-panel {
    position: sticky;
    top: 1.2rem;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-top: 3.5rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .provider-avatar {
    width: 2.7rem;
    height: 2.7rem;
  }

  .provider-name {
    font-size: 0.78rem;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift-a {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(26px, 34px);
  }
}

@keyframes drift-b {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-24px, -18px);
  }
}
