:root {
  --bg: #081018;
  --panel: rgba(10, 20, 32, 0.85);
  --panel-border: rgba(143, 214, 251, 0.22);
  --text: #e8f2ff;
  --muted: #a9b8cf;
  --accent: #5ae3a4;
  --accent-2: #8fd6fb;
  --danger: #ff9d96;
  --radius: 18px;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 15% 10%, #13335b 0, transparent 45%),
    radial-gradient(circle at 80% 0, #1f5a4a 0, transparent 38%), var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(52px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.bg-orb-a {
  background: #66ffc2;
  top: -90px;
  right: 10%;
  animation: driftA 9s ease-in-out infinite;
}

.bg-orb-b {
  background: #77c5ff;
  bottom: -120px;
  left: 8%;
  animation: driftB 10s ease-in-out infinite;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(169, 184, 207, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 184, 207, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 80px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  max-width: 920px;
}

.eyebrow {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-copy {
  max-width: 760px;
  color: var(--muted);
  margin-top: 14px;
  font-size: 1.08rem;
}

.hero-badges {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span {
  border: 1px solid rgba(143, 214, 251, 0.35);
  background: rgba(10, 20, 32, 0.6);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.84rem;
  color: var(--accent-2);
}

.cta-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.panel,
.result-card,
.status {
  margin-top: 24px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.panel {
  padding: 20px;
}

.panel h2,
.result-card h3,
.result-card h4 {
  margin: 0 0 14px;
  font-family: "Fraunces", serif;
}

.split-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-card {
  border: 1px solid rgba(143, 214, 251, 0.24);
  border-radius: 12px;
  padding: 12px;
  background: rgba(6, 12, 20, 0.6);
}

.mini-card h3 {
  margin: 0 0 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.form-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.form-grid label,
.lead-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

.checkbox input {
  width: auto;
  margin: 0;
}

input,
select,
button,
textarea {
  font: inherit;
}

input,
select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(143, 214, 251, 0.28);
  background: rgba(6, 12, 20, 0.8);
  color: var(--text);
  padding: 10px 12px;
}

input:focus,
select:focus {
  outline: 2px solid rgba(90, 227, 164, 0.45);
  border-color: rgba(90, 227, 164, 0.6);
}

.form-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  grid-column: 1 / -1;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  color: #072017;
  background: linear-gradient(135deg, var(--accent), #8effcb);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

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

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

button.ghost {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid rgba(143, 214, 251, 0.45);
}

.status {
  min-height: 48px;
  padding: 13px 16px;
  color: var(--muted);
}

.status.error {
  border-color: rgba(255, 157, 150, 0.5);
  color: var(--danger);
}

.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hidden,
.results.hidden {
  display: none;
}

.result-card {
  padding: 18px;
}

.result-card ul,
.result-card ol {
  margin: 10px 0 0;
  padding-left: 19px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.big-copy {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.pill {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(90, 227, 164, 0.45);
  color: var(--accent);
  font-size: 0.85rem;
}

.score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.score.needs-clarity {
  color: #ffcc91;
}

.score.build-ready {
  color: #8fd6fb;
}

.score.outbound-ready {
  color: var(--accent);
}

.span-2 {
  grid-column: span 2;
}

#sections {
  display: grid;
  gap: 10px;
}

.scope-item {
  border: 1px solid rgba(143, 214, 251, 0.24);
  border-radius: 12px;
  padding: 10px;
  background: rgba(6, 12, 20, 0.6);
}

.scope-item h4 {
  margin: 0 0 6px;
  color: var(--accent-2);
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid rgba(143, 214, 251, 0.24);
  border-radius: 12px;
  background: rgba(6, 12, 20, 0.7);
  padding: 12px;
  color: #d7ffe6;
  font-size: 0.84rem;
}

.kv-grid {
  display: grid;
  gap: 6px;
}

.kv-row {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(143, 214, 251, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(6, 12, 20, 0.45);
}

.kv-key {
  color: var(--muted);
}

.kv-value {
  color: var(--text);
  text-align: right;
}

.preview-link {
  color: var(--accent);
  text-decoration: none;
}

.preview-link:hover {
  text-decoration: underline;
}

.preview-links {
  display: grid;
  gap: 6px;
}

.list-grid {
  display: grid;
  gap: 10px;
}

.muted-link {
  color: var(--accent-2);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.demo-steps {
  display: grid;
  gap: 10px;
}

.demo-step {
  border: 1px solid rgba(143, 214, 251, 0.24);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(6, 12, 20, 0.6);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.demo-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-log {
  display: grid;
  gap: 10px;
}

.chat-turn {
  border: 1px solid rgba(143, 214, 251, 0.24);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(6, 12, 20, 0.55);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.chat-turn.visible {
  opacity: 1;
  transform: translateX(0);
}

.chat-turn.source {
  border-color: rgba(90, 227, 164, 0.5);
}

.chat-turn.target {
  border-color: rgba(143, 214, 251, 0.4);
}

.chat-speaker {
  margin: 0 0 6px;
  color: var(--accent-2);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.chat-message {
  margin: 0;
  color: var(--text);
}

.lead-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lead-form button {
  justify-self: start;
  align-self: end;
}

@keyframes driftA {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(20px) scale(1.12);
  }
}

@keyframes driftB {
  0%,
  100% {
    transform: translateX(0) scale(1);
  }

  50% {
    transform: translateX(-16px) scale(0.95);
  }
}

@media (max-width: 900px) {
  .results,
  .split-two {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .kv-row {
    flex-direction: column;
    gap: 4px;
  }

  .kv-value {
    text-align: left;
  }
}
