/* ================================================
   AVATAROOMS LANDING PAGE - STYLES
   ================================================ */

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

:root {
  --bg: #000000;
  --text: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --accent-blue: #32AAFF;
  --accent-cyan: #00EFFF;
  --accent-light-blue: #3EC5FF;
  --accent-teal: #47E4FF;
  --gradient-cta: linear-gradient(190deg, #32AAFF 8.7%, #47E4FF 50.4%, #00EFFF 91.3%);
  --card-border: #232323;
  --card-glow: 0px 1px 21.2px 0px rgba(50, 170, 255, 0.3);
  --font: 'Mulish', sans-serif;
  --container: 1280px;
  --side-padding: 80px;
  --header-height: 100px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-pill: 40px;
  interpolate-size: allow-keywords;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable; /* Reserve scrollbar space to avoid CLS when content causes overflow */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ===== PAGE-WIDE BACKGROUND ===== */
.page-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* Height set dynamically by JS to match document */
}

/* Each zone is absolutely positioned within .page-bg */
.page-bg-zone {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

/* --- ZONE 1: Hero — arcs + gradients, visible through entire hero, fade after --- */
.page-bg-zone--hero {
  top: 0;
  /* Height set by JS via --zone-hero-h (hero bottom + 400px for fade room) */
  height: var(--zone-hero-h, 1450px);
  /* Arcs stay fully visible through ~70% of zone (= full hero), then fade to black */
  -webkit-mask-image: linear-gradient(to bottom, black 68%, transparent 95%);
  mask-image: linear-gradient(to bottom, black 68%, transparent 95%);
}

.page-bg-zone--hero .page-bg-arcs {
  position: absolute;
  width: 125vw;
  max-width: 1804px;
  height: auto;
  opacity: 0.3;
  top: -2vh;
  left: 50%;
  transform: translateX(-50%);
}

.page-bg-zone--hero .page-bg-gradient {
  position: absolute;
  left: 1.5%;
  width: 103%;
  /* max-width: 1489px; */
  max-width: 100;
  height: auto;
  opacity: 0.15;
}

.page-bg-zone--hero .page-bg-gradient--top {
  top: 0;
}

.page-bg-zone--hero .page-bg-gradient--bottom {
  top: 42vh;
}

.page-bg-zone--hero .page-bg-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

/* --- ZONE 2: Features — vertical dark→light→dark band at "Можливості" --- */
.page-bg-zone--features {
  /* Top/height set by JS */
  top: var(--zone-features-top, 1700px);
  height: var(--zone-features-h, 1400px);
  /* Vertical linear gradient: dark at top, lighter in the middle, dark at bottom */
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(40, 60, 80, 0.35) 15%,
    rgba(50, 80, 110, 0.5) 35%,
    rgba(55, 90, 120, 0.55) 50%,
    rgba(50, 80, 110, 0.5) 65%,
    rgba(40, 60, 80, 0.35) 85%,
    transparent 100%
  );
}

/* --- ZONE 3: FAQ — arcs centered on FAQ heading area --- */
.page-bg-zone--community {
  /* Top/height set by JS */
  top: var(--zone-community-top, 4800px);
  height: var(--zone-community-h, 1200px);
  /* Fade in gently, stay visible, then fade out toward FAQ bottom */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 50%, transparent 85%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 50%, transparent 85%);
  overflow: hidden;
}

/* Single centered glow — pure CSS, replaces bg-glow-2.png to avoid duplicate arches */
.page-bg-zone--community .page-bg-glow-center {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background:
    /* Main arch glow — tall ellipse, centered */
    radial-gradient(
      45% 70% at 50% 85%,
      rgba(50, 180, 220, 0.22) 0%,
      rgba(30, 120, 180, 0.10) 40%,
      transparent 75%
    ),
    /* Subtle wide ambient light */
    radial-gradient(
      60% 50% at 50% 90%,
      rgba(40, 140, 200, 0.08) 0%,
      transparent 70%
    );
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--side-padding);
}

.header-inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 0 21px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25),
              inset 0px 16px 44.9px 0px rgba(62, 197, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-logo {
  flex-shrink: 0; /* prevent flex from squashing logo and breaking aspect ratio */
}
.header-logo img {
  height: 50px;
  width: auto;
  aspect-ratio: 250 / 61; /* match delivered logo intrinsic ratio (Cloudflare resize) */
}

.header-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-pill {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 6px 0;
  position: relative;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 136px;
  height: 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 32px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.nav-item:hover {
  color: var(--accent-cyan);
}

.nav-indicator {
  position: absolute;
  width: 136px;
  height: 44px;
  border: 2px solid var(--accent-blue);
  border-radius: 32px;
  top: 0;
  left: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gradient-cta);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  backdrop-filter: blur(29px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(0, 239, 255, 0.4);
}

.cta-star {
  width: 20px;
  height: 20px;
}

/* Header right group (lang switch + CTA + hamburger) */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  position: relative;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s ease;
  padding: 4px;
  line-height: 1;
}
.lang-btn.active {
  opacity: 1;
}
.lang-btn:hover {
  opacity: 0.8;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-item {
  font-size: 28px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.mobile-menu-item:hover {
  color: var(--accent-cyan);
}

.mobile-menu-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient-cta);
  border-radius: 28px;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-top: 16px;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: calc(var(--header-height) + 170px);
  padding-bottom: 0;
  min-height: 1020px;
  overflow: hidden;
}

/* Hero background is now handled by page-wide .page-bg */

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 20px;
  width: 120%;
  max-width: 1728px;
}

