/* ================================================================
   BunnySale – Main Stylesheet
   Architecture: Design Tokens → Reset → Components → Sections → Responsive
   ================================================================ */

/* ----------------------------------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary:      #000000;
  --color-accent:       #8b4eff;
  --color-accent-end:   #6b38ec;
  --color-text:         #1e252e;
  --color-text-muted:   rgba(34, 41, 50, 0.85);
  --color-text-faint:   rgba(30, 37, 46, 0.65);
  --color-text-hint:    rgba(30, 37, 46, 0.25);
  --color-bg:           #ffffff;
  --color-surface:      #f5f7f9;
  --color-border:       #e9e9e9;
  --color-border-light: rgba(0, 0, 0, 0.04);
  --color-overlay:      rgba(3, 9, 17, 0.08);
  --color-blue:         #007aff;

  /* Typography */
  --font-family: Inter, 'PingFang SC', Lexend, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-display: Lexend, var(--font-family);

  --text-xs:   12px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   16px;
  --text-lg:   18px;
  --text-xl:   24px;
  --text-2xl:  32px;
  --text-3xl:  40px;
  --text-step: 100px;

  --lh-tight:  1.25;
  --lh-snug:   1.4;
  --lh-normal: 1.6;
  --lh-loose:  1.8;

  --fw-regular:  400;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* Spacing */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;
  --space-4: 16px;  --space-5: 20px;  --space-6: 24px;
  --space-7: 28px;  --space-8: 32px;  --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px;
  --space-24: 96px; --space-32: 128px;

  /* Radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 1000px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md:   0 4px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg:   0 8px 40px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 2px 8px rgba(139, 78, 255, 0.2);
  --shadow-glow-hover: 0 6px 20px rgba(139, 78, 255, 0.4);

  /* Z-index scale */
  --z-base:     0;
  --z-raised:   10;
  --z-header:   200;

  /* Animation */
  --duration-fast:   0.15s;
  --duration-normal: 0.3s;
  --duration-reveal: 0.8s;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar { display: none; }

input, select, textarea, button { outline: 0; }

/* ----------------------------------------------------------------
   3. SCROLL-REVEAL ANIMATION
   ---------------------------------------------------------------- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-reveal) var(--ease-smooth),
              transform var(--duration-reveal) var(--ease-smooth);
}
.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------------
   4. SHARED ANIMATION KEYFRAMES
   ---------------------------------------------------------------- */
@keyframes shine {
  0%   { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* ----------------------------------------------------------------
   5. BUTTON COMPONENTS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 56px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  line-height: 1;
  color: var(--color-bg);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
}

.btn::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.btn:hover::before { opacity: 1; animation: shine 1.5s ease-in-out; }

/* Primary (black CTA) */
.btn--primary {
  background: var(--color-primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
.btn--primary:hover {
  background: #222222;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.btn--primary:active {
  transform: translateY(0);
  background: #111111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Accent (purple gradient) */
.btn--accent {
  padding: 12px 24px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-end));
  box-shadow: var(--shadow-glow);
}
.btn--accent::before {
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
}
.btn--accent:hover {
  background: linear-gradient(90deg, #7a3fff, #5a28dc);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-hover);
}
.btn--accent:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(139, 78, 255, 0.3);
}

/* ----------------------------------------------------------------
   6. SITE HEADER
   ---------------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  height: 64px;
  background: rgba(255, 254, 254, 0.3);
  backdrop-filter: blur(4px);
  z-index: var(--z-header);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  padding: 0 var(--space-4);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-image: url(./images/logo.png);
  background-image: image-set(url(./images/logo.webp) type('image/webp'), url(./images/logo.png) type('image/png'));
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.brand-name {
  font-size: 17px;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  white-space: nowrap;
}

/* Footer brand name uses gradient */
.site-footer .brand-name {
  font-size: var(--text-xl);
  background: linear-gradient(22.62deg, var(--color-accent-end), #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-shrink: 0;
}

/* Language picker */
.lang-picker {
  display: flex;
  align-items: center;
}

.lang-select {
  padding: 8px 32px 8px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  outline: none;
  box-shadow: var(--shadow-sm);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  transition: border-color var(--duration-normal), color var(--duration-normal),
              box-shadow var(--duration-normal), transform var(--duration-normal);
}

.lang-select:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
  box-shadow: 0 4px 10px rgba(0, 122, 255, 0.1);
  transform: translateY(-1px);
}

.lang-select:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
  background-color: var(--color-bg);
}

.lang-select:active { transform: translateY(0); }

/* ----------------------------------------------------------------
   7. PAGE WRAPPER
   ---------------------------------------------------------------- */
.page {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--color-bg);
  overflow-x: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.page::-webkit-scrollbar { display: none; }

/* Main content area */
.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 160px;
  width: 100%;
  padding: 64px 0;
  position: relative;
}

