/* 3matchpuzzle — Modern iOS-style redesign to match app */

:root{
  /* Deep, rich blue palette matching the app */
  --bg1:#030d1f;
  --bg2:#051628;
  --bg3:#081d32;
  --card:#0a1e35ee;
  --card-hover:#0d2540ee;
  --card-soft:#0f2944dd;
  --ink:#f0f7ff;
  --muted:#a8c5e6;
  --muted-dark:#7a9bc4;
  
  /* Accent colors - matching app's blue theme */
  --accent:#4da6ff;
  --accent-hover:#66b3ff;
  --accent-glow:#3d8cff;
  --accent-2:#357abd;
  
  /* Glass effects */
  --glass-border:rgba(255,255,255,.15);
  --glass-shine:rgba(255,255,255,.08);
  
  /* Shadows - more depth like iOS */
  --shadow-sm:0 2px 8px rgba(0,0,0,.3);
  --shadow:0 8px 32px rgba(0,0,0,.4);
  --shadow-lg:0 16px 48px rgba(0,0,0,.5);
  --shadow-xl:0 24px 64px rgba(0,0,0,.6);
  --glow:0 0 32px rgba(77,166,255,.3);
  
  /* Border radius - matching app's rounded style */
  --r-xs:8px;
  --r-sm:12px;
  --r-md:16px;
  --r-lg:20px;
  --r-xl:24px;
  --r-pill:999px;
  
  /* Spacing */
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:20px;
  --space-6:24px;
  --space-8:32px;
  --space-10:40px;
  --space-12:48px;
  --space-16:64px;
  
  /* Layout */
  --container-max:1240px;
  --header-h:72px;
  --footer-h:0px;
  
  /* Device shots */
  --shot-max-h-desktop:min(70vh,800px);
  --shot-max-h-tablet:62vh;
  --shot-max-h-mobile:56vh;
  --shot-max-height:min(70vh,800px);
  --carousel-slide-width:min(360px, max(240px, 28vw));
  --carousel-gap:clamp(16px, 3vw, 28px);
}

/* Base styles */
html{
  height:100%;
  color-scheme:dark;
  background:radial-gradient(140% 140% at 50% -20%, #0d2440 0%, #030d1f 50%, #010814 100%);
  scroll-behavior:smooth;
}

body{
  min-height:100%;
  margin:0;
  font-family:-apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  font-size:16px;
  line-height:1.65;
  color:var(--ink);
  background:none;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

main{display:block;}

img,svg,video{max-width:100%; height:auto; display:block;}
img{image-rendering:auto;}

/* Typography - iOS style */
p,li{
  color:var(--muted);
  font-size:clamp(15px,1.5vw,17px);
  line-height:1.65;
}

h1,h2,h3{
  margin:0;
  color:var(--ink);
  font-weight:700;
  letter-spacing:-0.015em;
  line-height:1.1;
}

h1{
  font-size:clamp(36px,5vw,64px);
  font-weight:800;
  letter-spacing:-0.025em;
  background:linear-gradient(180deg, #ffffff 0%, #c5deff 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

h2{
  font-size:clamp(26px,3.2vw,42px);
  font-weight:700;
  line-height:1.15;
}

h3{
  font-size:clamp(19px,2.2vw,26px);
  font-weight:600;
  line-height:1.3;
}

strong{color:var(--ink); font-weight:600;}

a{
  color:var(--ink);
  text-decoration:none;
  transition:color 180ms cubic-bezier(0.4,0,0.2,1);
}
a:hover{color:#fff;}

ul{padding-left:1.2rem; margin:var(--space-4) 0;}
ul li{margin-bottom:var(--space-3);}

button, [role="button"]{
  font:inherit;
  cursor:pointer;
  background:none;
  border:none;
  color:inherit;
}

:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:4px;
  border-radius:var(--r-sm);
}

::-webkit-scrollbar{width:12px; height:12px;}
::-webkit-scrollbar-track{background:rgba(0,0,0,.2);}
::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.16);
  border-radius:8px;
  border:2px solid transparent;
  background-clip:padding-box;
}
::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.24); background-clip:padding-box;}

/* Layout helpers */
.container{
  width:100%;
  max-width:var(--container-max);
  margin:0 auto;
  padding:0 clamp(20px,5vw,60px);
}

.section-pad{padding:clamp(var(--space-12),10vw,var(--space-16)) 0;}

.stack{
  display:flex;
  flex-direction:column;
  gap:var(--space-5);
}

