:root {
  --bg: #fff;
  --text: #1d1d1f;
  --accent: #AA2986;
  --bg-alt: #f5f5f7;
}

.dark {
  --bg: #030009;
  --text: #EEEDEB;
  --accent: #AA2986;
  --bg-alt: #000;
}

body {
  margin: 0;
  font-family: 'Red Hat Display', sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

html { scroll-behavior: smooth; }
.site-header { scroll-margin-top: 64px; }
section[id] { scroll-margin-top: 80px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(255,255,255,0.6);
}

.dark .site-header {
  background: rgba(0,0,0,0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  position: relative;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background: transparent;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.dark .hamburger { border-color: rgba(255,255,255,0.15); }
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text); }
.icon-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.1); background: transparent; color: var(--text); margin-left: 0.5rem; }
.dark .icon-toggle { border-color: rgba(255,255,255,0.15); }
.icon-toggle .sun { display: none; }
.dark .icon-toggle .moon { display: none; }
.dark .icon-toggle .sun { display: inline; }
.nav-cta { margin-left: 0.5rem; }

/* segmented theme toggle */
.theme-toggle { display: inline-flex; border: 1px solid rgba(0,0,0,0.12); border-radius: 999px; overflow: hidden; margin-left: 0.5rem; }
.dark .theme-toggle { border-color: rgba(255,255,255,0.15); }
.theme-btn { background: transparent; color: var(--text); border: 0; padding: 0.35rem 0.5rem; display: inline-flex; align-items: center; justify-content: center; }
.theme-btn[aria-pressed="true"], .theme-btn:hover { background: rgba(170,41,134,0.14); }
.small-theme { display: none; }
@media (max-width: 768px) {
  .theme-toggle { display: none; }
  .small-theme { display: inline-flex; }
}
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.site-brand img.logo {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-underline { position: absolute; height: 2px; background: var(--accent); bottom: 0; left: 0; width: 0; border-radius: 2px; transition: left 220ms ease, width 220ms ease; }

@media (max-width: 768px) {
  .hamburger { display: inline-flex; }
  .nav-links {
    position: absolute;
    right: 1rem;
    top: 60px;
    background: var(--bg-alt);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
}

.nav-links a {
  color: var(--text);
  opacity: 0.9;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: background 160ms ease, opacity 160ms ease;
}

.nav-links a:hover {
  opacity: 1;
  background: rgba(170,41,134,0.12);
}

.nav-links a.active {
  opacity: 1;
  background: rgba(170,41,134,0.18);
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: auto;
  padding: 2rem 0;
}

.hero {
  text-align: center;
  padding: 4rem 1rem;
}

.hero-benefits { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; opacity: 0.9; }
.hero-benefits li { background: var(--bg-alt); border-radius: 999px; padding: 0.35rem 0.75rem; font-size: 0.95rem; }

.cta-group {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease;
}

.cta-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(170, 41, 134, 0.35);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(170, 41, 134, 0.45);
}

.cta-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.1);
}

.dark .cta-secondary {
  border-color: rgba(255,255,255,0.15);
}

.cta-secondary:hover {
  transform: translateY(-2px);
}

.logo {
  max-width: 240px;
  margin: 0 auto 1rem;
  display: block;
}

.hero .logo {
  max-width: clamp(220px, 40vw, 420px);
  height: auto;
}

.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(170, 41, 134, 0.25), transparent 60%),
              linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.0) 100%);
}

.dark .hero {
  background: radial-gradient(1200px 600px at 50% -10%, rgba(170, 41, 134, 0.35), transparent 60%),
              linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.00) 100%);
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.product-highlight {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.product-highlight img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

footer {
  background: var(--bg-alt);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: var(--text);
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}

.footer-logo { max-width: 180px; height: auto; margin: 0 auto 0.75rem; display: block; }

.toggle-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  z-index: 1000;
}

@media (min-width: 768px) {
  .product-highlight {
    flex-direction: row;
    text-align: left;
  }

  .product-highlight div {
    padding-left: 2rem;
  }
}

/* Features */
.features {
  padding: 2rem 0 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.feature-card {
  background: var(--bg-alt);
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Background patterns */
.about {
  background-image: radial-gradient(600px 300px at 10% 20%, rgba(170, 41, 134, 0.07), transparent 60%);
}

.features {
  background-image: radial-gradient(600px 300px at 90% 20%, rgba(170, 41, 134, 0.07), transparent 60%);
}

/* Gallery */
.gallery {
  padding: 2rem 0 3rem;
}

/* Stories */
.stories { padding: 2rem 0 3rem; }
.stories-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .stories-grid { grid-template-columns: 1fr 1fr; } }
.story-card { background: var(--bg-alt); border-radius: 16px; overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,0.12); display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .story-card { grid-template-columns: 1.2fr 1fr; } }
.story-media img { width: 100%; height: auto; display: block; }
.story-content { padding: 1rem 1.25rem; }
.story-content h3 { margin-top: 0.5rem; }