/* ----------------------------------------------------------------
   8. HERO BACKGROUND DECORATION
   ---------------------------------------------------------------- */
.hero-bg {
  position: absolute;
  width: 100%;
  height: 830px;
  top: 64px;
  left: 0;
  background-image: url(images/hero-background.png);
  background-image: image-set(url(images/hero-background.webp) type('image/webp'), url(images/hero-background.png) type('image/png'));
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: var(--z-base);
}

/* ----------------------------------------------------------------
   9. HERO SECTION
   ---------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  width: 100%;
  max-width: 1920px;
  padding: 0 var(--space-4);
  z-index: var(--z-raised);
  box-sizing: border-box;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  width: 880px;
  max-width: 880px;
}

.hero__heading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero__title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 963px;
  color: var(--color-text);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  line-height: 50px;
  text-align: center;
  overflow: hidden;
}

.hero__desc-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: var(--space-3);
}

.hero__desc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 24px;
  text-align: center;
}

/* Hero gallery container */
.hero__gallery {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 592px;
  overflow: hidden;
  position: relative;
}

/* Desktop mosaic (1458px canvas) */
.hero-mosaic {
  flex-shrink: 0;
  position: relative;
  width: 1458px;
  height: 611.5px;
}

.hero-mosaic__col {
  position: absolute;
  width: 198px;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.hero-mosaic__col--1 { left: 0; }
.hero-mosaic__col--2 { left: 210px; }
.hero-mosaic__col--3 { left: 420px; }
.hero-mosaic__col--4 { left: 630px; top: -2.9px; padding-bottom: 2.9px; }
.hero-mosaic__col--5 { left: 840px; }
.hero-mosaic__col--6 { left: 1050px; }
.hero-mosaic__col--7 { left: 1260px; }

.hero-mosaic__frame {
  flex-shrink: 0;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--color-overlay);
}

.hero-mosaic__frame--sm    { height: 198px; }
.hero-mosaic__frame--tiny  { height: 111px; }
.hero-mosaic__frame--tall  { height: 352px; }
.hero-mosaic__frame--short { height: 247px; }

