/* ─────────────────────────────────────────────────────────────────
   Demo landing - /demo/
   Hero: 2-col split (copy + highlights left, Calendly inline right)
   ───────────────────────────────────────────────────────────────── */

/* ═══ HERO ═══════════════════════════════════════════════════════ */
.demo-hero {
  position: relative;
  padding: 180px 0 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.18), transparent 60%),
    var(--dark);
  overflow: hidden;
}
.demo-hero .wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}
.demo-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 80px;
}

/* Left column */
.demo-hero-copy {
  padding-top: 32px;
  position: relative;
  z-index: 4;
}
.demo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.demo-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-light);
  box-shadow: 0 0 8px var(--purple-light);
  animation: demoPulse 2s ease-in-out infinite;
}
@keyframes demoPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.demo-hero h1 {
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 900;
  letter-spacing: -1.8px;
  line-height: 1.04;
  color: #fff;
  margin: 0 0 20px;
}
.demo-hero h1 .accent {
  background: linear-gradient(135deg, #c4b5fd, #ec4899 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.demo-hero .lede {
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 500;
  color: var(--w70);
  line-height: 1.55;
  max-width: 520px;
  margin: 0 0 32px;
}

/* Victor avatar + handwritten greeting - float on top-left of the Calendly card */
.demo-form-wrap {
  position: relative;
}

/* Block wraps avatar + greeting so hover on either scales both. Pointer-events
   off the block so clicks pass through the empty space to the calendar
   underneath; the avatar + greeting themselves accept hover. */
.demo-host-block {
  position: absolute;
  top: -44px;
  left: -210px;
  width: 360px;
  height: 200px;
  z-index: 3;
  pointer-events: none;
  transform-origin: 24% 50%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.demo-host-block:hover {
  transform: scale(1.06);
}

.demo-host-avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: auto;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #c4b5fd, #8b5cf6);
  animation: demoHostFloat 4.5s ease-in-out infinite;
}
/* Larger float + a constant skew that gently swings */
@keyframes demoHostFloat {
  0%, 100% { transform: translateY(0)    rotate(-5deg); }
  50%      { transform: translateY(-14px) rotate(-1deg); }
}

/* Handwritten greeting - raised, tighter to avatar so arrow tip lands on his face */
.demo-host-greeting {
  position: absolute;
  top: -28px;
  left: 168px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  color: #c4b5fd;
  pointer-events: auto;
  animation: demoGreetFloat 4.5s ease-in-out infinite;
}
.demo-host-arrow {
  width: 60px;
  height: 56px;
  flex-shrink: 0;
}
.demo-host-text {
  font-family: 'Caveat', cursive;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  margin-top: 8px;
}
@keyframes demoGreetFloat {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-2deg) translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-host-avatar,
  .demo-host-greeting { animation: none; }
  .demo-host-greeting { transform: rotate(-3deg); }
}

/* Highlight bullets */
.demo-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 14px;
}
.demo-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}
.demo-highlights .check {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
  margin-top: 1px;
}
.demo-highlights .check svg {
  width: 13px;
  height: 13px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}
.demo-highlights strong {
  display: block;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.demo-highlights span {
  color: var(--w55);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

/* Right column - Calendly inline booking card */
.demo-form-card {
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}
.calendly-inline-widget {
  width: 100%;
  min-width: 320px;
  height: 480px;
  background: #fff;
}

/* ═══ LOGO STRIP (copied from index.css - keep self-contained) ═══ */
.demo-logos {
  position: relative;
  z-index: 2;
  padding: 32px 0 72px;
  overflow: hidden;
  background: linear-gradient(
    to top,
    rgba(5, 2, 8, 0.65) 0%,
    rgba(5, 2, 8, 0.2) 70%,
    transparent 100%
  );
}
.demo-logos-label {
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.2px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.demo-logos-label strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.demo-logos-label .sep { opacity: 0.45; }
.demo-logos-label .after {
  color: rgba(255, 255, 255, 0.35);
  margin-left: 4px;
}
.demo-logos-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 35%, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35%, black 65%, transparent 100%);
}
.demo-logos-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: demoLogoScroll 55s linear infinite;
}
@keyframes demoLogoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.demo-logos-track .logo-text {
  font-family: var(--font);
  font-size: 19px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: -0.4px;
  white-space: nowrap;
  transition: color 0.25s;
}
.demo-logos-track .logo-text:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ═══ ALT SECTIONS - image + text ════════════════════════════════ */
.demo-alt {
  padding: 100px 0;
  position: relative;
}
.demo-alt.alt-shade {
  background: var(--dark2);
}
.demo-alt .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.demo-alt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.demo-alt.reverse .demo-alt-grid {
  direction: rtl;
}
.demo-alt.reverse .demo-alt-grid > * {
  direction: ltr;
}
.demo-alt-copy .demo-alt-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 16px;
}
.demo-alt-copy h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 20px;
}
.demo-alt-copy h2 .accent {
  background: linear-gradient(135deg, #c4b5fd, #ec4899 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.demo-alt-copy p {
  font-size: 17px;
  color: var(--w70);
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 480px;
}
.demo-alt-copy .alt-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}
.demo-alt-copy .alt-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.55);
}
.demo-alt-copy .alt-cta .arrow {
  transition: transform 0.18s;
}
.demo-alt-copy .alt-cta:hover .arrow {
  transform: translateX(4px);
}

