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

:root {
  --color-primary: #6b4c9a;
  --color-primary-light: #8b6bb5;
  --color-primary-dark: #4a2d7a;
  --color-bg: #fdfbfe;
  --color-bg-alt: #f8f4fc;
  --color-text: #2d2d3a;
  --color-text-muted: #6b6b7b;
  --color-border: #e8e0f0;
  --color-white: #ffffff;
  --color-cta-bg: #2d2d3a;
  --color-card-bg: #ffffff;
  --color-header-bg: rgba(253, 251, 254, 0.95);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(107, 76, 154, 0.08);
  --shadow-md: 0 4px 12px rgba(107, 76, 154, 0.1);
  --shadow-lg: 0 8px 32px rgba(107, 76, 154, 0.12);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-max: 1200px;
}

html.dark {
  --color-primary: #a78bfa;
  --color-primary-light: #c4b5fd;
  --color-primary-dark: #7c3aed;
  --color-bg: #121218;
  --color-bg-alt: #1a1a24;
  --color-text: #e8e6f0;
  --color-text-muted: #9b99a8;
  --color-border: #2d2d3a;
  --color-white: #e8e6f0;
  --color-cta-bg: #1e1b2e;
  --color-card-bg: #1a1a24;
  --color-header-bg: rgba(18, 18, 24, 0.95);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #c4a0d8 #f8f4fc;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f8f4fc;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #b48ed4, #d4a0c8);
  border-radius: 8px;
  border: 2px solid #f8f4fc;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #9b6bb5, #c48bb8);
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* === Layout === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 48px 0;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-top: 0;
  margin-bottom: 48px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--radius-full);
  padding: 12px 24px;
}

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

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--color-primary);
}

/* === Badge === */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.badge--audio {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c47ad0;
  background: transparent;
  border: none;
  padding: 0;
}

/* === Hero === */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #fdf4f0 0%, var(--color-bg) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero__title--highlight {
  background: linear-gradient(135deg, #c47ad0, #e8a87c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.hero__feature {
  text-align: center;
}

.hero__feature-icon {
  width: 83px;
  height: 83px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
}

.hero__feature-icon-img {
  width: 83px;
  height: 83px;
  object-fit: contain;
}

.hero__feature span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

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

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), #e8a87c);
}

.btn--outline {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Hero Visual */
.hero__visual {
  position: relative;
  overflow: hidden;
  margin-right: -40px;
  border-radius: 0 24px 24px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%);
  mask-image: linear-gradient(to right, transparent 0%, black 20%);
}

.hero__visual-img {
  width: 140%;
  max-width: none;
  display: block;
  margin-left: -40%;
}

/* === Cards === */
.cards {
  display: grid;
  gap: 24px;
}

.cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.card__image {
  display: block;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.card__image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* === Benefits === */
.benefit {
  text-align: center;
  padding: 24px;
}

.benefit__icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.benefit__icon-img {
  width: 77px;
  height: 77px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
}

.benefit__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.benefit__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* === Audience === */
.why {
  position: relative;
  overflow: hidden;
}

.why::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  z-index: 0;
  background: url('assets/images/bg-leaves-right-side.png') right center / contain no-repeat;
  mask-image: linear-gradient(to left, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%);
  opacity: 0.5;
  pointer-events: none;
}

.why .container {
  position: relative;
  z-index: 1;
}

.audience {
  position: relative;
  overflow: visible;
  text-align: center;
  padding-top: 24px;
}

.audience .container {
  position: relative;
  z-index: 1;
}

.audience__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.audience__desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === Steps === */
.how-it-works {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fdfbfe 0%, #fdf8f3 15%, #f8f0e8 70%, #f0e6da 100%);
}

.how-it-works::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 70%;
  width: 280px;
  background: url('assets/images/bg-leaves-left-side.png') left bottom / contain no-repeat;
  mask-image: linear-gradient(to top, black 30%, transparent 90%), linear-gradient(to right, black 60%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(to top, black 30%, transparent 90%), linear-gradient(to right, black 60%, transparent 100%);
  -webkit-mask-composite: source-in;
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}

.how-it-works .container {
  position: relative;
  z-index: 1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  position: absolute;
  top: -6px;
  right: calc(50% - 68px);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 1;
}

.step__icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  font-size: 2.2rem;
  background: #fff;
}

.step__icon-img {
  width: 123px;
  height: 123px;
  margin: 0 auto 24px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  overflow: hidden;
  transform: scale(1.3);
  border: 2px solid #e8d5f0;
}

