/* =========================================================
   Grow with N – Editorial Design System
   Solid sections + selective gradient typography
   Colors: White #FFF | Black #0A0A0A | Lavender #D4D1FC | Gray #E2E2E2
   ========================================================= */

:root {
  --color-white: #ffffff;
  --color-black: #0a0a0a;
  --color-lavender: #d4d1fc;
  --color-gray: #e2e2e2;
  --color-purple: #8177d2;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Alexandria", system-ui, sans-serif;
  --radius-card: 1.35rem;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 36px rgba(10, 10, 10, 0.06);
  --shadow-card: 0 6px 24px rgba(10, 10, 10, 0.05);
  --shadow-lift: 0 14px 36px rgba(10, 10, 10, 0.09);
  --focus-ring: 0 0 0 3px rgba(212, 209, 252, 0.9);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --text-gradient: linear-gradient(90deg, #0a0a0a 0%, #8177d2 100%);
  --text-gradient-strong: linear-gradient(90deg, #0a0a0a 15%, #5a4ec8 100%);
  --text-gradient-light: linear-gradient(90deg, #ffffff 0%, #d4d1fc 55%, #8177d2 100%);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--color-black);
  background: var(--color-white);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--color-lavender) var(--color-white);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-white);
}
::-webkit-scrollbar-thumb {
  background: var(--color-lavender);
  border-radius: 999px;
}

::selection {
  background: var(--color-lavender);
  color: var(--color-black);
}

img {
  max-width: 100%;
}

.focus-ring:focus-visible,
.btn:focus-visible,
.social-icon:focus-visible,
.scroll-top-btn:focus-visible,
.testimonial-ig:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ---------- Gradient Typography (text only) ---------- */
.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-gradient-strong {
  background: var(--text-gradient-strong);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-gradient-light {
  background: var(--text-gradient-light);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Shared layout ---------- */
.section-pad {
  padding-block: 4.5rem;
}

.section-pad-cta {
  padding-block: 5.5rem;
}

@media (min-width: 768px) {
  .section-pad {
    padding-block: 6.5rem;
  }

  .section-pad-cta {
    padding-block: 7.5rem;
  }
}

@media (min-width: 1024px) {
  .section-pad {
    padding-block: 7.5rem;
  }

  .section-pad-cta {
    padding-block: 8.5rem;
  }
}

.section-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-black);
}

.section-heading--md {
  font-size: clamp(1.65rem, 3.6vw, 2.65rem);
  font-weight: 500;
  line-height: 1.25;
}

.section-heading--lg {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 500;
}

.section-heading--xl {
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
}

.section-rule {
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: var(--color-black);
}

.section-rule--accent {
  width: 72px;
  height: 4px;
  background: var(--color-lavender);
}

.section-heading--benefits {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
}

/* ---------- Preloader ---------- */
#preloader.hide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-bar {
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.15);
  overflow: hidden;
  position: relative;
}

.preloader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--color-black);
  border-radius: inherit;
  animation: preload-slide 1s var(--ease) infinite;
}

@keyframes preload-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  line-height: 1.2;
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.05rem 2.4rem;
  font-size: 1.05rem;
  min-width: 12rem;
}

.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.btn-primary:hover {
  background: var(--color-lavender);
  color: var(--color-black);
  border-color: var(--color-lavender);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-black);
}

.btn-outline:hover {
  background: var(--color-black);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-on-dark {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

.btn-on-dark:hover {
  background: var(--color-lavender);
  border-color: var(--color-lavender);
  color: var(--color-black);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.brand-mark {
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero-section {
  background: var(--color-white);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-black);
  border: 1px solid rgba(10, 10, 10, 0.12);
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
}

.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-lavender);
  border: 1px solid var(--color-black);
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6.25rem);
  line-height: 1.02;
  color: var(--color-black);
}

.hero-lead {
  max-width: 38rem;
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  line-height: 1.7;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.78);
}

.hero-support {
  max-width: 30rem;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.65;
  color: rgba(10, 10, 10, 0.55);
}

/* ---------- Video ---------- */
.section-video {
  background: var(--color-white);
  border-top: 1px solid rgba(10, 10, 10, 0.06);
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
}

.video-shell {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding: 0.55rem;
  background: var(--color-white);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(10, 10, 10, 0.05);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
}

.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #111;
}

@media (max-width: 767px) {
  .section-video .container {
    padding-inline: 1rem;
  }

  .video-shell {
    padding: 0.4rem;
    border-radius: 14px;
  }

  .video-wrapper {
    border-radius: 10px;
  }
}