.demo-alt-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--dark2);
  border: 1px solid var(--w08);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(124, 58, 237, 0.1);
}
.demo-alt-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.demo-alt-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 10, 20, 0.4) 100%);
  pointer-events: none;
}

/* ═══ CASE STORY ═══ (copied from index.css for self-containment) */
.demo-case-story {
  background: var(--dark);
  padding: 80px 0 100px;
}
.demo-case-story .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.demo-case-story .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--w55);
  margin-bottom: 16px;
}
.demo-case-story h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -1.6px;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.05;
}
.demo-case-story h2 .accent {
  background: linear-gradient(135deg, #c4b5fd, #ec4899 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.demo-case-story .section-desc {
  font-size: 17px;
  color: var(--w70);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.55;
}

.case-story-video {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: visible;
  background: #000;
  border: 1px solid var(--w08);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(124, 58, 237, 0.1);
  cursor: pointer;
}
.case-story-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}
.case-story-video::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(13,10,20,0.3) 70%, rgba(13,10,20,0.5) 100%);
  pointer-events: none;
}
.case-story-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 48px rgba(124, 58, 237, 0.6);
  z-index: 2;
  cursor: pointer;
}
.case-story-play::before {
  content: "";
  width: 0; height: 0;
  margin-left: 6px;
  border-left: 20px solid var(--dark);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}
.case-story-logo {
  position: absolute;
  top: 14px; right: 14px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #fff;
  color: #0d0a14;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.2px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 3;
}
.case-story-quote {
  max-width: 700px;
  margin: 36px auto 0;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.3px;
  color: #fff;
  line-height: 1.35;
}
.case-story-quote::before { content: '"'; color: var(--purple-light); }
.case-story-quote::after  { content: '"'; color: var(--purple-light); }
.case-story-attr {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.case-story-attr span {
  font-weight: 500;
  color: var(--w55);
}
.case-story-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--w08);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--w08);
  margin: 36px auto 0;
}
.case-story-metric {
  background: var(--dark2);
  padding: 26px 20px;
  text-align: center;
}
.case-story-metric-num {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.case-story-metric-num.accent {
  background: linear-gradient(135deg, #a78bfa, #ec4899 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.case-story-metric-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--w55);
}

/* ═══ RESPONSIVE ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .demo-hero {
    padding-top: 130px;
  }
  .demo-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 80px;
  }
  .demo-host-block {
    top: -32px;
    left: -32px;
    width: 280px;
    height: 160px;
  }
  .demo-host-avatar {
    width: 136px;
    height: 136px;
  }
  .demo-host-greeting {
    top: -22px;
    left: 128px;
  }
  .demo-host-arrow {
    width: 48px;
    height: 44px;
  }
  .demo-host-text {
    font-size: 26px;
  }
  .demo-hero-copy {
    padding-top: 0;
    text-align: left;
  }
  .calendly-inline-widget {
    height: 720px;
  }
  .demo-alt {
    padding: 64px 0;
  }
  .demo-alt-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .demo-alt.reverse .demo-alt-grid {
    direction: ltr;
  }
  /* Image always above copy on mobile, regardless of order */
  .demo-alt-grid > .demo-alt-image { order: -1; }
  .demo-case-story {
    padding: 56px 0 72px;
  }
  .case-story-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .demo-hero .wrap,
  .demo-alt .wrap,
  .demo-case-story .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .calendly-inline-widget {
    height: 580px;
  }
  .demo-logos-label {
    font-size: 11.5px;
  }
}
