#sd-hero, #sd-hero * { box-sizing: border-box; }

  .sd-hero {
    --purple: #6F42C1;
    --purple-dark: #4E2E8C;
    --purple-deep: #2F1B57;
    --purple-tint: #F4EFFC;
    --purple-tint-2: #EAE0FA;
    --ink: #2A1749;
    --mist: rgba(42,23,73,0.68);
    --white: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 0;
    min-height: 450px;
    background: var(--white);
    border: 1px solid var(--purple-tint-2);
  }

  .sd-hero__track { position: relative; height: 450px; }

  .sd-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px);
    transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s;
  }
  .sd-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: opacity .6s ease, transform .6s ease;
    z-index: 2;
  }

  .sd-slide__bg {
    position: absolute; inset: 0;
    background:
      radial-gradient(65% 85% at 88% 8%, rgba(111,66,193,0.16), transparent 60%),
      radial-gradient(55% 70% at 100% 100%, rgba(111,66,193,0.10), transparent 60%),
      var(--white);
  }

  /* orbit motif — echoes the logo's connected circles, kept subtle */
  .sd-slide__orbits { position: absolute; inset: 0; overflow: hidden; opacity: .55; }
  .sd-dot { position: absolute; border-radius: 50%; filter: blur(.3px); }
  .sd-dot--sm { width: 14px; height: 14px; background: var(--purple-dark); top: 12%; left: 58%; box-shadow: 0 0 0 6px rgba(111,66,193,0.10); }
  .sd-dot--md { width: 34px; height: 34px; background: var(--purple); top: 20%; left: 63%; opacity: .85; }
  .sd-dot--lg { width: 60px; height: 60px; background: var(--purple-tint-2); top: 30%; left: 52%; }
  .sd-link { position: absolute; height: 2px; background: rgba(111,66,193,0.28); transform-origin: left center; }
  .sd-link--1 { width: 60px; top: 18%; left: 62%; transform: rotate(35deg); }
  .sd-link--2 { width: 70px; top: 27%; left: 51%; transform: rotate(35deg); }

  .sd-slide__inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 24px;
    padding: 28px 64px 64px;
  }

  .sd-eyebrow {
    color: var(--purple);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0 0 18px;
  }

  .sd-headline {
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 18px;
  }

  .sd-sub {
    font-size: 17px;
    line-height: 1.55;
    color: var(--mist);
    max-width: 460px;
    margin: 0 0 32px;
  }

  .sd-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

  .sd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
    white-space: nowrap;
  }
  .sd-btn--primary {
    background: var(--purple);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(111,66,193,0.28);
  }
  .sd-btn--primary:hover { transform: translateY(-2px); background: var(--purple-dark); }
  .sd-btn--ghost {
    color: var(--purple);
    border: 1.5px solid var(--purple);
    background: transparent;
  }
  .sd-btn--ghost:hover { background: var(--purple-tint); transform: translateY(-2px); }

  .sd-slide__art { display: flex; align-items: center; justify-content: center; height: 100%; }
  .sd-phone-svg { width: min(220px, 60%); max-height: 340px; height: auto; filter: drop-shadow(0 20px 36px rgba(111,66,193,0.28)); }

  /* Arrows */
  .sd-arrow {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--purple-tint-2);
    background: var(--white);
    color: var(--purple);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 6px 18px rgba(111,66,193,0.16);
    transition: background .18s ease, border-color .18s ease, color .18s ease;
  }
  .sd-arrow:hover { background: var(--purple); border-color: var(--purple); color: var(--white); }
  .sd-arrow--prev { left: 20px; }
  .sd-arrow--next { right: 20px; }

  /* Pagination — small purple dots joined by a line, matching the logo's orbit motif */
  .sd-pagination {
    position: absolute;
    left: 50%; bottom: 24px;
    translate: -50% 0;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--purple-tint-2);
    box-shadow: 0 6px 18px rgba(111,66,193,0.14);
  }
  .sd-pagination__line { width: 18px; height: 1.5px; background: var(--purple-tint-2); }
  .sd-pagination__dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: none;
    background: var(--purple-tint-2);
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
  }
  .sd-pagination__dot.is-active {
    background: var(--purple);
    transform: scale(1.35);
    box-shadow: 0 0 0 3px rgba(111,66,193,0.22);
  }

  @media (max-width: 900px) {
    .sd-slide__inner { grid-template-columns: 1fr; padding: 28px 44px 64px; text-align: left; }
    .sd-slide__art { display: none; }
    .sd-hero, .sd-hero__track { min-height: 440px; height: 440px; }
    .sd-arrow { width: 38px; height: 38px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .sd-slide { transition: opacity .3s ease; }
  }

/* The original homepage hero supplies Slide 1's typography, gradient and CTAs.
   Its natural height keeps all slides stable when content wraps on narrow screens. */
.sd-hero .sd-hero__track { height: auto; min-height: 450px; }
.sd-hero .sd-slide--homepage {
  position: relative;
  min-height: 450px;
  padding: 1.75rem 64px 4rem;
  font-family: var(--bs-body-font-family);
}
@media (max-width: 900px) {
  .sd-hero { height: auto; }
  .sd-hero .sd-hero__track, .sd-hero .sd-slide--homepage { min-height: 440px; }
}
@media (max-width: 576px) {
  .sd-hero .sd-slide--homepage { padding: 1.5rem 44px 4rem; }
}