.hero-title {
  font-size: clamp(36px, 4.44vw, 64px);
  font-weight: 800;
  line-height: 1.213;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.hero-title-line1 {
  color: #47E4FF;
}

.hero-title-line2 {
  color: #FFFFFF;
}

.hero-subtitle {
  font-size: clamp(16px, 1.74vw, 25px);
  font-weight: 500;
  line-height: 1.5;
  color: #47E4FF;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 28px;
}

.hero-app-badges {
  display: none;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--gradient-cta);
  border-radius: 40px;
  font-size: 24px;
  font-weight: 700;
  color: #000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 2;
}

.hero-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 239, 255, 0.5);
}

/* Hero Cards - Figma-matched layout */
.hero-cards {
  position: absolute;
  top: 240px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1440px;
  height: calc(100% - 240px);
  z-index: 1;
  pointer-events: none;
}

.hero-card {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  animation: heroFloat var(--fd, 8s) ease-in-out var(--fdelay, 0s) infinite;
  transition: animation-play-state 0.3s;
}

.hero-card:hover {
  animation-play-state: paused;
}

/* Card outer frame - white frosted glass border */
.hero-card-frame {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 23px;
  padding: 10px;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-sizing: border-box;
}

/* Card inner - image container with cyan border + glow */
.hero-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #32AAFF;
  box-shadow:
    inset 0 4px 23px -7px #32AAFF,
    1.5px 7px 42px rgba(62, 197, 255, 0.5);
  background: #000;
}

.hero-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Top gradient overlay - user info */
.hero-card-top-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hero-card-user {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-card-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-card-user-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-card-username {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 8px;
  line-height: 1.25;
  color: white;
}

.hero-card-usertime {
  font-family: 'Mulish', sans-serif;
  font-weight: 400;
  font-size: 7px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.7);
}

.hero-card-more {
  width: 16px;
  height: 16px;
  opacity: 0.8;
  flex-shrink: 0;
}

/* Bottom gradient overlay - engagement stats */
.hero-card-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  border-radius: 0 0 16px 16px;
}

.hero-card-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-card-stat {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: 'Mulish', sans-serif;
  font-weight: 400;
  font-size: 8px;
  line-height: 1.25;
  color: white;
}

.hero-card-stat img {
  width: 13px;
  height: 13px;
}

/* Card positions, sizes, and rotations - matched to Figma coordinates
   Figma style frame: 1440x1019
   Center-point positioning with translate(-50%, -50%) for rotation-safe placement */
.hero-card--1 {
  --r: -7.08deg;
  left: 11.95%; top: 42.6%;
  width: 229px; height: 286px;
}
.hero-card--2 {
  --r: 13.47deg;
  left: 20.45%; top: 64.2%;
  width: 229px; height: 286px;
}
.hero-card--3 {
  --r: -12.22deg;
  left: 36.6%; top: 73.9%;
  width: 229px; height: 286px;
}
.hero-card--4 {
  --r: 14.5deg;
  left: 88.1%; top: 41.1%;
  width: 229px; height: 286px;
}
.hero-card--5 {
  --r: -14.5deg;
  left: 78.6%; top: 64.4%;
  width: 229px; height: 286px;
}
.hero-card--6 {
  --r: 10.12deg;
  left: 62.2%; top: 74.7%;
  width: 229px; height: 286px;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) translateY(0); }
  50% { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) translateY(-10px); }
}

/* ===== MARQUEE ===== */
.marquee {
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 -100px 130px rgba(0, 0, 0, 0.9), 0 50px 50px rgba(0, 0, 0, 0.9);
}

.marquee-track {
  display: flex;
  gap: 20px;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

.marquee--reverse .marquee-track {
  animation-direction: reverse;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Mulish', sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 125%;
  color: #32AAFF;
  white-space: nowrap;
  padding: 0 10px;
  text-transform: uppercase;
}

/* Ticker fire icon: same vector as hero cards, colored #32AAFF */
.marquee-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: #32AAFF;
  -webkit-mask: url('assets/images/card-icon-fire.svg') no-repeat center;
  mask: url('assets/images/card-icon-fire.svg') no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SECTION COMMON ===== */
.section-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 54px;
}

/* ===== AUDIENCE SECTION ===== */
.audience {
  padding: 100px var(--side-padding);
  max-width: calc(var(--container) + var(--side-padding) * 2);
  margin: 0 auto;
}

