/* --- Core CSS Design System --- */
:root {
  /* Color Palette (Premium Off-White & Charcoal) */
  --bg-primary: #f7f6f5;
  --bg-secondary: #eeebe8;
  --text-primary: #211e1d;
  --text-secondary: #585858;
  --color-white: #ffffff;
  --color-dark: #2c2c2c;
  --color-stroke: #d9d9d9;
  --color-stroke-light: rgba(33, 30, 29, 0.08);
  
  /* Brand Theme Colors (Orange / Pink / Yellow) */
  --brand-color: #ff812e;
  --brand-color-hover: #e06b22;
  --brand-glow: rgba(255, 129, 46, 0.15);
  
  /* Accent Gradients (Pastel Glows) */
  --glow-purple-pink: linear-gradient(140deg, rgba(255, 205, 233, 0.3) 6%, rgba(251, 211, 76, 0.3) 94%);
  --glow-cyan-purple: linear-gradient(140deg, rgba(255, 129, 46, 0.15) 6%, rgba(255, 205, 233, 0.2) 94%);
  
  /* Typography Variables */
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Playfair Display', serif;
  
  /* Borders and Shadow Values */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(33, 30, 29, 0.03);
  --shadow-md: 0 12px 32px rgba(33, 30, 29, 0.06);
  --shadow-lg: 0 32px 64px -12px rgba(33, 30, 29, 0.12), 0 0 0 1px rgba(33, 30, 29, 0.03);
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Resets --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.glow-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.ambient-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: var(--radius-full);
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.glow-1 {
  top: -100px;
  left: -50px;
  background: radial-gradient(circle, rgba(193, 143, 255, 0.25) 0%, rgba(255, 169, 171, 0.05) 70%);
  animation: floatGlow1 20s infinite alternate ease-in-out;
}

.glow-2 {
  top: 15vh;
  right: -100px;
  background: radial-gradient(circle, rgba(169, 242, 255, 0.25) 0%, rgba(193, 143, 255, 0.05) 70%);
  animation: floatGlow2 24s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

@keyframes floatGlow2 {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-50px, 60px) scale(0.9); }
}

/* --- Layout Utility Container --- */
.nav-container,
.hero-container,
.process-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Navigation Header (rivo.ai floating style) --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none; /* pass clicks through margins */
  transition: padding var(--transition-normal);
  padding: 1.5rem 0 0.5rem;
}

.header.scrolled {
  padding: 0.75rem 0 0.5rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid rgba(33, 30, 29, 0.08);
  border-radius: 20px;
  padding: 0.85rem 2rem;
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
  pointer-events: auto; /* enable click interaction inside the bar */
  box-shadow: 0 4px 25px rgba(33, 30, 29, 0.03);
  transition: padding var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled .nav-container {
  padding: 0.65rem 1.75rem;
  background-color: rgba(255, 255, 255, 0.75); /* Elegant glass translucent background */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(33, 30, 29, 0.05);
  box-shadow: 0 12px 35px rgba(33, 30, 29, 0.06);
}

/* Logo */
.logo-link {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.logo-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link i {
  font-size: 0.62rem;
  opacity: 0.7;
  margin-top: 2px;
  transition: transform var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover i {
  transform: translateY(1px);
}

/* Desktop Product Dropdown */
.nav-item-dropdown {
  position: relative;
  padding: 0.5rem 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(12px);
  background-color: #ffffff;
  border: 1px solid rgba(33, 30, 29, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 48px rgba(33, 30, 29, 0.1);
  padding: 1.5rem;
  display: flex;
  gap: 2.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 1000;
  min-width: 620px;
}

.dropdown-menu.dropdown-single-col {
  min-width: 340px;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(4px);
}

.nav-item-dropdown:hover .nav-link i {
  transform: rotate(180deg);
}

.dropdown-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dropdown-section-header {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-left: 0.65rem;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  margin-bottom: 0.35rem;
}

.dropdown-item:last-child {
  margin-bottom: 0;
}

.dropdown-item:hover {
  background-color: rgba(33, 30, 29, 0.035);
  transform: translateY(-1px);
}

.dropdown-icon-wrapper {
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

.dropdown-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.dropdown-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.dropdown-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Mobile Accordion Styles */
.mobile-dropdown-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mobile-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.65rem 0;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
}

.mobile-dropdown-btn i {
  font-size: 0.8rem;
  opacity: 0.7;
  transition: transform var(--transition-fast);
}

.mobile-dropdown-btn.active i {
  transform: rotate(180deg);
}

.mobile-dropdown-submenu {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.35rem 0 0.75rem 1rem;
  border-left: 2px solid rgba(255, 129, 46, 0.15);
  margin-left: 0.25rem;
}

.mobile-dropdown-submenu.active {
  display: flex;
}

.mobile-dropdown-submenu .sub-link {
  font-size: 0.95rem !important;
  color: var(--text-secondary) !important;
  padding: 0.45rem 0 !important;
  font-weight: 400 !important;
  text-decoration: none;
}

/* Actions and Menu Toggle */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Elegant Split CTA Buttons */
.secondary-btn-header {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border: 1px solid rgba(33, 30, 29, 0.15);
  border-radius: 12px;
  background-color: transparent;
  transition: all var(--transition-fast);
}

.secondary-btn-header:hover {
  background-color: rgba(33, 30, 29, 0.03);
  border-color: var(--text-primary);
}

.primary-btn-header {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  background-color: var(--brand-color);
  border: 1px solid var(--brand-color);
  border-radius: 12px;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px var(--brand-glow);
}

.primary-btn-header:hover {
  background-color: var(--brand-color-hover);
  border-color: var(--brand-color-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--brand-glow);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* --- Buttons System --- */
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--brand-color);
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px var(--brand-glow);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  border: none;
}

.primary-button:hover {
  background-color: var(--brand-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--brand-glow);
}

.btn-text {
  position: relative;
}

.btn-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform var(--transition-normal);
}

.primary-button:hover .btn-icon-circle {
  transform: translateX(3px) rotate(-45deg);
}

/* Secondary Button */
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border: 1px solid var(--color-stroke);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast);
  cursor: pointer;
}

.secondary-button:hover {
  border-color: var(--text-primary);
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
}

.btn-icon-circle-dark {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-left: 8px;
  transition: transform var(--transition-normal);
}

.secondary-button:hover .btn-icon-circle-dark {
  transform: translateX(3px);
}

/* --- Hero Section --- */
.hero-section {
  padding-top: 11rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4.5rem;
  text-align: center;
}

.hero-text-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 860px;
  z-index: 10;
}

.trusted-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid rgba(33, 30, 29, 0.12);
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  background-color: rgba(33, 30, 29, 0.02);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.18;
  color: var(--text-primary);
  letter-spacing: -1.5px;
}

.title-italic-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  color: var(--text-primary);
}

.text-highlight-pill {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  color: var(--brand-color);
  background-color: transparent;
  border: none;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline;
  transform: none;
  margin-left: 2px;
  box-shadow: none;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

/* --- Hero Brands Ticker Section --- */
.hero-brands-section {
  width: 100%;
  max-width: 820px;
  min-width: 0;
  margin: 4.5rem auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  position: relative;
}

.brands-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
  opacity: 0.8;
  text-align: center;
}

.brands-ticker-container {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background-color: rgba(33, 30, 29, 0.015);
  border: 1px solid var(--color-stroke-light);
  box-shadow: var(--shadow-sm);
}

/* Gradient Fade Masks on Edges */
.brands-ticker-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to right, var(--bg-primary), transparent);
  z-index: 2;
  pointer-events: none;
}

.brands-ticker-container::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to left, var(--bg-primary), transparent);
  z-index: 2;
  pointer-events: none;
}

.brands-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logoMarquee 30s linear infinite;
}

@media (hover: hover) {
  .brands-ticker-container:hover .brands-ticker-track {
    animation-play-state: paused;
  }
}

.ticker-logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 1.5rem 2.5rem;
  border-right: 1px solid var(--color-stroke-light);
  white-space: nowrap;
  font-family: var(--font-body);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.ticker-logo-item:hover {
  opacity: 1;
}

.ticker-logo-item i {
  font-size: 1.25rem;
  color: var(--text-primary);
  opacity: 0.85;
}

@keyframes logoMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 768px) {
  .hero-brands-section {
    margin-top: 3.5rem;
  }
  .ticker-logo-item {
    padding: 1.25rem 2rem;
    font-size: 1rem;
  }
  .ticker-logo-item i {
    font-size: 1.15rem;
  }
  .brands-ticker-container::before,
  .brands-ticker-container::after {
    width: 40px;
  }
}

.hero-reviews {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.avatar-group {
  display: flex;
  align-items: center;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
  margin-left: -10px;
  object-fit: cover;
}

.review-avatar:first-child {
  margin-left: 0;
}

.review-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.35;
  text-align: left;
}

.review-rating {
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.review-count {
  color: var(--text-secondary);
}

/* --- Mock Video Player Widget --- */
.video-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  z-index: 20;
}

/* Glowing Aura effect around Video frame */
.video-mockup-wrapper::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  background: var(--glow-purple-pink);
  filter: blur(50px);
  z-index: -1;
  opacity: 0.85;
}

.video-mockup-frame {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--color-stroke-light);
  display: flex;
  flex-direction: column;
}

/* Browser Mockup Top Bar */
.browser-bar {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--color-stroke-light);
  background-color: var(--bg-primary);
  gap: 1rem;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.browser-address {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background-color: var(--color-white);
  border: 1px solid var(--color-stroke-light);
  padding: 0.2rem 1.5rem;
  border-radius: var(--radius-sm);
  flex-grow: 1;
  text-align: center;
  font-family: var(--font-body);
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Video Wrapper */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #0c0c0c;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.video-container:hover .video-thumbnail {
  transform: scale(1.03);
}

/* Glassmorphic Play Trigger */
.play-overlay {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: opacity var(--transition-normal);
}

.play-trigger-btn {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px; /* offset alignment for play arrow */
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  position: relative;
  z-index: 6;
}

.play-trigger-btn:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.35);
}

.play-pulse {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: playPulse 2s infinite ease-out;
  pointer-events: none;
  z-index: 4;
}