.center{text-align:center;}
.small{font-size:0.9rem; line-height:1.5;}

.grid-slim{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--space-8);
  align-items:start;
}

@media (max-width:992px){
  .grid-slim{grid-template-columns:1fr;}
}

/* Header - Glass morphism style */
.site-header{
  position:sticky;
  top:0;
  z-index:60;
  min-height:var(--header-h);
  background:linear-gradient(180deg, rgba(3,13,31,.92), rgba(3,13,31,.85));
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  border-bottom:1px solid var(--glass-border);
  box-shadow:0 4px 24px rgba(0,0,0,.3);
}

.site-header-inner{
  display:flex;
  align-items:center;
  gap:var(--space-4);
  min-height:var(--header-h);
}

.site-header .brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  transition:transform 200ms cubic-bezier(0.4,0,0.2,1);
}

.site-header .brand:hover{
  transform:translateY(-2px);
}

.site-header .brand-icon{
  width:32px;
  height:32px;
  border-radius:8px;
  box-shadow:0 2px 8px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.1);
  image-rendering:auto;
}

.site-header .brand-name{
  font-weight:700;
  font-size:17px;
  letter-spacing:-0.01em;
  color:var(--ink);
}

.site-nav{
  display:flex;
  align-items:center;
  gap:var(--space-2);
  margin-left:auto;
  margin-right:var(--space-4);
}

.site-nav a{
  padding:10px 18px;
  border-radius:var(--r-pill);
  color:var(--muted);
  font-weight:500;
  font-size:15px;
  transition:all 200ms cubic-bezier(0.4,0,0.2,1);
}

.site-nav a.active,
.site-nav a[aria-current="page"]{
  color:var(--ink);
  background:rgba(255,255,255,.1);
  box-shadow:inset 0 1px 2px rgba(255,255,255,.1);
}

.site-nav a:hover{
  color:var(--ink);
  background:rgba(255,255,255,.08);
  transform:translateY(-1px);
}

.site-nav-cta{
  display:flex;
  align-items:center;
  gap:var(--space-3);
}

/* Buttons - iOS pill style matching app */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:var(--space-2);
  padding:14px 24px;
  border-radius:var(--r-pill);
  font-weight:600;
  font-size:15px;
  transition:all 220ms cubic-bezier(0.4,0,0.2,1);
  text-transform:none;
  white-space:nowrap;
  border:none;
  cursor:pointer;
}

.btn-primary{
  background:linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color:#ffffff;
  box-shadow:0 4px 16px rgba(77,166,255,.4), inset 0 1px 0 rgba(255,255,255,.2);
  text-shadow:0 1px 2px rgba(0,0,0,.2);
}

.btn-primary:hover{
  background:linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
  box-shadow:0 6px 24px rgba(77,166,255,.5), inset 0 1px 0 rgba(255,255,255,.25);
  transform:translateY(-2px);
}

.btn-primary:active{
  transform:translateY(0);
  box-shadow:0 2px 8px rgba(77,166,255,.3), inset 0 1px 0 rgba(255,255,255,.15);
}

.btn-ghost{
  background:rgba(255,255,255,.08);
  color:var(--ink);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 2px 8px rgba(0,0,0,.2);
  border:1px solid var(--glass-border);
}

.btn-ghost:hover{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.2);
  transform:translateY(-2px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 4px 16px rgba(0,0,0,.3);
}

.btn-ghost:active{
  transform:translateY(0);
  background:rgba(255,255,255,.06);
}

.btn .hint{
  font-size:0.8rem;
  color:rgba(255,255,255,.7);
  font-weight:500;
}

.nav-toggle{
  display:none;
  margin-left:auto;
  padding:12px 16px;
  border-radius:var(--r-md);
  border:1px solid var(--glass-border);
  background:rgba(255,255,255,.08);
  color:var(--ink);
  font-weight:500;
  transition:all 180ms ease;
}

.nav-toggle:hover{
  background:rgba(255,255,255,.12);
  transform:translateY(-1px);
}

/* Mobile menu */
#mobileMenu.site-nav-mobile{
  display:none;
  position:fixed;
  inset:calc(var(--header-h) + 16px) clamp(20px,6vw,32px) auto clamp(20px,6vw,32px);
  background:var(--card);
  border-radius:var(--r-xl);
  border:1px solid var(--glass-border);
  padding:var(--space-5);
  box-shadow:var(--shadow-xl);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  z-index:80;
}

#mobileMenu.site-nav-mobile.open{
  display:flex;
  flex-direction:column;
  gap:var(--space-3);
}