.audience-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Outer card ("Safer" in Figma) — 296×496 in Figma */
.audience-card {
  background: #000000;
  border: 1.266px solid #232323;
  border-radius: 30px;
  overflow: hidden;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Maintain Figma aspect ratio: 296/496 ≈ 0.597 */
  aspect-ratio: 296 / 496;
}

/* Per-card glow colors */
.audience-card:nth-child(1) { box-shadow: 0px 1px 21.2px 0px rgba(50, 170, 255, 0.3); }
.audience-card:nth-child(2) { box-shadow: 0px 1px 21.2px 0px rgba(0, 239, 255, 0.3); }
.audience-card:nth-child(3) { box-shadow: 0px 1px 21.2px 0px rgba(62, 197, 255, 0.3); }
.audience-card:nth-child(4) { box-shadow: 0px 1px 21.2px 0px rgba(71, 228, 255, 0.3); }

.audience-card:hover { transform: translateY(-4px); }
.audience-card:nth-child(1):hover { box-shadow: 0px 4px 30px 0px rgba(50, 170, 255, 0.5); }
.audience-card:nth-child(2):hover { box-shadow: 0px 4px 30px 0px rgba(0, 239, 255, 0.5); }
.audience-card:nth-child(3):hover { box-shadow: 0px 4px 30px 0px rgba(62, 197, 255, 0.5); }
.audience-card:nth-child(4):hover { box-shadow: 0px 4px 30px 0px rgba(71, 228, 255, 0.5); }

.audience-mobile {
  display: none;
}

.audience-cta-mobile {
  display: none;
}

/* Inner image card — blue border + blue glow + inset light */
.audience-card-image {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border-radius: 20px;
  overflow: hidden;
  border: 1.266px solid #32aaff;
  z-index: 2;
}