.hero-mosaic__tile {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-tile--01 { background-image: image-set(url(./images/hero-tile-01.webp) type('image/webp'), url(./images/hero-tile-01.png) type('image/png')); }
.hero-tile--02 { background-image: image-set(url(./images/hero-tile-02.webp) type('image/webp'), url(./images/hero-tile-02.png) type('image/png')); }
.hero-tile--03 { background-image: image-set(url(./images/hero-tile-03.webp) type('image/webp'), url(./images/hero-tile-03.png) type('image/png')); background-position: center 40%; }
.hero-tile--04 { background-image: image-set(url(./images/hero-tile-04.webp) type('image/webp'), url(./images/hero-tile-04.png) type('image/png')); }
.hero-tile--05 { background-image: image-set(url(./images/hero-tile-05.webp) type('image/webp'), url(./images/hero-tile-05.png) type('image/png')); background-position: center 60%; }
.hero-tile--06 { background-image: image-set(url(./images/hero-tile-06.webp) type('image/webp'), url(./images/hero-tile-06.png) type('image/png')); }
.hero-tile--07 { background-image: image-set(url(./images/hero-tile-07.webp) type('image/webp'), url(./images/hero-tile-07.png) type('image/png')); }
.hero-tile--08 { background-image: image-set(url(./images/hero-tile-08.webp) type('image/webp'), url(./images/hero-tile-08.png) type('image/png')); background-position: center 60%; }
.hero-tile--09 { background-image: image-set(url(./images/hero-tile-09.webp) type('image/webp'), url(./images/hero-tile-09.png) type('image/png')); }
.hero-tile--10 { background-image: image-set(url(./images/hero-tile-10.webp) type('image/webp'), url(./images/hero-tile-10.png) type('image/png')); }
.hero-tile--11 { background-image: image-set(url(./images/hero-tile-11.webp) type('image/webp'), url(./images/hero-tile-11.png) type('image/png')); }

/* Responsive gallery (shown on tablet/mobile) */
.hero-gallery-responsive {
  display: none;
}

.hero-gallery-tile {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-gallery-tile--1 { background-image: image-set(url(./images/hero-tile-02.webp) type('image/webp'), url(./images/hero-tile-02.png) type('image/png')); }
.hero-gallery-tile--2 { background-image: image-set(url(./images/hero-tile-04.webp) type('image/webp'), url(./images/hero-tile-04.png) type('image/png')); }
.hero-gallery-tile--3 { background-image: image-set(url(./images/hero-tile-01.webp) type('image/webp'), url(./images/hero-tile-01.png) type('image/png')); }
.hero-gallery-tile--4 { background-image: image-set(url(./images/hero-tile-07.webp) type('image/webp'), url(./images/hero-tile-07.png) type('image/png')); }
.hero-gallery-tile--5 { background-image: image-set(url(./images/hero-tile-09.webp) type('image/webp'), url(./images/hero-tile-09.png) type('image/png')); }
.hero-gallery-tile--6 { background-image: image-set(url(./images/hero-tile-10.webp) type('image/webp'), url(./images/hero-tile-10.png) type('image/png')); }

/* ----------------------------------------------------------------
   10. TRUST / BRAND SECTION
   ---------------------------------------------------------------- */
.trust-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  position: relative;
  width: 100%;
  max-width: 1432px;
  padding: 0 var(--space-10);
  box-sizing: border-box;
}

.trust-section__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 832px;
}

.trust-section__title {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  white-space: nowrap;
  text-align: center;
}

.trust-section__subtitle {
  font-size: 15px;
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
}

/* Brand logo sprite grid */
.brand-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1368px;
  height: auto;
}

.brand-logo {
  flex: 1 1 0;
  min-width: 0;
  height: 60px;
  background-image: image-set(
    url(./images/brand-logos.webp) type('image/webp'),
    url(./images/brand-logos.png) type('image/png')
  );
  background-size: 800% auto;
  background-repeat: no-repeat;
  background-position-y: center;
}

/* Per-logo X offset: (N / 7) × 100% */
.brand-logo--1 { background-position-x: 0%; }
.brand-logo--2 { background-position-x: 14.286%; }
.brand-logo--3 { background-position-x: 28.571%; }
.brand-logo--4 { background-position-x: 42.857%; }
.brand-logo--5 { background-position-x: 57.143%; }
.brand-logo--6 { background-position-x: 71.429%; }
.brand-logo--7 { background-position-x: 85.714%; }
.brand-logo--8 { background-position-x: 100%; }

/* ----------------------------------------------------------------
   11. FEATURE SECTION
   ---------------------------------------------------------------- */
.features-section {
  display: flex;
  flex-direction: column;
  gap: 160px;
  position: relative;
  width: 100%;
  max-width: 1412px;
  padding: 0 var(--space-10);
  box-sizing: border-box;
}

/* Shared feature row (also used by capabilities section) */
.feature-row {
  display: flex;
  align-items: center;
  gap: 110px;
  position: relative;
  min-width: 0;
  min-height: 670px;
}

