/* Gym product pages & demo templates */
:root {
  --gym-radius: 16px;
}

.page-header {
  padding: 8rem 2rem 3rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.page-header p { color: var(--text-muted); }

/* Template grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1280px;
  margin: 0 auto 4rem;
}

.template-card {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.template-preview {
  height: 180px;
  border-radius: var(--gym-radius) var(--gym-radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin: -2rem -2rem 1.5rem -2rem;
  position: relative;
}

.template-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.template-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.template-card p { color: var(--text-muted); flex: 1; margin-bottom: 1.5rem; font-size: 0.95rem; }
.template-card .btn { width: 100%; }

.tp-iron { background: linear-gradient(135deg, #1a0000, #7f1d1d); }
.tp-fitlife { background: linear-gradient(135deg, #ecfdf5, #059669); color: #064e3b; }
.tp-neon { background: linear-gradient(135deg, #1e1b4b, #06b6d4, #a855f7); }
.tp-royal { background: linear-gradient(135deg, #1c1917, #ca8a04); }
.tp-power { background: linear-gradient(135deg, #1f2937, #ea580c); }

.tp-preview-iron {
  background-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent),
    url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=600&q=70');
  background-size: cover;
  background-position: center;
}
.tp-preview-fitlife {
  background-image: linear-gradient(to top, rgba(236,253,245,0.9), transparent),
    url('https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?w=600&q=70');
  background-size: cover;
}
.tp-preview-neon {
  background-image: linear-gradient(135deg, rgba(30,27,75,0.9), rgba(6,182,212,0.4)),
    url('https://images.unsplash.com/photo-1576678927484-cc907957088c?w=600&q=70');
  background-size: cover;
}
.tp-preview-royal {
  background-image: linear-gradient(to top, rgba(12,10,9,0.85), transparent),
    url('https://images.unsplash.com/photo-1571902943202-507ec2618e8f?w=600&q=70');
  background-size: cover;
}
.tp-preview-power {
  background-image: linear-gradient(to top, rgba(17,24,39,0.9), transparent),
    url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?w=600&q=70');
  background-size: cover;
}

.template-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0,0,0,0.6);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 2;
}

/* Demo gym site shared */
.demo-site { min-height: 100vh; }

/* Fixed Swadesh strip — same Products / Features on all demos */
.swadesh-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: rgba(10, 14, 23, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.swadesh-strip .strip-logo {
  font-weight: 800;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.swadesh-strip .strip-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.swadesh-strip .strip-links a {
  color: #94a3b8;
  transition: 0.25s;
}

.swadesh-strip .strip-links a:hover { color: #f8fafc; }

body.has-demo-chrome .demo-nav {
  top: 42px;
  z-index: 1000;
}

body.has-demo-chrome .marquee-wrap:first-of-type { margin-top: 108px !important; }
body.has-demo-chrome .hero-cinematic,
body.has-demo-chrome .hero-split,
body.has-demo-chrome .bento-hero { padding-top: 7.5rem; }
body.has-demo-chrome .hero-diagonal { padding-top: 108px; }
body.has-demo-chrome .neon-grid-bg { top: 108px; }

.demo-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  transition: 0.3s;
}

.demo-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.demo-nav a { font-weight: 500; opacity: 0.85; transition: 0.3s; }
.demo-nav a:hover { opacity: 1; }

.demo-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.demo-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.demo-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.demo-visual {
  font-size: 8rem;
  margin: 2rem 0;
  animation: gymPulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 30px currentColor);
}

@keyframes gymPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.demo-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-section h2 {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.demo-card {
  padding: 1.75rem;
  border-radius: var(--gym-radius);
  transition: 0.35s;
}

.demo-card:hover { transform: translateY(-6px); }

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0 1rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.plan-features li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: bold;
}

.trainer-card img-placeholder,
.trainer-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--gym-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: 0.3s;
}

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

.demo-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.demo-contact form input,
.demo-contact form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.2);
  color: inherit;
  font-family: inherit;
}