.audience-card:nth-child(1) .audience-card-image { box-shadow: 0px 5px 26.5px 0px rgba(50, 170, 255, 0.7); }
.audience-card:nth-child(2) .audience-card-image { box-shadow: 0px 5px 26.5px 0px rgba(0, 239, 255, 0.7); }
.audience-card:nth-child(3) .audience-card-image { box-shadow: 0px 5px 26.5px 0px rgba(62, 197, 255, 0.7); background: #020e16; }
.audience-card:nth-child(4) .audience-card-image { box-shadow: 0px 5px 26.5px 0px rgba(71, 228, 255, 0.7); background: #020e16; }

/* Image gradient overlay */
.audience-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(2, 14, 22, 0) 34%,
    rgba(2, 14, 22, 0.55) 45%,
    #020e16 61%);
  border-radius: inherit;
  z-index: 1;
}

.audience-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card 1: Shift up slightly to show faces prominently */
.audience-card:nth-child(1) .audience-card-image img {
  object-position: center 30%;
}

/* Card 2: Default center works — woman centered in portrait image */

/* Card 3: Elf woman + man — scale down to show both characters fully */
.audience-card:nth-child(3) .audience-card-image img {
  object-fit: contain;
  object-position: center top;
  background: #020e16;
}
/* Card 3: hide decorative bg overlays — they clash with the new image */
.audience-card:nth-child(3) .audience-card-bg {
  display: none;
}
/* Card 3: push gradient lower so it doesn't shadow the image */
.audience-card:nth-child(3) .audience-card-image::after {
  background: linear-gradient(to bottom,
    rgba(2, 14, 22, 0) 50%,
    rgba(2, 14, 22, 0.55) 65%,
    #020e16 80%);
}

/* Card 4: Shopping cart — scale down to show full image */
.audience-card:nth-child(4) .audience-card-image img {
  object-fit: contain;
  object-position: center top;
  background: #020e16;
}
/* Card 4: hide decorative bg overlays — they clash with the new image */
.audience-card:nth-child(4) .audience-card-bg {
  display: none;
}
/* Card 4: push gradient lower so it doesn't shadow the image */
.audience-card:nth-child(4) .audience-card-image::after {
  background: linear-gradient(to bottom,
    rgba(2, 14, 22, 0) 50%,
    rgba(2, 14, 22, 0.55) 65%,
    #020e16 80%);
}

/* Bg decorative elements inside the image card */
.audience-card-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.audience-card-bg-union {
  position: absolute;
  top: -154px;
  left: -124px;
  width: 573px;
  height: 228px;
  opacity: 0.35;
  pointer-events: none;
}

.audience-card-bg-light {
  position: absolute;
  top: -291px;
  left: -244px;
  width: 805px;
  height: 931px;
  mix-blend-mode: screen;
  opacity: 0.6;
  pointer-events: none;
}

.audience-card-bg-stars {
  position: absolute;
  top: 15px;
  left: 73px;
  width: 199px;
  height: 234px;
  opacity: 0.5;
  pointer-events: none;
}

.audience-card-bg-line {
  position: absolute;
  opacity: 0.4;
  pointer-events: none;
}

.audience-card-bg-line--1 {
  top: -18px;
  left: 160px;
  width: 65px;
  height: 195px;
  transform: rotate(105deg);
}

.audience-card-bg-line--3 {
  top: 162px;
  left: 176px;
  width: 75px;
  height: 170px;
  transform: rotate(-96.56deg) scaleY(-1);
}

/* Title and text overlay on gradient area */
.audience-card-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  position: absolute;
  left: 0;
  right: 0;
  padding: 0 28px;
  top: 62.5%;
  z-index: 3;
  white-space: nowrap;
}

.audience-card-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
  position: absolute;
  left: 0;
  right: 0;
  padding: 0 28px;
  top: 71%;
  z-index: 3;
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: 80px 0;
}

.features .section-title {
  padding: 0 var(--side-padding);
}

.features-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.features-tabs {
  display: flex;
  gap: 40px;
  padding: 0 var(--side-padding);
  margin-bottom: 0;
  justify-content: center;
}

.features-tab {
  flex: 0 0 360px;
  max-width: 360px;
  height: 209px;
  padding: 30px;
  text-align: left;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

.features-tab.active {
  border: 2px solid #32AAFF;
  box-shadow: 0px 5px 20px 0px #00EFFF;
}

.features-tab:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.features-tab.active:hover {
  border-color: #32AAFF;
}

.features-tab-title {
  font-family: 'Mulish', sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0;
  color: #47E4FF;
}

.features-tab-text {
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.25;
}

.features-phones {
  position: relative;
  height: 668px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
}

.features-phone-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px;
}

.features-phone {
  width: 230px;
  height: auto;
  border-radius: 24px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: blur(2px) brightness(0.5);
  opacity: 0.5;
  transform: scale(0.85) rotate(0deg);
}

.features-phone:nth-child(1) { transform: scale(0.75) rotate(-8deg); }
.features-phone:nth-child(2) { transform: scale(0.85) rotate(-4deg); }
.features-phone:nth-child(3) { transform: scale(0.85) rotate(0deg); }
.features-phone:nth-child(4) { transform: scale(0.85) rotate(4deg); }
.features-phone:nth-child(5) { transform: scale(0.75) rotate(8deg); }

.features-phone.active {
  filter: blur(0) brightness(1);
  opacity: 1;
  transform: scale(1.1) rotate(0deg);
  z-index: 2;
  box-shadow: 0 20px 60px rgba(50, 170, 255, 0.3);
}

.features-carousel-dots {
  display: none;
}

/* ===== GALLERY SECTION ===== */
/* 4 equal columns, 12 tiles (A1-D3). Per Figma spec. */
.gallery {
  padding: 100px var(--side-padding);
  max-width: calc(var(--container) + var(--side-padding) * 2);
  margin: 0 auto;
}

.gallery-grid {
  display: flex;
  gap: 12px;
}

.gallery-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* Figma heights per tile (px) */
.gallery-item--a1 { height: 394px; }
.gallery-item--a2 { height: 230px; }
.gallery-item--a3 { height: 500px; }
.gallery-item--b1 { height: 500px; }
.gallery-item--b2 { height: 282px; }
.gallery-item--b3 { height: 425px; }
.gallery-item--c1 { height: 199px; }
.gallery-item--c2 { height: 482px; }
.gallery-item--c3 { height: 347px; }
.gallery-item--d1 { height: 259px; }
.gallery-item--d2 { height: 347px; }
.gallery-item--d3 { height: 482px; }

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:not(.gallery-item--zoom):hover img {
  transform: scale(1.05);
}

/* Blur modifier for duplicate tiles */
.gallery-item--blur img {
  filter: blur(6px);
}

.gallery-item--blur:hover img {
  filter: blur(3px);
}

/* Zoom modifier (blurred zebra - tighter crop) */
.gallery-item--zoom img {
  transform: scale(1.3);
}

.gallery-item--zoom:hover img {
  transform: scale(1.35);
}

.gallery-mobile {
  display: none;
}

/* object-position per tile */
.gallery-item--a1 img { object-position: center center; }
.gallery-item--a2 img { object-position: center center; }
.gallery-item--a3 img { object-position: center 58%; }
.gallery-item--b1 img { object-position: center 40%; }
.gallery-item--b2 img { object-position: right center; }
.gallery-item--b3 img { object-position: 60% 35%; }
.gallery-item--c1 img { object-position: center center; }
.gallery-item--c2 img { object-position: center center; }
.gallery-item--c3 img { object-position: 45% center; }
.gallery-item--d1 img { object-position: center center; }
.gallery-item--d2 img { object-position: center center; }
.gallery-item--d3 img { object-position: center 22%; }

/* ===== COMMUNITY + FAQ SECTION ===== */
.community-faq {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  padding: 32px 82px 50px;
  overflow: hidden;
}

/* Background image + gradient overlay */
.community-faq-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.community-faq-bg-img {
  position: absolute;
  left: 50%;
  top: 10%;
  width: 120%;
  height: 90%;
  object-fit: cover;
  transform: translateX(-50%);
}

.community-faq-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 42%, black 100%);
}

/* Community block */
.community-block {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 54px;
  width: 100%;
}

.community-title-wrap {
  text-align: center;
}

.community-title {
  font-family: 'Mulish', sans-serif;
  font-weight: 800;
  font-size: 60px;
  line-height: 1.15;
  color: white;
  text-align: center;
  margin: 0;
}

