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

html {
  font-size: 62.5%; /* 10px = 1rem */
  scroll-behavior: smooth;
}

body {
  font-family: -merano-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.7rem;
  line-height: 1.5;
  color: #1d1d1f;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* ===== VARIABLES ===== */
:root {
  /* Colors */
  --merano-black: #1d1d1f;
  --merano-white: #ffffff;
  --merano-gray: #86868b;
  --merano-light-gray: #f5f5f7;
  --merano-blue: #0071e3;
  --merano-dark-blue: #0077ed;
  --merano-red: #ff3b30;
  --merano-green: #34c759;
  --merano-purple: #5e5ce6;
  
  /* Typography */
  --heading-font: -merano-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body-font: -merano-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.8rem;
  --spacing-sm: 1.6rem;
  --spacing-md: 2.4rem;
  --spacing-lg: 4.8rem;
  --spacing-xl: 8rem;
  
  /* Container widths */
  --container-sm: 67.2rem; /* 672px */
  --container-md: 98rem;   /* 980px */
  --container-lg: 120rem;  /* 1200px */
  
  /* Border radius */
  --radius-sm: 0.4rem;
  --radius-md: 0.8rem;
  --radius-lg: 1.2rem;
  --radius-pill: 50rem;
  
  /* Transitions */
  --transition-short: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-long: 0.5s ease;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 5.6rem;
  letter-spacing: -0.002em;
}

h2 {
  font-size: 4.8rem;
  letter-spacing: -0.002em;
}

h3 {
  font-size: 4rem;
  letter-spacing: -0.001em;
}

h4 {
  font-size: 3.2rem;
  letter-spacing: -0.001em;
}

h5 {
  font-size: 2.4rem;
}

h6 {
  font-size: 2rem;
}

p {
  margin-bottom: var(--spacing-md);
}

.text-center {
  text-align: center;
}

.text-light {
  font-weight: 300;
}

.text-regular {
  font-weight: 400;
}

.text-medium {
  font-weight: 500;
}

.text-semibold {
  font-weight: 600;
}

.text-bold {
  font-weight: 700;
}

.text-xl {
  font-size: 2.4rem;
}

.text-lg {
  font-size: 2rem;
}

.text-md {
  font-size: 1.7rem;
}

.text-sm {
  font-size: 1.4rem;
}

.text-xs {
  font-size: 1.2rem;
}

.text-gray {
  color: var(--merano-gray);
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container-md);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-sm {
  max-width: var(--container-sm);
}

.container-lg {
  max-width: var(--container-lg);
}

.section {
  padding: var(--spacing-lg) 0;
}

.section-hero {
  padding: var(--spacing-xl) 0;
  text-align: center;
}

/* Grid system */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

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

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

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Screenshots peek section */
.screenshots-peek {
  position: relative;
  z-index: 1;
  margin-bottom: -85px; /* Controls how much of the images peek out */
}

.screenshots-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 100%;
}

.screenshots-section {
  padding-top: 4rem; 
  padding-bottom: 4rem;
}

.screenshot-img {
  width: calc(33.333% - 0.667rem);
  height: auto;
}

.app-card-img {
  width: 100%;
  height: auto;
}

.app-card {
  width: calc(33.333% - 0.667rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem; /* Spacing between title, image, and button */
}

.app-title {
  font-size: 2vw; /* Makes the title scale with viewport width */
  margin: 0;
  text-align: center;
  white-space: nowrap; /* Keeps the title on one line */
  min-font-size: 16px; /* Optional: prevents title from getting too small */
  max-font-size: 32px; /* Optional: prevents title from getting too large */
}

.download-button {
  width: 80%; /* Adjust this to scale the button size relative to the card */
  height: auto;
  max-width: 150px; /* Optional: prevents button from getting too large */
}

/* Ensure the about section appears on top */
#about {
  position: relative;
  z-index: 2;
}

/* Reduce space between hero and screenshots */
.section-hero {
  padding-bottom: var(--spacing-md); /* Reduced from var(--spacing-xl) */
}

/* Flexbox utilities */
.flex {
  display: flex;
}

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

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

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.gap-xs {
  gap: var(--spacing-xs);
}

.gap-sm {
  gap: var(--spacing-sm);
}

.gap-md {
  gap: var(--spacing-md);
}

