/* ==========================================================================
   demo.css — Demo page hero with lead-capture form
   ========================================================================== */
.demo-hero {
  position: relative;
  padding-block: clamp(64px, 8vw, 120px);
  isolation: isolate;
  overflow: hidden;
}
.demo-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(77, 0, 242, 0.10), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(167, 124, 255, 0.18), transparent 55%),
    var(--color-bg-soft);
  z-index: -1;
}

.demo-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

/* ---- LEFT — pitch column ---- */
.demo-hero__copy { display: flex; flex-direction: column; gap: 24px; max-width: 540px; }

.demo-hero__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 16px 0 0;
}

.demo-hero__lede {
  font-size: clamp(14px, 0.85vw + 0.4rem, 16px);
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

.demo-hero__bullets {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 8px 0 0;
  list-style: none;
  padding: 0;
}
.demo-hero__bullets li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
}
.demo-hero__bullet-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--color-primary);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.demo-hero__bullet-icon i,
.demo-hero__bullet-icon [data-lucide] { width: 14px; height: 14px; stroke-width: 2.4; }
.demo-hero__bullets li strong {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  display: block;
  margin-bottom: 2px;
}
.demo-hero__bullets li p {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.demo-hero__trust {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(36, 36, 38, 0.08);
}
.demo-hero__trust-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--color-text-meta);
}
.demo-hero__trust-row i,
.demo-hero__trust-row [data-lucide] {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

/* ---- RIGHT — form card ---- */
.demo-hero__form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: clamp(24px, 2.5vw, 36px);
  box-shadow: 0 30px 80px -30px rgba(36, 28, 110, 0.18);
  position: sticky;
  top: 96px;
}

.demo-hero__form-head {
  margin-bottom: 20px;
}
.demo-hero__form-head h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin: 0 0 6px;
}
.demo-hero__form-head p {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Form layout */
.demo-form { display: flex; flex-direction: column; gap: 14px; }
.demo-form__row { display: flex; flex-direction: column; gap: 14px; }
.demo-form__row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.demo-form__field { display: flex; flex-direction: column; gap: 6px; }
.demo-form__label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.005em;
}
.demo-form__label em {
  font-style: normal;
  color: var(--color-primary);
  margin-left: 2px;
}
.demo-form__label-opt {
  color: var(--color-text-meta);
  margin-left: 4px;
  font-size: 11.5px;
  font-weight: 400;
}

.demo-form input[type="text"],
.demo-form input[type="email"],
.demo-form input[type="tel"],
.demo-form select,
.demo-form textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 11px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  min-width: 0;
}
.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(77, 0, 242, 0.12);
}
.demo-form select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M4 6l4 4 4-4' stroke='%2335363B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}
.demo-form textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.demo-form input::placeholder,
.demo-form textarea::placeholder { color: var(--color-text-faint); }

/* Consent */
.demo-form__consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-muted);
  margin: 4px 0;
}
.demo-form__consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.demo-form__consent a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Submit button */
.demo-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 22px 6px 6px;
  background: var(--color-text-thunder);
  color: #fff;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  align-self: flex-start;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
  margin-top: 4px;
}
.demo-form__submit:hover { transform: translateY(-1px); background: #000; }
.demo-form__submit:disabled { opacity: 0.65; cursor: wait; transform: none; }
.demo-form__submit-arrow {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.demo-form__submit-arrow i,
.demo-form__submit-arrow [data-lucide] { width: 18px; height: 18px; }
.demo-form__submit.is-loading .demo-form__submit-arrow i { animation: demo-spin 0.8s linear infinite; }
@keyframes demo-spin { to { transform: rotate(360deg); } }

/* Status / error / success message */
.demo-form__msg {
  font-size: 13px;
  margin: 4px 0 0;
  min-height: 1.2em;
  color: var(--color-text-muted);
}
.demo-form__msg.is-error    { color: #b3402f; }
.demo-form__msg.is-success  { color: var(--color-success); }

/* Honeypot — must remain visually hidden but not display:none */
.demo-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Form card foot */
.demo-hero__form-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 12.5px;
  color: var(--color-text-muted);
  text-align: center;
}
.demo-hero__form-foot a {
  color: var(--color-primary);
  font-weight: 500;
}

/* Success state takeover */
.demo-form.is-submitted .demo-form__row,
.demo-form.is-submitted .demo-form__consent,
.demo-form.is-submitted .demo-form__submit { display: none; }
.demo-form.is-submitted .demo-form__msg {
  font-size: 15px;
  padding: 16px 20px;
  background: var(--color-primary-tint-1);
  border: 1px solid rgba(77, 0, 242, 0.15);
  border-radius: 12px;
  color: var(--color-text);
  text-align: center;
}

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 960px) {
  .demo-hero__inner { grid-template-columns: 1fr; }
  .demo-hero__form-card { position: static; }
}
@media (max-width: 560px) {
  .demo-form__row--2col { grid-template-columns: 1fr; }
}
