.demo-page {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
}

.demo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 78px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.demo-header-inner {
  width: min(100%, 1500px);
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.demo-brand {
  display: inline-flex;
  align-items: center;
}

.demo-brand img {
  width: 190px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.demo-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.demo-back-link::before {
  content: "←";
  font-size: 1rem;
}

.demo-back-link:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.demo-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(38px, 5vw, 76px) clamp(20px, 4vw, 64px) clamp(58px, 6vw, 92px);
  background:
    linear-gradient(135deg, rgba(60, 154, 252, 0.04), transparent 38%),
    var(--bg);
}

.demo-ambient {
  position: absolute;
  z-index: -1;
  width: min(40vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.16;
  pointer-events: none;
}

.demo-ambient-blue {
  top: -18%;
  left: -14%;
  background: var(--blue);
}

.demo-ambient-pink {
  right: -20%;
  bottom: -15%;
  background: var(--pink);
}

.demo-layout {
  width: min(100%, 1420px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1fr);
  align-items: start;
  gap: clamp(38px, 5vw, 86px);
}

.demo-copy {
  position: sticky;
  top: 116px;
  padding: clamp(16px, 2.4vw, 34px) 0;
}

.demo-eyebrow,
.demo-form-kicker {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.demo-copy h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(3.25rem, 5.6vw, 6.5rem);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.067em;
  text-transform: uppercase;
}

.demo-copy h1 span {
  display: inline-block;
  padding-right: 0.04em;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.demo-lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.62;
}

.demo-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-trust i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(248, 169, 103, 0.7);
}

.demo-pillars {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.demo-pillar {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 15px;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: inset 3px 0 0 var(--pillar-accent, var(--blue));
}

.demo-pillar:nth-child(2) { --pillar-accent: var(--pink); }
.demo-pillar:nth-child(3) { --pillar-accent: var(--orange); }

.demo-pillar-number {
  color: var(--pillar-accent, var(--blue));
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.demo-pillar h2 {
  margin: -3px 0 3px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.demo-pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.demo-mobile-cta {
  display: none;
  margin-top: 24px;
}

.demo-form-card {
  min-width: 0;
  padding: 1px;
  scroll-margin-top: 98px;
  border-radius: 18px;
  background: var(--gradient);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32), 0 0 54px rgba(60, 154, 252, 0.1);
}

.demo-form-heading {
  padding: clamp(24px, 3vw, 34px) clamp(22px, 3vw, 34px) 22px;
  border-radius: 17px 17px 0 0;
  background: #ffffff;
  color: #0f172a;
}

.demo-form-kicker {
  margin-bottom: 8px;
  color: #4295fd;
}

.demo-form-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.demo-form-heading > p:last-child {
  margin: 12px 0 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
}

.demo-form-embed {
  width: 100%;
  min-height: 712px;
  height: auto;
  overflow: hidden;
  border-radius: 0 0 17px 17px;
  background: #ffffff;
}

.demo-form-embed iframe {
  display: block;
  width: 100%;
  height: 712px;
  min-height: 712px;
  background: #ffffff;
}

.demo-footer {
  min-height: 70px;
  padding: 20px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.demo-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.demo-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.demo-footer a {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.demo-footer a:hover { color: var(--blue); }

html[data-theme="light"] .demo-main {
  background:
    linear-gradient(135deg, rgba(60, 154, 252, 0.09), transparent 42%),
    var(--bg);
}

html[data-theme="light"] .demo-pillar {
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 3px 0 0 var(--pillar-accent, var(--blue)), 0 12px 32px rgba(18, 17, 24, 0.05);
}

@media (max-width: 1080px) {
  .demo-layout {
    grid-template-columns: 1fr;
    width: min(100%, 760px);
  }

  .demo-copy {
    position: static;
    padding-top: 0;
  }

  .demo-copy h1 { max-width: 720px; }
  .demo-mobile-cta { display: inline-flex; }
}

@media (max-width: 700px) {
  .demo-header { height: 68px; }
  .demo-header-inner { padding: 0 16px; gap: 12px; }
  .demo-brand img { width: 145px; height: 42px; }
  .demo-back-link { width: 42px; padding: 0; justify-content: center; font-size: 0; }
  .demo-header-actions { gap: 7px; }
  .demo-header-actions .icon-button,
  .demo-header-actions .lang-toggle { width: 38px; height: 38px; }
  .demo-main { padding: 42px 16px 56px; }
  .demo-copy h1 { font-size: clamp(2.65rem, 13.3vw, 4.35rem); }
  .demo-lead { margin-top: 20px; font-size: 0.96rem; }
  .demo-trust { gap: 8px; font-size: 0.62rem; letter-spacing: 0.035em; }
  .demo-pillars { margin-top: 28px; }
  .demo-pillar { grid-template-columns: 36px minmax(0, 1fr); padding: 15px 14px; gap: 10px; }
  .demo-form-card { border-radius: 12px; }
  .demo-form-heading { padding: 22px 18px 18px; border-radius: 11px 11px 0 0; }
  .demo-form-embed { border-radius: 0 0 11px 11px; }
  .demo-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-back-link,
  .demo-page .button {
    transition: none !important;
  }

  .demo-back-link:hover,
  .demo-page .button:hover {
    transform: none !important;
  }
}