.gap-lg {
  gap: var(--spacing-lg);
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(29, 29, 31, 0.95);
  backdrop-filter: blur(20px);
  color: white;
  padding: 1.5rem;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text {
  flex: 1;
  font-size: 1.4rem;
  line-height: 1.4;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 2rem;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-btn-accept {
  background: #0071e3;
  color: white;
}

.cookie-btn-accept:hover {
  background: #0077ed;
}

.cookie-btn-decline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* Spacing utilities */
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mx-auto { margin-left: auto; margin-right: auto; }

.pt-xs { padding-top: var(--spacing-xs); }
.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }
.pt-xl { padding-top: var(--spacing-xl); }

.pb-xs { padding-bottom: var(--spacing-xs); }
.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }

/* ===== COMPONENTS ===== */

/* Navigation */
.nav {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 4.4rem;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.nav-logo {
  height: 4.4rem;
  display: flex;
  align-items: center;
}

.nav-logo a {
  display: flex;
  align-items: center;
}

.nav-logo svg {
  height: 1.8rem;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
}

.nav-link {
  color: var(--merano-white);
  text-decoration: none;
  font-size: 1.2rem;
  opacity: 0.8;
  transition: opacity var(--transition-short);
}

.nav-link:hover {
  opacity: 1;
}

/* Drop Down Menu */

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 1rem 0.5rem;
  white-space: nowrap;
}

/* Dropdown Styles */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: saturate(180%) blur(20px);
  border-radius: 8px;
  padding: 1rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all var(--transition-medium);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  color: var(--merano-white);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  opacity: 0.8;
  transition: all var(--transition-short);
}

.dropdown-item:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

/* Dropdown arrow indicator */
.nav-link.has-dropdown::after {
  content: '▼';
  font-size: 0.8rem;
  margin-left: 0.5rem;
  transition: transform var(--transition-short);
}

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

/* Device Compatibility Styles */
.compatibility-card {
  background: var(--merano-white);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.compatibility-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.compatibility-emoji {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
}

.text-green {
  color: var(--merano-green);
}

.text-red {
  color: var(--merano-red);
}

.device-category-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--merano-black);
  margin-bottom: var(--spacing-xs);
}

.device-list {
  list-style: none;
  padding-left: 0;
}

.device-list li {
  font-size: 1.5rem;
  color: var(--merano-gray);
  margin-bottom: 0.4rem;
  padding-left: var(--spacing-sm);
  text-indent: -var(--spacing-sm);
}

.device-list li::before {
  content: "• ";
  color: var(--merano-gray);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 1.7rem;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-short);
  border: none;
  outline: none;
}

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

.btn-primary:hover {
  background-color: var(--merano-dark-blue);
}

.btn-secondary {
  background-color: transparent;
  color: var(--merano-blue);
}

.btn-secondary:hover {
  text-decoration: underline;
}

.btn-lg {
  padding: 1.2rem 2.4rem;
  font-size: 1.9rem;
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 1.5rem;
}

/* Cards */
.card {
  background-color: var(--merano-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-img {
  width: 100%;
  height: auto;
}

.card-content {
  padding: var(--spacing-md);
}

.card-title {
  font-size: 2.0rem;
  margin-bottom: var(--spacing-xs);
}

.card-text {
  color: var(--merano-gray);
  margin-bottom: var(--spacing-sm);
}

.card-sm {
  max-width: 28rem;
  height: 26rem;
}

.card-md {
  max-width: 36rem;
  height: 32rem;
}

.card-lg {
  max-width: 42rem;
  height: 38rem;
}

/* Gameplay sections spacing */
.gameplay-section {
  padding: var(--spacing-sm) 0;
}

.gameplay-section:first-child {
  padding-top: 0;
}

.gameplay-section:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* ===== CAROUSEL COMPONENT ===== */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
  padding: 0 var(--spacing-lg);
}

.carousel-slide {
  flex: 0 0 auto;
  box-sizing: border-box;
  scroll-snap-align: start;
  padding: var(--spacing-sm);
}

.carousel-icon {
  width: 7rem;
  height: 7rem;
  object-fit: contain;
  margin: 0 auto;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 var(--spacing-sm);
  pointer-events: none;
}

.carousel-prev,
.carousel-next {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 3.2rem;
  height: 3.2rem;
  font-size: 1.6rem;
  cursor: pointer;
  pointer-events: all;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: var(--spacing-sm);
}

.carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background-color: var(--merano-gray);
  opacity: 0.5;
  transition: opacity 0.2s;
  cursor: pointer;
}

.carousel-dot.active {
  opacity: 1;
  background-color: var(--merano-black);
}


