:root {
  --demo-ink: #111b32;
  --demo-muted: #64708a;
  --demo-line: rgba(62, 94, 160, .16);
  --demo-blue: #356fe5;
  --demo-violet: #7767e8;
  --demo-coral: #ff8c71;
  --demo-mist: #f5f8ff;
}

.demo-page { background: #fff; color: var(--demo-ink); }
.demo-skip { position: fixed; inset-inline-start: 16px; top: -64px; z-index: 10000; padding: 10px 15px; border-radius: 10px; background: #111827; color: #fff; }
.demo-skip:focus { top: 12px; }
.demo-main { min-height: 70vh; }

.demo-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(96px, 11vw, 144px) 0 clamp(72px, 9vw, 120px);
  background:
    linear-gradient(rgba(53,111,229,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53,111,229,.035) 1px, transparent 1px),
    radial-gradient(circle at 10% 8%, rgba(255,140,113,.17), transparent 30%),
    radial-gradient(circle at 92% 24%, rgba(119,103,232,.2), transparent 34%),
    linear-gradient(145deg, #fff 0%, #f7f9ff 54%, #f1f5ff 100%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

.demo-orb { position: absolute; z-index: -1; border-radius: 999px; filter: blur(2px); opacity: .74; pointer-events: none; }
.demo-orb-one { width: 230px; height: 230px; inset-inline-start: -95px; top: 22%; background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.9), rgba(255,140,113,.22) 48%, rgba(255,140,113,0)); }
.demo-orb-two { width: 340px; height: 340px; inset-inline-end: -150px; bottom: -100px; background: radial-gradient(circle at 45% 40%, rgba(255,255,255,.8), rgba(53,111,229,.18) 52%, rgba(53,111,229,0)); }

.demo-layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(390px, .74fr); gap: clamp(44px, 7vw, 96px); align-items: center; }
.demo-copy { max-width: 720px; }
.demo-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 7px 13px; border: 1px solid rgba(53,111,229,.18); border-radius: 999px; background: rgba(255,255,255,.72); color: var(--demo-blue); font-size: 12px; font-weight: 800; }
.demo-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--demo-blue); box-shadow: 0 0 0 5px rgba(53,111,229,.11); }
.demo-copy h1 { margin: 0 0 24px; max-width: 780px; font-family: 'IRANSansX', system-ui, sans-serif; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.25; letter-spacing: -.035em; color: var(--demo-ink); }
.demo-lead { max-width: 64ch; margin: 0; color: var(--demo-muted); font-size: clamp(16px, 1.55vw, 19px); line-height: 2; text-align: right; }

