* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #030712;
  color: white;
}

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.2), transparent 35%),
    radial-gradient(circle at 90% 20%, rgba(37, 99, 235, 0.22), transparent 35%),
    linear-gradient(135deg, #020617, #050816 50%, #0b1120);
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
}

.one {
  width: 420px;
  height: 420px;
  background: rgba(34, 211, 238, 0.12);
  left: -120px;
  top: -120px;
}

.two {
  width: 460px;
  height: 460px;
  background: rgba(37, 99, 235, 0.16);
  right: -120px;
  bottom: -160px;
}

.demo-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 36px;
}

.eyebrow {
  color: #22d3ee;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: 0.95;
  margin: 0 0 18px;
  letter-spacing: -0.06em;
}

.subhead {
  max-width: 700px;
  color: #a3b3cc;
  font-size: 1.2rem;
  line-height: 1.65;
  margin: 0;
}

.back-link {
  color: #dbeafe;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  padding: 12px 18px;
  white-space: nowrap;
}

.panel-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
}

.card,
.cap-card {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.055);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.32);
}

.card {
  padding: 28px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.card-head span {
  font-weight: 800;
  font-size: 1.2rem;
}

.card-head small {
  color: #7dd3fc;
}

label {
  display: block;
  color: #cbd5e1;
  font-weight: 700;
  margin: 18px 0 8px;
}

select,
textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(2,6,23,0.68);
  color: white;
  border-radius: 18px;
  padding: 14px 16px;
  outline: none;
  font: inherit;
}

textarea {
  min-height: 340px;
  resize: vertical;
  line-height: 1.55;
}

button {
  border: 0;
  cursor: pointer;
  border-radius: 18px;
  padding: 15px 22px;
  font-weight: 900;
  font-size: 1rem;
  margin-top: 18px;
  color: #020617;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.22);
}

button:hover {
  transform: translateY(-1px);
}

.secondary {
  color: white;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none;
}

.report-output {
  min-height: 456px;
  background: rgba(2,6,23,0.54);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 24px;
  line-height: 1.65;
  color: #dbeafe;
  overflow: auto;
}

.report-output h2,
.report-output h3 {
  margin-top: 0;
  color: white;
}

.report-output h3 {
  margin-bottom: 4px;
  color: #7dd3fc;
}

.report-output ul {
  padding-left: 20px;
}

.placeholder {
  color: #7f8da3;
}

.loading {
  min-height: 456px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #a3b3cc;
}

.loading div {
  width: 16px;
  height: 16px;
  background: #22d3ee;
  border-radius: 999px;
  display: inline-block;
  margin: 0 4px;
  animation: pulse 0.9s infinite alternate;
}

.loading div:nth-child(2) {
  animation-delay: 0.15s;
}

.loading div:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulse {
  from { opacity: .25; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-8px); }
}

.hidden {
  display: none;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.cap-card {
  padding: 24px;
}

.cap-card strong {
  display: block;
  color: #67e8f9;
  margin-bottom: 10px;
}

.cap-card p {
  color: #a3b3cc;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 850px) {
  .hero,
  .panel-grid,
  .capabilities {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    display: block;
  }

  .back-link {
    display: inline-block;
    margin-top: 24px;
  }
}