/* On tablet+: CSS Grid for 2-col layout */
@media (min-width: 768px) {
  .feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    grid-template-areas:
      "text  image"
      "btn   image";
    column-gap: 48px;
    row-gap: 12px;
    align-items: start;
    min-height: auto;
  }

  .feature-row > .feature-content   { grid-area: text; }
  .feature-row > .feature-media-wrap { grid-area: image; align-self: stretch; }
  .feature-row > .btn               { grid-area: btn; }

  .feature-row--img-left {
    grid-template-areas:
      "image text"
      "image btn";
  }
  .feature-row--img-left > .feature-content    { grid-area: text; }
  .feature-row--img-left > .feature-media-wrap  { grid-area: image; align-self: stretch; }
  .feature-row--img-left > .btn                { grid-area: btn; }
}

@media (min-width: 1024px) {
  .feature-row { column-gap: 110px; min-height: 670px; }
}

/* Feature text content */
.feature-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  width: 100%;
}

.feature-title {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  line-height: 50px;
  color: var(--color-text);
}

.feature-subtitle {
  font-size: 15px;
  font-weight: var(--fw-regular);
  line-height: 24px;
  color: var(--color-text-muted);
}

/* Feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-7) 0;
  list-style: none;
  margin: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: url(./images/check.svg) no-repeat center / contain;
}

.feature-item-text {
  font-size: 17px;
  font-weight: var(--fw-bold);
  line-height: 28px;
  color: var(--color-text);
}

/* Feature media */
.feature-media-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.feature-media {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.feature-media--gallery {
  background-image: url(./images/product-listing-images.png);
  background-image: image-set(url(./images/product-listing-images.webp) type('image/webp'), url(./images/product-listing-images.png) type('image/png'));
}

/* Pro product showcase */
.feature-media-wrap--showcase {
  overflow: hidden;
}

.feature-media--showcase {
  position: relative;
  width: 100%;
  height: 631px;
  margin: 24px 0 0 0;
  background-image: url(./images/generated-image.png);
  background-image: image-set(url(./images/generated-image.webp) type('image/webp'), url(./images/generated-image.png) type('image/png'));
  background-size: cover;
  background-position: center;
}

/* UGC video */
.feature-media-wrap--ugc {
  border-radius: var(--radius-2xl);
}

.feature-media--ugc {
  background-image: url(./images/ugc-video-preview.png);
  background-image: image-set(url(./images/ugc-video-preview.webp) type('image/webp'), url(./images/ugc-video-preview.png) type('image/png'));
  background-size: cover;
  border-radius: var(--radius-xl);
}

/* ----------------------------------------------------------------
   12. SECTION HEADER (for capabilities, steps)
   ---------------------------------------------------------------- */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 1920px;
  padding: 80px var(--space-10) 0;
  box-sizing: border-box;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  line-height: 50px;
  color: var(--color-text);
  text-align: center;
}

.section-subtitle {
  font-size: 15px;
  font-weight: var(--fw-regular);
  line-height: 24px;
  color: var(--color-text-muted);
  text-align: center;
}

/* ----------------------------------------------------------------
   13. CAPABILITIES SECTION
   ---------------------------------------------------------------- */
.capabilities-section {
  display: flex;
  flex-direction: column;
  gap: 160px;
  position: relative;
  width: 100%;
  max-width: 1412px;
  padding: 0 var(--space-10);
  box-sizing: border-box;
}

/* Preview panel (image side of capability row) */
.preview-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  position: relative;
  width: 100%;
  min-width: 0;
  padding-bottom: 76px;
}

.preview-frame {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 370px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  transition: all 0.5s ease;
}

.preview-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.5s ease;
}