@keyframes playPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Mock Controls Layer (hidden by default, shown on play hover) */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 1.25rem 1rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  z-index: 10;
}

.video-container.playing .video-controls {
  opacity: 1;
  transform: translateY(0);
}

.video-container.playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.control-btn {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
  padding: 0.25rem;
}

.control-btn:hover {
  opacity: 1;
}

.progress-bar-container {
  flex-grow: 1;
  padding: 0.5rem 0;
  cursor: pointer;
}

.progress-bar-bg {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  width: 15%;
  height: 100%;
  background-color: var(--color-white);
  border-radius: var(--radius-full);
}

.time-display {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
}

/* --- Mobile Nav Drawer --- */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: calc(100% - 0.5rem);
  left: 4%;
  width: 92%;
  background-color: rgba(255, 255, 255, 0.85); /* Elegant glass translucent background */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(33, 30, 29, 0.08);
  border-radius: 16px;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.25rem;
  box-shadow: 0 15px 40px rgba(33, 30, 29, 0.08);
  z-index: 99;
  pointer-events: auto; /* enable interactions inside the drawer */
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--text-primary);
}

.mobile-nav-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem;
  border-radius: 12px;
  margin-top: 0.25rem;
  transition: all var(--transition-fast);
}

.mobile-nav-cta.secondary-cta {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(33, 30, 29, 0.15);
}

.mobile-nav-cta.secondary-cta:hover {
  background-color: rgba(33, 30, 29, 0.03);
}

.mobile-nav-cta.primary-cta {
  background-color: var(--brand-color);
  color: var(--color-white);
  border: 1px solid var(--brand-color);
  box-shadow: 0 2px 4px var(--brand-glow);
}