/* ---------- Client Wins ---------- */
.section-wins {
  background: var(--color-white);
}

.testimonials-grid {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.testimonials-mobile {
  display: block;
}

@media (min-width: 768px) {
  .testimonials-grid {
    display: grid;
  }

  .testimonials-mobile {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 1.25rem;
  padding: 1.85rem 1.55rem 1.65rem;
  box-shadow: 0 8px 28px rgba(10, 10, 10, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(212, 209, 252, 0.95);
}

.testimonial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
}

.testimonial-name {
  font-family: var(--font-sans);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.2;
}

.testimonial-ig {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-lavender);
  color: var(--color-black);
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s var(--ease), color 0.3s ease;
  flex-shrink: 0;
}

.testimonial-ig:hover {
  background: var(--color-black);
  color: var(--color-white);
  transform: scale(1.05);
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(10, 10, 10, 0.78);
  flex: 1;
}

.testimonials-swiper {
  padding-bottom: 2.75rem !important;
  overflow: hidden;
}

.testimonials-swiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.testimonials-swiper .testimonial-card {
  min-height: 100%;
}

.testimonials-swiper .swiper-pagination-bullet {
  background: var(--color-black);
  opacity: 0.2;
  width: 8px;
  height: 8px;
}

.testimonials-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--color-lavender);
  outline: 1px solid var(--color-black);
  width: 22px;
  border-radius: 999px;
}

/* ---------- Story / What You Get ---------- */
.story-copy {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.85;
  color: rgba(10, 10, 10, 0.82);
}

@media (min-width: 768px) {
  .story-copy {
    gap: 1.9rem;
  }
}

.quote-accent {
  margin-block: 0.35rem;
  padding: 1.4rem 1.5rem;
  background: var(--color-lavender);
  border-radius: 1.15rem;
  border-left: 4px solid var(--color-black);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.55;
  color: var(--color-black);
}

.highlight-statement {
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: var(--color-black);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(transparent 64%, var(--color-lavender) 64%);
  padding-inline: 0.12em;
}

.mark-lavender {
  background: var(--color-lavender);
  padding: 0.08em 0.35em;
  border-radius: 0.3em;
  font-weight: 700;
  color: var(--color-black);
}

/* ---------- Benefits ---------- */
.section-benefits {
  background: var(--color-white);
  border-top: 1px solid rgba(10, 10, 10, 0.06);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  max-width: 1100px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.benefit-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 1.25rem;
  padding: 1.9rem 1.65rem;
  box-shadow: 0 8px 28px rgba(10, 10, 10, 0.04);
  min-height: 100%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(212, 209, 252, 0.95);
}

.benefit-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--color-lavender);
  color: var(--color-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  background: var(--color-black);
  color: var(--color-lavender);
}

.benefit-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 0.55rem;
  line-height: 1.3;
}

.benefit-desc {
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.68);
}

/* ---------- Final CTA ---------- */
.section-cta {
  background: var(--color-black);
}

.cta-headline {
  font-size: clamp(1.85rem, 4.5vw, 3.35rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.cta-support {
  margin-top: 1.5rem;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .cta-support {
    margin-top: 1.85rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.social-icon:hover {
  background: var(--color-lavender);
  color: var(--color-black);
  border-color: var(--color-lavender);
  transform: translateY(-2px);
}

/* ---------- Scroll top ---------- */
.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 50;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  border: none;
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease), background 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--color-lavender);
  color: var(--color-black);
}

/* ---------- Mobile ---------- */
@media (max-width: 639px) {
  .btn-lg {
    width: 100%;
    max-width: 20rem;
  }

  .hero-title {
    font-size: clamp(2.65rem, 12vw, 3.5rem);
  }

  .quote-accent {
    padding: 1.15rem 1.2rem;
  }

  .testimonial-card {
    padding: 1.5rem 1.25rem 1.35rem;
  }

  .testimonial-text {
    font-size: 0.98rem;
  }

  .benefit-card {
    padding: 1.45rem 1.25rem;
  }
}

/* Fallback when background-clip text unsupported */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .text-gradient,
  .text-gradient-strong {
    color: var(--color-purple);
    background: none;
    -webkit-text-fill-color: unset;
  }

  .text-gradient-light {
    color: var(--color-lavender);
    background: none;
    -webkit-text-fill-color: unset;
  }
}