.community-title-gradient {
  background: linear-gradient(186deg, #32AAFF 8.7%, #47E4FF 50.4%, #00EFFF 91.3%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.community-creators {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 12px;
  gap: -8px;
}

.creator-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: -8px;
  border: 2px solid rgba(255,255,255,0.2);
}

.creator-circle:first-child {
  margin-left: 0;
}

.community-title-lastline {
  display: inline;
  white-space: nowrap;
}

.community-logo {
  height: 1.2em;
  width: auto;
  vertical-align: middle;
  margin-left: 8px;
  display: inline;
}

/* Store badges — official black badges */
.community-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.community-badge {
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.community-badge img {
  height: 54px;
  width: auto;
  display: block;
}

.community-badge:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* Review cards */
.reviews-carousel {
  position: relative;
}

.reviews-carousel-nav {
  display: none;
}

.reviews-carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 1370px;
}

.review-card {
  background: black;
  border-radius: 30px;
  padding: 15px 20px;
  width: 360px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 4.9px 0 rgba(255,255,255,0.88);
}

.review-text {
  font-family: 'Mulish', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  color: white;
  margin: 0;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  object-fit: cover;
}

.review-username {
  font-family: 'Mulish', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  color: white;
}

.review-divider {
  width: 1px;
  height: 147px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
  margin: 0 32px;
}

/* ===== FAQ SECTION ===== */
.faq {
  position: relative;
  z-index: 1;
  width: 100%;
}

.faq-load-more {
  display: none;
}

.faq-title {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 1;
  color: white;
  text-align: center;
  margin: 0 0 54px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 0;
}

.faq-item {
  background: rgba(0,0,0,0.52);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 30px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: inset 0 0 7.9px 0 #00efff;
}

.faq-item[open] {
  border-color: rgba(0, 239, 255, 0.4);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px;
  cursor: pointer;
  font-family: 'Mulish', sans-serif;
  font-weight: 600;
  font-size: 25px;
  line-height: 1.25;
  color: white;
  list-style: none;
  transition: color 0.3s ease;
  gap: 20px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  content: '';
}

