/* ============================================================
   ScriptPartner Marketing Website
   ============================================================ */

/* ---- Reset & Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:          #4d36b4;
  --primary-dark:     #734bce;
  --primary-btn:      #6c4cf5;
  --primary-100:      #f5f3ff;
  --primary-200:      #e9e3ff;
  --primary-300:      #b69bff;
  --primary-500:      #8e73ff;
  --secondary:        #d87de8;
  --secondary-accent: #e98bff;
  --bg-dark:          #121024;
  --bg-nav:           #181631;
  --bg-trust:         #1e1b3a;
  --bg-footer:        #0a0817;
  --bg-light:         #fafafe;
  --bg-lavender:      #f5f3ff;
  --bg-pink:          #fdf2fb;
  --card-dark:        #2d1f6e;
  --text-primary:     #1a1633;
  --text-secondary:   #39364f;
  --text-light:       #e2d7ff;
  --text-white:       #ffffff;
  --border-dark:      rgba(255,255,255,0.05);
  --border-pill:      rgba(255,255,255,0.15);
  --pill-bg:          rgba(255,255,255,0.08);
  --max-width:        1280px;
  --nav-height:       64px;
  --font-heading:     'Plus Jakarta Sans', sans-serif;
  --font-body:        'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

/* ---- Utility --------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover { opacity: 0.88; }

.btn--primary {
  background: var(--primary-dark);
  color: #fff;
}


/* ---- Nav -------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-dark);
}

.nav__inner {
  max-width: calc(var(--max-width) + 96px);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  height: 35px;
  width: auto;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ---- Hero ------------------------------------------------- */
.hero {
  position: relative;
  background: var(--bg-dark);
  min-height: 585px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--nav-height) 48px 0;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__glow--1 {
  width: 900px;
  height: 900px;
  top: -100px;
  left: 50%;
  transform: translateX(-30%);
  background: radial-gradient(circle at center, rgba(109,77,199,0.12) 0%, transparent 65%);
}