.demo-points { display: grid; gap: 14px; margin-top: 36px; }
.demo-point { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--demo-line); }
.demo-point-no { padding-top: 3px; color: var(--demo-blue); font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.demo-point h2 { margin: 0 0 6px; font-family: 'IRANSansX', system-ui, sans-serif; font-size: 17px; line-height: 1.5; }
.demo-point p { margin: 0; color: var(--demo-muted); font-size: 13.5px; line-height: 1.8; text-align: right; }

.demo-signal { display: flex; align-items: center; gap: 6px; height: 36px; margin-top: 24px; direction: ltr; }
.demo-signal span { width: 4px; height: 10px; border-radius: 999px; background: linear-gradient(to top, var(--demo-blue), var(--demo-coral)); animation: demo-wave 1.5s ease-in-out infinite; transform-origin: center; }
.demo-signal span:nth-child(2), .demo-signal span:nth-child(6) { animation-delay: -.2s; }
.demo-signal span:nth-child(3), .demo-signal span:nth-child(5) { animation-delay: -.45s; }
.demo-signal span:nth-child(4) { animation-delay: -.7s; }
.demo-signal span:nth-child(7) { animation-delay: -.95s; }
@keyframes demo-wave { 0%, 100% { height: 9px; opacity: .5; } 50% { height: 32px; opacity: 1; } }

.demo-form-card { position: relative; padding: clamp(25px, 3.8vw, 40px); border: 1px solid rgba(53,111,229,.17); border-radius: 28px; background: rgba(255,255,255,.91); box-shadow: 0 28px 80px rgba(26,52,108,.14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.demo-form-card:before { content: ""; position: absolute; inset: 0 22px auto; height: 3px; border-radius: 0 0 999px 999px; background: linear-gradient(90deg, var(--demo-blue), var(--demo-violet), var(--demo-coral)); }
.demo-form-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; color: var(--demo-blue); font-size: 12px; font-weight: 800; }
.demo-form-head strong { padding: 6px 10px; border-radius: 999px; background: #eef3ff; color: #51617e; font-size: 10px; }
.demo-form-card > h2, .demo-success h2 { margin: 0 0 9px; font-family: 'IRANSansX', system-ui, sans-serif; font-size: clamp(24px, 3vw, 34px); color: var(--demo-ink); }
.demo-form-card > p, .demo-success p { margin: 0 0 26px; color: var(--demo-muted); font-size: 14px; line-height: 1.85; text-align: right; }
.demo-form { display: grid; gap: 17px; }
.demo-field { display: grid; gap: 7px; }
.demo-field label { color: #273550; font-size: 13px; font-weight: 800; }
.demo-field label span { color: #d94d54; }
.demo-field input, .demo-field textarea { width: 100%; border: 1px solid #d9e0ed; border-radius: 14px; background: #fff; color: var(--demo-ink); font: inherit; font-size: 14px; line-height: 1.7; outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.demo-field input { min-height: 50px; padding: 10px 14px; }
.demo-field textarea { min-height: 116px; padding: 12px 14px; resize: vertical; }
.demo-field input::placeholder, .demo-field textarea::placeholder { color: #98a4ba; }
.demo-field input:focus, .demo-field textarea:focus { border-color: rgba(53,111,229,.7); box-shadow: 0 0 0 4px rgba(53,111,229,.1); }
.demo-field.has-error input, .demo-field.has-error textarea { border-color: #d94d54; background: #fffafa; }
.demo-field small { color: #7b879d; font-size: 11px; line-height: 1.6; }
.demo-error { min-height: 0; color: #c93e47 !important; }
.demo-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.demo-submit { min-height: 54px; margin-top: 4px; border: 0; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(110deg, #2867e0, #6f61df); color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 12px 28px rgba(53,111,229,.25); transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.demo-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(53,111,229,.32); }
.demo-submit:focus-visible { outline: 3px solid rgba(53,111,229,.28); outline-offset: 3px; }
.demo-submit:disabled { cursor: wait; opacity: .68; transform: none; }
.demo-submit.is-loading svg { animation: demo-spin 1s linear infinite; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
.demo-consent { margin: -5px 0 0; color: #7b879d; font-size: 10.5px; line-height: 1.75; text-align: center; }
.demo-form-status { min-height: 20px; color: #c93e47; font-size: 12px; line-height: 1.7; text-align: center; }
.demo-success { padding: 28px 0 10px; text-align: center; }
.demo-success[hidden] { display: none; }
.demo-success-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 50%; background: #eaf8ef; color: #218a4a; font-size: 28px; font-weight: 900; }
.demo-success p { text-align: center; }
.demo-success .btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; }

@media (max-width: 980px) {
  .demo-layout { grid-template-columns: 1fr; max-width: 760px; }
  .demo-copy { max-width: none; }
  .demo-form-card { max-width: 650px; width: 100%; justify-self: center; }
}

@media (max-width: 640px) {
  .demo-hero { padding: 78px 0 64px; }
  .demo-layout { gap: 38px; }
  .demo-copy h1 { font-size: clamp(33px, 10vw, 48px); }
  .demo-lead { font-size: 15px; }
  .demo-point { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .demo-form-card { padding: 24px 18px; border-radius: 22px; }
  .demo-form-head { margin-bottom: 16px; }
  .demo-field input { font-size: 16px; }
}

@media (max-width: 380px) {
  .demo-form-card { padding-inline: 15px; }
  .demo-form-head { align-items: flex-start; flex-direction: column; }
  .demo-copy h1 { font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-signal span, .demo-submit.is-loading svg { animation: none; }
  .demo-submit { transition: none; }
}