/* Preview image data-type mappings */
.preview-image[data-type="flat-lay"]           { background-image: image-set(url(./images/flat-lay.webp) type('image/webp'), url(./images/flat-lay.png) type('image/png')); }
.preview-image[data-type="mannequin"]          { background-image: image-set(url(./images/mannequin.webp) type('image/webp'), url(./images/mannequin.png) type('image/png')); }
.preview-image[data-type="real-person"]        { background-image: image-set(url(./images/real-person.webp) type('image/webp'), url(./images/real-person.png) type('image/png')); }
.preview-image[data-type="influencer"]         { background-image: image-set(url(./images/influencer.webp) type('image/webp'), url(./images/influencer.png) type('image/png')); }
.preview-image[data-type="supermodel"]         { background-image: image-set(url(./images/supermodel.webp) type('image/webp'), url(./images/supermodel.png) type('image/png')); }
.preview-image[data-type="solid-color"]        { background-image: image-set(url(./images/solid-color.webp) type('image/webp'), url(./images/solid-color.png) type('image/png')); }
.preview-image[data-type="multiple-angles"]    { background-image: image-set(url(./images/multiple-angles.webp) type('image/webp'), url(./images/multiple-angles.png) type('image/png')); }
.preview-image[data-type="popular-combinations"] { background-image: image-set(url(./images/popular-combinations.webp) type('image/webp'), url(./images/popular-combinations.png) type('image/png')); }
.preview-image[data-type="trending-poses"]     { background-image: image-set(url(./images/trending-poses.webp) type('image/webp'), url(./images/trending-poses.png) type('image/png')); }
.preview-image[data-type="bags"]               { background-image: image-set(url(./images/bags.webp) type('image/webp'), url(./images/bags.png) type('image/png')); }
.preview-image[data-type="cosmetics"]          { background-image: image-set(url(./images/cosmetics.webp) type('image/webp'), url(./images/cosmetics.png) type('image/png')); }
.preview-image[data-type="food"]               { background-image: image-set(url(./images/food.webp) type('image/webp'), url(./images/food.png) type('image/png')); }
.preview-image[data-type="furnishings"]        { background-image: image-set(url(./images/furnishings.webp) type('image/webp'), url(./images/furnishings.png) type('image/png')); }
.preview-image[data-type="home"]               { background-image: image-set(url(./images/home.webp) type('image/webp'), url(./images/home.png) type('image/png')); }

/* Video preview */
.video-preview {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 370px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
}

.video-preview__bg {
  position: absolute;
  width: 640px;
  height: 427px;
  top: 50%;
  left: 50%;
  background-image: url(images/real-person-preview.png);
  background-image: image-set(url(images/real-person-preview.webp) type('image/webp'), url(images/real-person-preview.png) type('image/png'));
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: translate(-50%, -49.88%);
}

.video-preview__frame {
  position: absolute;
  width: 640px;
  height: 428.5px;
  top: -28px;
  left: -30px;
  background-image: url(images/real-person-frame.png);
  background-image: image-set(url(images/real-person-frame.webp) type('image/webp'), url(images/real-person-frame.png) type('image/png'));
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  border-radius: 22px;
}

/* Toggle group (sliding pill tabs) */
.toggle-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: 100%;
  max-width: 580px;
  min-width: 0;
}

.toggle-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  width: 100%;
  padding: 5px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Sliding indicator pill */
.toggle-group::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(33.333% - 10px);
  height: 46px;
  background: #fafafa;
  border-radius: 10px;
  transition: transform 0.4s var(--ease-smooth);
  z-index: 1;
}

/* 5-button variant */
.toggle-group--5::before {
  width: calc(20% - 10px);
}

/* Indicator position by active index */
.toggle-group[data-active="1"]::before { transform: translateX(0); }
.toggle-group[data-active="2"]::before { transform: translateX(100%); }
.toggle-group[data-active="3"]::before { transform: translateX(200%); }
.toggle-group.toggle-group--5[data-active="4"]::before { transform: translateX(300%); }
.toggle-group.toggle-group--5[data-active="5"]::before { transform: translateX(400%); }

.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 46px;
  padding: 10px 0 11px;
  position: relative;
  z-index: 2;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  font-family: 'PingFang SC', var(--font-family);
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 25px;
  text-align: center;
  color: #97a0b4;
  transition: color var(--duration-normal), transform var(--duration-normal);
}

.toggle-btn span { position: relative; z-index: 1; }

.toggle-btn.is-active { color: var(--color-blue); font-weight: var(--fw-semibold); }
.toggle-btn:hover     { color: var(--color-blue); transform: scale(1.02); }
.toggle-btn:active    { transform: scale(0.98); }

/* ----------------------------------------------------------------
   14. STEPS SECTION
   ---------------------------------------------------------------- */