.demo-footer {
  text-align: center;
  padding: 2rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Template 1: Iron Beast */
.theme-iron {
  --t-bg: #0a0a0a;
  --t-accent: #dc2626;
  --t-text: #fafafa;
  --t-card: rgba(220, 38, 38, 0.1);
  background: var(--t-bg);
  color: var(--t-text);
}

.theme-iron .demo-nav { background: rgba(10,10,10,0.9); border-bottom: 2px solid var(--t-accent); }
.theme-iron .demo-hero { background: radial-gradient(ellipse at center, #450a0a 0%, #0a0a0a 70%); }
.theme-iron .demo-card { background: var(--t-card); border: 1px solid rgba(220,38,38,0.3); }
.theme-iron .btn-demo { background: var(--t-accent); color: #fff; border: none; padding: 0.85rem 2rem; border-radius: 8px; font-weight: 700; cursor: pointer; }
.theme-iron .plan-price { color: var(--t-accent); }

/* Template 2: FitLife */
.theme-fitlife {
  --t-bg: #ffffff;
  --t-accent: #059669;
  --t-text: #064e3b;
  --t-card: #f0fdf4;
  background: var(--t-bg);
  color: var(--t-text);
}

.theme-fitlife .demo-nav { background: rgba(255,255,255,0.95); border-bottom: 1px solid #d1fae5; box-shadow: 0 2px 20px rgba(0,0,0,0.05); }
.theme-fitlife .demo-hero { background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%); }
.theme-fitlife .demo-card { background: var(--t-card); border: 1px solid #a7f3d0; }
.theme-fitlife .btn-demo { background: var(--t-accent); color: #fff; border: none; padding: 0.85rem 2rem; border-radius: 50px; font-weight: 600; cursor: pointer; }
.theme-fitlife .plan-price { color: var(--t-accent); }

/* Template 3: NeonX */
.theme-neon {
  --t-bg: #030712;
  --t-accent: #22d3ee;
  --t-secondary: #a855f7;
  --t-text: #e0f2fe;
  background: var(--t-bg);
  color: var(--t-text);
}

.theme-neon .demo-nav { background: rgba(3,7,18,0.85); border-bottom: 1px solid rgba(34,211,238,0.3); }
.theme-neon .demo-hero {
  background: linear-gradient(180deg, #1e1b4b 0%, #030712 50%);
  box-shadow: inset 0 0 100px rgba(168, 85, 247, 0.2);
}
.theme-neon .demo-hero h1 {
  text-shadow: 0 0 40px rgba(34, 211, 238, 0.8);
  background: linear-gradient(90deg, #22d3ee, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.theme-neon .demo-card {
  background: rgba(30, 27, 75, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}
.theme-neon .btn-demo {
  background: linear-gradient(90deg, #22d3ee, #a855f7);
  color: #030712;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.4);
}

/* Template 4: Royal */
.theme-royal {
  --t-bg: #0c0a09;
  --t-accent: #eab308;
  --t-text: #fafaf9;
  background: var(--t-bg);
  color: var(--t-text);
}

.theme-royal .demo-nav { background: rgba(12,10,9,0.95); border-bottom: 1px solid rgba(234,179,8,0.4); }
.theme-royal .demo-hero { background: linear-gradient(180deg, #292524 0%, #0c0a09 100%); }
.theme-royal .demo-hero h1 { color: var(--t-accent); font-family: Georgia, serif; }
.theme-royal .demo-card { background: linear-gradient(145deg, #1c1917, #292524); border: 1px solid rgba(234,179,8,0.3); }
.theme-royal .btn-demo { background: linear-gradient(135deg, #ca8a04, #eab308); color: #0c0a09; border: none; padding: 0.85rem 2rem; font-weight: 700; cursor: pointer; }
.theme-royal .plan-price { color: var(--t-accent); }

/* Template 5: PowerHouse */
.theme-power {
  --t-bg: #1f2937;
  --t-accent: #f97316;
  --t-text: #f9fafb;
  background: var(--t-bg);
  color: var(--t-text);
}

.theme-power .demo-nav { background: rgba(31,41,55,0.95); border-bottom: 3px solid var(--t-accent); }
.theme-power .demo-hero { background: repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(249,115,22,0.05) 10px, rgba(249,115,22,0.05) 20px), #111827; }
.theme-power .demo-card { background: #374151; border-left: 4px solid var(--t-accent); }
.theme-power .btn-demo { background: var(--t-accent); color: #111827; border: none; padding: 0.85rem 2rem; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.theme-power .plan-price { color: var(--t-accent); }

.offer-banner {
  text-align: center;
  padding: 3rem 2rem;
  margin: 2rem;
  border-radius: var(--gym-radius);
  font-size: 1.5rem;
  font-weight: 700;
}

/* ——— Realistic gym site building blocks ——— */
.demo-nav.nav-scrolled { box-shadow: 0 8px 32px rgba(0,0,0,0.35); }

.demo-nav .nav-cta { margin-left: 1rem; }

.hero-cinematic {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 7rem 2rem 4rem;
}

.hero-cinematic::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-cinematic .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 6rem 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-photo {
  border-radius: var(--gym-radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.trust-bar span { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.85; }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: -3rem auto 0;
  position: relative;
  z-index: 10;
  padding: 0 1rem;
}

.stat-pill {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--gym-radius);
  backdrop-filter: blur(12px);
}

.stat-pill .num { font-size: 2rem; font-weight: 900; display: block; }
.stat-pill .lbl { font-size: 0.8rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.08em; }

.marquee-wrap {
  overflow: hidden;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.plan-card { position: relative; }
.plan-card.featured-plan { transform: scale(1.04); z-index: 2; }

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trainer-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--gym-radius);
  background-size: cover;
  background-position: center top;
  margin-bottom: 1rem;
}

.gallery-real {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px;
  gap: 0.75rem;
}

.gallery-real .g-item {
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  transition: 0.4s;
}

.gallery-real .g-item:hover { transform: scale(1.02); filter: brightness(1.1); }
.gallery-real .g-wide { grid-column: span 2; }
.gallery-real .g-tall { grid-row: span 2; }

.testimonial {
  padding: 2rem;
  border-radius: var(--gym-radius);
  font-style: italic;
  line-height: 1.7;
}

.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.schedule-table th, .schedule-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(128,128,128,0.2);
}

.wod-board {
  padding: 2rem;
  border-radius: var(--gym-radius);
  font-family: 'Courier New', monospace;
  line-height: 1.8;
}

.wod-board h3 { margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }

.amenity-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.amenity-item .icon { font-size: 2.5rem; margin-bottom: 0.5rem; display: block; }

.ai-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ai-feature-card {
  padding: 1.75rem;
  border-radius: var(--gym-radius);
  position: relative;
  overflow: hidden;
}

.ai-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22d3ee, #a855f7);
}

.neon-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridShift 20s linear infinite;
  pointer-events: none;
}

@keyframes gridShift {
  0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(60deg) translateY(40px); }
}

.app-mockup {
  border-radius: 24px;
  padding: 1rem;
  border: 2px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.25);
  max-width: 280px;
  margin: 0 auto;
}

.app-mockup .screen {
  background: #0f172a;
  border-radius: 16px;
  padding: 1.25rem;
  min-height: 320px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.live-pill .live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: dotBlink 1s infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #22c55e; }
  50% { opacity: 0.4; }
}

.sticky-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  animation: ctaBounce 2s ease-in-out infinite;
}

@keyframes ctaBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.class-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.class-pill {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid currentColor;
  opacity: 0.85;
}

/* ——— Iron Beast (Gold's / hardcore) ——— */
.theme-iron .hero-cinematic {
  background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1600&q=80');
}
.theme-iron .hero-cinematic::before {
  background: linear-gradient(105deg, rgba(0,0,0,0.92) 0%, rgba(69,10,10,0.75) 55%, rgba(0,0,0,0.5) 100%);
}
.theme-iron .hero-inner { text-align: left; max-width: 640px; }
.theme-iron .hero-cinematic h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
}
.theme-iron .hero-cinematic h1 em { color: #dc2626; font-style: normal; }
.theme-iron .stat-pill { background: rgba(0,0,0,0.85); border: 1px solid rgba(220,38,38,0.4); }
.theme-iron .stat-pill .num { color: #dc2626; }
.theme-iron .equipment-card {
  min-height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: var(--gym-radius);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.theme-iron .equipment-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.theme-iron .equipment-card span { position: relative; z-index: 1; font-weight: 800; font-size: 1.25rem; text-transform: uppercase; }
.theme-iron .plan-badge { background: #dc2626; color: #fff; }
.theme-iron .sticky-cta { background: #dc2626; color: #fff; }

/* ——— FitLife (wellness / ClassPass style) ——— */
.theme-fitlife { font-family: 'Segoe UI', system-ui, sans-serif; }
.theme-fitlife .hero-photo {
  background-image: url('https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?w=800&q=80');
}
.theme-fitlife .hero-split h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.15;
  color: #064e3b;
}
.theme-fitlife .hero-split h1 strong { font-weight: 700; }
.theme-fitlife .stat-pill {
  background: #fff;
  border: 1px solid #d1fae5;
  box-shadow: 0 10px 40px rgba(5, 150, 105, 0.1);
}
.theme-fitlife .stat-pill .num { color: #059669; }
.theme-fitlife .testimonial { background: #f0fdf4; border: 1px solid #a7f3d0; color: #064e3b; }
.theme-fitlife .class-pill { background: #ecfdf5; color: #059669; border-color: #6ee7b7; }
.theme-fitlife .schedule-table th { color: #059669; }

/* ——— NeonX (futuristic / AI gym) ——— */
.theme-neon .hero-cinematic {
  background: #030712;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.theme-neon .hero-neon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.theme-neon .hero-cinematic h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(90deg, #22d3ee, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.theme-neon .stat-pill {
  background: rgba(30, 27, 75, 0.8);
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.theme-neon .stat-pill .num { color: #22d3ee; }
.theme-neon .ai-feature-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(34, 211, 238, 0.2);
}
.theme-neon .live-pill { background: rgba(34, 211, 238, 0.15); border: 1px solid rgba(34, 211, 238, 0.4); }

/* ——— Royal (Equinox luxury) ——— */
.theme-royal .hero-cinematic {
  background-image: url('https://images.unsplash.com/photo-1571902943202-507ec2618e8f?w=1600&q=80');
  justify-content: center;
  text-align: center;
}
.theme-royal .hero-cinematic::before {
  background: linear-gradient(180deg, rgba(12,10,9,0.4) 0%, rgba(12,10,9,0.92) 100%);
}
.theme-royal .hero-cinematic h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 400;
  color: #fafaf9;
  letter-spacing: 0.02em;
}
.theme-royal .hero-cinematic .tagline {
  font-size: 1.15rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #eab308;
  margin-bottom: 1rem;
}
.theme-royal .stat-pill {
  background: rgba(28, 25, 23, 0.9);
  border: 1px solid rgba(234, 179, 8, 0.35);
}
.theme-royal .stat-pill .num { color: #eab308; font-family: Georgia, serif; }
.theme-royal .amenity-item { opacity: 0.9; }
.theme-royal .plan-card.featured-plan { border: 2px solid #eab308; }

/* ——— PowerHouse (CrossFit box) ——— */
.theme-power .hero-cinematic {
  background-image: url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?w=1600&q=80');
}
.theme-power .hero-cinematic::before {
  background: linear-gradient(90deg, rgba(17,24,39,0.95) 0%, rgba(17,24,39,0.7) 50%, rgba(249,115,22,0.15) 100%);
}
.theme-power .hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.theme-power .hero-cinematic h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
}
.theme-power .wod-board {
  background: #fff;
  color: #111827;
  border: 4px solid #f97316;
  transform: rotate(-1deg);
  box-shadow: 8px 8px 0 #ea580c;
}
.theme-power .stat-pill { background: #374151; border-left: 4px solid #f97316; }
.theme-power .stat-pill .num { color: #f97316; }
.theme-power .sticky-cta { background: #f97316; color: #111827; }

@media (max-width: 968px) {
  .hero-split, .theme-neon .hero-neon-grid, .theme-power .hero-inner { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); margin-top: 1rem; }
  .gallery-real { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-real .g-wide, .gallery-real .g-tall { grid-column: span 1; grid-row: span 1; }
  .ai-feature-grid { grid-template-columns: 1fr; }
}

/* ——— Unique layout engines per template ——— */
.slide-from-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.slide-from-right {
  opacity: 0;
  transform: translateX(80px);
  transition: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.slide-from-left.revealed,
.slide-from-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Layout A — Iron: bottom-left hero, horizontal plans */
.layout-iron .hero-cinematic { align-items: flex-end; justify-content: flex-start; }
.layout-iron .hero-inner { max-width: 640px; padding-bottom: 4rem; }
.layout-iron .plans-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 1rem 0 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.layout-iron .plans-scroll .demo-card {
  min-width: 300px;
  scroll-snap-align: start;
  flex-shrink: 0;
}
.layout-iron .zigzag { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.layout-iron .zigzag-img {
  min-height: 320px;
  border-radius: var(--gym-radius);
  background-size: cover;
  background-position: center;
}

/* Layout B — FitLife: image left, content right */
.layout-fitlife .hero-split { direction: rtl; }
.layout-fitlife .hero-split > * { direction: ltr; }
.layout-fitlife .hero-photo { order: -1; }
.layout-fitlife .float-card {
  animation: gentleFloat 5s ease-in-out infinite;
}
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Layout C — Neon: bento hero */
.layout-neon .bento-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 2rem 3rem;
  position: relative;
  z-index: 2;
}
.layout-neon .bento-main { grid-row: span 2; align-self: center; }
.layout-neon .bento-tile {
  padding: 1.25rem;
  border-radius: var(--gym-radius);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(34, 211, 238, 0.2);
}
.layout-neon .timeline { position: relative; padding-left: 2rem; }
.layout-neon .timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #22d3ee, #a855f7);
}
.layout-neon .timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}
.layout-neon .timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: #22d3ee;
  border-radius: 50%;
  box-shadow: 0 0 12px #22d3ee;
  margin-left: -5px;
}

/* Layout D — Royal: alternating full bands */
.layout-royal .band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  align-items: center;
  max-width: 100%;
  padding: 0;
}
.layout-royal .band .band-img {
  min-height: 420px;
  background-size: cover;
  background-position: center;
}
.layout-royal .band .band-text { padding: 3rem 4rem; }
.layout-royal .band-reverse { direction: rtl; }
.layout-royal .band-reverse > * { direction: ltr; }
.layout-royal .amenity-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
}
.layout-royal .amenity-scroll .amenity-item {
  min-width: 140px;
  scroll-snap-align: center;
}

/* Layout E — Power: diagonal hero + sticky WOD */
.layout-power .hero-diagonal {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  padding-top: 70px;
}
.layout-power .hero-diagonal .hero-bg {
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  background-size: cover;
  background-position: center;
  min-height: calc(100vh - 70px);
}
.layout-power .hero-diagonal .hero-content-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem;
}
.layout-power .wod-sticky {
  position: sticky;
  top: 100px;
}
.layout-power .schedule-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.layout-power .schedule-card {
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  font-size: 0.85rem;
}
.layout-power .schedule-card strong { display: block; font-size: 1rem; margin-bottom: 0.35rem; }
.layout-power .masonry {
  column-count: 3;
  column-gap: 1rem;
}
.layout-power .masonry .g-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  aspect-ratio: auto;
  min-height: 180px;
}

@media (max-width: 968px) {
  .layout-iron .zigzag,
  .layout-royal .band,
  .layout-power .hero-diagonal,
  .layout-neon .bento-hero { grid-template-columns: 1fr; }
  .layout-power .hero-diagonal .hero-bg { clip-path: none; min-height: 40vh; }
  .layout-royal .band .band-img { min-height: 240px; }
  .layout-power .masonry { column-count: 2; }
}

@media (max-width: 768px) {
  .demo-nav ul { display: none; }
  .demo-contact { grid-template-columns: 1fr; }
  .templates-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; }
  .sticky-cta { bottom: 1rem; right: 1rem; left: 1rem; text-align: center; }
  .layout-power .masonry { column-count: 1; }
}