#mobileMenu.site-nav-mobile a{
  padding:14px 18px;
  border-radius:var(--r-pill);
  color:var(--ink);
  background:rgba(255,255,255,.06);
  font-weight:500;
  transition:all 180ms ease;
  text-align:center;
}

#mobileMenu.site-nav-mobile a:hover,
#mobileMenu.site-nav-mobile a.active{
  background:rgba(255,255,255,.12);
  transform:translateX(4px);
}

@media (max-width:992px){
  .site-nav{display:none;}
  .site-nav-cta{display:none;}
  .nav-toggle{display:inline-flex;}
}

/* Hero section - enhanced */
.hero{
  position:relative;
  overflow:hidden;
  padding-top:var(--space-8);
}

.hero::before{
  content:"";
  position:absolute;
  top:-40%;
  left:50%;
  transform:translateX(-50%);
  width:120%;
  height:140%;
  background:radial-gradient(
    60% 50% at 50% 30%,
    rgba(77,166,255,.18) 0%,
    rgba(53,122,189,.08) 40%,
    transparent 70%
  );
  pointer-events:none;
  animation:heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow{
  0%{opacity:.8; transform:translateX(-50%) scale(1);}
  100%{opacity:1; transform:translateX(-50%) scale(1.05);}
}

.hero::after{
  content:"";
  position:absolute;
  inset:auto 0 -240px 0;
  height:480px;
  background:radial-gradient(
    70% 60% at 50% 0,
    rgba(77,166,255,.15),
    rgba(77,166,255,.08) 50%,
    transparent 100%
  );
  pointer-events:none;
}

.hero canvas#stars{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  opacity:.6;
}

.hero-content{
  position:relative;
  z-index:2;
  padding:clamp(var(--space-12),9vw,var(--space-16)) 0 var(--space-16);
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,0.85fr);
  gap:clamp(var(--space-10),7vw,var(--space-16));
  align-items:center;
}

.hero-copy{
  display:flex;
  flex-direction:column;
  gap:var(--space-8);
}

.hero-copy p{
  margin:0;
  max-width:50ch;
  font-size:clamp(16px,1.6vw,19px);
  line-height:1.7;
  color:var(--muted);
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-4);
  align-items:center;
}

.hero-actions .btn{
  min-width:200px;
  padding:16px 28px;
  font-size:16px;
}

.hero-secondary{
  display:flex;
  flex-direction:column;
  gap:var(--space-6);
  align-items:center;
}

.hero-device{
  width:100%;
  display:flex;
  justify-content:center;
  position:relative;
}

.hero-device::before{
  content:"";
  position:absolute;
  inset:-10% -10%;
  background:radial-gradient(
    circle at center,
    rgba(77,166,255,.2) 0%,
    transparent 60%
  );
  filter:blur(40px);
  pointer-events:none;
  z-index:0;
}

@media (max-width:1200px){
  .hero-grid{
    grid-template-columns:1fr;
    gap:var(--space-12);
  }
  .hero-secondary{
    max-width:440px;
    margin:0 auto;
  }
}

@media (max-width:768px){
  .hero-actions{
    flex-direction:column;
    align-items:stretch;
    width:100%;
  }
  .hero-actions .btn{
    width:100%;
    justify-content:center;
  }
}

/* Device + shots - refined */
.shot{
  position:relative;
  width:100%;
  max-width:calc(var(--shot-max-height, var(--shot-max-h-desktop)) * (390 / 844));
  aspect-ratio:390/844;
  border-radius:var(--r-xl);
  overflow:hidden;
  background:linear-gradient(135deg, #0a1f3a 0%, #051221 100%);
  box-shadow:
    0 24px 64px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,255,255,.08),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.shot > picture,
.shot > img,
.shot > video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  background:#010810;
}

.shot > picture{display:block;}
.shot > picture img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}

.hero-device .shot{
  --shot-max-height:var(--shot-max-h-desktop);
  border-radius:calc(var(--r-xl) * 1.2);
  position:relative;
  z-index:1;
}

@media (max-width:992px){
  .hero-device .shot{
    --shot-max-height:var(--shot-max-h-tablet);
    border-radius:var(--r-xl);
  }
}

@media (max-width:768px){
  .hero-device .shot{
    --shot-max-height:var(--shot-max-h-mobile);
    border-radius:var(--r-lg);
  }
}

/* Metrics - glass cards */
.metrics{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:var(--space-4);
}

