/* ============================================================
   MultiProvider.ai workshop — modern tech / gradient theme
   ============================================================ */

:root {
  --bg:        #0a0b14;
  --bg-soft:   #11121f;
  --card:      rgba(255, 255, 255, 0.035);
  --card-brd:  rgba(255, 255, 255, 0.09);
  --card-brd-hi: rgba(139, 148, 255, 0.45);
  --text:      #e9eaf3;
  --text-dim:  #a4a7be;
  --text-mute: #71748f;

  /* gradient accents */
  --c1: #7c5cff;   /* violet */
  --c2: #4d8bff;   /* blue   */
  --c3: #24d3c4;   /* teal   */
  --c4: #ff5cc0;   /* pink   */
  --grad: linear-gradient(100deg, var(--c1), var(--c2) 45%, var(--c3));
  --grad-warm: linear-gradient(100deg, var(--c4), var(--c1));

  --maxw: 820px;
  --radius: 16px;
  --radius-sm: 10px;

  --font-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: #a9b6ff; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- animated gradient orbs ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  will-change: transform;
}
.orb-1 { width: 520px; height: 520px; background: var(--c1); top: -140px; left: -120px; animation: float1 22s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; background: var(--c2); top: 20%; right: -160px; animation: float2 26s ease-in-out infinite; }
.orb-3 { width: 420px; height: 420px; background: var(--c3); bottom: -160px; left: 30%; animation: float3 30s ease-in-out infinite; }

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px, 50px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px, 40px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, -50px); } }

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 48px);
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 20, 0.55);
  border-bottom: 1px solid var(--card-brd);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.35rem;
}
.brand-accent { color: var(--text-mute); font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--text-dim); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff !important;
  font-weight: 600;
}

/* ---------- layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 5vw, 32px); }
.section { padding: clamp(48px, 8vw, 84px) 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(60px, 12vw, 120px) 0 clamp(40px, 7vw, 70px); }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--c3);
  margin: 0 0 18px;
  font-weight: 600;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.3rem, 6.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 34px;
}
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--card-brd);
  background: var(--card);
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 12px 24px;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(124, 92, 255, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(124, 92, 255, 0.7); text-decoration: none; }
.btn-lg { padding: 15px 34px; font-size: 1.06rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- prose ---------- */
.prose p { font-size: 1.06rem; color: var(--text-dim); margin: 0 0 22px; }
.prose p:last-child { margin-bottom: 0; }
.callout {
  margin: 30px 0;
  padding: 24px 28px;
  border-left: 3px solid transparent;
  border-image: var(--grad) 1;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.08), transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.1rem;
  color: var(--text);
}
.callout strong { color: #fff; }

/* ---------- section heads ---------- */
.section-head { margin-bottom: 34px; }
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.section-sub { color: var(--text-dim); margin: 0; font-size: 1.02rem; }

/* ---------- form ---------- */
.app-form { display: flex; flex-direction: column; gap: 22px; }
.card {
  border: 1px solid var(--card-brd);
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px clamp(20px, 4vw, 30px);
  margin: 0;
  backdrop-filter: blur(6px);
  transition: border-color 0.25s ease;
}
.card:focus-within { border-color: var(--card-brd-hi); }
.card legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.18rem;
  padding: 0;
  margin-bottom: 20px;
}
.q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-size: 0.95rem;
  flex: none;
}

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field-label { font-weight: 500; color: var(--text); font-size: 0.97rem; }
.field-label em { color: var(--c4); font-style: normal; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

input, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: var(--text-mute); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--c2);
  box-shadow: 0 0 0 3px rgba(77, 139, 255, 0.18);
}
input:user-invalid:not(:focus),
textarea:user-invalid:not(:focus) {
  border-color: rgba(255, 92, 120, 0.6);
}

.char-count { font-size: 0.82rem; color: var(--text-mute); align-self: flex-end; }
.char-count.over { color: #ff6b8a; }

/* radios */
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--card-brd);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.94rem;
  color: var(--text-dim);
  transition: all 0.18s ease;
  user-select: none;
}
.radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio:hover { border-color: var(--card-brd-hi); color: var(--text); }
.radio:has(input:checked) {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  font-weight: 500;
}
.radio:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(77, 139, 255, 0.3); }

/* submit */
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 4px; }
.form-status { margin: 0; font-size: 0.96rem; font-weight: 500; }
.form-status.ok { color: var(--c3); }
.form-status.err { color: #ff6b8a; }
.form-status.busy { color: var(--text-dim); }

/* success panel replacement */
.success-panel {
  border: 1px solid var(--card-brd-hi);
  background: linear-gradient(120deg, rgba(36, 211, 196, 0.08), rgba(124, 92, 255, 0.08));
  border-radius: var(--radius);
  padding: 40px clamp(24px, 5vw, 40px);
  text-align: center;
}
.success-panel h3 { font-family: var(--font-head); font-size: 1.6rem; margin: 0 0 12px; }
.success-panel p { color: var(--text-dim); margin: 0; font-size: 1.05rem; }
.success-panel .check {
  font-size: 2.6rem;
  display: inline-block;
  margin-bottom: 8px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--card-brd);
  margin-top: 40px;
  padding: 30px clamp(18px, 5vw, 32px);
  text-align: center;
  color: var(--text-mute);
  font-size: 0.88rem;
}