.step__title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step__desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* === Gallery === */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.gallery__item {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* === Bottom Sections (FAQ + CTA) === */
.bottom-sections {
  position: relative;
  overflow: hidden;
}

.bottom-sections::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateX(-40%) translateY(-50%);
  width: 630px;
  height: 630px;
  background: url('assets/images/left-mandala.png') center / contain no-repeat;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.bottom-sections::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateX(40%) translateY(-50%);
  width: 630px;
  height: 630px;
  background: url('assets/images/right-mandala.png') center / contain no-repeat;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.bottom-sections .faq,
.bottom-sections .cta {
  position: relative;
  z-index: 1;
}

/* === FAQ === */
.faq__list {
  max-width: 700px;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq__question {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq__question::after {
  content: '▾';
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: transform 0.2s;
}

.faq__item[open] .faq__question::after {
  transform: rotate(180deg);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__answer {
  padding: 0 24px 18px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* === CTA === */
.cta {
  background: url('assets/images/banner-bg.png') right center / cover no-repeat;
  border-radius: var(--radius-xl);
  text-align: left;
  padding: 64px 48px;
  margin: 0 24px 80px;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}

.cta__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  max-width: 550px;
}

.cta__desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  max-width: 500px;
}

.cta__note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* === Footer === */
.footer {
  border-top: none;
  padding: 64px 0 48px;
  background: url('assets/images/footer.png') center / cover no-repeat;
  min-height: 500px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr auto 1fr auto 1fr auto 1fr;
  gap: 32px;
  align-items: start;
}

.footer__delimiter {
  height: 120px;
  width: auto;
  align-self: center;
}

.footer__logo {
  font-size: 1.2rem;
  font-weight: 700;
}

.footer__col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer__col a {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.footer__col a:hover {
  color: var(--color-primary);
}

.footer__newsletter {
  display: flex;
  gap: 8px;
}

.footer__newsletter input {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-family: var(--font-family);
  outline: none;
}

.footer__newsletter input:focus {
  border-color: var(--color-primary);
}

.footer__social {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: flex-end;
}

.footer__social a {
  font-size: 1.2rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer__social a:hover {
  opacity: 1;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .header__nav {
    display: none;
  }

  .theme-toggle {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .card {
    position: relative;
  }

  .card__icon {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    margin-bottom: 0;
    background: rgba(255,255,255,0.85);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
  }

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

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

  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .how-it-works::before {
    display: none;
  }

  .bottom-sections::before,
  .bottom-sections::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 60px 0 24px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .demo-video-fullwidth__video {
    min-height: 260px;
    max-height: 50vh;
  }

  .use-cases {
    margin-top: -40px;
    padding: 32px 20px;
  }

  .cards--4,
  .cards--3 {
    grid-template-columns: 1fr;
  }

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

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

  .hero__actions {
    flex-direction: column;
  }

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

  .cta {
    margin: 0 12px 40px;
    border-radius: var(--radius-lg);
  }
}

/* === Theme Toggle === */
.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg-alt);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--color-primary);
}

/* Tippy.js custom theme */
.tippy-box[data-theme~='mandalizer'] {
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.tippy-box[data-theme~='mandalizer'] .tippy-arrow {
  color: var(--color-text);
}

.theme-toggle__icon--dark {
  display: none;
}

html.dark .theme-toggle__icon--light {
  display: none;
}

html.dark .theme-toggle__icon--dark {
  display: inline;
}

/* === Dark mode transitions === */
html {
  transition: background-color 0.3s, color 0.3s;
}

body,
.header,
.card,
.faq__item,
.footer {
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

/* === Demo Video Fullwidth Section === */
.demo-video-fullwidth {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}

.demo-video-fullwidth__video {
  width: 100%;
  display: block;
  object-fit: cover;
  min-height: 500px;
  max-height: 85vh;
}

.demo-video-fullwidth:fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.demo-video-fullwidth:-webkit-full-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.demo-video-fullwidth:fullscreen .demo-video-fullwidth__video {
  object-fit: contain;
  min-height: 0;
  max-height: 100vh;
  width: 100%;
  height: 100%;
}

.demo-video-fullwidth:-webkit-full-screen .demo-video-fullwidth__video {
  object-fit: contain;
  min-height: 0;
  max-height: 100vh;
  width: 100%;
  height: 100%;
}

.demo-video-fullwidth__overlay {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-max);
  padding: 0 24px;
  color: #fff;
  z-index: 2;
}

.demo-video-fullwidth__title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.demo-video-fullwidth__desc {
  font-size: 1.1rem;
  margin: 0 0 12px;
  opacity: 0.9;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.demo-video-fullwidth__controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-video-fullwidth__btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  width: fit-content;
}

.demo-video-fullwidth__btn:hover {
  background: var(--color-primary-dark);
}

.use-cases {
  position: relative;
  z-index: 2;
  padding: 48px 32px;
  margin-top: -120px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  background: var(--color-bg);
  border-radius: 32px;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.10), 0 10px 50px rgba(0,0,0,0.08), 0 0 80px rgba(0,0,0,0.05);
}

/* === Bigger Picture overrides === */
.bp-wrap {
  z-index: 9999;
}