.metric-card{
  background:var(--card);
  border:1px solid var(--glass-border);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow), inset 0 1px 0 var(--glass-shine);
  padding:var(--space-6) var(--space-5);
  text-align:left;
  backdrop-filter:blur(12px) saturate(150%);
  -webkit-backdrop-filter:blur(12px) saturate(150%);
  transition:all 220ms cubic-bezier(0.4,0,0.2,1);
}

.metric-card:hover{
  transform:translateY(-4px);
  background:var(--card-hover);
  box-shadow:var(--shadow-lg), inset 0 1px 0 var(--glass-shine);
  border-color:rgba(255,255,255,.18);
}

.metric-card strong{
  font-size:clamp(32px,3.5vw,48px);
  display:block;
  margin-bottom:var(--space-2);
  background:linear-gradient(135deg, var(--accent) 0%, #66b3ff 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  font-weight:800;
}

.metric-card span{
  color:var(--muted);
  font-size:0.9rem;
  line-height:1.5;
}

@media (max-width:992px){
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width:600px){
  .metrics{grid-template-columns:1fr;}
}

/* Cards - enhanced glass effect */
.card{
  background:var(--card);
  border:1px solid var(--glass-border);
  border-radius:var(--r-xl);
  box-shadow:var(--shadow-lg), inset 0 1px 0 var(--glass-shine);
  backdrop-filter:blur(16px) saturate(160%);
  -webkit-backdrop-filter:blur(16px) saturate(160%);
  transition:all 220ms cubic-bezier(0.4,0,0.2,1);
}

.card:hover{
  border-color:rgba(255,255,255,.18);
  box-shadow:var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,.12);
}

.card.pad{
  padding:clamp(var(--space-6),5vw,var(--space-10));
}

.card h2{
  margin-bottom:var(--space-5);
}

/* How it works - enhanced cards */
.how-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--space-5);
}

.how-card{
  border-radius:var(--r-lg);
  background:var(--card-soft);
  border:1px solid var(--glass-border);
  padding:var(--space-6);
  box-shadow:var(--shadow), inset 0 1px 0 var(--glass-shine);
  backdrop-filter:blur(12px) saturate(150%);
  -webkit-backdrop-filter:blur(12px) saturate(150%);
  display:flex;
  flex-direction:column;
  gap:var(--space-4);
  transition:all 220ms cubic-bezier(0.4,0,0.2,1);
}

.how-card:hover{
  transform:translateY(-4px);
  background:var(--card-hover);
  border-color:rgba(255,255,255,.2);
  box-shadow:var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.12);
}

.how-card svg{
  width:72px;
  height:72px;
  filter:drop-shadow(0 4px 12px rgba(0,0,0,.3));
}

.how-card h3{
  color:var(--ink);
}

.how-card p{
  margin:0;
  line-height:1.6;
}

@media (max-width:992px){
  .how-grid{grid-template-columns:1fr;}
}

/* Carousel - modernized */
.carousel{
  display:flex;
  flex-direction:column;
  gap:var(--space-5);
}

.carousel-viewport{
  position:relative;
  overflow:hidden;
  border-radius:var(--r-xl);
  border:1px solid var(--glass-border);
  background:rgba(5,15,28,.85);
  backdrop-filter:blur(16px) saturate(150%);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
  padding:clamp(var(--space-4),4vw,var(--space-8));
  box-shadow:var(--shadow-lg), inset 0 1px 0 var(--glass-shine);
  display:flex;
  justify-content:center;
  width:min(100%, calc(3 * var(--carousel-slide-width) + 2 * var(--carousel-gap) + 64px));
  max-width:calc(3 * var(--carousel-slide-width) + 2 * var(--carousel-gap) + 64px);
  margin:0 auto;
}

.carousel-track{
  display:flex;
  gap:var(--carousel-gap);
  align-items:center;
  transition:transform 450ms cubic-bezier(0.22,0.61,0.36,1);
  will-change:transform;
  touch-action:pan-y;
  padding:var(--space-4) 0;
}

.carousel-slide{
  flex:0 0 var(--carousel-slide-width);
  max-width:var(--carousel-slide-width);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 350ms cubic-bezier(0.22,0.61,0.36,1);
  transform:scale(.92);
  opacity:.65;
}

.carousel-slide.is-active{
  transform:scale(1);
  opacity:1;
}

.carousel-slide .shot{
  width:100%;
  max-width:100%;
}

.carousel-controls{
  display:flex;
  align-items:center;
  gap:var(--space-4);
  justify-content:space-between;
  flex-wrap:wrap;
}