.steps-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-9, 36px);
  position: relative;
  width: 100%;
  max-width: 1172px;
  padding: 0 var(--space-10);
  box-sizing: border-box;
}

.steps-section__heading { width: 100%; text-align: center; }

.steps-list {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
  width: 100%;
  padding-bottom: var(--space-3);
}

.step {
  flex: 1 1 0;
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  height: 304px;
}

.step__number-bar {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 306px;
  margin: 25px 0 0 25px;
  box-shadow: inset 0 -1px 0 0 #E2E3E6;
}

.step__number {
  font-family: var(--font-family-display);
  font-size: var(--text-step);
  font-weight: var(--fw-regular);
  line-height: 125px;
  color: var(--color-text-hint);
  white-space: nowrap;
}

.step__divider {
  position: absolute;
  width: 33%;
  height: 1.5px;
  bottom: 1px;
  background: #cacbcd;
}

.step:nth-child(1) .step__divider { left: 0; }
.step:nth-child(2) .step__divider { left: 33.5%; }
.step:nth-child(3) .step__divider { left: 67%; }

.step__title-wrap {
  position: relative;
  width: 306px;
  margin: 1px 0 0 25px;
  padding: 12px 0;
}

.step__title {
  font-size: 23px;
  font-weight: var(--fw-bold);
  line-height: 32px;
  color: var(--color-text);
  white-space: nowrap;
}

.step__desc-wrap {
  position: relative;
  width: 306px;
  margin: 1px 0 0 25px;
}

.step__desc {
  font-size: 15px;
  font-weight: var(--fw-regular);
  line-height: 24px;
  color: var(--color-text-muted);
}

/* ----------------------------------------------------------------
   15. FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 64px 32px 0;
  z-index: var(--z-raised);
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  width: 100%;
  max-width: 1412px;
  padding: 32px var(--space-10);
  border-top: 1px solid var(--color-border);
  box-sizing: border-box;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-shrink: 0;
  width: 420px;
  min-width: 222px;
}

.brand-tagline {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  line-height: 20px;
  color: var(--color-text-faint);
  white-space: nowrap;
}

.site-footer__nav-group {
  display: flex;
  gap: var(--space-12);
  flex-shrink: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 104px;
}

.footer-nav__heading {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  line-height: 20px;
  color: #0a0a0a;
  white-space: nowrap;
}

.footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav__link {
  display: block;
  padding: 3px 0 1px;
  font-size: 13px;
  font-weight: var(--fw-regular);
  line-height: 20px;
  color: var(--color-text-faint);
  text-decoration: none;
  white-space: nowrap;
}

.footer-nav__link:hover { color: var(--color-text); }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  width: 100%;
  max-width: 1412px;
  padding: 24px 16px 48px;
}

.copyright-text {
  display: block;
  width: 100%;
  font-size: var(--text-sm);
  font-weight: var(--fw-regular);
  line-height: 20px;
  color: var(--color-text-faint);
  text-align: center;
}

/* ----------------------------------------------------------------
   16. LEGAL PAGES
   ---------------------------------------------------------------- */
.page.legal-page { background: var(--color-bg); }

.legal-main {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: var(--z-raised);
  padding: 56px 16px 96px;
}

.legal-hero {
  padding: 40px 0 24px;
  border-bottom: 1px solid #ececec;
}

.legal-title {
  margin: 0 0 12px;
  font-family: var(--font-family);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  line-height: 48px;
  color: #0a0a0a;
}