.mobile-nav-cta.primary-cta:hover {
  background-color: var(--brand-color-hover);
  border-color: var(--brand-color-hover);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-container {
    gap: 2.5rem;
  }
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }
  
  .hero-text-content {
    align-items: center;
  }
  
  .hero-subtitle {
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .video-mockup-wrapper {
    max-width: 580px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .primary-btn-header, .secondary-btn-header {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .header {
    padding: 1rem 0 0.5rem;
  }
  
  .nav-container {
    padding: 0.75rem 1.25rem;
  }
  
  .mobile-nav-drawer.active {
    display: flex;
  }
  
  .hero-section {
    padding-top: 8rem;
    padding-bottom: 4rem;
  }
  
  .hero-title {
    font-size: 2.35rem;
    line-height: 1.2;
    letter-spacing: -1px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-self: stretch;
    gap: 0.85rem;
  }
  
  .hero-buttons .primary-button,
  .hero-buttons .secondary-button {
    width: 100%;
  }

  .card-text-side {
    padding: 1.75rem 1.25rem;
  }

  .card-mock-ui {
    padding: 1.5rem 1.25rem;
  }
}

/* --- Scroll Reveal Section --- */
.scroll-reveal-pin-wrapper {
  position: relative;
  height: 300vh; /* Scroll track height to control pin duration */
}

.scroll-reveal-section {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  overflow: hidden;
  z-index: 10;
  box-sizing: border-box;
}

.scroll-reveal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.scroll-icon-wrapper {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--text-primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.scroll-logo-mark {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.scroll-icon-wrapper::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 50px;
  background: linear-gradient(var(--text-primary), rgba(33, 30, 29, 0.02));
  opacity: 0.15;
}

.scroll-reveal-text {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.8vw, 2.9rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-primary);
  text-align: center;
  max-width: 980px;
  margin-top: 0.75rem;
}

.reveal-word {
  color: rgba(33, 30, 29, 0.12); /* Faded state */
  transition: color 0.15s ease;
  margin-right: 0.25em;
  display: inline-block;
}

@media (max-width: 768px) {
  .scroll-reveal-pin-wrapper {
    height: 250vh; /* Slightly shorter scroll track on mobile */
  }
  .scroll-reveal-section {
    padding: 0;
  }
  .scroll-icon-wrapper {
    margin-bottom: 1.5rem;
  }
  .scroll-icon-wrapper::after {
    height: 30px;
  }
}

/* --- Three-Step Process Section --- */
.process-section {
  padding: 10rem 0 10rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--color-stroke-light);
  position: relative;
  z-index: 10;
}

.process-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.process-container .trusted-badge {
  background-color: rgba(33, 30, 29, 0.04);
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -1.2px;
  margin-top: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 1.25rem auto 4.5rem;
}

/* Process Stack & Sticky Stacking Cards */
.process-stack {
  display: flex;
  flex-direction: column;
  gap: 6rem; /* Gap between cards before they scroll-stack */
  max-width: 1200px; /* Bigger width to feel premium and spacious */
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.process-card {
  border: 1px solid rgba(33, 30, 29, 0.05);
  border-radius: 36px;
  padding: 2.25rem; /* Outer border spacing showing the gradient */
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem; /* spacing between columns */
  align-items: stretch; /* equal height */
  box-shadow: 0 30px 60px rgba(33, 30, 29, 0.08);
  position: sticky;
  top: 140px;
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
  min-width: 0;
  max-width: 100%;
}

/* Progressive Sticky Stacking z-indices */
.process-card:nth-child(1) {
  z-index: 1;
}

.process-card:nth-child(2) {
  z-index: 2;
}

.process-card:nth-child(3) {
  z-index: 3;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 45px 90px rgba(33, 30, 29, 0.12), 0 0 0 1px rgba(33, 30, 29, 0.02);
}

.card-peach, .card-mint, .card-lavender {
  background: #ffffff;
  border: 1px solid rgba(33, 30, 29, 0.06);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.card-peach:hover, .card-mint:hover, .card-lavender:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 25px 50px rgba(124, 58, 237, 0.08), 0 0 0 1px rgba(124, 58, 237, 0.02);
}

.card-text-side {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  height: 100%;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.card-mock-side {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.card-step-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-color);
  margin-bottom: 0.85rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 2.15rem; /* Larger title font size */
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.8px;
}

.card-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Bullet benefits below description */
.card-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-benefits li {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-benefits li i {
  color: var(--brand-color);
  font-size: 0.95rem;
}

/* Mock UI Widgets inside Cards (Refined to be clean and white like reference) */
.card-mock-ui {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid rgba(33, 30, 29, 0.03);
  width: 100%;
  height: 100%;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  min-width: 0;
}

/* Step 1 Mock: Templates list animation */
.templates-mock .mock-tag {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  border: 1px solid var(--color-stroke-light);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.templates-mock .mock-tag i {
  font-size: 0.75rem;
  opacity: 0.8;
}

.templates-mock .mock-tag:nth-child(1) {
  animation: tag1Highlight 6s infinite ease-in-out;
}
.templates-mock .mock-tag:nth-child(2) {
  animation: tag2Highlight 6s infinite ease-in-out;
}
.templates-mock .mock-tag:nth-child(3) {
  animation: tag3Highlight 6s infinite ease-in-out;
}

@keyframes tag1Highlight {
  0%, 30% { background-color: #ffecdf; color: var(--text-primary); border-color: rgba(33, 30, 29, 0.15); transform: scale(1.02); }
  33.3%, 100% { background-color: var(--color-white); color: var(--text-secondary); border-color: var(--color-stroke-light); transform: scale(1); }
}

@keyframes tag2Highlight {
  0%, 30% { background-color: var(--color-white); color: var(--text-secondary); border-color: var(--color-stroke-light); transform: scale(1); }
  33.3%, 63.3% { background-color: #e5f3e5; color: var(--text-primary); border-color: rgba(33, 30, 29, 0.15); transform: scale(1.02); }
  66.6%, 100% { background-color: var(--color-white); color: var(--text-secondary); border-color: var(--color-stroke-light); transform: scale(1); }
}

@keyframes tag3Highlight {
  0%, 63.3% { background-color: var(--color-white); color: var(--text-secondary); border-color: var(--color-stroke-light); transform: scale(1); }
  66.6%, 96.6% { background-color: #eee5f3; color: var(--text-primary); border-color: rgba(33, 30, 29, 0.15); transform: scale(1.02); }
  100% { background-color: var(--color-white); color: var(--text-secondary); border-color: var(--color-stroke-light); transform: scale(1); }
}

/* Step 2 Mock: File Upload Box & Animation */
.upload-dropzone {
  border: 1.5px dashed var(--color-stroke);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  gap: 5px;
  background-color: var(--bg-primary);
}

.upload-dropzone i {
  font-size: 1.1rem;
  opacity: 0.7;
}

.file-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 10px 14px;
  background-color: #e5f3e5;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  overflow: hidden;
}

.file-name {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-name i {
  color: #1b8535;
}

.file-status {
  font-size: 0;
}

.file-status::after {
  font-size: 0.72rem;
  content: '100%';
  animation: uploadStatusText 6s infinite steps(1);
}

.upload-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(27, 133, 53, 0.1);
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  background-color: #1b8535;
  width: 0%;
  animation: uploadProgress 6s infinite ease-in-out;
}

@keyframes uploadProgress {
  0% { width: 0%; }
  60%, 100% { width: 100%; }
}

@keyframes uploadStatusText {
  0% { content: 'Uploading (15%)...'; color: var(--text-secondary); }
  20% { content: 'Uploading (50%)...'; color: var(--text-secondary); }
  45% { content: 'Uploading (85%)...'; color: var(--text-secondary); }
  60%, 100% { content: '100%'; color: #1b8535; }
}

/* Step 3 Mock: Successful Delivery Animation */
.delivery-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.status-label {
  font-size: 0;
}

.status-label::after {
  font-size: 0.8rem;
  font-weight: 600;
  content: 'Video Rendered Successfully';
  animation: deliveryStatusText 6s infinite steps(1);
}

.success-ring {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: #e5f3e5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b8535;
  font-size: 0.72rem;
  border: 1px solid rgba(27, 133, 53, 0.15);
  animation: successRingAnim 6s infinite ease-in-out;
}

.success-ring i {
  animation: successCheckmark 6s infinite ease-in-out;
}

.mock-btn {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: none;
  background-color: var(--color-dark);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color var(--transition-fast);
  animation: deliveryButton 6s infinite ease-in-out;
}

.mock-btn:hover {
  background-color: var(--text-primary);
}

@keyframes deliveryStatusText {
  0%, 25% { content: 'Rendering video (45%)...'; }
  30%, 100% { content: 'Video Rendered Successfully'; }
}

@keyframes successRingAnim {
  0%, 25% { background-color: var(--bg-primary); border-color: var(--color-stroke-light); color: transparent; }
  30%, 100% { background-color: #e5f3e5; border-color: rgba(27, 133, 53, 0.15); color: #1b8535; }
}

@keyframes successCheckmark {
  0%, 25% { transform: scale(0); opacity: 0; }
  30%, 100% { transform: scale(1); opacity: 1; }
}

@keyframes deliveryButton {
  0%, 25% { opacity: 0.5; transform: scale(1); cursor: not-allowed; }
  30% { opacity: 1; transform: scale(1); cursor: pointer; }
  40%, 50% { transform: scale(1.03); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12); }
  60%, 100% { transform: scale(1); box-shadow: none; }
}

/* Responsive Processes */
@media (max-width: 990px) {
  .process-stack {
    gap: 2.5rem;
    max-width: 580px;
  }
  
  .process-card {
    position: sticky;
    top: 90px;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .card-text-side {
    padding: 2.5rem 2rem;
  }

  .card-mock-ui {
    padding: 2.25rem 1.75rem;
  }
}

@media (max-width: 768px) {
  .process-section {
    padding: 6rem 0;
  }
  
  .section-subtitle {
    margin-bottom: 3rem;
  }
}

/* --- Video Templates Section --- */
.templates-section {
  padding: 10rem 0;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--color-stroke-light);
  position: relative;
  z-index: 10;
  overflow: hidden;
  width: 100%;
}

.home-templates-section {
  background-color: #fffdfa;
  background-image: radial-gradient(circle, rgba(255, 205, 233, 0.75) 1.4px, transparent 1.6px);
  background-size: 80px 80px;
}

.templates-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-templates-container {
  max-width: none;
  padding: 0;
  overflow: hidden;
  align-items: center;
  text-align: center;
}

.home-templates-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4.75rem;
  width: 100%;
}

.home-templates-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 920px;
  padding: 0 2rem;
  box-sizing: border-box;
}

.home-templates-copy .primary-button {
  margin-top: 0.3rem;
}

.templates-scroll-nav {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
  margin-bottom: 0.25rem;
}

.templates-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(33, 30, 29, 0.12);
  background-color: var(--color-white);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(33, 30, 29, 0.04);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  font-size: 0.9rem;
  padding: 0;
}

.templates-nav-btn:hover,
.templates-nav-btn:active {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(255, 129, 46, 0.25) !important;
  transform: translateY(-2px);
}

.templates-nav-btn:disabled {
  opacity: 0.42 !important;
  cursor: not-allowed !important;
  transform: none !important;
  background-color: var(--color-white) !important;
  border-color: rgba(33, 30, 29, 0.12) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 4px 12px rgba(33, 30, 29, 0.02) !important;
}

.home-templates-copy .trusted-badge {
  margin-left: auto;
  margin-right: auto;
}

.home-templates-copy .section-title {
  text-align: center;
  margin-bottom: 1.35rem;
}

.home-templates-copy .section-subtitle {
  text-align: center;
  max-width: 690px;
  margin: 0 0 1.95rem;
}

.home-templates-showcase {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.home-templates-showcase::before,
.home-templates-showcase::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: max(2rem, calc((100vw - 1240px) / 2));
  pointer-events: none;
  z-index: 3;
}

.home-templates-showcase::before {
  left: 0;
  background: linear-gradient(to right, #fffdfa 0%, rgba(255, 253, 250, 0) 100%);
}

.home-templates-showcase::after {
  right: 0;
  background: linear-gradient(to left, #fffdfa 0%, rgba(255, 253, 250, 0) 100%);
}

.home-template-nav {
  display: none !important;
  position: absolute;
  top: calc(50% - 1.375rem);
  z-index: 5;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(33, 30, 29, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(33, 30, 29, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}

.home-template-nav:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(33, 30, 29, 0.22);
}

.home-template-nav:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.home-template-nav-prev {
  left: clamp(0.9rem, 2vw, 1.5rem);
}

.home-template-nav-next {
  right: clamp(0.9rem, 2vw, 1.5rem);
}

.home-templates-grid {
  display: flex;
  grid-template-columns: none;
  gap: 3.5rem;
  max-width: none;
  width: 100%;
  align-self: stretch;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding: 0 0 2.75rem;
  position: relative;
  margin: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.home-templates-grid::-webkit-scrollbar {
  display: none;
}

.templates-grid-two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 3.5rem;
  width: 100%;
  margin-top: 4.5rem;
  margin-bottom: 4rem;
  position: relative;
}

/* Vertical dotted separator line between columns */
.templates-grid-two-column::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  border-left: 2px dotted rgba(33, 30, 29, 0.12);
  transform: translateX(-50%);
  pointer-events: none;
}

.home-templates-grid {
  display: flex;
  grid-template-columns: none;
  gap: 3.5rem;
  margin-top: 0;
  margin-bottom: 0;
}

.home-templates-grid::after {
  display: none;
}

.home-templates-grid .template-item {
  flex: 0 0 clamp(600px, 48vw, 740px);
  width: auto;
  scroll-snap-align: center;
  padding: 2rem;
  border-radius: 28px;
  border: none;
  box-shadow: none;
  background: none;
}

.home-templates-grid .template-item.gradient-pink-orange {
  background: linear-gradient(135deg, #ffcde9 0%, #ff812e 100%);
  box-shadow: 0 20px 40px rgba(255, 129, 46, 0.15);
}

.home-templates-grid .template-item.gradient-orange-yellow {
  background: linear-gradient(135deg, #ff812e 0%, #fbd34c 100%);
  box-shadow: 0 20px 40px rgba(251, 211, 76, 0.15);
}

.home-templates-grid .template-item.gradient-yellow-pink {
  background: linear-gradient(135deg, #fbd34c 0%, #ffcde9 100%);
  box-shadow: 0 20px 40px rgba(255, 205, 233, 0.2);
}

.home-templates-grid .template-item.gradient-blue-purple {
  background: linear-gradient(135deg, #e8e8ff 0%, #d4c5f9 100%);
  box-shadow: 0 20px 40px rgba(212, 197, 249, 0.2);
}

.home-templates-grid .template-item:hover {
  transform: translateY(-4px);
}

.home-templates-grid .mock-card-floating {
  background-color: #ffffff !important;
  border-radius: 20px !important;
  padding: 1.6rem !important;
  box-shadow: 0 20px 40px rgba(33, 30, 29, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  transition: transform var(--transition-normal);
}

.home-templates-grid .template-item:hover .mock-card-floating {
  transform: translateY(-4px);
}

.home-templates-grid .template-video-box {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  margin-bottom: 1.35rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.home-templates-grid .template-header {
  margin-bottom: 0.65rem;
}

.home-templates-grid .template-name {
  font-size: 1.35rem;
  line-height: 1.25;
}

.home-templates-grid .template-arrow {
  font-size: 1.1rem;
}

.home-templates-grid .template-description {
  font-size: 1.05rem;
  color: rgba(33, 30, 29, 0.7);
  margin-top: 0.5rem;
  line-height: 1.65;
  flex-grow: 1;
}

.template-item {
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  border-radius: 24px;
  padding: 2.25rem;
  border: 1px solid rgba(33, 30, 29, 0.04);
  box-shadow: 0 10px 30px rgba(33, 30, 29, 0.01);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.template-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(33, 30, 29, 0.08), 0 0 0 1px rgba(33, 30, 29, 0.02);
}

/* Card Background Colors (Elegant Pastels with soft glowing radial gradients) */
.bg-card-mint {
  background-color: #f3f9f4;
  background-image: radial-gradient(circle at bottom right, rgba(229, 243, 229, 0.5) 0%, transparent 80%);
}
.bg-card-mint:hover {
  border-color: rgba(30, 112, 51, 0.12);
}

.bg-card-lavender {
  background-color: #f6f1fb;
  background-image: radial-gradient(circle at bottom right, rgba(238, 229, 243, 0.5) 0%, transparent 80%);
}
.bg-card-lavender:hover {
  border-color: rgba(124, 58, 145, 0.12);
}

.bg-card-peach {
  background-color: #fdf5ef;
  background-image: radial-gradient(circle at bottom right, rgba(255, 236, 223, 0.5) 0%, transparent 80%);
}
.bg-card-peach:hover {
  border-color: rgba(199, 122, 69, 0.12);
}

.bg-card-blue {
  background-color: #f2f5fd;
  background-image: radial-gradient(circle at bottom right, rgba(232, 232, 255, 0.5) 0%, transparent 80%);
}
.bg-card-blue:hover {
  border-color: rgba(46, 59, 173, 0.12);
}

.template-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.template-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.template-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex-shrink: 0;
  display: inline-block;
}

.icon-mint { background-color: #e5f3e5; border: 1px solid rgba(30, 112, 51, 0.15); }
.icon-lavender { background-color: #eee5f3; border: 1px solid rgba(124, 58, 145, 0.15); }
.icon-peach { background-color: #ffecdf; border: 1px solid rgba(199, 122, 69, 0.15); }
.icon-blue { background-color: #e8e8ff; border: 1px solid rgba(46, 59, 173, 0.15); }

.template-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.template-arrow {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: transform var(--transition-normal), color var(--transition-normal);
}

.template-item:hover .template-arrow {
  transform: translateX(4px);
  color: var(--text-primary);
}

.template-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 100%;
}

.template-video-box {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-stroke-light);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-normal);
  cursor: pointer;
  margin-bottom: 1.75rem;
}

.template-item:hover .template-video-box {
  border-color: rgba(33, 30, 29, 0.15);
}

/* Browser Header top decoration */
.browser-header {
  position: absolute;
  top: 10px;
  left: 14px;
  display: flex;
  gap: 5px;
  z-index: 5;
}

.b-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.4);
}

/* Gradients representing modern SaaS platforms */
.t-grad-1 { background: linear-gradient(135deg, #ff8a00 0%, #da1b60 100%); }
.t-grad-2 { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.t-grad-3 { background: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%); }
.t-grad-4 { background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); }
.t-grad-5 { background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%); }
.t-grad-6 { background: linear-gradient(135deg, #3a7bd5 0%, #3a6073 100%); }
.t-grad-7 { background: linear-gradient(135deg, #1d976c 0%, #93f9b9 100%); }
.t-grad-8 { background: linear-gradient(135deg, #f80759 0%, #bc4e9c 100%); }

/* SaaS UI Mock elements inside browser preview */
.template-ui-mock {
  width: 76%;
  height: 62%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-normal);
}

.template-item:hover .template-ui-mock {
  transform: scale(1.04) translateY(-2px);
}

/* Chart circle for template 1 */
.mock-chart-donut {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 5px solid rgba(255, 255, 255, 0.8);
  border-top-color: #da1b60;
  align-self: center;
}

.mock-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.mock-lines span {
  height: 4px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.6);
  width: 85%;
}

.mock-lines span:last-child {
  width: 50%;
}

/* Sidebar mock for template 2 */
.mock-sidebar {
  width: 22%;
  height: 100%;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.15);
  position: absolute;
  left: 0;
  top: 0;
}

.mock-onboarding-steps {
  margin-left: 28%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-onboarding-steps span {
  height: 5px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.7);
  width: 75%;
}

.mock-onboarding-steps span:first-child {
  background-color: #ffffff;
  border-left: 3px solid #11998e;
  padding-left: 4px;
}

/* Alert popup for template 3 */
.mock-alert-popup {
  width: 70%;
  height: 28px;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mock-glow-feature {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: #E100FF;
  filter: blur(4px);
  position: absolute;
  right: 10px;
  top: 10px;
}

/* Integrations connector node for template 4 */
.mock-integration-node {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mock-integration-node::before {
  content: '\f0c1';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  color: #0072ff;
}

/* Testimonial card layout for template 5 */
.mock-testimonial-card {
  width: 90%;
  height: 80%;
  align-self: center;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.mock-testimonial-card::before {
  content: '“';
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1;
  color: #ff5e62;
  display: block;
}

/* Editor timeline for template 6 */
.mock-editor-timeline {
  height: 14px;
  width: 90%;
  background: rgba(255, 255, 255, 0.3);
  position: absolute;
  bottom: 8px;
  border-radius: 3px;
  left: 5%;
  overflow: hidden;
}

.mock-editor-timeline::after {
  content: '';
  width: 55%;
  height: 100%;
  background: #ffffff;
  display: block;
  border-radius: 3px;
}

/* Api editor endpoints for template 7 */
.mock-api-endpoints {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: monospace;
}

.mock-api-endpoints::before {
  content: 'GET /v1/users';
  font-size: 0.55rem;
  color: #ffffff;
  background: rgba(0,0,0,0.15);
  padding: 2px 4px;
  border-radius: 2px;
  display: inline-block;
  width: fit-content;
}

/* Line chart metric for template 8 */
.mock-retention-metrics {
  width: 90%;
  height: 80%;
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
  border-left: 2px solid rgba(255, 255, 255, 0.8);
  position: relative;
  align-self: center;
}

.mock-retention-metrics::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 18px;
  border-top: 2px solid #ffffff;
  transform: skewY(-15deg);
}

/* Play button overlay */
.template-play-btn {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--color-white);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px; /* offset play icon */
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast);
  z-index: 6;
}

.template-video-box:hover .template-play-btn {
  opacity: 1;
  transform: scale(1);
}

.template-play-btn:hover {
  background-color: rgba(255, 255, 255, 0.45);
}

.template-duration {
  position: absolute;
  bottom: 10px;
  right: 12px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(33, 30, 29, 0.7);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 5;
}

/* --- Pricing Section --- */
.pricing-section {
  padding: 10rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--color-stroke-light);
  position: relative;
  z-index: 10;
  overflow: hidden;
  width: 100%;
}

.pricing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.pricing-card-wrapper {
  width: 100%;
  max-width: 540px; /* Centered, single card width */
  margin-top: 4rem;
}

.pricing-card {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(33, 30, 29, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 45px 90px rgba(33, 30, 29, 0.12), 0 0 0 1px rgba(33, 30, 29, 0.02);
}

/* Featured Dark Premium Card background */
.pricing-card.featured {
  background-color: #211e1d; /* Charcoal dark background for the whole card */
  border-color: rgba(255, 255, 255, 0.06);
}

.pricing-card.featured .pricing-card-top {
  background-color: transparent;
  padding: 3.5rem 3.5rem 2.5rem;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.plan-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.plan-emoji {
  font-size: 1.25rem;
}

.plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #a78bfa; /* Bright lavender accent to pop on dark background */
}

.plan-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.price-value {
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
}

.price-currency {
  font-size: 2.25rem;
  font-weight: 600;
  margin-right: 2px;
}

.price-period {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin-left: 0.5rem;
  letter-spacing: normal;
}

/* CTA Button inside Card */
.pricing-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.15rem;
  background-color: var(--brand-color);
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-color);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px var(--brand-glow);
  text-align: center;
}

.pricing-cta-button:hover {
  background-color: var(--brand-color-hover);
  border-color: var(--brand-color-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--brand-glow);
}

/* Features Bottom Part (Nested white card style like reference) */
.pricing-card-bottom {
  background-color: #ffffff;
  padding: 3rem 3.5rem;
  margin: 0 1.5rem 1.5rem 1.5rem;
  border-radius: 20px;
  text-align: left;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.pricing-features li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.4;
}

.pricing-features li i {
  color: #211e1d; /* Black checkmarks matching the reference */
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

@media (max-width: 580px) {
  .pricing-card.featured .pricing-card-top {
    padding: 2.5rem 1.75rem 2rem;
  }
  .pricing-card-bottom {
    padding: 2rem 1.75rem;
    margin: 0 1rem 1rem 1rem;
    border-radius: 16px;
  }
  .price-value {
    font-size: 3.25rem;
  }
}

/* --- CTA Banner Section --- */
.cta-section {
  padding: 8rem 0 10rem;
  background-color: var(--bg-primary);
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.cta-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cta-card {
  background: linear-gradient(135deg, rgba(255, 236, 223, 0.45) 0%, rgba(238, 229, 243, 0.45) 50%, rgba(229, 243, 229, 0.35) 100%);
  border: 1px solid rgba(33, 30, 29, 0.08);
  border-radius: 32px;
  padding: 5rem 5.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4.5rem;
  align-items: center;
}

/* Internal smooth blur glow */
.cta-glow {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(193, 143, 255, 0.18) 0%, rgba(255, 169, 171, 0.08) 60%, transparent 100%);
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}

.cta-text-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  z-index: 5;
}

.cta-title {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -1.2px;
  margin: 1.25rem 0 1rem;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Right-side Integrations Graphic */
.cta-graphic-side {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.cta-graphic-wrapper {
  position: relative;
  width: 330px;
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-avatar-wrapper {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
  z-index: 10;
  background-color: var(--bg-secondary);
}

.cta-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Concentric circular guide rings */
.cta-ring {
  position: absolute;
  border-radius: var(--radius-full);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-ring-1 {
  width: 170px;
  height: 170px;
  border: 1px dashed rgba(33, 30, 29, 0.08);
}

.cta-ring-2 {
  width: 250px;
  height: 250px;
  border: 1px solid rgba(33, 30, 29, 0.05);
}

.cta-ring-3 {
  width: 330px;
  height: 330px;
  border: 1px dashed rgba(33, 30, 29, 0.03);
}

/* Floating Brand Circles */
.cta-float-icon {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 2px solid var(--color-white);
  z-index: 8;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.cta-float-icon:hover {
  transform: scale(1.12) translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Precise Placement of Floating Icons based on Ring Radii */
.icon-slack {
  /* top-left on outer ring */
  top: 65px;
  left: 32px;
  background-color: #4a154b;
  animation: floatSlack 7s infinite ease-in-out alternate;
}

.icon-figma {
  /* top-center on outer ring */
  top: 10px;
  left: 146px;
  background-color: #f24e1e;
  animation: floatFigma 6s infinite ease-in-out alternate;
}

.icon-hubspot {
  /* top-right on outer ring */
  top: 65px;
  right: 32px;
  background-color: #ff7a59;
  animation: floatHubspot 8s infinite ease-in-out alternate;
}

.icon-rivo {
  /* bottom-left on inner ring */
  bottom: 80px;
  left: 30px;
  background-color: #635bff;
  animation: floatStripe 6.5s infinite ease-in-out alternate;
}

.icon-youtube {
  /* bottom-right on inner ring */
  bottom: 80px;
  right: 30px;
  background-color: #ff0000;
  animation: floatYoutube 7.5s infinite ease-in-out alternate;
}

/* Floating keyframe animations to give a organic tech feel */
@keyframes floatSlack {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-4px, -6px); }
}
@keyframes floatFigma {
  0% { transform: translate(0, 0); }
  100% { transform: translate(6px, -4px); }
}
@keyframes floatHubspot {
  0% { transform: translate(0, 0); }
  100% { transform: translate(4px, -8px); }
}
@keyframes floatStripe {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-6px, 4px); }
}
@keyframes floatYoutube {
  0% { transform: translate(0, 0); }
  100% { transform: translate(6px, 6px); }
}

@media (max-width: 990px) {
  .home-templates-container {
    padding-inline: 0;
  }

  .home-templates-layout {
    gap: 2.25rem;
  }

  .home-templates-copy {
    max-width: 680px;
    padding: 0 2rem;
  }

  .home-templates-showcase {
    width: 100%;
    margin-right: 0;
  }

  .home-templates-grid {
    gap: 2.5rem;
  }

  .home-templates-grid {
    padding: 0 0 2.25rem;
    scroll-padding-inline: 0;
  }

  .home-templates-grid .template-item {
    flex-basis: min(620px, 82vw);
  }
  
  .templates-grid-two-column::after {
    display: none;
  }

  .template-description {
    max-width: 100%;
  }

  /* Collapse CTA banner */
  .cta-card {
    grid-template-columns: 1fr;
    padding: 4rem 3.5rem;
    gap: 3.5rem;
    text-align: center;
  }

  .cta-text-side {
    align-items: center;
    text-align: center;
  }

  .cta-subtitle {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .templates-section {
    padding: 6rem 0;
  }

  .home-template-nav {
    width: 46px;
    height: 46px;
  }

  .home-templates-copy .section-subtitle {
    margin-bottom: 1.5rem;
  }
  
  .templates-grid-two-column {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }

  .pricing-section {
    padding: 6rem 0;
  }

  .cta-section {
    padding: 6rem 0 8rem;
  }
  
  .cta-card {
    padding: 3.5rem 2rem;
  }
}

@media (max-width: 520px) {
  .home-templates-container {
    padding-inline: 0;
  }

  .home-templates-showcase {
    width: 100%;
    margin-right: 0;
  }

  .home-template-nav {
    width: 42px;
    height: 42px;
  }

  .home-template-nav-prev {
    left: 0.55rem;
  }

  .home-template-nav-next {
    right: 0.55rem;
  }

  .home-templates-grid {
    gap: 1.5rem;
    max-width: none;
    padding: 0 0 1.75rem;
    scroll-padding-inline: 0;
  }

  .home-templates-grid .template-item {
    flex-basis: min(420px, 88vw);
    padding: 1.25rem;
  }

  .home-templates-grid .mock-card-floating {
    padding: 1rem !important;
  }

  .home-templates-grid .template-name {
    font-size: 1.08rem;
  }

  .home-templates-grid .template-description {
    font-size: 0.92rem;
  }
  
  .template-item {
    padding: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .cta-buttons .primary-button,
  .cta-buttons .secondary-button {
    width: 100%;
  }

  /* Scale down concentric rings graphic to fit mobile screen */
  .cta-graphic-wrapper {
    transform: scale(0.8);
  }
}


/* --- Footer Section --- */
.footer-section {
  padding: 5rem 0 3.5rem 0;
  background-color: #151210;
  position: relative;
  z-index: 10;
  overflow: hidden;
  width: 100%;
}

.footer-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 4rem;
}

.footer-card {
  background-color: transparent;
  color: #ffffff;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr;
  gap: 5rem;
}

/* Left Brand Column */
.footer-brand-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
}

.footer-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.footer-logo-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2.5rem;
  max-width: 380px;
  font-weight: 400;
}

.footer-newsletter-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-newsletter-wrapper {
  width: 100%;
  max-width: 420px;
}

.footer-newsletter-form {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 6px 6px 20px;
  border-radius: 100px;
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.footer-newsletter-form:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.02);
}

.footer-newsletter-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.95rem;
  flex-grow: 1;
  padding-right: 12px;
  font-family: var(--font-body);
}

.footer-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.footer-newsletter-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--brand-color);
  color: var(--color-white);
  border: none;
  padding: 10px 10px 10px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.footer-newsletter-submit:hover {
  background-color: var(--brand-color-hover);
  transform: translateY(-1px);
}

.submit-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #211e1d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-color);
  font-size: 0.8rem;
  transition: transform var(--transition-normal);
}

.submit-icon-circle i {
  transform: rotate(-45deg); /* Point top-right */
  display: inline-block;
  transition: transform var(--transition-normal);
}

.footer-newsletter-submit:hover .submit-icon-circle i {
  transform: rotate(-45deg) scale(1.1);
}

/* Right Links Column */
.footer-links-side {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-column-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.footer-links-list li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-links-list li a:hover {
  color: #ffffff;
}

/* Divider Line */
.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin: 4.5rem 0 2.5rem 0;
  width: 100%;
}

/* Bottom Bar */
.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Footer Media Queries */
@media (max-width: 990px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 4.5rem;
  }
  
  .footer-brand-side {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .footer-section {
    padding: 0 0 3rem 0;
  }
  
  .footer-card {
    padding: 4rem 3rem 3rem 3rem;
    border-radius: 28px;
  }
  
  .footer-divider {
    margin: 3.5rem 0 2rem 0;
  }
  
  .footer-bottom-flex {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .footer-bottom-links {
    gap: 1.5rem;
  }
}

@media (max-width: 580px) {
  .footer-links-side {
    flex-wrap: wrap;
    gap: 3rem 2rem;
  }
  
  .footer-links-column {
    flex: 1 1 130px;
  }
  
  .footer-card {
    padding: 3.5rem 1.75rem 2.5rem 1.75rem;
  }
  
  .footer-newsletter-form {
    padding: 4px 4px 4px 16px;
  }
  
  .footer-newsletter-submit {
    padding: 8px 8px 8px 16px;
    font-size: 0.78rem;
  }
  
  .submit-icon-circle {
    width: 26px;
    height: 26px;
  }
}

/* --- Inline Template Videos --- */
.template-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: transform var(--transition-normal);
}

.template-item:hover .template-video {
  transform: scale(1.04);
}

.browser-header .b-dot:nth-child(1) { background-color: #ff5f56; }
.browser-header .b-dot:nth-child(2) { background-color: #ffbd2e; }
.browser-header .b-dot:nth-child(3) { background-color: #27c93f; }

/* --- Video Lightbox Modal --- */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(33, 30, 29, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.video-modal-container {
  position: relative;
  width: 90%;
  max-width: 960px;
  z-index: 1001;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.video-modal.active .video-modal-container {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: -55px;
  right: 0;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.35rem;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-modal-close:hover {
  opacity: 1;
  transform: rotate(90deg);
  background-color: rgba(255, 255, 255, 0.2);
}

.video-modal-player-wrapper {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--color-stroke-light);
  display: flex;
  flex-direction: column;
}

.video-modal-content {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #0c0c0c;
}

.video-modal-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .video-modal-close {
    top: -45px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}

/* --- Template Filtering Styles --- */
.filter-bar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 3rem auto 4rem;
  padding: 0.75rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(33, 30, 29, 0.08);
  border-radius: var(--radius-full);
  width: fit-content;
  max-width: 92%;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  position: relative;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  background-color: rgba(33, 30, 29, 0.03);
}

.filter-btn.active {
  color: var(--color-white);
  background-color: var(--brand-color);
  border-color: var(--brand-color);
  box-shadow: 0 4px 12px var(--brand-glow);
}

/* Smooth entry animation for filtered template cards */
.template-item.filtered-in {
  animation: filterCardFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.template-item.filtered-out {
  display: none !important;
}

@keyframes filterCardFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 768px) {
  .filter-bar-container {
    padding: 0.6rem 1rem;
    border-radius: 20px; /* rounded rect on mobile wrap */
    gap: 0.5rem;
    margin: 2rem auto 3rem;
  }
  
  .filter-btn {
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
  }
}

/* --- Bento Grid Customer Stories Styling --- */
.stories-section {
  padding: 10rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--color-stroke-light);
  position: relative;
  z-index: 10;
  overflow: hidden;
  width: 100%;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  width: 100%;
  margin-top: 4.5rem;
}

.bento-card {
  border-radius: 32px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  border: 1px solid rgba(33, 30, 29, 0.05);
  box-shadow: 0 15px 35px rgba(33, 30, 29, 0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
  min-height: 480px;
  height: auto;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(33, 30, 29, 0.08);
}

.bento-w-3 {
  grid-column: span 3;
}

.bento-w-2 {
  grid-column: span 2;
}

.bento-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  z-index: 5;
}

.bento-tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.bento-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.bento-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 480px;
}

/* Color palettes for Bento Cards */
.card-bento-green {
  background: #e6f4e6;
  border-color: rgba(30, 112, 51, 0.08);
}
.bg-tag-green {
  background-color: rgba(30, 112, 51, 0.08);
  color: #1e7033;
}

.card-bento-voiceover {
  background: linear-gradient(135deg, #eee5f3 0%, #e8f0fe 100%);
  border-color: rgba(124, 58, 145, 0.08);
}
.bg-tag-purple {
  background-color: rgba(124, 58, 145, 0.08);
  color: #7c3a91;
}

.card-bento-script {
  background: linear-gradient(135deg, #fdf5ef 0%, #ffd3cb 100%);
  border-color: rgba(199, 122, 69, 0.08);
}
.bg-tag-peach {
  background-color: rgba(199, 122, 69, 0.08);
  color: #c77a45;
}

.card-bento-brand {
  background: #fdf2f0;
  border-color: rgba(239, 68, 68, 0.05);
}
.bg-tag-lavender {
  background-color: rgba(99, 91, 255, 0.08);
  color: #635bff;
}

/* Graphics container inside Bento Cards */
.bento-graphic {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 2px 8px rgba(33, 30, 29, 0.02);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* Browser Mockup inside Green Card */
.browser-mock-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 0;
  margin-top: auto;
}

.mock-browser-top {
  display: flex;
  gap: 5px;
  padding: 8px 14px;
  background-color: rgba(33, 30, 29, 0.02);
  border-bottom: 1px solid rgba(33, 30, 29, 0.04);
}

.mock-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
}
.mock-dot.red { background-color: #ff5f56; }
.mock-dot.yellow { background-color: #ffbd2e; }
.mock-dot.green { background-color: #27c93f; }

.mock-browser-content {
  display: flex;
  flex-grow: 1;
  height: calc(100% - 22px);
}

.mock-sidebar {
  width: 22%;
  border-right: 1px solid rgba(33, 30, 29, 0.04);
  background-color: rgba(33, 30, 29, 0.01);
  display: flex;
  padding: 10px;
  box-sizing: border-box;
}

.sidebar-logo {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mock-main-panel {
  flex-grow: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.mock-panel-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.mock-cards-row {
  display: flex;
  gap: 10px;
}

.mock-mini-card {
  flex: 1;
  background-color: #ffffff;
  border: 1px solid rgba(33, 30, 29, 0.06);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.mock-mini-card h5 {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mock-mini-card p {
  font-size: 0.52rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.read-more-link {
  font-size: 0.52rem;
  color: #1e7033;
  font-weight: 600;
  margin-top: 2px;
}

/* Floating Action Cards in Card 1 */
.float-icons-wrapper {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.float-icon-card {
  width: 32px;
  height: 32px;
  background-color: #ffffff;
  border: 1px solid rgba(33, 30, 29, 0.05);
  box-shadow: 0 4px 10px rgba(33, 30, 29, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.icon-card-1 { transform: rotate(-5deg); }
.icon-card-2 { transform: rotate(8deg); }
.icon-card-3 { transform: rotate(-12deg); }
.icon-card-4 { transform: rotate(5deg); }

/* Voiceover Selector Widget in Card 2 */
.voiceover-widget-panel {
  background: radial-gradient(circle at bottom right, rgba(238, 229, 243, 0.5) 0%, transparent 80%);
}

.voiceover-widget-card {
  width: 85%;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(33, 30, 29, 0.03);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-sizing: border-box;
}

.widget-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.widget-select-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid rgba(33, 30, 29, 0.15);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.widget-select-btn:hover {
  background-color: rgba(33, 30, 29, 0.03);
}

.widget-avatars-row {
  display: flex;
  align-items: center;
}

.avatar-bubble {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 2.5px solid #ffffff;
  overflow: hidden;
  margin-left: -8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.avatar-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-bubble:first-child {
  margin-left: 0;
}

.avatar-bubble-plus {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 10px;
}

/* Script Editor Widget in Card 3 */
.scripts-editor-panel {
  background: linear-gradient(135deg, rgba(253, 245, 239, 0.6) 0%, rgba(255, 211, 203, 0.6) 100%);
}

.script-editor-card {
  width: 90%;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(33, 30, 29, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-sizing: border-box;
}

.script-line {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.script-line.text-faded {
  opacity: 0.35;
}

.highlight-word {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 6px;
}

.highlight-word.word-peach {
  background-color: #ffecdf;
  color: #c77a45;
  border: 1.5px solid rgba(199, 122, 69, 0.15);
}

.highlight-word.word-mint {
  background-color: #e5f3e5;
  color: #1e7033;
  border: 1.5px solid rgba(30, 112, 51, 0.15);
}

/* Brand Customizer Widgets in Card 4 */
.brand-customizer-panel {
  background-color: rgba(255, 255, 255, 0.75);
}

.brand-widgets-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 90%;
  box-sizing: border-box;
}

.customizer-font-card {
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(33, 30, 29, 0.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.font-preview {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
}

.customizer-swatch-card {
  flex: 1;
  height: 60px;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(33, 30, 29, 0.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  box-sizing: border-box;
}

.swatches-row {
  display: flex;
  gap: 6px;
}

.swatch-circle {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
}
.swatch-circle.sw-1 { background-color: #ffecd2; }
.swatch-circle.sw-2 { background-color: #fcb69f; }
.swatch-circle.sw-3 { background-color: #c77a45; }

.swatch-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.customizer-profile-card {
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  border-radius: var(--radius-full);
  border: 1px solid rgba(33, 30, 29, 0.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.customizer-profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Media Queries for Bento Grid */
@media (max-width: 990px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .bento-w-3, .bento-w-2 {
    grid-column: span 1;
  }
  .bento-card {
    height: 440px;
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .stories-section {
    padding: 6rem 0;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
  }
  .bento-card {
    height: auto;
    gap: 2rem;
  }
  .bento-graphic {
    height: 180px;
  }
  .brand-widgets-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}


.card-bento-acai {
  background: linear-gradient(145deg, #1f192b 0%, #110e17 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}
.card-bento-acai:hover {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2), 0 0 0 1px rgba(124, 58, 237, 0.2);
  transform: translateY(-4px);
}
.card-bento-acai .bento-title { color: #ffffff; }
.card-bento-acai .bento-subtitle { color: rgba(255, 255, 255, 0.75); }
.card-bento-acai:hover {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2), 0 0 0 1px rgba(124, 58, 237, 0.2);
  transform: translateY(-4px);
}
.card-bento-acai .bento-title { color: #ffffff; }
.card-bento-acai .bento-subtitle { color: rgba(255, 255, 255, 0.75); }

.bg-tag-acai {
  background-color: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.acai-logo-graphic {
  position: relative;
  width: 100%;
  flex: none;
  height: 120px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 2px 8px rgba(33, 30, 29, 0.02);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: auto;
}

.acai-logo-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
}

.acai-logo-img {
  width: 140px;
  height: auto;
  object-fit: contain;
}

.acai-graphic-divider {
  width: 1px;
  align-self: stretch;
  margin: 1rem 0;
  background-color: rgba(124, 58, 237, 0.12);
}

.acai-cta-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.5rem 2rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.acai-cta-side:hover {
  background-color: rgba(124, 58, 237, 0.04);
}

.acai-cta-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.acai-cta-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #7c3aed;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.acai-cta-side:hover .acai-cta-arrow {
  transform: translateX(3px);
  background-color: #6d28d9;
}

/* --- VerisInsights Customer Story Bento Card --- */
.card-bento-veris {
  background: linear-gradient(145deg, #111a2e 0%, #0a0f17 100%);
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}
.card-bento-veris:hover {
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2), 0 0 0 1px rgba(14, 165, 233, 0.2);
  transform: translateY(-4px);
}
.card-bento-veris .bento-title { color: #ffffff; }
.card-bento-veris .bento-subtitle { color: rgba(255, 255, 255, 0.75); }

.bg-tag-veris {
  background-color: rgba(14, 165, 233, 0.1);
  color: #0284c7;
}

.veris-logo-graphic {
  position: relative;
  width: 100%;
  flex: none;
  height: 120px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: auto;
}

.veris-logo-side {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
}

.veris-logo-img {
  width: 130px;
  height: auto;
  object-fit: contain;
}

.veris-graphic-divider {
  width: 1px;
  align-self: stretch;
  margin: 1rem 0;
  background-color: rgba(255, 255, 255, 0.12);
}

.veris-cta-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.veris-cta-side:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.veris-cta-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.2px;
}

.veris-cta-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #70adfa;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.veris-cta-side:hover .veris-cta-arrow {
  transform: translateX(3px);
  background-color: #90c2ff;
}

.card-bento-yourco {
  background: linear-gradient(145deg, #2e1c0d 0%, #170e06 100%);
  border: 1px solid rgba(244, 137, 21, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}
.card-bento-yourco:hover {
  border-color: rgba(244, 137, 21, 0.5);
  box-shadow: 0 20px 40px rgba(244, 137, 21, 0.2), 0 0 0 1px rgba(244, 137, 21, 0.2);
  transform: translateY(-4px);
}
.card-bento-yourco .bento-title { color: #ffffff; }
.card-bento-yourco .bento-subtitle { color: rgba(255, 255, 255, 0.75); }

.bg-tag-yourco {
  background-color: rgba(217, 119, 6, 0.08);
  color: #d97706;
}

.yourco-logo-graphic {
  position: relative;
  width: 100%;
  flex: none;
  height: 120px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 2px 8px rgba(33, 30, 29, 0.02);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: auto;
}

.yourco-logo-side {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
}

.yourco-logo-img {
  width: 130px;
  height: auto;
  object-fit: contain;
}

.yourco-graphic-divider {
  width: 1px;
  align-self: stretch;
  margin: 1rem 0;
  background-color: rgba(217, 119, 6, 0.12);
}

.yourco-cta-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.yourco-cta-side:hover {
  background-color: rgba(217, 119, 6, 0.04);
}

.yourco-cta-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.yourco-cta-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f48915;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.yourco-cta-side:hover .yourco-cta-arrow {
  transform: translateX(3px);
  background-color: #d97706;
}

/* --- Haqq Customer Story Bento Card --- */
.card-bento-haqq {
  background: linear-gradient(145deg, #2b111c 0%, #17090f 100%);
  border: 1px solid rgba(219, 39, 119, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}
.card-bento-haqq:hover {
  border-color: rgba(219, 39, 119, 0.5);
  box-shadow: 0 20px 40px rgba(219, 39, 119, 0.2), 0 0 0 1px rgba(219, 39, 119, 0.2);
  transform: translateY(-4px);
}
.card-bento-haqq .bento-title { color: #ffffff; }
.card-bento-haqq .bento-subtitle { color: rgba(255, 255, 255, 0.75); }

.bg-tag-haqq {
  background-color: rgba(90, 13, 50, 0.08);
  color: #5a0d32;
}

.haqq-logo-graphic {
  position: relative;
  width: 100%;
  flex: none;
  height: 120px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 2px 8px rgba(33, 30, 29, 0.02);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: auto;
}

.haqq-logo-side {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
}

.haqq-logo-img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.haqq-graphic-divider {
  width: 1px;
  align-self: stretch;
  margin: 1rem 0;
  background-color: rgba(90, 13, 50, 0.12);
}

.haqq-cta-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.haqq-cta-side:hover {
  background-color: rgba(90, 13, 50, 0.04);
}

.haqq-cta-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.haqq-cta-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #8c1c54;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.haqq-cta-side:hover .haqq-cta-arrow {
  transform: translateX(3px);
  background-color: #5a0d32;
}


/* ====================================================================
   DETAILED CUSTOMER STORY BLOG PAGE STYLES
   ==================================================================== */

/* --- Story Hero Section --- */
.story-hero {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--bg-primary);
  padding: 10rem 2rem 5rem;
  text-align: center;
  height: auto;
}

.story-scroll-body {
  position: relative;
  z-index: 5;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--color-stroke-light);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  box-shadow: 0 -25px 60px rgba(33, 30, 29, 0.05);
  margin-top: 0;
}

/* --- Horizontal Testimonial Section --- */
.story-testimonial-section {
  padding: 5rem 2rem 2rem;
  background-color: transparent;
}

.story-testimonial-container {
  max-width: 960px;
  margin: 0 auto;
}

.testimonial-card {
  display: flex;
  background-color: var(--bg-secondary);
  border: 1px solid var(--color-stroke-light);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-image-col {
  width: 38%;
  min-width: 280px;
  position: relative;
  overflow: hidden;
}

.testimonial-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-content-col {
  flex: 1;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}

.testimonial-quote-icon {
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: rgba(33, 30, 29, 0.07);
  position: absolute;
  top: 1rem;
  left: 2rem;
  pointer-events: none;
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 2;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 1.5rem;
}

.testimonial-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.testimonial-role {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.testimonial-divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-stroke-light);
  margin-bottom: 1.5rem;
}

/* Watch Video Button */
.watch-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  background-color: var(--brand-color);
  border: 1px solid var(--brand-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px var(--brand-glow);
}

.watch-video-btn:hover {
  background-color: var(--brand-color-hover);
  border-color: var(--brand-color-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--brand-glow);
}

.play-btn-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(33, 30, 29, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-primary);
  transition: transform var(--transition-normal);
}

.watch-video-btn:hover .play-btn-icon {
  transform: scale(1.15) rotate(360deg);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .story-hero {
    padding: 8rem 1.5rem 4rem;
  }
  
  .story-scroll-body {
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
  }

  .story-testimonial-section {
    padding: 3rem 1.5rem 1.5rem;
  }

  .testimonial-card {
    flex-direction: column;
  }

  .testimonial-image-col {
    width: 100%;
    height: 280px;
    min-width: unset;
  }

  .testimonial-content-col {
    padding: 2.5rem 1.75rem;
  }

  .testimonial-quote-icon {
    top: 1rem;
    left: 1.25rem;
    font-size: 4rem;
  }

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


.story-hero-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.story-category-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  width: fit-content;
  background-color: rgba(33, 30, 29, 0.05);
  color: var(--text-secondary);
}

.story-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1.15;
  max-width: 800px;
}

.story-hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 680px;
}

/* Author Info Row */
.story-author-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.story-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2.5px solid rgba(33, 30, 29, 0.06);
}

.story-author-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.story-author-name {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.story-author-role {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* --- Hero Video Frame --- */
.story-video-frame {
  max-width: 960px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.story-video-browser {
  background: var(--color-white);
  border-radius: 16px;
  border: 1px solid rgba(33, 30, 29, 0.08);
  box-shadow: 0 25px 60px rgba(33, 30, 29, 0.08);
  overflow: hidden;
}

.story-video-browser .browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background-color: rgba(33, 30, 29, 0.02);
  border-bottom: 1px solid rgba(33, 30, 29, 0.06);
}

.story-video-browser .browser-dots {
  display: flex;
  gap: 6px;
}

.story-video-browser .browser-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.story-video-browser .browser-dots .dot.red { background: #ff5f56; }
.story-video-browser .browser-dots .dot.yellow { background: #ffbd2e; }
.story-video-browser .browser-dots .dot.green { background: #27c93f; }

.story-video-browser .browser-address {
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(33, 30, 29, 0.03);
  padding: 4px 14px;
  border-radius: 6px;
  flex-grow: 1;
  text-align: center;
}

.story-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
}

.story-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Quote Block --- */
.story-quote-section {
  padding: 5rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--color-stroke-light);
  border-bottom: 1px solid var(--color-stroke-light);
}

.story-quote-container {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.story-quote-icon {
  font-size: 3rem;
  color: rgba(33, 30, 29, 0.1);
  font-family: var(--font-heading);
  line-height: 1;
}

.story-quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.55;
  letter-spacing: -0.3px;
}

.story-quote-attribution {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.story-quote-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid rgba(33, 30, 29, 0.06);
}

.story-quote-credit {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.story-quote-credit-name {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.story-quote-credit-role {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* --- 2-Column Story Content Grid --- */
.story-content-section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 10;
}

.story-content-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

/* Main Text Column */
.story-main-content {
  min-width: 0;
}

.story-main-content h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
  margin-top: 3.5rem;
}

.story-main-content h2:first-child {
  margin-top: 0;
}

.story-main-content p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.story-main-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.story-main-content li {
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 0.6rem;
}

.story-main-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.story-inline-quote {
  border-left: 3px solid rgba(33, 30, 29, 0.12);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 2rem 0;
}

.story-inline-quote p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Sidebar Column */
.story-sidebar {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Stats Widget Card */
.stats-widget-card {
  background: var(--color-white);
  border: 1px solid rgba(33, 30, 29, 0.06);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 10px 35px rgba(33, 30, 29, 0.04);
}

.stats-widget-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.stats-widget-items {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(33, 30, 29, 0.06);
}

.stat-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -1px;
}

.stat-value.color-green { color: #1e7033; }
.stat-value.color-purple { color: #7c3a91; }
.stat-value.color-blue { color: #3b82f6; }
.stat-value.color-amber { color: #d97706; }

.stat-label {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Sidebar CTA Card */
.sidebar-cta-card {
  background: var(--text-primary);
  border-radius: 24px;
  padding: 2.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.sidebar-cta-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: -0.3px;
}

.sidebar-cta-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.sidebar-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--color-white);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.sidebar-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* --- Related Stories Section --- */
.related-stories-section {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--color-stroke-light);
}

.related-stories-container {
  max-width: 1100px;
  margin: 0 auto;
}

.related-stories-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 3rem;
  text-align: center;
}

.related-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.related-story-card {
  background: #151210;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(33, 30, 29, 0.08);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.related-story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 129, 46, 0.15);
  border-color: rgba(255, 129, 46, 0.4);
}

.related-story-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.related-story-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-story-body {
  padding: 1.25rem 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.related-story-tag {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  width: fit-content;
  background-color: rgba(255, 129, 46, 0.15);
  color: var(--brand-color);
}

.related-story-name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.4;
}

.related-story-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Responsive Queries for Story Detail Pages --- */
@media (max-width: 990px) {
  .story-content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .story-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .stats-widget-card,
  .sidebar-cta-card {
    flex: 1;
    min-width: 280px;
  }
  .related-stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .story-hero {
    padding: 10rem 1.5rem 3.5rem;
  }
  .story-hero-title {
    font-size: 2rem;
  }
  .story-video-frame {
    padding: 0 1rem;
    margin-bottom: 2.5rem;
  }
  .story-quote-section {
    padding: 3.5rem 1.5rem;
  }
  .story-quote-text {
    font-size: 1.15rem;
  }
  .story-content-section {
    padding: 3.5rem 1.5rem;
  }
  .story-sidebar {
    flex-direction: column;
  }
  .stats-widget-card,
  .sidebar-cta-card {
    min-width: auto;
  }
  .related-stories-grid {
    grid-template-columns: 1fr;
  }
  .related-stories-section {
    padding: 4rem 1.5rem;
  }
}


/* ====================================================================
   CLIENT TESTIMONIALS SECTION
   ==================================================================== */

.client-testimonials-section {
  padding: 8rem 0 6rem;
  position: relative;
}

.client-testimonials-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.client-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 4rem;
  width: 100%;
}

.client-testimonial-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid rgba(33, 30, 29, 0.06);
  border-radius: 24px;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
  box-shadow: 0 4px 20px rgba(33, 30, 29, 0.03);
}

.client-testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 24px 24px 0 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.client-testimonial-card.card-accent-purple::before {
  background: linear-gradient(90deg, #a78bfa, #c4b5fd);
}
.client-testimonial-card.card-accent-amber::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.client-testimonial-card.card-accent-blue::before {
  background: linear-gradient(90deg, #60a5fa, #93c5fd);
}
.client-testimonial-card.card-accent-green::before {
  background: linear-gradient(90deg, #34d399, #6ee7b7);
}

.client-testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(33, 30, 29, 0.1);
  border-color: rgba(33, 30, 29, 0.12);
}

.client-testimonial-card:hover::before {
  opacity: 1;
}

.ct-logo-wrapper {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.75rem;
}

.ct-logo-wrapper img {
  max-height: 40px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.3);
  opacity: 0.8;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.client-testimonial-card:hover .ct-logo-wrapper img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

.ct-heading {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.ct-subheading {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.ct-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ct-read-more i {
  font-size: 0.72rem;
  transition: transform 0.3s ease;
}

.client-testimonial-card:hover .ct-read-more {
  opacity: 1;
  transform: translateY(0);
}

.client-testimonial-card:hover .ct-read-more i {
  transform: translateX(4px);
}

/* Client Testimonials Section - Responsive */
@media (max-width: 990px) {
  .client-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .client-testimonials-section {
    padding: 5rem 0 4rem;
  }
  .client-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
  }
  .client-testimonial-card {
    padding: 2rem 1.5rem 1.5rem;
  }
  .ct-read-more {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================
   GLOBAL MOBILE RESPONSIVENESS OVERHAUL
   ========================================= */

@media (max-width: 1024px) {
  .story-content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .story-sidebar {
    position: static;
    top: auto;
  }
}

@media (max-width: 990px) {
  /* Navigation & Header */
  .nav-menu { display: none !important; }
  .primary-btn-header, .secondary-btn-header { display: none !important; }
  .mobile-menu-toggle { display: block !important; }
  
  /* Footer Layout */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-links-side {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom-flex {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  /* Testimonial Page Header */
  .story-hero-container {
    padding: 3rem 1.5rem;
  }
  .story-hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Hero Sections */
  .hero-title {
    font-size: 2.4rem !important;
    line-height: 1.15 !important;
  }
  .hero-subtitle {
    font-size: 1.05rem !important;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .primary-button, 
  .hero-buttons .secondary-button {
    width: 100%;
    justify-content: center;
  }

  /* Bento & Templates Grids */
  .bento-grid {
    grid-template-columns: 1fr !important;
  }
  .bento-w-2, .bento-w-3 {
    grid-column: span 1 !important;
  }
  .templates-grid-two-column {
    grid-template-columns: 1fr !important;
  }

  /* Logo Graphics Inside Bento Cards */
  .yourco-logo-graphic, .haqq-logo-graphic, .acai-logo-graphic, .veris-logo-graphic {
    flex-direction: column;
    height: auto !important;
  }
  .yourco-graphic-divider, .haqq-graphic-divider, .acai-graphic-divider, .veris-graphic-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }

  /* Filter Bar for Templates */
  .filter-bar-container {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    padding: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .filter-btn {
    flex-shrink: 0;
  }

  /* Process & Pricing Layouts */
  .process-step {
    flex-direction: column !important;
    text-align: center;
    gap: 2rem;
  }
  .process-content-side {
    align-items: center;
  }
  .process-icon-circle {
    margin: 0 auto 1.5rem;
  }
  .pricing-container {
    padding: 0 1rem;
  }

  /* Footer Links */
  .footer-links-side {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Testimonial subpages grids */
  .related-stories-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 2rem;
  }

  /* Mobile overrides for footer container and mockups padding */
  .footer-container {
    padding: 0 1.5rem !important;
  }

  .templates-mock,
  .upload-mock,
  .delivery-mock {
    padding: 1.25rem !important;
  }

  .mock-card-floating {
    padding: 1rem !important;
  }
}

@media (max-width: 580px) {
  .cta-graphic-side {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem !important;
  }
  .section-title {
    font-size: 1.85rem !important;
  }
  .bento-card {
    padding: 1.5rem !important;
  }
  .story-hero-title {
    font-size: 2rem;
  }
}

/* =========================================
   RESPONSIVE HARDENING PASS
   Keeps every page usable from 320px phones to wide desktop.
   ========================================= */

img,
video,
svg {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  min-width: 0;
}

.main-content,
section,
footer {
  min-width: 0;
}

.nav-container,
.hero-container,
.process-container,
.templates-container,
.pricing-container,
.cta-container,
.footer-container,
.client-testimonials-container {
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.hero-title,
.section-title,
.card-title,
.cta-title,
.bento-title,
.story-hero-title,
.related-stories-title {
  overflow-wrap: anywhere;
}

.primary-button,
.secondary-button,
.pricing-cta-button,
.mobile-nav-cta,
.watch-video-btn,
.sidebar-cta-button {
  min-height: 44px;
  text-align: center;
}

.template-header,
.render-header,
.render-meta-row,
.ai-model-row,
.ai-step-item {
  min-width: 0;
}

.template-header > *,
.render-header > *,
.render-meta-row > *,
.ai-model-row > *,
.ai-step-item > * {
  min-width: 0;
}

@media (max-width: 1100px) {
  .nav-menu {
    gap: 1.1rem;
  }

  .nav-link {
    font-size: 0.86rem;
  }

  .primary-btn-header,
  .secondary-btn-header {
    padding-inline: 1rem;
  }
}

@media (max-width: 990px) {
  .header {
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }

  .nav-container {
    width: calc(100% - 1.5rem);
    border-radius: 16px;
  }

  .mobile-nav-drawer {
    left: 0.75rem;
    width: calc(100% - 1.5rem);
    max-height: min(72vh, 560px);
    overflow-y: auto;
  }

  .process-card {
    position: relative;
    top: auto;
  }

  .process-stack {
    max-width: 720px;
  }

  .card-mock-side {
    min-height: 280px;
  }

  .templates-grid-two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15.5px;
  }

  html,
  body {
    overflow-x: clip;
    overflow-y: visible;
  }

  .hero-section,
  .process-section,
  .templates-section,
  .pricing-section,
  .stories-section,
  .client-testimonials-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .hero-section {
    padding-top: 7.25rem;
  }

  .hero-container {
    gap: 2.25rem;
  }

  .hero-text-content,
  .scroll-reveal-container,
  .home-templates-copy {
    gap: 1.1rem;
  }

  .hero-title {
    max-width: 11ch;
    font-size: clamp(2rem, 9vw, 2.65rem) !important;
    letter-spacing: 0;
  }

  .section-title {
    font-size: clamp(1.9rem, 8vw, 2.55rem) !important;
    letter-spacing: 0;
  }

  .hero-subtitle,
  .section-subtitle,
  .cta-subtitle,
  .story-hero-subtitle {
    font-size: 1rem !important;
  }

  .hero-buttons,
  .cta-buttons {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-brands-section {
    margin-top: 2.5rem;
  }

  .brands-ticker-container {
    border-radius: 14px;
  }

  .ticker-logo-item {
    padding: 1rem 1.4rem !important;
  }

  .ticker-logo-img {
    max-width: 110px;
    height: 28px;
  }

  .scroll-reveal-pin-wrapper {
    height: 220vh;
  }

  .scroll-reveal-section {
    position: sticky;
    top: 0;
    min-height: 100svh;
    height: 100vh;
    height: 100svh;
    padding: 0;
  }

  .scroll-reveal-text {
    max-width: 12ch;
    font-size: clamp(1.75rem, 8vw, 2.45rem);
  }

  .process-stack {
    gap: 1.5rem;
  }

  .process-card {
    border-radius: 24px;
    padding: 1rem;
    gap: 1rem;
  }

  .card-text-side,
  .card-mock-ui {
    border-radius: 18px;
  }

  .card-title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .card-benefits li {
    align-items: flex-start;
  }

  .card-mock-side {
    min-height: 240px;
  }

  .mock-card-floating {
    max-width: 100%;
  }

  .ai-model-row,
  .ai-step-item,
  .render-meta-row {
    gap: 0.55rem;
  }

  .ai-step-item,
  .render-meta-row {
    flex-wrap: wrap;
  }

  .home-templates-layout {
    gap: 2rem;
  }

  .home-templates-showcase::before,
  .home-templates-showcase::after {
    width: 1.25rem;
  }

  .home-templates-grid {
    gap: 1.25rem;
    padding-bottom: 1.5rem;
  }

  .home-templates-grid .template-item {
    flex-basis: min(84vw, 520px);
    border-radius: 22px;
  }

  .home-templates-grid .template-header {
    align-items: flex-start;
    gap: 0.85rem;
  }

  .home-templates-grid .template-header > div:last-child {
    flex-shrink: 0;
  }

  .template-video-box {
    margin-bottom: 1rem;
  }

  .pricing-card-wrapper {
    margin-top: 2.5rem;
  }

  .pricing-card {
    border-radius: 24px;
  }

  .pricing-card.featured .pricing-card-top {
    padding: 2.25rem 1.5rem 1.75rem;
  }

  .price-value {
    flex-wrap: wrap;
    font-size: clamp(2.75rem, 14vw, 3.5rem);
  }

  .price-period {
    width: 100%;
    margin-left: 0;
    margin-top: 0.35rem;
  }

  .cta-card {
    border-radius: 24px;
  }

  .bento-card {
    min-height: 0;
    border-radius: 24px;
  }

  .bento-graphic {
    min-height: 170px;
  }

  .footer-section {
    padding-top: 4rem;
  }

  .footer-card {
    padding: 0 !important;
  }

  .footer-links-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .filter-bar-container {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
  }

  .client-testimonials-grid,
  .related-stories-grid {
    grid-template-columns: 1fr;
  }

  .story-hero {
    position: relative;
    padding-top: 7.5rem;
  }

  .story-author-row,
  .story-quote-attribution {
    align-items: flex-start;
  }

  .story-content-grid {
    gap: 2rem;
  }

  .story-main-content p,
  .story-main-content li {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .stats-widget-card,
  .sidebar-cta-card {
    padding: 1.5rem;
    border-radius: 18px;
  }
}

@media (max-width: 520px) {
  body {
    width: 100%;
  }

  .hero-container,
  .hero-text-content,
  .scroll-reveal-container,
  .process-container,
  .templates-container,
  .pricing-container,
  .cta-container,
  .footer-container,
  .client-testimonials-container {
    max-width: 100%;
  }

  .nav-container {
    width: calc(100% - 1rem);
    padding: 0.65rem 0.85rem;
  }

  .logo-link {
    font-size: 1.18rem;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .mobile-nav-drawer {
    left: 0.5rem;
    width: calc(100% - 1rem);
    padding: 1rem;
    gap: 0.85rem;
  }

  .trusted-badge,
  .brands-title,
  .card-step-num,
  .bento-tag,
  .plan-name,
  .footer-column-title,
  .story-category-tag,
  .related-story-tag {
    letter-spacing: 0.08em;
  }

  .hero-buttons,
  .cta-buttons {
    max-width: none;
  }

  .primary-button,
  .secondary-button {
    padding: 0.78rem 1rem;
  }

  .btn-icon-circle,
  .btn-icon-circle-dark {
    flex: 0 0 22px;
  }

  .process-card {
    padding: 0.75rem;
  }

  .card-text-side {
    padding: 1.5rem 1.1rem !important;
  }

  .templates-mock,
  .upload-mock,
  .delivery-mock,
  .card-mock-ui {
    padding: 1rem !important;
  }

  .mock-prompt-bar {
    padding: 0.65rem 0.75rem;
  }

  .ai-model-row {
    padding: 0.85rem 0.9rem;
  }

  .render-preview {
    height: 86px;
  }

  .home-templates-grid .template-item {
    flex-basis: 84vw;
    padding: 1rem;
  }

  .home-template-nav {
    display: none;
  }

  .template-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .template-brand {
    width: 100%;
  }

  .pricing-card-bottom {
    padding: 1.5rem 1.1rem;
  }

  .cta-card {
    padding: 2.5rem 1.25rem !important;
  }

  .footer-links-side {
    grid-template-columns: 1fr;
  }

  .footer-newsletter-form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .footer-newsletter-input {
    min-height: 42px;
    padding: 0 0.25rem;
  }

  .footer-newsletter-submit {
    justify-content: space-between;
    width: 100%;
  }

  .acai-logo-side,
  .acai-cta-side,
  .veris-logo-side,
  .veris-cta-side,
  .yourco-logo-side,
  .yourco-cta-side,
  .haqq-logo-side,
  .haqq-cta-side {
    padding: 1rem;
    width: 100%;
  }
}

@media (max-width: 380px) {
  html {
    font-size: 15px;
  }

  .hero-title {
    max-width: 10ch;
    font-size: 1.78rem !important;
  }

  .section-title {
    font-size: 1.7rem !important;
  }

  .scroll-reveal-text {
    max-width: 11ch;
    font-size: 1.45rem;
  }

  .home-templates-grid .template-item {
    flex-basis: 84vw;
    padding: 0.85rem;
  }

  .home-templates-grid .mock-card-floating,
  .mock-card-floating {
    padding: 0.85rem !important;
  }

  .bento-card,
  .client-testimonial-card {
    padding: 1.25rem !important;
  }

  .story-content-section,
  .story-quote-section,
  .related-stories-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