/* Products */
.products { padding: 2rem 0 3rem; background: linear-gradient(180deg, rgba(170,41,134,0.18), rgba(170,41,134,0.12)); }
.dark .products { background: linear-gradient(180deg, rgba(170,41,134,0.22), rgba(170,41,134,0.16)); }
.products-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: stretch; }
@media (min-width: 900px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card { background: var(--bg); border-radius: 12px; padding: 1.25rem; box-shadow: 0 8px 24px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.06); height: 100%; display: flex; flex-direction: column; }
.dark .product-card { border-color: rgba(255,255,255,0.12); }
.product-card { transition: transform 220ms ease, box-shadow 220ms ease; overflow: hidden; }
.product-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3; /* enforce uniform ratio */
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}
.product-cta { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 0.5rem; }
.product-card { transition: transform 220ms ease, box-shadow 220ms ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,0.14); }

/* Platform */
.platform { padding: 2rem 0 3rem; }
.capabilities-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .capabilities-grid { grid-template-columns: repeat(3, 1fr); } }
.capability-card { background: var(--bg-alt); border-radius: 12px; padding: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.capability-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.capability-icon { display: inline-flex; width: 36px; height: 36px; border-radius: 8px; background: rgba(170, 41, 134, 0.12); align-items: center; justify-content: center; color: var(--accent); }
.check-list { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.check-list li { margin: 0.25rem 0; }

/* Use cases */
.use-cases {
  padding: 2rem 0 3rem;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .use-cases-grid { grid-template-columns: repeat(3, 1fr); }
}

.use-card {
  background: var(--bg-alt);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.use-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  transition: transform 300ms ease;
}
.use-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,0.14); }
.use-card:hover img { transform: scale(1.04); }
.use-card h3 { margin: 0.75rem 1rem 0.25rem; }
.use-card p { margin: 0 1rem 1rem; }

/* How it works */
.how-it-works { padding: 2rem 0 3rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; background: var(--bg-alt); border-radius: 12px; padding: 1rem; }
.step h3 { margin: 0 0 0.25rem; }
.step p { margin: 0; }
.num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; text-align: left; align-items: start; }
  .step .num { margin-bottom: 0.5rem; }
}
 

/* Testimonials */
.testimonials { padding: 2rem 0 3rem; }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial { background: var(--bg-alt); border-radius: 12px; padding: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.testimonial footer { margin-top: 0.5rem; opacity: 0.8; }

/* FAQ */
.faq { padding: 2rem 0 3rem; }
.faq-list { display: grid; gap: 0.5rem; }
.faq-question { width: 100%; text-align: left; padding: 0.75rem 1rem; border-radius: 10px; border: 1px solid rgba(0,0,0,0.1); background: var(--bg-alt); color: var(--text); font-weight: 600; transition: background 160ms ease, border-color 160ms ease; }
.faq-question:hover { background: rgba(0,0,0,0.03); }
.dark .faq-question { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); }
.dark .faq-question:hover { background: rgba(255,255,255,0.08); }
.faq-answer { display: none; padding: 0.5rem 1rem 1rem; color: var(--text); }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-answer { background: rgba(0,0,0,0.03); border-left: 2px solid rgba(0,0,0,0.1); border-radius: 0 0 10px 10px; }
.dark .faq-item.open .faq-answer { background: rgba(255,255,255,0.04); border-left-color: rgba(255,255,255,0.12); }

/* CTA strip */
.cta-strip { padding: 2rem 0; }
.cta-strip-inner { display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; background: var(--bg-alt); border-radius: 12px; padding: 1rem 1.25rem; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.gallery-item { border-radius: 12px; overflow: hidden; }
.gallery-item img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4; /* taller look */
  height: auto;
  object-fit: cover;
  transition: transform 300ms ease;
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item.video { position: relative; }
.play-badge { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.35), rgba(0,0,0,0.05)); display: flex; align-items: center; justify-content: center; }
.play-badge:before { content: none; }
.gallery-item.video .play-badge svg { transition: transform 180ms ease, opacity 180ms ease; }
.gallery-item.video:hover .play-badge svg { transform: scale(1.08); }
.gallery-item.video:hover .play-badge svg circle { fill: #ffffff; }
.gallery-item.video:hover .play-badge svg polygon { fill: #8e1f6c; }

.trusted-by {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.trusted-by img {
  height: 28px;
  opacity: 0.8;
}

.update-banner {
  background: rgba(170, 41, 134, 0.08);
  border: 1px solid rgba(170, 41, 134, 0.25);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin: 1rem 0;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 60;
}

.cookie-banner .container {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Focus and reduced motion */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}