.legal-updated {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

.legal-content {
  margin-top: var(--space-7);
  color: var(--color-text);
  font-size: var(--text-md);
  line-height: var(--lh-loose);
}

.legal-content p  { margin: 0 0 12px; }
.legal-content h2 { margin: 28px 0 12px; font-size: 22px; line-height: 30px; color: #0a0a0a; }
.legal-content h3 { margin: 20px 0 10px; font-size: 18px; line-height: 26px; color: #0a0a0a; }

.legal-list    { margin: 0 0 16px 18px; padding: 0; }
.legal-list li { margin: 6px 0; }

.legal-link { color: var(--color-accent-end); text-decoration: none; }
.legal-link:hover { text-decoration: underline; }

/* ----------------------------------------------------------------
   17. RESPONSIVE — TABLET (768px – 1023px)
   ---------------------------------------------------------------- */
@media (max-width: 1023px) {

  .hero-bg { height: 560px; }

  .main { gap: 100px; }

  .hero,
  .features-section,
  .capabilities-section {
    padding: 0 32px;
  }

  .section-header {
    padding: 60px 32px 0;
  }

  .trust-section {
    padding: 0 32px;
  }

  .steps-section {
    padding: 0 32px;
  }

  /* Hero text */
  .hero__text { width: 100%; max-width: 640px; }

  .hero__title {
    width: 100%;
    height: auto;
    font-size: 34px;
    line-height: 44px;
    white-space: normal;
  }

  .hero__desc { width: 100%; height: auto; white-space: normal; }

  /* Hero gallery: hide desktop mosaic, show responsive gallery */
  .hero__gallery {
    height: 380px;
    min-height: auto;
    overflow: hidden;
    align-items: center;
  }

  .hero-mosaic { display: none; }

  .hero-gallery-responsive {
    display: flex;
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 0 32px;
  }

  /* Trust section */
  .trust-section__heading { width: 100%; }
  .trust-section__title   { white-space: normal; height: auto; }
  .trust-section__subtitle { white-space: normal; height: auto; }
  .brand-logo { height: 48px; }

  /* Feature content */
  .feature-content { width: 100%; max-width: 100%; min-width: 0; }
  .feature-content * { max-width: 100%; box-sizing: border-box; }
  .feature-content > * { white-space: normal; height: auto; }
  .feature-content > * > * { white-space: normal; height: auto; }
  .feature-title   { width: 100%; height: auto; }
  .feature-subtitle { white-space: normal; height: auto; }
  .feature-item-text { white-space: normal; height: auto; }

  /* Feature media */
  .feature-media-wrap--showcase { width: 100%; max-width: 460px; }
  .feature-media--showcase { width: 100%; height: 400px; margin: 0; }

  .feature-media-wrap--ugc { width: 100%; height: 400px; overflow: hidden; }
  .feature-media--ugc { position: absolute; inset: 0; width: 100%; height: 100%; }

  /* Preview panels */
  .preview-panel  { width: 100%; max-width: 460px; }
  .preview-frame  { width: 100%; max-width: 420px; }
  .toggle-wrap    { width: 100%; max-width: 420px; }
  .toggle-group   { width: 100%; max-width: 420px; }

  /* Video preview */
  .video-preview  { width: 100%; max-width: 420px; }

  /* Section headings */
  .section-title    { width: 100%; height: auto; white-space: normal; }
  .section-subtitle { width: 100%; height: auto; white-space: normal; }

  /* Steps */
  .step { height: auto; }

  /* Footer */
  .site-footer { padding: 48px 32px 0; }
  .site-footer__inner { width: 100%; max-width: 100%; }
  .site-footer__brand { min-width: 0; }
}

/* ----------------------------------------------------------------
   18. RESPONSIVE — MOBILE (≤ 767px)
   ---------------------------------------------------------------- */
@media (max-width: 767px) {

  .hero-bg { height: 600px; }

  .main { gap: 64px; padding: 40px 0; }

  /* Header */
  .site-header { height: auto; padding: 10px 0; }
  .site-header__actions { gap: var(--space-2); }
  .btn--accent  { padding: 10px 16px; font-size: var(--text-xs); }

  /* Hero */
  .hero { width: 100%; padding: 0; gap: 24px; }
  .hero__text { width: 100%; max-width: 100%; padding: 0 20px; gap: var(--space-4); }
  .hero__heading-wrap { align-items: flex-start; }

  .hero__title {
    width: 100%;
    height: auto;
    font-size: 26px;
    line-height: 34px;
    text-align: left;
    white-space: normal;
    justify-content: flex-start;
  }

  .hero__desc {
    width: 100%;
    height: auto;
    font-size: 14px;
    line-height: 22px;
    text-align: left;
    white-space: normal;
    justify-content: flex-start;
  }

  .hero__gallery {
    display: flex;
    height: 240px;
    min-height: auto;
    overflow: hidden;
    align-items: center;
  }

  .hero-gallery-responsive {
    display: flex;
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 0 20px;
  }

  /* Show only 3 tiles on mobile */
  .hero-gallery-tile--4,
  .hero-gallery-tile--5,
  .hero-gallery-tile--6 { display: none; }

  /* Trust section */
  .trust-section { padding: 0 20px; }
  .trust-section__heading { width: 100%; }
  .trust-section__title  { white-space: normal; height: auto; font-size: 24px; line-height: 32px; }
  .trust-section__subtitle { white-space: normal; height: auto; font-size: 14px; line-height: 22px; }

  .brand-grid  { flex-wrap: wrap; }
  .brand-logo  { flex: 0 0 25%; height: 44px; }

  /* Features section */
  .features-section { padding: 0 20px; gap: 56px; }

  .feature-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: auto;
  }

  .feature-row--img-left > .feature-media-wrap { order: 2; }
  .feature-row--img-left > .feature-content    { order: 1; }
  .feature-row--img-left > .btn               { order: 3; }

  .feature-content { width: 100%; max-width: 100%; overflow: hidden; }

  .feature-title {
    width: 100%;
    height: auto;
    font-size: 24px;
    line-height: 32px;
    white-space: normal;
  }

  .feature-subtitle { white-space: normal; height: auto; }
  .feature-item-text { white-space: normal; height: auto; overflow-wrap: break-word; word-break: break-word; min-width: 0; }

  .feature-media-wrap {
    width: 100%;
    align-self: stretch;
    min-height: 200px;
  }

  .feature-media--gallery {
    background-size: contain;
    background-position: center top;
  }

  .feature-media-wrap--showcase { width: 100%; height: 260px; position: relative; overflow: hidden; }
  .feature-media--showcase { width: 100%; height: 260px; margin: 0; }

  .feature-media-wrap--ugc {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
  }
  .feature-media--ugc { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; }

  /* Capabilities section */
  .section-header { padding: 40px 20px 0; }

  .section-title {
    width: 100%;
    height: auto;
    font-size: 24px;
    line-height: 32px;
    white-space: normal;
  }
  .section-subtitle {
    width: 100%;
    height: auto;
    font-size: 14px;
    line-height: 22px;
    white-space: normal;
  }

  .capabilities-section {
    padding: 0 20px;
    gap: 56px;
  }

  /* Capability rows (reuse feature-row behavior) */
  .capabilities-section .feature-row {
    overflow: hidden;
  }

  .preview-panel  { width: 100%; height: auto; padding-bottom: var(--space-4); align-items: center; }
  .preview-frame  { width: 100%; height: 220px; }
  .video-preview  { width: 100%; height: 220px; }
  .toggle-wrap    { width: 100%; }
  .toggle-group   { width: 100%; flex-wrap: nowrap; }
  .toggle-btn     { padding: 8px 4px; font-size: 11px; line-height: 16px; }

  /* AI section headings */
  .capabilities-section .feature-title {
    width: 100%;
    height: auto;
    font-size: 24px;
    line-height: 32px;
    white-space: normal;
  }

  /* Steps */
  .steps-section { padding: 0 20px; }

  .steps-list { column-gap: 0; }

  .step {
    height: auto;
    padding: 20px 16px;
  }

  .step__number-bar,
  .step__title-wrap,
  .step__desc-wrap { flex-wrap: nowrap; }

  /* Footer */
  .site-footer { padding: 48px 20px 0; }

  .site-footer__inner {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    gap: var(--space-6);
    align-items: flex-start;
    padding: 24px 0;
  }

  .site-footer__brand { width: 100%; max-width: 100%; min-width: 0; }
  .brand-tagline { white-space: normal; height: auto; }

  .site-footer__nav-group {
    width: 100%;
    flex-direction: row;
    gap: var(--space-8);
    flex-wrap: wrap;
  }

  .site-footer__bottom { padding: 24px 0; }

  .copyright-text { font-size: 12px; line-height: 20px; white-space: normal; height: auto; }
}