/* Product display */
.product-display {
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.product-title {
  font-size: 5.6rem;
  margin-bottom: var(--spacing-xs);
}

.product-subtitle {
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--merano-gray);
  margin-bottom: var(--spacing-md);
}

.product-image {
  margin: var(--spacing-lg) auto;
  max-width: 100%;
  height: auto;
}

.product-cta {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

/* Feature section */
.feature-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--merano-light-gray);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item img {
  /* never larger than 96px, never smaller than 64px, but fluid in between */
  width: clamp(64px, 15vw, 72px);
  height: auto;
  object-fit: contain;
  margin: 0 auto 0.6rem;   /* center if block-level */
}

.feature-item {
  text-align: center;
}

.feature-icon {
  font-size: 4.8rem;
  margin-bottom: var(--spacing-sm);
  color: var(--merano-blue);
}

.feature-title {
  font-size: 2.4rem;
  margin-bottom: var(--spacing-xs);
}

.feature-text {
  color: var(--merano-gray);
}



/* Footer */
.footer {
  background-color: var(--merano-light-gray);
  padding: var(--spacing-lg) 0;
  font-size: 1.2rem;
}

.footer-container {
  max-width: var(--container-md);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-md);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--merano-black);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: var(--spacing-xs);
}

.footer-link a {
  color: var(--merano-gray);
  text-decoration: none;
  transition: color var(--transition-short);
}

.footer-link a:hover {
  color: var(--merano-black);
}

.footer-legal {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid #d2d2d7;
  color: var(--merano-gray);
}

.footer-logo {
  display: block;
  margin: 0 auto;
  max-width: 150px; /* Adjust to your desired size */
  padding: 5rem 0; /* Adds space above and below */
}

/* ===== UTILITIES ===== */
.bg-white {
  background-color: var(--merano-white);
}

.bg-light-gray {
  background-color: var(--merano-light-gray);
}

.bg-black {
  background-color: var(--merano-black);
  color: var(--merano-white);
}

.bg-blue {
  background-color: var(--merano-blue);
  color: var(--merano-white);
}

.bg-gradient-blue {
  background: linear-gradient(135deg, #0071e3, #42a1ec);
  color: var(--merano-white);
}

.shadow-sm {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shadow-md {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-pill {
  border-radius: var(--radius-pill);
}

.overflow-hidden {
  overflow: hidden;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn var(--transition-medium);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp var(--transition-medium);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 767px) {
  html {
    font-size: 58%;
  }
  
  h1 {
    font-size: 4.2rem;
  }
  
  h2 {
    font-size: 3.6rem;
  }
  
  h3 {
    font-size: 3rem;
  }
  
  .product-title {
    font-size: 4.2rem;
  }
  
  .product-subtitle {
    font-size: 2.4rem;
  }
  
  .section-hero {
    padding: var(--spacing-lg) 0;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  html {
    font-size: 60%;
  }
}

@media (min-width: 992px) {
  html {
    font-size: 62.5%;
  }
}

/* ===== PRODUCT FEATURE SECTION STYLES ===== */

.product-feature-section {
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.product-feature-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.product-feature-eyebrow {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--merano-black);
}

.product-feature-headline {
  font-size: 5.6rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--merano-black);
  margin-bottom: var(--spacing-md);
}

.product-feature-description {
  max-width: 80rem;
  margin: 0 auto var(--spacing-lg);
}

.product-feature-description p {
  font-size: 2rem;
  line-height: 1.5;
  color: var(--merano-gray);
  font-weight: 400;
}

.product-feature-description strong {
  color: var(--merano-black);
  font-weight: 600;
}

.product-feature-image-container {
  width: 100%;
  max-width: 100rem;
  margin: 0 auto var(--spacing-xl);
  padding: 0 var(--spacing-md);
  position: relative;
}

.product-feature-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1));
  /* Remove any existing box-shadow and border-radius */
  box-shadow: none;
  border-radius: 0;
}


.product-feature-callouts {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.product-feature-callout {
  padding: var(--spacing-md);
  /* Removed hover transform effect as per user feedback */
}

.callout-title {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--merano-black);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid #d2d2d7; /* Added thin line under title as per user feedback */
}

.callout-text {
  font-size: 1.7rem; /* Adjusted to match Apple's font size */
  line-height: 1.47; /* Adjusted to match Apple's line height */
  font-weight: 600; /* Adjusted to match Apple's font weight */
  color: var(--merano-gray);
}

/* Responsive adjustments for Product Feature section */
@media (min-width: 992px) {
  .product-feature-callouts {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg); /* Increased gap between columns */
  }
  
  .product-feature-callout {
    padding: var(--spacing-md) var(--spacing-sm);
  }
}

