:root {
  --max: 1380px;
  --content: 1000px;
}

.hero {
  position: relative;
  padding: 72px 0 26px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 760px;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 8%, rgba(143, 116, 255, 0.18), transparent 32%),
    radial-gradient(circle at 92% 24%, rgba(62, 216, 168, 0.10), transparent 22%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
}

.hero-copy {
  width: min(100%, 980px);
  display: grid;
  gap: 0;
  justify-items: center;
}

h1 {
  font-size: clamp(2.8rem, 4.6vw, 4.8rem);
  line-height: 1.02;
  max-width: 24ch;
  margin-bottom: 18px;
}

.hero-subtitle {
  max-width: 840px;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 auto 18px;
}

.hero-note {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.96rem;
  margin: 0 auto 10px;
}

.hero-links {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.96rem;
  margin: 0 auto;
}

.hero-links a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-form-section {
  padding: 18px 0 90px;
}

.form-wrap {
  width: min(100%, 860px);
  margin: 0 auto;
}

.form-panel {
  border-radius: 24px;
  border: 1px solid rgba(155, 168, 220, 0.18);
  background: rgba(8, 12, 28, 0.58);
  padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.form-intro {
  text-align: center;
  margin-bottom: 22px;
}

.form-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.06;
  margin-bottom: 10px;
  font-family: Manrope, Inter, sans-serif;
  letter-spacing: -0.03em;
}

.form-body {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.98rem;
  max-width: 60ch;
  margin: 0 auto;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #d7dcff;
  margin-bottom: 7px;
}

.field-req {
  color: #c7b9ff;
}

.field-opt {
  margin-left: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(173, 180, 214, 0.56);
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(155, 168, 220, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input::placeholder {
  color: rgba(173, 180, 214, 0.55);
}

.input:focus-visible {
  border-color: rgba(143, 116, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(143, 116, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23adb4d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

select.input option {
  background: #0f1330;
}

textarea.input {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.55;
}

.small {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 6px;
}

.field-error {
  font-size: 0.78rem;
  color: rgba(255, 130, 155, 0.95);
  margin-top: 5px;
  line-height: 1.42;
}

.field-error--center {
  text-align: center;
}

.input--invalid {
  border-color: rgba(255, 105, 136, 0.7) !important;
  box-shadow: 0 0 0 2px rgba(255, 105, 136, 0.12) !important;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.consent-panel {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(155, 168, 220, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.consent-copy {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.consent-copy:last-child {
  margin-bottom: 0;
}

.consent-copy--small {
  font-size: 0.82rem;
}

.consent-copy a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.6;
  cursor: pointer;
}

.consent-check input {
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: #8f74ff;
}

.turnstile-row {
  display: flex;
  justify-content: center;
}

.form-submit-btn {
  width: min(50%, 260px);
  justify-content: center;
  margin: 0 auto;
  display: flex;
}

.form-submit-note {
  text-align: center;
  margin-top: 8px;
}

.micro-faq {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(155, 168, 220, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.micro-faq-title {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

.micro-faq-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.success,
.error {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: 10px;
}

.success {
  border: 1px solid rgba(62, 216, 168, 0.28);
  background: rgba(62, 216, 168, 0.11);
  color: #c9ffe9;
}

.error {
  border: 1px solid rgba(255, 105, 136, 0.28);
  background: rgba(255, 105, 136, 0.11);
  color: #ffc7d2;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(540px, calc(100% - 32px));
  margin: 11vh auto 0;
  background: linear-gradient(180deg, rgba(18, 24, 52, 0.98), rgba(10, 14, 32, 0.98));
  border: 1px solid rgba(155, 168, 220, 0.18);
  border-radius: 24px;
  padding: 20px 20px 16px;
  box-shadow: var(--shadow-xl);
}

.modal-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-family: Manrope, Inter, sans-serif;
}

.modal-text {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.72;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

.modal-small {
  margin: 12px 0 0;
  color: rgba(173, 180, 214, 0.84);
  font-size: 0.83rem;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .hero {
    padding-top: 36px;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-panel {
    padding: 18px;
  }

  .form-submit-btn {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    max-width: 11ch;
  }
}