.faq-question:hover {
  color: var(--accent-cyan);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 10px;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-chevron {
  transform: scaleY(-1);
}

.faq-answer {
  padding: 0 24px 24px;
  font-family: 'Mulish', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.25;
  color: white;
  animation: faqOpen 0.3s ease;
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== FOOTER ===== */
.site-footer {
  /* no border-top to match Figma */
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 57px;
  padding: 50px 82px;
  max-width: 1440px;
  margin: 0 auto;
  overflow: visible;
}

.footer-cta-section {
  flex: 0 0 auto;
  max-width: 569px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-title {
  font-family: 'Mulish', sans-serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.15;
  color: white;
  margin-bottom: 12px;
}

.footer-highlight {
  color: #00efff;
}

.footer-subtitle {
  font-family: 'Mulish', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 56px;
}

.footer-badges {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
}

.footer-store-badge {
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-store-badge img {
  height: 46px;
  width: auto;
  display: block;
}

.footer-store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.footer-web-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 313px;
  height: 63px;
  background: linear-gradient(191deg, rgb(50, 170, 255) 8.7%, rgb(71, 228, 255) 50.4%, rgb(0, 239, 255) 91.3%);
  border: 3px solid rgba(255, 255, 255, 0.06);
  border-radius: 44px;
  font-family: 'Mulish', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: black;
  text-decoration: none;
  backdrop-filter: blur(45px);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.footer-web-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 239, 255, 0.4);
}

.footer-web-cta .cta-star-icon {
  flex-shrink: 0;
}

.footer-preview {
  flex: 1 1 55%;
  max-width: 720px;
}

.footer-preview-img {
  width: 110%;
  max-width: none;
  height: auto;
  display: block;
}

.footer-bottom {
  padding: 80px 82px 40px;
  max-width: calc(var(--container) + 82px * 2);
  margin: 0 auto;
}

.footer-bottom-inner {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 130px;
}

.footer-logo-section {
  flex-shrink: 0;
  margin-right: 90px;
}

.footer-logo {
  display: block;
  width: 199px;
  height: auto;
}

.footer-nav {
  display: flex;
  gap: 90px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 188px;
}

.footer-nav-col a:first-child {
  padding-top: 11px;
}

.footer-nav a {
  font-family: 'Mulish', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: white;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
  margin-left: auto;
  flex-shrink: 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  transition: opacity 0.2s ease;
}

.social-link:hover {
  opacity: 0.7;
}

.social-link svg {
  width: 48px;
  height: 48px;
}

.footer-legal {
  padding: 0 40px;
  text-align: center;
}

.footer-legal-text {
  font-family: 'Mulish', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal-text a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-text a:hover {
  color: white;
}

.footer-legal-item {
  white-space: nowrap;
}

.footer-legal-item + .footer-legal-item::before {
  content: '\00a0\00a0\00a0\00a0';
}

/* Hidden on desktop — shown on mobile only */
.footer-bottom-badges {
  display: none;
}

/* ===== REDUCED MOTION ===== */
@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;
  }
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1024px) {
  :root {
    --side-padding: 40px;
  }

  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

  .features-tabs {
    flex-direction: column;
    max-width: 100%;
    align-items: center;
    gap: 20px;
  }

  .features-tab {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 180px;
  }

  .features-phones {
    height: 500px;
  }

  .features-phone {
    width: 180px;
  }

  .gallery-grid {
    flex-wrap: wrap;
  }

  .gallery-col {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 200px;
  }

  /* Scale heights ~60% for tablet */
  .gallery-item--a1 { height: 236px; }
  .gallery-item--a2 { height: 138px; }
  .gallery-item--a3 { height: 300px; }
  .gallery-item--b1 { height: 300px; }
  .gallery-item--b2 { height: 169px; }
  .gallery-item--b3 { height: 255px; }
  .gallery-item--c1 { height: 119px; }
  .gallery-item--c2 { height: 289px; }
  .gallery-item--c3 { height: 208px; }
  .gallery-item--d1 { height: 155px; }
  .gallery-item--d2 { height: 208px; }
  .gallery-item--d3 { height: 289px; }

  .community-faq {
    padding: 32px 40px 50px;
  }

  .community-title {
    font-size: 42px;
  }

  .community-logo {
    height: 50px;
  }

  .creator-circle {
    width: 54px;
    height: 54px;
  }

  .reviews-carousel-track {
    flex-direction: column;
    gap: 24px;
  }

  .review-divider {
    width: 147px;
    height: 1px;
    margin: 0;
  }

  .review-card {
    width: 100%;
    max-width: 500px;
  }

  .faq-title {
    font-size: 42px;
  }

  .faq-question {
    font-size: 20px;
  }

  .hero {
    min-height: 800px;
  }

  .hero-card--1 { width: 180px; height: 220px; left: 5%; top: 40%; }
  .hero-card--2 { width: 200px; height: 240px; left: 18%; top: 60%; }
  .hero-card--3 { width: 190px; height: 230px; left: 32%; top: 76%; }
  .hero-card--4 { width: 200px; height: 240px; left: 88%; top: 36%; }
  .hero-card--5 { width: 200px; height: 240px; left: 74%; top: 66%; }
  .hero-card--6 { width: 190px; height: 230px; left: 60%; top: 72%; }
}

/* ===== RESPONSIVE - MOBILE (768px) ===== */
/* Audience: on narrow viewports show desktop cards as 2×2 grid, hide old mobile-only markup */
@media (max-width: 900px) {
  .audience-mobile.audience-mobile-only {
    display: none !important;
  }
  .audience-cards.audience-desktop {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 768px) {
  :root {
    --side-padding: 16px;
    --header-height: 56px;
  }

  /* --- HEADER: transparent bar, no pill background --- */
  .header-inner {
    height: 48px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
  }

  .header-logo img {
    height: 32px;
    aspect-ratio: 250 / 61;
  }

  /* --- HEADER CTA: no star icon, larger text --- */
  .header-cta {
    font-size: 16px;
    font-weight: 700;
    padding: 10px 20px;
    min-height: 44px;
    min-width: 44px;
    border-radius: 24px;
  }

  .header-cta .cta-star {
    display: none;
  }

  /* --- LANG SWITCH: mobile tweaks --- */
  .header-cta { order: 1; }
  .lang-switch {
    order: 2;
    margin-right: 0;
  }
  .hamburger { order: 3; }
  .lang-btn {
    font-size: 18px;
  }

  /* --- HAMBURGER: thicker, more prominent lines --- */
  .hamburger {
    min-height: 44px;
    min-width: 44px;
    gap: 6px;
    padding: 10px;
  }

  .hamburger span {
    width: 28px;
    height: 3px;
    border-radius: 2px;
  }

  /* --- HERO --- */
  .hero {
    min-height: 750px;
    padding-top: calc(var(--header-height) + 120px);
    padding-bottom: 40px;
    /* overflow: hidden inherited from base — clips cards at viewport edges like Figma */
  }

  /* Title: 2 lines on mobile (Соцмережа + нереального контенту), 10% larger per Figma */
  .hero-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .hero-content {
    width: 100%;
    padding: 0 16px;
  }

  /* Subtitle: 2 lines (via <br>), 10% larger per Figma */
  .hero-subtitle {
    font-size: clamp(14px, 4.2vw, 18px);
    white-space: normal;
    line-height: 1.35;
    margin-bottom: 20px;
  }

  .hero-app-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
  }

  .hero-app-badge {
    display: block;
  }

  .hero-app-badge img {
    height: 44px;
    width: auto;
  }

  /* Hide the second "Спробувати" CTA on mobile — not in Figma */
  .hero-cta {
    display: none !important;
  }

  /*
   * Hero cards — Figma 390px mobile frame data:
   *
   * Card 5 (@kairoth21) LEFT:   bbox left=-38, top=451, 160×193, inner 144×181, rot -5.11°
   *   → center: (42px, 548px) → left: 10.8%, top: 108px (from container at y=440)
   *
   * Card 1 (@virex9) RIGHT:     bbox left=274, top=444, 166×203, inner 154×193, rot -3.84°
   *   → center: (357px, 545px) → left: 91.5%, top: 105px (from container at y=440)
   *
   * Card 2 (@monopanda808) CENTER: bbox left=108, top=495, 179×212, inner 154×192, rot +8.21°
   *   → center: (198px, 601px) → left: 50.7%, top: 161px (from container at y=440)
   *
   * .hero-card uses transform: translate(-50%, -50%) so left/top = card center.
   */

  .hero-cards {
    top: 440px;
    height: 270px;
  }

  /* Hide cards 3, 4, 6 on mobile — only 5, 2, 1 visible per Figma */
  .hero-card--3 { display: none !important; }
  .hero-card--4 { display: none !important; }
  .hero-card--6 { display: none !important; }

  /* Card 5: @kairoth21 — LEFT, peeks from left edge, tilted -5.11°, 10% larger per Figma */
  .hero-card--5 {
    width: 158px;
    height: 199px;
    left: 10.8%;
    top: 108px;
    --r: -5.11deg;
  }

  /* Card 2: @monopanda808 — CENTER, largest, tilted +8.21°, 10% larger per Figma */
  .hero-card--2 {
    width: 170px;
    height: 211px;
    left: 50.7%;
    top: 161px;
    --r: 8.21deg;
    z-index: 2;
  }

  /* Card 1: @virex9 — RIGHT, peeks from right edge, tilted -3.84°, 10% larger per Figma */
  .hero-card--1 {
    width: 170px;
    height: 212px;
    left: 91.5%;
    top: 105px;
    --r: -3.84deg;
  }

  /* Background logo: Figma mobile = 900×781px, scaled up & shifted down per feedback */
  .page-bg-zone--hero .page-bg-arcs {
    width: 1000px;
    max-width: none;
    height: auto; /* preserve intrinsic aspect ratio (1:1 when delivered at 250px) */
    top: 40px;
    transform: translateX(-50%) rotate(-0.04deg);
  }

  .page-bg-zone--hero .page-bg-gradient--top {
    top: 10vh;
  }

  .marquee-item {
    font-size: 20px;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 32px;
  }

  /* Audience: 2×2 grid of desktop cards on mobile */
  .audience {
    padding: 60px var(--side-padding);
    text-align: center;
  }

  .audience .section-title.audience-title-desktop {
    display: block !important;
    font-size: 24px;
    margin-bottom: 24px;
  }

  .audience-cards.audience-desktop {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .audience-card {
    border-radius: 16px;
    aspect-ratio: 160 / 204;
  }

  .audience-card-image {
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border-radius: 12px;
  }

  .audience-card-title {
    font-size: 14px;
    top: 68%;
    padding: 0 12px;
  }

  .audience-card-text {
    display: none !important;
  }

  .audience-card-bg {
    display: none;
  }

  /* Hide old mobile-only markup */
  .audience-mobile {
    display: none !important;
  }

  /* CTA below audience grid */
  .audience-cta-mobile {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-cta);
    border-radius: 28px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 24px auto 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .audience-cta-mobile:hover {
    transform: scale(1.03);
    box-shadow: 0 0 24px rgba(0, 239, 255, 0.4);
  }

  /* Features: title → swipeable tabs → single phone below */
  .features {
    padding: 60px 0;
  }

  .features-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  /* Features "Можливості" — Mobile unified slide carousel */
  /* Hide desktop features containers on mobile */
  .features-carousel,
  .features-phones,
  .features-carousel-dots {
    display: none !important;
  }

  /* Mobile slides carousel */
  .features-mobile-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
  }
  .features-mobile-slides::-webkit-scrollbar {
    display: none;
  }

  /* Each slide: full viewport width, vertical stack */
  .features-mobile-slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 var(--side-padding);
    box-sizing: border-box;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  /* Text card inside slide */
  .features-mobile-slide-text {
    width: 100%;
    padding: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    text-align: left;
  }
  .features-mobile-slide-text .features-tab-title {
    font-size: 20px;
    margin-bottom: 8px;
  }
  .features-mobile-slide-text .features-tab-text {
    font-size: 13px;
  }

  /* Phone image inside slide */
  .features-mobile-slide-phone {
    width: 220px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(50, 170, 255, 0.3);
  }
  .features-mobile-slide-phone img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
  }

  /* Dots */
  .features-mobile-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
  }
  .features-mobile-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  .features-mobile-dot.active {
    background: #32AAFF;
  }

  /* Gallery: hide desktop grid, show mobile viewer */
  .gallery {
    padding: 60px var(--side-padding);
  }

  .gallery-grid {
    display: none !important;
  }

  .gallery-mobile {
    display: block !important;
  }

  /* Main viewer with arrow overlays */
  .gallery-mobile-viewer {
    position: relative;
    width: 100%;
    aspect-ratio: 349 / 512;
    border-radius: 20px;
    overflow: hidden;
  }

  .gallery-mobile-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
  }

  .gallery-mobile-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
  }

  .gallery-mobile-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
  }

  .gallery-mobile-arrow--prev {
    left: 12px;
  }

  .gallery-mobile-arrow--next {
    right: 12px;
  }

  /* Thumbnails below main image */
  .gallery-mobile-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    justify-content: center;
    padding: 0 var(--side-padding);
  }

  .gallery-mobile-thumb-new {
    flex: 1;
    max-width: 165px;
    aspect-ratio: 165 / 120;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
  }

  .gallery-mobile-thumb-new.active {
    border-color: #32AAFF;
  }

  .gallery-mobile-thumb-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ---- Community / Reviews: compact mobile layout ---- */
  .community-faq {
    padding: 20px 16px 40px;
    gap: 50px;
  }

  .community-block {
    gap: 20px;
  }

  .community-title {
    font-size: 20px;
    line-height: 1.35;
  }

  /* Creator circles smaller on mobile */
  .creator-circle {
    width: 40px;
    height: 40px;
  }

  .community-creators {
    display: inline-flex;
    margin-left: 8px;
  }

  /* Hide the app logo on mobile */
  .community-title-lastline .community-logo {
    display: none;
  }

  /* Store badges in a horizontal row */
  .community-badges {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .community-badge img {
    height: 40px;
  }

  /* Reviews: horizontally swipeable, no arrows */
  .reviews-carousel {
    overflow: hidden;
    width: 100%;
  }

  .reviews-carousel-track {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    justify-content: flex-start;
    scrollbar-width: none;
    padding: 0 4px;
  }

  .reviews-carousel-track::-webkit-scrollbar {
    display: none;
  }

  .reviews-carousel-track .review-card {
    flex: 0 0 85%;
    min-width: 85%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .reviews-carousel-track .review-divider {
    display: none;
  }

  /* Hide prev/next arrows — Figma shows swipe only */
  .reviews-carousel-nav {
    display: none !important;
  }

  .faq-title {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .faq-list .faq-item:nth-child(n+4) {
    display: none;
  }

  .faq-list.faq-list--expanded .faq-item:nth-child(n+4) {
    display: block;
  }

  .faq-load-more {
    display: block;
    margin: 24px auto 0;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    color: white;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .faq-load-more:hover {
    border-color: #32AAFF;
    background: rgba(50, 170, 255, 0.1);
  }

  .faq-list.faq-list--expanded + .faq-load-more {
    display: none;
  }

  .faq-question {
    font-size: 18px;
    padding: 18px 20px;
  }

  .faq-chevron {
    width: 16px;
    height: 8px;
  }

  .faq-answer {
    padding: 0 20px 18px;
    font-size: 14px;
  }

  .footer-bottom {
    padding: 60px var(--side-padding) 30px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 40px;
  }

  .footer-logo-section {
    margin-right: 0;
  }

  /* Single-column nav */
  .footer-nav {
    flex-direction: column;
    gap: 0;
  }

  .footer-nav-col {
    display: contents;
  }

  .footer-nav-col a {
    display: block;
  }

  .footer-nav a {
    font-size: 16px;
    padding: 6px 0;
  }

  .footer-nav-col a:first-child {
    padding-top: 6px;
  }

  /* Store badges in footer */
  .footer-bottom-badges {
    display: flex;
    gap: 12px;
  }

  .footer-bottom-badges .footer-store-badge img {
    height: 40px;
  }

  .footer-social {
    margin-left: 0;
    padding: 0;
  }

  .footer-legal {
    padding: 0;
    text-align: left;
  }

  .footer-legal-text {
    font-size: 14px;
  }

  /* Stack legal items vertically on mobile */
  .footer-legal-item {
    display: block;
  }

  .footer-legal-item + .footer-legal-item::before {
    content: none;
  }

  /* CTA / Footer-top: reorder to title → preview → badges → web CTA */
  .footer-top {
    flex-direction: column;
    text-align: center;
    padding: 60px var(--side-padding);
    gap: 24px;
  }

  .footer-cta-section {
    display: contents;
  }

  .footer-title {
    font-size: clamp(28px, 6vw, 46px);
    order: 1;
  }

  .footer-subtitle {
    margin-bottom: 0;
    order: 2;
  }

  .footer-preview {
    order: 3;
    max-width: 355px;
    width: 100%;
    margin: 0 auto;
  }

  .footer-preview-img {
    width: 100%;
    max-width: 100%;
  }

  .footer-badges {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 12px;
    order: 4;
    margin-bottom: 0;
  }

  .footer-web-cta {
    width: 100%;
    max-width: 313px;
    order: 5;
  }
}

/* ===== RESPONSIVE - SMALL MOBILE ===== */
@media (max-width: 480px) {
  /* Hero card rules removed — Figma-accurate values in 768px query above take precedence */

  /* audience cards stay 2x2 at small widths */

  .gallery-mobile-thumb-new {
    max-width: 140px;
    border-radius: 12px;
  }
}