@media (max-width: 767px) {
  .product-feature-eyebrow {
    font-size: 2.4rem;
  }
  
  .product-feature-headline {
    font-size: 3.6rem;
  }
  
  .product-feature-description p {
    font-size: 1.8rem;
  }
  
  .product-feature-callout {
    text-align: center;
    margin-bottom: var(--spacing-md);
  }
}

/* Video Section Styles (for the horses running section) */
.video-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.video-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  color: var(--merano-white);
  text-align: center;
  padding: 0 var(--spacing-md);
}

.video-headline {
  font-size: 4.8rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.video-headline.visible {
  opacity: 1;
  transform: translateY(0);
}

.video-phone {
  position: absolute;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 30rem;
  z-index: 3;
  transition: bottom 1s ease;
}

.video-phone.visible {
  bottom: 10%;
}

/* Scroll-triggered animation classes */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax effect */
.parallax-container {
  position: relative;
  overflow: hidden;
  height: 100vh;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  transform: translateY(0);
  will-change: transform;
}

/* Zoom effect for video section */
.zoom-effect {
  transform: scale(1);
  transition: transform 1s ease;
}

.zoom-effect.zoomed {
  transform: scale(0.8);
}

/* ————————————————————————
   Optimized-video section
   ———————————————————————— */
#optimized-video {
  padding: 4rem 0;
  background: none;
}

#optimized-video .container {
  max-width: 960px;
  margin: 0 auto;
}

#optimized-video h3 {
  margin-bottom: 1.5rem;
}

.video-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.responsive-video {
  display: block;
  width: 100%;
  height: auto;
}

/* Feature Images Section */
.feature-images {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  width: 80vw;
  max-width: 1200px;
  margin: 3rem auto;
  box-sizing: border-box;
}

.feature-images img {
  height: auto;
  object-fit: contain; /* Prevents distortion */
  max-width: 100% !important; /* Ensure images don't overflow their containers */
  overflow: hidden; /* Prevent any overflow */
}

.feature-images img:first-child {
  /* Phone image - kitchen-scan.png (334x690) */
  width: calc(334 / (334 + 1154) * 100%) !important;
  max-width: calc(334 / (334 + 1154) * 100%) !important;
  flex: 0 0 calc(334 / (334 + 1154) * 100%);
}

.feature-images img:last-child {
  /* Floor plan image - ezspace-room.png (1154x690) */
  width: calc(1154 / (334 + 1154) * 100%) !important;
  max-width: calc(1154 / (334 + 1154) * 100%) !important;
  flex: 0 0 calc(1154 / (334 + 1154) * 100%);
}

/* Mobile responsive - stack vertically with phone on top */
@media (max-width: 768px) {
  .feature-images {
    flex-direction: column;
    align-items: center;
    width: 90%;
    gap: 2rem;
  }
  
  .feature-images img:first-child,
  .feature-images img:last-child {
    flex: none;
    width: 100%;
    max-width: 400px; /* Reasonable max width on mobile */
  }
}

/* Tablet responsive */
@media (max-width: 992px) and (min-width: 769px) {
  .feature-images {
    width: 85%;
    gap: 1.5rem;
  }
}

/* =========================================================
   Four-product “mini hero” bands
   ========================================================= */

/* 1. Overall band spacing + optional light-gray alternation */
.product-band {
  padding-block: clamp(4rem, 8vw, 7rem);   /* fluid top/bottom space */
}
.product-band.bg-light-gray {
  background: #f7f7f7;
}

/* 2. Two-column grid that collapses gracefully on mobile */
.product-band .container {
  max-width: 1400px;        /* wider than the old 992-px bootstrapish cap */
  margin-inline: auto;
}

.grid-2 {
  display: grid;
  gap: clamp(2rem, 4vw, 5rem);
}

/* 3. Images always scale—but never stretch */
.product-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* 4. Desktop breakpoint: lock into two columns */
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;    /* vertically centre the copy beside the phone */
  }
}

/* For screens smaller than 1600px */
@media (min-width: 768px) and (max-width: 1599px) {
  .product-copy {
    padding: 0 4rem;
  }
}

/* 5. Optional fine-tuning for ultra-wide monitors */
@media (min-width: 1600px) {
  .product-copy {
    font-size: 1.15rem;     /* let copy breathe a bit on cinema displays */
    padding: 0 8rem;
    //max-width: 64ch;        /* avoid very long line-lengths */
  }
}