.hero__glow--2 {
  width: 600px;
  height: 600px;
  top: -34px;
  left: 50%;
  transform: translateX(-10%);
  background: radial-gradient(circle at center, rgba(216,125,232,0.10) 15.7%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 960px;
  padding: 80px 0 100px;
}

.hero__heading {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.33;
  color: #fff;
  margin-bottom: 32px;
  text-align: center;
  width: 100%;
}

.hero__heading--gradient {
  background: linear-gradient(90deg, #6d4dc7 0%, #a78bfa 47.1%, #d87de8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text-light);
  letter-spacing: -0.43px;
}

/* ---- Trust Bar -------------------------------------------- */
.trust-bar {
  background: var(--bg-trust);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 23px 48px;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: calc(var(--max-width) + 96px);
  margin: 0 auto;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  background: var(--pill-bg);
  border: 1px solid var(--border-pill);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  white-space: nowrap;
}

/* ---- Services --------------------------------------------- */
.services {
  background: var(--bg-light);
  padding: 72px 48px;
}

.services__label {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.38px;
  text-transform: uppercase;
  color: var(--card-dark);
  margin-bottom: 40px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-card {
  position: relative;
  border-radius: 16px;
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 250px;
}

.service-card__accent {
  position: absolute;
  top: 0;
  left: 32px;
  height: 4px;
  width: 48px;
  border-radius: 0 0 9999px 9999px;
}

/* Default accent bars */
.service-card__accent--purple { background: var(--secondary); }
.service-card__accent--pink   { background: var(--secondary); }
.service-card__accent--violet { background: #a78bfa; }

/* Default card backgrounds — all light */
.service-card--dark     { background: #f5f3ff; --stroke-0: #2d1f6e; }
.service-card--pink     { background: var(--bg-pink); --stroke-0: #6B2D8E; }
.service-card--lavender { background: var(--primary-100); --stroke-0: #2D1F6E; }

/* Smooth hover transition */
.service-card {
  transition: background 0.25s ease;
  cursor: pointer;
}

.service-card__icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

/* Default icon wrap backgrounds */
.service-card--dark     .service-card__icon-wrap { background: #dddaf9; }
.service-card--pink     .service-card__icon-wrap { background: #f8d7f1; }
.service-card--lavender .service-card__icon-wrap { background: #dddaf9; }

.service-card__icon-wrap svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Default text colors */
.service-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
  color: var(--text-primary);
  transition: color 0.25s ease;
}

.service-card__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin-top: 12px;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

/* ---- Hover + active (touch press) states ------------------ */
.service-card--dark:hover,
.service-card--dark:active     { background: #2d1f6e; --stroke-0: white; }
.service-card--pink:hover,
.service-card--pink:active     { background: #8e2d8c; --stroke-0: white; }
.service-card--lavender:hover,
.service-card--lavender:active { background: #4b35b1; --stroke-0: white; }

.service-card--dark:hover     .service-card__accent,
.service-card--dark:active    .service-card__accent { background: #a284fc; }
.service-card--pink:hover     .service-card__accent,
.service-card--pink:active    .service-card__accent { background: #de95ed; }
.service-card--lavender:hover .service-card__accent,
.service-card--lavender:active .service-card__accent { background: #b7a0fb; }

.service-card:hover .service-card__icon-wrap,
.service-card:active .service-card__icon-wrap { background: rgba(255,255,255,0.15); }

.service-card:hover .service-card__title,
.service-card:active .service-card__title,
.service-card:hover .service-card__desc,
.service-card:active .service-card__desc { color: white; }


/* ---- Why ScriptPartner ------------------------------------ */
.why {
  background: var(--bg-lavender);
  padding: 56px 48px;
}

.why__inner {
  display: flex;
  align-items: center;
  gap: 140px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.why__content {
  flex: 0 0 auto;
  width: 560px;
}

.why__heading {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.why__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 0;
}

.why__list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--text-secondary);
}

.why__list-item svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.why__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.15px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.why__link:hover { opacity: 0.8; }

.why__link svg { width: 14px; height: 14px; flex-shrink: 0; }

.why__image {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.why__image img {
  max-width: 347px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

/* ---- CTA -------------------------------------------------- */
.cta {
  position: relative;
  background: var(--bg-dark);
  padding: 72px 48px;
  text-align: center;
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  width: 700px;
  height: 700px;
  top: -226px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(109,77,199,0.10) 0%, transparent 65%);
  pointer-events: none;
}

.cta__heading {
  position: relative;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  color: #fff;
  margin-bottom: 32px;
}

.cta .btn--primary {
  background: var(--primary-btn);
  position: relative;
}

/* ---- Footer ----------------------------------------------- */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-dark);
  padding: 36px 48px 37px;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: calc(var(--max-width) + 96px);
  margin: 0 auto;
}

.footer__disclaimer {
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-light);
  letter-spacing: 0.06px;
  flex: 1;
  max-width: 670px;
}

.footer__links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.footer__links a {
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.06px;
  white-space: nowrap;
}

.footer__links a:hover { text-decoration: underline; }

/* ---- Modal ------------------------------------------------ */
.hs-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hs-modal-overlay[hidden] { display: none; }

.hs-modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px 32px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
}

.hs-modal__close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #757575;
  line-height: 1;
  padding: 4px 8px;
}

.hs-modal__close-btn:hover { color: #212121; }

.hs-modal__badge {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.hs-modal__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
}

.hs-modal__subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 4px;
}

#hbspt-form-wrapper { margin-top: -8px; }

/* ---- Responsive: Tablet (≤1024px) ------------------------- */
@media (max-width: 1024px) {
  .container,
  .nav__inner,
  .trust-bar__inner,
  .footer__inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .services { padding: 56px 32px; }
  .why { padding: 48px 32px; }
  .cta { padding: 56px 32px; }
  .trust-bar { padding: 20px 32px; }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid .service-card:last-child {
    grid-column: 1 / -1;
  }

  .why__inner {
    gap: 48px;
  }

  .why__content {
    width: auto;
    flex: 1;
  }

  .why__image img {
    max-width: 280px;
  }

  .hero__heading { font-size: 40px; }
}

/* ---- Responsive: Mobile (≤768px) -------------------------- */
@media (max-width: 768px) {
  .nav__inner {
    padding: 0 20px;
  }

  .nav__logo { height: 28px; }


  .hero {
    padding: var(--nav-height) 24px 0;
    min-height: auto;
  }

  .hero__content {
    padding: 60px 0 80px;
    width: 100%;
    text-align: center;
  }

  .hero__heading {
    font-size: 30px;
    line-height: 1.3;
    text-align: center;
    width: 100%;
  }

  .hero__sub { font-size: 15px; }

  .trust-bar { padding: 16px 20px; }

  .trust-pill { font-size: 11px; padding: 5px 10px; }

  .services {
    padding: 48px 20px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .services__grid .service-card:last-child {
    grid-column: auto;
  }

  .why {
    padding: 48px 20px;
  }

  .why__inner {
    flex-direction: column;
    gap: 32px;
  }

  .why__content { width: 100%; }

  .why__heading { font-size: 30px; }

  .why__image { width: 100%; justify-content: flex-start; }
  .why__image img { max-width: 100%; }

  .cta { padding: 48px 20px; }
  .cta__heading { font-size: 22px; }

  .footer {
    padding: 28px 20px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    padding-left: 0;
    padding-right: 0;
  }

  .footer__links { margin-left: 0; }
}

/* ============================================================
   Legal Pages — Layout & Prose
   ============================================================ */

.legal-body {
  background: var(--bg-light);
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-layout {
  display: flex;
  gap: 64px;
  max-width: calc(var(--max-width) + 96px);
  margin: 0 auto;
  padding: 0 48px;
  align-items: flex-start;
}

/* ---- Sidebar -------------------------------------------- */
.legal-sidebar {
  flex-shrink: 0;
  width: 220px;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.legal-sidebar__nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-sidebar__nav li {
  border-left: 4px solid transparent;
}

.legal-sidebar__link {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.legal-sidebar__link:hover {
  color: var(--primary);
}

.legal-sidebar__link--active {
  font-weight: 600;
  color: var(--text-primary);
}

li:has(.legal-sidebar__link--active) {
  border-left-color: var(--primary);
}

/* ---- Content prose -------------------------------------- */
.legal-content {
  flex: 1;
  min-width: 0;
}

.legal-content__meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.legal-content h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 15px;
  font-weight: 400;
  line-height: 26px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-content p:last-child { margin-bottom: 0; }

/* ---- Responsive: Tablet --------------------------------- */
@media (max-width: 1024px) {
  .legal-layout {
    gap: 40px;
    padding: 0 32px;
  }

  .legal-sidebar { width: 180px; }
}

/* ---- Responsive: Mobile --------------------------------- */
@media (max-width: 768px) {
  .legal-body {
    padding-top: calc(var(--nav-height) + 28px);
    padding-bottom: 48px;
  }

  .legal-layout {
    flex-direction: column;
    gap: 32px;
    padding: 0 20px;
  }

  .legal-sidebar {
    width: 100%;
    position: static;
  }

  .legal-sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    border-left: none;
  }

  .legal-sidebar__nav li {
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  li:has(.legal-sidebar__link--active) {
    border-left-color: transparent;
    border-bottom-color: var(--primary);
  }

  .legal-sidebar__link { padding: 6px 12px; }

  .legal-content h1 { font-size: 28px; }
}

/* Legal content extras */
.legal-content__list {
  margin: 12px 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-content__list li {
  font-size: 15px;
  line-height: 26px;
  color: var(--text-secondary);
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-content a:hover { opacity: 0.8; }

.legal-content__copyright {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e6e7f2;
  font-size: 13px;
  color: #a8a6b8;
}

.legal-content h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-content__notice {
  background: #f5f3ff;
  border-left: 3px solid var(--primary);
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 22px;
  color: var(--text-secondary);
  font-weight: 500;
}

.legal-contact-block {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e6e7f2;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 22px;
}