.carousel-btn{
  border-radius:var(--r-pill);
  border:1px solid var(--glass-border);
  background:rgba(255,255,255,.08);
  padding:12px 18px;
  color:var(--ink);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:52px;
  font-weight:600;
  transition:all 200ms cubic-bezier(0.4,0,0.2,1);
  box-shadow:inset 0 1px 0 var(--glass-shine);
}

.carousel-btn:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.14);
  box-shadow:0 4px 16px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.12);
}

.carousel-btn:active{
  transform:translateY(0);
}

.carousel-dots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:var(--space-3);
  flex:1;
  min-width:180px;
}

.carousel-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  border:1px solid var(--glass-border);
  background:rgba(255,255,255,.2);
  transition:all 200ms cubic-bezier(0.4,0,0.2,1);
  cursor:pointer;
}

.carousel-dot:hover{
  background:rgba(255,255,255,.3);
  transform:scale(1.15);
}

.carousel-dot[aria-selected="true"]{
  background:var(--accent);
  border-color:var(--accent);
  box-shadow:0 0 12px rgba(77,166,255,.6), 0 2px 4px rgba(0,0,0,.3);
  transform:scale(1.3);
}

.carousel-status{
  color:var(--muted);
  font-size:0.85rem;
  text-align:right;
  flex:1;
  font-weight:500;
}

@media (max-width:1024px){
  :root{
    --carousel-slide-width:min(320px, max(220px, 34vw));
  }
}

@media (max-width:768px){
  :root{
    --carousel-slide-width:min(100%, 78vw);
    --carousel-gap:clamp(12px, 4vw, 20px);
  }
  .carousel-viewport{padding:var(--space-4);}
  .carousel-controls{gap:var(--space-3);}
  .carousel-status{
    text-align:center;
    order:3;
    width:100%;
  }
}

@media (max-width:600px){
  :root{
    --carousel-slide-width:100%;
    --carousel-gap:var(--space-3);
  }
  .carousel{gap:var(--space-4);}
  .carousel-viewport{
    padding:var(--space-3);
    max-width:100%;
    width:100%;
  }
  .carousel-track{gap:var(--space-3);}
  .carousel-slide{
    flex:1 0 100%;
    max-width:100%;
    transform:scale(1);
    opacity:1;
  }
  .carousel-slide .shot{
    --shot-max-height:var(--shot-max-h-mobile);
    border-radius:var(--r-lg);
  }
}

/* Footer */
.footer{
  margin:var(--space-16) 0 var(--space-16);
  color:var(--muted-dark);
  font-size:0.92rem;
}

.footer a{
  color:var(--muted);
  transition:color 180ms ease;
}

.footer a:hover{
  color:var(--ink);
}

.footer-content{
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-4);
  align-items:center;
  justify-content:center;
}

/* Play page - enhanced */
.play-wrap{
  min-height:calc(100dvh - var(--header-h) - var(--footer-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding:clamp(12px, 2.5vw, 20px);
  display:grid;
}

#game{
  width:100%;
  height:100%;
  display:block;
  border:0;
  border-radius:var(--r-xl);
  background:linear-gradient(135deg, #0a1f3a 0%, #051221 100%);
  box-shadow:
    0 24px 64px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.08),
    inset 0 1px 0 rgba(255,255,255,.06);
}

@media (max-width:480px){
  .play-wrap{padding:8px;}
  #game{border-radius:var(--r-lg);}
}

/* Page content */
.page-heading{margin-bottom:var(--space-8);}
.page-content{
  display:flex;
  flex-direction:column;
  gap:var(--space-5);
}

/* Utility */
.badges{
  display:flex;
  gap:var(--space-3);
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}

.badges img{
  height:24px;
  opacity:.9;
  transition:opacity 180ms ease;
}

.badges img:hover{
  opacity:1;
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,
  *::before,
  *::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
  .hero::before{
    animation:none;
  }
}

/* Media queries for shot heights */
@media (max-width:992px){
  :root{--shot-max-height:var(--shot-max-h-tablet);}
}

@media (max-width:600px){
  :root{--shot-max-height:var(--shot-max-h-mobile);}
}

/* Performance optimizations */
.card,
.metric-card,
.how-card,
.btn,
.carousel-btn,
.carousel-slide{
  will-change:transform;
}

@media (hover:none){
  .card:hover,
  .metric-card:hover,
  .how-card:hover{
    transform:none;
  }
}
