/* ═══════════════════════════════════════════════════════
   SCORKY — Public Site Stylesheet
   Premium parallax design with glassmorphism + tabs
   ═══════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────── */
:root {
  /* ── Official Scorky Primary Palette (Verde Golf) ── */
  --green-50:  #e2f5e7;
  --green-100: #dcf3e1;
  --green-200: #bae5c4;
  --green-300: #8bd19a;
  --green-400: #56b86a;
  --green-500: #2d9344;   /* primary-500 — main interactive green */
  --green-600: #217934;   /* primary-600 — base principal */
  --green-700: #1b612a;   /* primary-700 */
  --green-800: #184e24;   /* primary-800 */
  --green-900: #15411f;   /* primary-900 */

  /* ── Official Scorky Secondary Palette (Verde Lima) ── */
  --lime:      #B5DC35;   /* brand-gradient start — Lima Brillante */
  --lime-end:  #1B9A45;   /* brand-gradient end  — Verde Golf vivo */
  --lime-glow: rgba(181, 220, 53, .28);

  /* ── Gold accents (kept for card borders) ── */
  --gold:      #b8860b;
  --gold-soft: rgba(184, 134, 11, .15);

  /* ── Dark surfaces — anchored to primary-950/900 ── */
  --dark-900:  #0a2210;   /* primary-950 — deepest dark */
  --dark-800:  #15411f;   /* primary-900 */
  --dark-700:  #1b612a;   /* primary-700 */
  --dark-600:  #217934;   /* primary-600 */

  /* ── Neutral ink & surfaces ── */
  --ink:       #14213d;
  --ink-light: #304057;
  --muted:     #b8860b;   /* Changed from #64748b to Scorky's gold */
  --subtle:    #94a3b8;

  --surface:   #f6faf0;   /* secondary-50 tint */
  --surface-2: #ffffff;
  --border:    #d5e9b9;   /* secondary-200 */
  --border-light: #ebf4dc; /* secondary-100 */

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(10, 34, 16, .06);
  --shadow-md:  0 8px 30px rgba(10, 34, 16, .08);
  --shadow-lg:  0 20px 60px rgba(10, 34, 16, .12);
  --shadow-xl:  0 30px 80px rgba(0, 0, 0, .18);
  --shadow-glow: 0 0 40px rgba(181, 220, 53, .22);

  /* Typography */
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-script:  'Bungee', cursive;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-pad:  85px calc(10vw + 56px); /* Reverted to original global spacing */
  --section-pad-mobile: 54px calc(6.25vw + 56px);

  /* Transitions */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Radius */
  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  28px;
  --radius-xl:  36px;
  --radius-full: 999px;
}

/* ── Reset & Base ──────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

/* ── Typography ────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08; /* Reverted to original line-height */
  letter-spacing: -.03em;
}

h1 {
  font-size: clamp(44px, 5.5vw, 78px);
  font-weight: 800;
  letter-spacing: -.04em;
}

h2 {
  font-size: clamp(32px, 3.5vw, 54px);
  font-weight: 700;
}

h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
}

.eyebrow {
  font-family: var(--font-script);
  text-transform: uppercase; /* Bungee looks best in uppercase block letter styling */
  font-weight: 400; /* Bungee defaults to regular thick weights */
  letter-spacing: .05em;
  margin-bottom: 24px;
  display: table; /* Fits width exactly to the word content */
  position: relative;
  padding-bottom: 6px;
  font-size: clamp(32.2px, 3.2vw, 43px); /* Increased by an additional 30% */
}

.eyebrow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--lime) 0%, var(--green-400) 100%);
  border-radius: var(--radius-full);
}

.section-dark .eyebrow::after {
  background: linear-gradient(90deg, var(--lime) 0%, var(--green-400) 100%);
}

.section-alt .eyebrow::after,
.feature-content .eyebrow::after {
  background: linear-gradient(90deg, var(--green-500) 0%, var(--lime) 100%);
}

.lead {
  font-size: clamp(9px, 0.85vw, 11px); /* Reduced by 50% from original 19px */
  line-height: 1.5; /* Reverted to original line-height */
  max-width: 680px;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all .35s var(--ease-out);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2), transparent);
  opacity: 0;
  transition: opacity .35s;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: #fff;
  box-shadow: 0 8px 24px rgba(33, 121, 52, .28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15, 111, 50, .3);
}

.btn-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.35);
}

.btn-outline {
  background: transparent;
  color: var(--green-600);
  border: 2px solid var(--green-500);
}

.btn-outline:hover {
  background: var(--green-500);
  color: #fff;
}

.btn-small {
  padding: 12px 20px;
  font-size: 14px;
}

/* ── Header ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Space out brand and nav flex container */
  padding: 0 calc(6.25vw + 56px);
  background: #f1f5f9; /* Solid light grey background without transparency */
  border-bottom: 1px solid rgba(219, 231, 223, .5);
  transition: all .4s var(--ease-out);
}

.site-header.scrolled {
  background: #f1f5f9; /* Solid light grey background without transparency */
  box-shadow: 0 4px 30px rgba(0,0,0,.06);
  height: 72px;
}

.brand {
  position: relative; /* Changed from absolute to flex flow */
}

.brand img {
  width: 150px;
  transition: width .3s var(--ease-out);
}

.site-header.scrolled .brand img {
  width: 130px;
}

/* Hide close button on desktop */
.close-nav {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align links and CTA items to the right side */
  gap: 12px;
  width: auto; /* Fit content instead of 100% width block */
  flex-grow: 1;
}

.nav-link {
  padding: 10px 12px; /* Reduced padding slightly to prevent overlaps */
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-light);
  transition: all .25s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--green-600);
  background: var(--green-50);
}

/* Rounded, tinted wrapper for the group of module links */
.nav-modules-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(33, 121, 52, 0.08) 0%, rgba(33, 121, 52, 0.015) 50%, rgba(33, 121, 52, 0.08) 100%); /* Diagonal dark-light-dark 3D gradient */
  border: none; /* Removed border */
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  margin: 0 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06), inset 0 -1px 2px rgba(255, 255, 255, 0.5); /* Subtle inner shadow for 3D depth */
}

.nav-modules-wrapper .nav-link {
  padding: 6px 10px; /* Make internal links slightly more compact to fit perfectly */
  font-size: 12.5px;
}

.nav .login-link {
  position: relative; /* Removed position absolute to flow nicely in flex */
  right: auto;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, #b8860b, #6b4a05);
  box-shadow: 0 4px 14px rgba(184, 134, 11, .35);
  transition: all .25s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  margin-left: 12px; /* Add visual spacing before CTA buttons */
}

.nav .login-link:hover {
  background: linear-gradient(135deg, #c99411, #7d5608);
  box-shadow: 0 6px 20px rgba(184, 134, 11, .5);
  transform: translateY(-1px);
}

.nav .btn {
  position: relative; /* Removed position absolute to flow nicely in flex */
  right: auto;
  white-space: nowrap;
  margin-left: 8px;
}

/* Vertical navigation divider */
.nav-divider {
  width: 1px;
  height: 28px;
  background-color: rgba(48, 64, 87, 0.15); /* Match ink-light color with 15% opacity */
  margin: 0 12px;
  align-self: center;
}

/* Adjust header spacing on medium laptop screens before hamburger menu breaks in */
@media (max-width: 1420px) {
  .site-header {
    padding: 0 24px;
  }
  .nav {
    gap: 6px;
  }
  .nav-link {
    font-size: 11px;
    padding: 6px 6px;
  }
  .nav-modules-wrapper {
    gap: 2px;
    padding: 2px 4px;
    margin: 0 2px;
  }
  .nav-modules-wrapper .nav-link {
    font-size: 11px;
    padding: 4px 6px;
  }
  .nav .login-link {
    padding: 8px 12px;
    font-size: 11.5px;
    margin-left: 4px;
  }
  .nav .btn {
    padding: 10px 12px;
    font-size: 11.5px;
    margin-left: 2px;
  }
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--green-500);
  color: #fff;
  font-size: 20px;
  align-items: center;
  justify-content: center;
}

/* ── Sections ──────────────────────────────────────── */
.section {
  padding: var(--section-pad);
  position: relative;
}

.section-dark {
  background: var(--dark-800);
  color: #fff;
}

.section-dark .eyebrow {
  color: #fff !important; /* Keep title text white on dark backgrounds */
}

.section-dark .lead {
  color: #F0D59E !important; /* Light gold description text for dark sections */
}

.section-alt {
  background: var(--surface-2);
}

.section-head {
  max-width: 780px;
  margin-bottom: 48px;
}

.section-head.center {
  max-width: 840px !important; /* Increase width limit slightly to hold longer lines cleanly */
  margin: 0 auto 48px auto !important; /* Force block-level centering in parent container */
  text-align: center !important;
  display: block !important; /* Use block to rely on auto margins */
}

.section-head.center h2 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.section-head.center .eyebrow {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.section-head.center p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  margin-top: 16px;
  text-align: center !important;
}

.section-dark .section-head p:not(.eyebrow) {
  color: #F0D59E; /* Light gold description text for section heads */
}

/* ── Scroll Animations ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ══════════════════════════════════════════════════════
   HERO SECTION — Parallax
   ══════════════════════════════════════════════════════ */
.hero {
  min-height: 85vh;
  display: grid;
  grid-template-columns: 0.95fr 1.25fr; /* Made the card column 20% larger (from 1.05fr 1fr) */
  gap: 56px;
  align-items: center;
  padding: 0 calc(10vw + 56px);
  padding-top: 100px;
  padding-bottom: 68px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 30%, #217934 0%, #1b612a 25%, #184e24 50%, #15411f 75%, var(--dark-900) 100%);
}

/* Parallax decorative orbs */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(164,211,59,.15), transparent 70%);
  top: -100px;
  left: -100px;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.hero::after {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(22,144,68,.1), transparent 70%);
  bottom: -200px;
  right: -150px;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--lime);
  border-radius: 50%;
  opacity: .3;
  animation: float-particle 12s infinite ease-in-out;
}

.hero-particles span:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 14s; }
.hero-particles span:nth-child(2) { top: 60%; left: 80%; animation-delay: 2s; animation-duration: 10s; }
.hero-particles span:nth-child(3) { top: 30%; left: 60%; animation-delay: 4s; animation-duration: 16s; }
.hero-particles span:nth-child(4) { top: 80%; left: 30%; animation-delay: 1s; animation-duration: 11s; }
.hero-particles span:nth-child(5) { top: 15%; left: 90%; animation-delay: 3s; animation-duration: 13s; }
.hero-particles span:nth-child(6) { top: 70%; left: 50%; animation-delay: 5s; animation-duration: 15s; }

@keyframes float-particle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: .2; }
  25%      { transform: translateY(-30px) translateX(15px); opacity: .5; }
  50%      { transform: translateY(-10px) translateX(-20px); opacity: .3; }
  75%      { transform: translateY(-40px) translateX(10px); opacity: .6; }
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 2;
}

.hero-copy .eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: #F0D59E; /* Light gold color */
  font-size: clamp(12.1px, 1.0vw, 14.3px); /* 10% larger */
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.hero-copy .eyebrow::after {
  display: none !important; /* Remove line under the main hero subtitle */
}

.hero-copy h1 {
  color: #fff;
  margin-bottom: 20px;
}

.hero-copy h1 .accent {
  background: linear-gradient(135deg, var(--lime), var(--lime-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy .lead {
  color: rgba(255, 255, 255, 0.9); /* Adjusted contrast for white description text */
  font-size: clamp(10.35px, 1.0vw, 12.65px); /* 15% larger */
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Product Card */
.hero-card {
  position: relative;
  perspective: 1200px;
}

/* ── Floating Module Badges in Hero ──────────────── */
.floating-module-badge {
  position: absolute;
  background: rgba(10, 34, 16, 0.75); /* Dark green glassmorphism background */
  border: none; /* Removed border */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: 76px; /* Made 15% smaller (90px * 0.85 = 76.5px) */
  height: 76px;
  border-radius: 50%; /* Make them completely round/circular */
  display: flex;
  align-items: center;
  justify-content: center; /* Center text inside the circle */
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  z-index: 10;
  transition: transform 0.3s var(--ease-spring), background 0.3s ease;
  cursor: default;
  will-change: transform;
}

.floating-module-badge:hover {
  background: rgba(10, 34, 16, 0.9);
  transform: scale(1.08) translateY(-3px);
}

.floating-module-badge .fmb-text {
  font-family: var(--font-display);
  font-size: 10px; /* Reduced to fit 76px circles cleanly */
  font-weight: 700;
  color: #F0D59E; /* Premium gold color */
  text-transform: uppercase; /* Force uppercase module names */
  letter-spacing: 0.05em; /* Add elegant letter spacing */
  line-height: 1.25; /* Good line height for 2 lines */
  white-space: normal; /* Allow wrap for multi-line */
}

/* Specific Placements around hero-card */
.fmb-rounds {
  top: 15%;
  left: -70px; /* Moved 15px closer (from -85px to -70px) */
  animation: fmb-float-1 6s ease-in-out infinite alternate;
}

.fmb-torneos {
  top: calc(8% - 20px); /* Raised 20px */
  right: -45px; /* Moved 15px closer (from -60px to -45px) */
  animation: fmb-float-2 7s ease-in-out infinite alternate;
}

.fmb-teetimes {
  top: -50px; /* Moved 15px closer/lower (from -65px to -50px) */
  left: 30%;
  animation: fmb-float-3 6.5s ease-in-out infinite alternate-reverse;
}

.fmb-caddie {
  bottom: calc(12% - 50px); /* Lowered 15px more (from -35px to -50px offset) */
  right: -45px; /* Moved 15px closer (from -60px to -45px) */
  animation: fmb-float-1 8s ease-in-out infinite alternate-reverse;
}

.fmb-proshop {
  bottom: 8%;
  left: -50px; /* Moved 15px closer (from -65px to -50px) */
  animation: fmb-float-2 7.5s ease-in-out infinite alternate;
}

/* Micro-Animations for Floating Effect */
@keyframes fmb-float-1 {
  0% { transform: translateY(0) rotate(-1deg); }
  100% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes fmb-float-2 {
  0% { transform: translateY(0) rotate(1deg); }
  100% { transform: translateY(-14px) rotate(-1deg); }
}

@keyframes fmb-float-3 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(1.5deg); }
}

/* Hide or adjust floating badges on small mobile viewports to prevent layout overflow */
@media (max-width: 640px) {
  .floating-module-badge {
    width: 68px; /* Make them compact circles on mobile */
    height: 68px;
    padding: 0;
    gap: 0;
  }
  .floating-module-badge .fmb-text {
    font-size: 8.5px;
    line-height: 1.2;
  }
  .fmb-rounds { left: -10px; top: 12%; }
  .fmb-torneos { right: -10px; top: 5%; }
  .fmb-teetimes { left: 20%; top: -35px; } /* Reposition top one on mobile */
  .fmb-caddie { right: -10px; bottom: 8%; }
  .fmb-proshop { left: -10px; bottom: 5%; }
}

.hero-card-inner {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: 12px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  transition: transform .6s var(--ease-out);
  will-change: transform;
  height: 456px; /* Increased height by 20% (380px * 1.2 = 456px) */
  box-sizing: border-box;
}

.hero-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero-carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Floating badge on hero card */
.hero-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(15, 111, 50, .4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(164,211,59,.6); }
  50%      { opacity: .8; box-shadow: 0 0 0 10px rgba(164,211,59,0); }
}

/* ── Section Gold Divider ───────────────────────────── */
.section-gold-divider {
  width: 100%;
  height: 7px;
  background: linear-gradient(
    to right,
    transparent 0%,
    #c9a227 15%,
    #F0D59E 40%,
    #E8C56A 50%,
    #F0D59E 60%,
    #c9a227 85%,
    transparent 100%
  );
  opacity: 0.85;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   SOCIAL PROOF BAR
   ══════════════════════════════════════════════════════ */
.social-proof {
  background: var(--surface-2);
  padding: 30px calc(10vw + 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  border-bottom: 1px solid var(--border-light);
}

.social-proof .stat {
  text-align: center;
}

.social-proof .stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--green-600);
}

.social-proof .stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.social-proof .divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ══════════════════════════════════════════════════════
   MODULES — 5 Pillars
   ══════════════════════════════════════════════════════ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.module-card {
  position: relative;
  background: linear-gradient(135deg, #05180b, #0a2512);
  border: none;
  border-radius: 1.7rem;
  box-shadow: 0 20px 25px -5px rgba(3,18,6,0.65), 0 8px 10px -6px rgba(3,18,6,0.65), inset 0 0 15px rgba(3,18,6,0.8);
  display: flex;
  flex-direction: column;
  min-height: 342px; /* height to contain details and buttons nicely */
  transition: all .3s var(--ease-out);
  cursor: pointer;
  overflow: hidden;
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 30px -5px rgba(3,18,6,0.8), 0 12px 15px -6px rgba(3,18,6,0.8), inset 0 0 20px rgba(3,18,6,0.95);
}

.module-card-img {
  height: 160px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #062410, #031208);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 65%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 65%, rgba(0,0,0,0) 100%);
}

.module-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(-5px);
  transition: all .5s ease;
}

.module-card:hover .module-card-img img {
  transform: scale(1.05) translateY(-5px);
}

.module-card-details {
  padding: 12px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
  z-index: 10;
  margin-top: -5px;
}

.module-card-details h3 {
  font-size: 23px;
  font-weight: 700;
  color: #E0C69A; /* Gold title matching home */
  margin-bottom: 6px;
}

.module-card-details p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72); /* Light grey text */
  line-height: 1.45;
  margin-bottom: 14px;
  flex-grow: 1;
}

.module-link-btn {
  display: block;
  width: 100%;
  padding: 10px 0;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: #fff;
  font-weight: 800;
  text-align: center;
  font-size: 15px;
  border-radius: var(--radius-full);
  transition: all .2s;
  box-shadow: 0 4px 12px rgba(15, 111, 50, .2);
}

.module-card:hover .module-link-btn {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  transform: translateY(-1px);
}

/* Coming soon badge */
.badge-soon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--gold), #e6b84d);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: .05em;
  text-transform: uppercase;
  z-index: 20;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ══════════════════════════════════════════════════════
   FEATURE SECTIONS — Split Layout
   ══════════════════════════════════════════════════════ */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split-layout.reverse {
  direction: rtl;
}

.split-layout.reverse > * {
  direction: ltr;
}

.feature-content .eyebrow {
  color: var(--green-500);
}

.feature-content h2 {
  margin-bottom: 18px;
}

.feature-content .lead {
  color: var(--muted);
  margin-bottom: 28px;
}

/* Check list */
.check-list {
  display: grid;
  gap: 14px; /* Reverted to original 14px */
  margin-bottom: 32px; /* Reverted to original 32px */
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink-light);
  line-height: 1.5; /* Reverted to original 1.5 */
  font-size: 15px; /* Reverted to original 15px */
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px; /* Aligned vertically with the first line of the bullet text */
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--green-500), var(--green-400));
  border-radius: 50%;
}

.check-list li::after {
  content: '✓';
  position: absolute;
  left: 5px;
  top: 1px; /* Aligned vertically with the first line of the bullet text */
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 22px;
}

.section-dark .check-list li {
  color: rgba(255,255,255,.82);
}

/* Badge */
.plan-badge {
  display: flex; /* Force display block flex */
  width: fit-content;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #b8860b 0%, #a6790a 100%); /* Solid gold gradient with very little variance so it looks uniform */
  border: 1px solid rgba(255, 255, 255, 0.15) !important; /* Soft white/glass inner border */
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 18px;
  text-shadow: none !important; /* Removed text shadow */
}

.badge-star-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: #fff; /* White star to match the badge text and stand out nicely on the solid gold background */
}

.plan-badge span,
.plan-badge svg,
.plan-badge::before {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Specific Rounds lead scaling */
.rounds-lead {
  font-size: clamp(13px, 1.2vw, 15.5px) !important; /* 40% larger than other descriptions (~11px) */
  line-height: 1.6;
}

.caddie-master-lead,
.tee-times-lead,
.pro-shop-lead {
  font-size: 17px !important;
  line-height: 1.6;
}

/* Rounds section 3-column features boxes */
.rounds-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row/renglón */
  gap: 12px;
  margin: 24px 0 32px;
  width: 100%;
}

.feature-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.03) !important; /* Extremely subtle thin boundary border */
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: row; /* Align icon to left and text to right */
  align-items: center;
  justify-content: center; /* Center align icons and text horizontally */
  text-align: center; /* Center align texts */
  gap: 18px; /* Increased gap by 6px (from 12px to 18px) */
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Diagonal dark grey decorative element on the left 20% of the box */
.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 28%; /* Wider top boundary to compensate for the sharper diagonal incline */
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.45) 0%, rgba(255, 255, 255, 0.02) 100%); /* Dark grey gradient */
  clip-path: polygon(0 0, 100% 0, 45% 100%, 0 100%); /* Sharper diagonal skew incline (45% on bottom right point) */
  transition: transform 0.4s var(--ease-out), background 0.4s;
  z-index: -1;
  pointer-events: none;
}

.feature-box:hover::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.60) 0%, rgba(255, 255, 255, 0.04) 100%); /* Darker grey glow up on hover */
  transform: scaleX(1.05);
}

.feature-box:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-2px);
}

.feature-box .box-icon {
  width: 36px; /* Made an additional 15% larger (31px * 1.15 ≈ 36px) */
  height: 36px;
  color: var(--lime); /* Linear monotone color scheme */
  flex-shrink: 0;
  transition: color 0.3s;
}

.feature-box .box-icon-img {
  width: auto; /* Allow auto width to preserve aspect ratio */
  height: 36px; /* Force uniform height across all PNG icons (31px * 1.15 ≈ 36px) */
  object-fit: contain;
  flex-shrink: 0;
}

.feature-box span {
  font-size: 12.6px; /* Reduced by 10% from 14px */
  font-weight: 800; /* Bolder typography (changed from 700 to 800) */
  text-transform: uppercase; /* All caps */
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  text-align: center; /* Centered text */
}

/* Responsive adjustments for rounds features grid */
@media (max-width: 768px) {
  .rounds-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .rounds-features-grid {
    grid-template-columns: 1fr;
  }
}

/* Caddie Master Section 3-column features boxes */
.caddie-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row/renglón */
  gap: 12px;
  margin: 24px 0 32px;
  width: 100%;
}

.feature-box.dark-box {
  background: linear-gradient(135deg, rgba(10, 34, 16, 0.04), rgba(10, 34, 16, 0.01));
  border: 1px solid rgba(10, 34, 16, 0.03) !important; /* Extremely subtle thin boundary border for light background */
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.feature-box.dark-box:hover {
  background: linear-gradient(135deg, rgba(10, 34, 16, 0.07), rgba(10, 34, 16, 0.025));
  border-color: rgba(10, 34, 16, 0.06) !important;
}

/* Custom dark grey gradient tint for light background features */
.feature-box.dark-box::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.01) 100%);
}

.feature-box.dark-box:hover::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.03) 100%);
}

.feature-box.dark-box .box-icon {
  color: var(--green-600); /* Darker green linear monotone icon for light background */
}

.feature-box.dark-box span {
  color: var(--ink);
}

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

@media (max-width: 480px) {
  .caddie-features-grid {
    grid-template-columns: 1fr;
  }
}

/* Feature visual mockups */
.feature-visual {
  position: relative;
}

.feature-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

/* Tee Times Mock */
.mock-tee {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--ink); /* Override section-dark text color */
}

.mock-tee-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.mock-tee-header h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.mock-tee-header span {
  font-size: 13px;
  color: var(--muted);
}

.tee-slots {
  display: grid;
  gap: 8px;
}

.tee-slot {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: all .3s;
}

.tee-slot:hover {
  background: var(--green-50);
}

.tee-slot .time {
  font-weight: 700;
  color: var(--green-600);
}

.tee-slot .players {
  color: var(--ink-light);
}

.tee-slot .status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.tee-slot .status.open {
  background: var(--green-50);
  color: var(--green-600);
}

.tee-slot .status.full {
  background: #fef3c7;
  color: #92400e;
}

.tee-slot .status.reserved {
  background: #ede9fe;
  color: #6b21a8;
}

/* Caddie Master Mock */
.mock-caddie {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.mock-caddie h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.caddie-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--surface);
  transition: all .3s;
}

.caddie-item:hover {
  background: var(--green-50);
}

.caddie-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.caddie-avatar.available { background: var(--green-100); }
.caddie-avatar.assigned  { background: #dbeafe; }
.caddie-avatar.cart      { background: #fef3c7; }
.caddie-avatar.maint     { background: #fee2e2; }

.caddie-info {
  flex: 1;
}

.caddie-info strong {
  font-size: 14px;
  display: block;
}

.caddie-info span {
  font-size: 12px;
  color: var(--muted);
}

.caddie-status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.caddie-status.available { background: var(--green-50); color: var(--green-600); }
.caddie-status.assigned  { background: #dbeafe; color: #1d4ed8; }
.caddie-status.in-use    { background: #fef3c7; color: #92400e; }
.caddie-status.maintenance { background: #fee2e2; color: #dc2626; }

/* Pro Shop Mock */
.mock-proshop {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.mock-proshop::before {
  content: 'PRÓXIMAMENTE';
  position: absolute;
  top: 24px;
  right: -36px;
  background: linear-gradient(135deg, var(--gold), #e6b84d);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 44px;
  transform: rotate(45deg);
  letter-spacing: .06em;
  z-index: 2;
}

.mock-proshop h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.proshop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
}

.proshop-item:last-of-type {
  border-bottom: none;
}

.proshop-item b {
  color: var(--green-600);
  font-family: var(--font-display);
}

.proshop-total {
  margin-top: 18px;
  padding: 16px;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: #fff;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 18px;
}

/* Pro Shop Section Background Image Overlay */
#pro-shop {
  background: url('assets/proshopbackground.webp') no-repeat center center;
  background-size: cover;
}

/* ══════════════════════════════════════════════════════
   TOURNAMENTS — Tabs System
   ══════════════════════════════════════════════════════ */
.tournaments-section {
  background: linear-gradient(180deg, var(--surface) 0%, var(--green-50) 50%, var(--surface) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 25px !important; /* Specific reduction for tournaments only */
  padding-bottom: 25px !important;
}

.tourney-lead {
  font-size: 16.2px !important; /* Made exactly 10% smaller than the baseline 18px */
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  display: block !important;
}

/* TRON 3D Vector Golf Grid Container */
.tron-golf-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.85; /* Keep container opacity high for visibility */
}

.tron-perspective-wrapper {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  margin-top: 80px; /* Lower the blueprint by 80px */
}

/* Container for the 7 overlay SVG blueprints stack */
.blueprint-svg-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.blueprint-svg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.4); /* Start small in background */
  transform-origin: center center;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.35, 1), opacity 1.2s cubic-bezier(0.25, 1, 0.35, 1);
  will-change: transform, opacity;
}

/* Layer transition classes when active (active index = current tab) */
.blueprint-svg-layer.active {
  opacity: 0.10; /* Set transparency to exactly 10% opacity */
  transform: scale(1); /* Returns to normal size */
}

/* Zoom out and disappear (layer we zoom past: previous tabs) */
.blueprint-svg-layer.zoom-past {
  opacity: 0;
  transform: scale(1.75); /* Grows/expands and disappears */
}

/* Zoom in from background (layer in front: future tabs) */
.blueprint-svg-layer.zoom-far {
  opacity: 0;
  transform: scale(0.4); /* Shrinks/zooms out far into background and disappears */
}

/* Reset containers transitions (Keep layout completely flat/2D) */
.tournaments-section:has(.tab-btn[data-tab="stroke"].active) .blueprint-svg-container,
.tournaments-section:has(.tab-btn[data-tab="stableford"].active) .blueprint-svg-container,
.tournaments-section:has(.tab-btn[data-tab="match"].active) .blueprint-svg-container,
.tournaments-section:has(.tab-btn[data-tab="scramble"].active) .blueprint-svg-container,
.tournaments-section:has(.tab-btn[data-tab="ligas"].active) .blueprint-svg-container,
.tournaments-section:has(.tab-btn[data-tab="ryder"].active) .blueprint-svg-container,
.tournaments-section:has(.tab-btn[data-tab="calcuta"].active) .blueprint-svg-container {
  transform: none;
}

.tournaments-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 80% 30%, rgba(45,147,68,.06), transparent 60%);
  pointer-events: none;
}

/* Custom 38% font reduction for Torneos section H2 (initial 30% + 8% additional reduction) */
.tournaments-section .section-head h2 {
  font-size: clamp(20.6px, 2.25vw, 34.8px) !important;
  white-space: nowrap; /* Forces text into a single line */
}

/* Allow text wrapping on mobile screens so it fits correctly */
@media (max-width: 768px) {
  .tournaments-section .section-head h2 {
    white-space: normal;
  }
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.65); /* White background with sutil/less transparency */
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-md);
  padding: 6px;
  margin: 0 auto 38px; /* Reduced from 56px to pull content closer */
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  padding: 14px 24px;
  border-radius: calc(var(--radius-md) - 4px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px; /* Slightly reduced font size for uppercase letters to look modern */
  text-transform: uppercase; /* Force uppercase text for all tabs */
  letter-spacing: 0.05em; /* Add sutil spacing between uppercase letters */
  color: var(--muted);
  transition: all .35s var(--ease-out);
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  box-shadow: 0 4px 16px rgba(33, 121, 52, .3);
  pointer-events: none; /* Disable click and touch events on selected tab button */
  cursor: default; /* Remove pointer cursor */
}

.tab-btn .tab-soon {
  font-size: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 8px;
  font-weight: 800;
  letter-spacing: .04em;
}

.tab-btn.active .tab-soon {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* Tab Panels */
.tab-panels {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
}

.tab-panels-track {
  display: flex;
  width: 700%; /* 7 panels */
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.35, 1);
}

.tab-panel {
  width: 14.2857%; /* 100% / 7 */
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px; /* Reduced gap to bring content closer to center */
  padding: 0 12vw; /* Side padding to prevent decorations from overlapping text */
  align-items: center;
  box-sizing: border-box;
  opacity: 0.15;
  transform: scale(0.96) translateY(20px);
  filter: blur(3px);
  position: relative;
  overflow: visible;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}

/* Flying camera zoom-in/out effect on the panel's graphics */
.tab-panel .feature-visual img {
  transform: scale(0.65) rotateX(15deg) rotateY(-5deg); /* Default state: zoomed out far and tilted */
  filter: blur(8px);
  opacity: 0.2;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.35, 1), filter 1.2s cubic-bezier(0.25, 1, 0.35, 1), opacity 1.2s ease-in-out;
  transform-origin: center center;
  will-change: transform, filter, opacity;
}

.tab-panel.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

/* Flying camera zooms in to landing position when tab becomes active */
.tab-panel.active .feature-visual img {
  transform: scale(1.05) rotateX(0deg) rotateY(0deg); /* Zooms in close with a dynamic 1.05 size */
  filter: blur(0);
  opacity: 1;
}



/* Global side pop-up decorations (Outside clipped containers, sitting on top of everything) */
.tourney-side-deco {
  position: absolute;
  pointer-events: none;
  z-index: 20; /* Floating on top of the tab panels */
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.tourney-side-deco img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.45));
}

.tourney-side-left {
  left: 3%; /* Positioned where the left yellow circle is */
  bottom: 0; /* Align directly to the bottom line of the section so it clips */
  top: auto;
  width: clamp(120px, 11vw, 220px);
  transform: translate3d(-150px, 0, 0); /* Offscreen left to enter laterally */
}

/* Specific styling for when scramble.webp is active (adjusted: 10% smaller, bottom sit without clipping the top) */
.tourney-side-left:has(img[src*="scramble.webp"]) {
  width: clamp(295px, 27vw, 540px); /* 10% smaller than previous size */
  left: 140px; /* Moved an additional 80px to the right (140px total) */
  bottom: -240px; /* Raised 50px (from -290px to -240px) */
  top: auto;
  height: auto; /* Allow image to grow upwards naturally without container top-clipping */
  overflow: visible; /* Ensure the top of the image is never clipped */
  display: block;
}

.tourney-side-left:has(img[src*="scramble.webp"]) img {
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3)); /* Premium shadow */
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(-15deg); /* Rotate 15 degrees to the left (counter-clockwise) */
  transform-origin: bottom center; /* Rotate around the bottom base center */
}

/* Specific styling for when stroke.webp, rydercup.webp, or calcuta.webp is active (mimics scramble rules) */
.tourney-side-left:has(img[src*="stroke.webp"]),
.tourney-side-left:has(img[src*="rydercup.webp"]),
.tourney-side-left:has(img[src*="calcuta.webp"]) {
  width: clamp(295px, 27vw, 540px);
  left: 140px;
  bottom: -240px;
  top: auto;
  height: auto;
  overflow: visible;
  display: block;
}

/* Specific styling for calcuta.webp (left side): 25% smaller and raised 180px total (from -240px to -60px) */
.tourney-side-left:has(img[src*="calcuta.webp"]) {
  width: clamp(221px, 20.25vw, 405px);
  bottom: -60px;
}

/* Custom styles for ligas.webp: 15% smaller (295 * 0.85 = 250.7, 540 * 0.85 = 459), left offset by -65px (from 140px to 75px) and raised 80px (from -195px to -115px) */
.tourney-side-left:has(img[src*="ligas.webp"]) {
  width: clamp(250px, 22.95vw, 459px);
  left: 75px; /* Moved another 35px to the left (110px - 35px = 75px) */
  bottom: -115px; /* Raised by 80px (from -195px to -115px) */
  top: auto;
  height: auto;
  overflow: visible;
  display: block;
}

.tourney-side-left:has(img[src*="stroke.webp"]) img,
.tourney-side-left:has(img[src*="rydercup.webp"]) img,
.tourney-side-left:has(img[src*="calcuta.webp"]) img {
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(-15deg); /* Rotate 15 degrees left */
  transform-origin: bottom center;
}

/* Custom less rotated image style for ligas.webp (rotated -7 degrees instead of -15) */
.tourney-side-left:has(img[src*="ligas.webp"]) img {
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(-7deg); /* Less rotated left (7 degrees) */
  transform-origin: bottom center;
}

/* Reduced pelota-con-logo.webp size by 20% (295 * 0.8 = 236, 540 * 0.8 = 432) */
.tourney-side-left:has(img[src*="pelota-con-logo.webp"]) {
  width: clamp(236px, 21.6vw, 432px);
  left: 140px;
  bottom: -40px; /* Raised by another 100px (from -140px to -40px) */
  top: auto;
  height: auto;
  overflow: visible;
  display: block;
}

.tourney-side-left:has(img[src*="pelota-con-logo.webp"]) img {
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(-15deg); /* Rotate 15 degrees left */
  transform-origin: bottom center;
}

/* Specific styling for when herofloat.webp is active (now on the right side: mimics left rules mirrored) */
.tourney-side-right:has(img[src*="herofloat.webp"]),
.tourney-side-right:has(img[src*="matchplay-right.webp"]),
.tourney-side-right:has(img[src*="scramble-right.webp"]),
.tourney-side-right:has(img[src*="ryder-right.webp"]),
.tourney-side-right:has(img[src*="calcuta-right.webp"]) {
  width: clamp(265px, 24.3vw, 486px); /* Made 10% smaller (295 * 0.9 = 265.5, 540 * 0.9 = 486) */
  right: 140px; /* Mirrored left coordinate to right */
  left: auto;
  bottom: -175px; /* Raised by an additional 40px (from -215px to -175px) */
  top: auto;
  height: auto;
  overflow: visible;
  display: block;
}

/* Raise Calcuta right image by 45px (from -175px to -130px) */
.tourney-side-right:has(img[src*="calcuta-right.webp"]) {
  bottom: -130px;
}

/* Raise Match Play right image by 40px (from -175px to -135px) */
.tourney-side-right:has(img[src*="matchplay-right.webp"]) {
  bottom: -135px;
}

/* Custom styling for phone.webp: 5% larger (350 * 1.05 = 367.5, 642 * 1.05 = 674.1), raised 120px (from -175px to -55px), and offset 260px to the right (from 140px to -120px) */
.tourney-side-right:has(img[src*="phone.webp"]) {
  width: clamp(367px, 33.74vw, 674px);
  right: -120px; /* Moved 25px to the left (-145px + 25px = -120px) */
  left: auto;
  bottom: -55px;
  top: auto;
  height: auto;
  overflow: visible;
  display: block;
}

/* Custom left rotation override for phone.webp (-20 degrees, rotated 5 degrees rightwards from -25deg) */
.tourney-side-right:has(img[src*="phone.webp"]) img {
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(-20deg); /* Rotated 5 degrees clockwise (from -25deg to -20deg) */
  transform-origin: bottom center;
}

/* Reduced stroke-left.webp size by 20% (265 * 0.8 = 212, 486 * 0.8 = 388) */
.tourney-side-right:has(img[src*="stroke-left.webp"]) {
  width: clamp(212px, 19.4vw, 388px);
  right: 140px;
  left: auto;
  bottom: 25px; /* Raised by another 100px (from -75px to 25px) */
  top: auto;
  height: auto;
  overflow: visible;
  display: block;
}

.tourney-side-right:has(img[src*="herofloat.webp"]) img,
.tourney-side-right:has(img[src*="matchplay-right.webp"]) img,
.tourney-side-right:has(img[src*="scramble-right.webp"]) img,
.tourney-side-right:has(img[src*="ryder-right.webp"]) img,
.tourney-side-right:has(img[src*="calcuta-right.webp"]) img,
.tourney-side-right:has(img[src*="stroke-left.webp"]) img {
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(15deg); /* Rotated 15 degrees right (mirrored) */
  transform-origin: bottom center;
}

/* Specific styling for when matchplay.webp is active (mimics scramble/stroke rules) */
.tourney-side-left:has(img[src*="matchplay.webp"]) {
  width: clamp(295px, 27vw, 540px);
  left: 140px;
  bottom: -240px;
  top: auto;
  height: auto;
  overflow: visible;
  display: block;
}

.tourney-side-left:has(img[src*="matchplay.webp"]) img {
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(-15deg); /* Rotate 15 degrees left */
  transform-origin: bottom center;
}

.tourney-side-left.reveal.visible {
  opacity: 0.85;
  transform: translate3d(0, 0, 0); /* slides in from left */
}

.tourney-side-right {
  right: 6%; /* Positioned where the right yellow circle is */
  bottom: calc(4% + 70px); /* Raised 70px */
  top: auto;
  width: clamp(100px, 9vw, 180px);
  transform: translate3d(150px, 0, 0); /* Offscreen right to enter laterally */
}

.tourney-side-right.reveal.visible {
  opacity: 0.9;
  transform: translate3d(0, 0, 0); /* slides in from right */
}

/* Directional transition overrides for option B (Higher specificity to override reveal.visible) */
.tournaments-section .tourney-side-deco.slide-out-left {
  opacity: 0 !important;
  transform: translate3d(-180px, 0, 0) scale(0.9) !important;
  transition: opacity 0.25s ease-in, transform 0.25s ease-in !important;
}

.tournaments-section .tourney-side-deco.slide-out-right {
  opacity: 0 !important;
  transform: translate3d(180px, 0, 0) scale(0.9) !important;
  transition: opacity 0.25s ease-in, transform 0.25s ease-in !important;
}

.tournaments-section .tourney-side-deco.slide-in-left {
  opacity: 0.85 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out) !important;
}

.tournaments-section .tourney-side-deco.slide-in-right {
  opacity: 0.9 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out) !important;
}

/* Wide long background decoration for tournaments (horizontal and less tall) */
.tournaments-long-bg {
  position: absolute;
  top: calc(50% + 160px); /* Lowered an additional 80px */
  left: 0;
  width: 100vw;
  height: 240px; /* Slightly taller backing */
  transform: translateY(-50%);
  opacity: 0.22; /* Increased opacity to make it clearly visible */
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.4s ease;
}

.tournaments-long-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(1.7);
  transition: opacity 0.4s ease;
}

.tournaments-long-bg.fade-out {
  opacity: 0;
}

.tab-content h3 {
  font-size: clamp(26px, 2.5vw, 38px);
  color: var(--ink);
  margin-bottom: 16px;
}

.tab-content .lead {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 17px;
}

.tab-content .check-list li {
  color: var(--ink-light);
}

.tab-content .check-list li::before {
  background: linear-gradient(135deg, var(--lime), var(--lime-end));
}

.tab-visual {
  display: flex;
  justify-content: center;
}

/* Tournament mockup cards */
.tournament-mock {
  background: rgba(255,255,255,.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px; /* Reduced from 28px */
  backdrop-filter: blur(12px);
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-md);
}

.tournament-mock h4 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 4px;
}

.tournament-mock .mock-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px; /* Reduced from 22px */
}


.leaderboard-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--ink-light);
  transition: background .2s;
}

.leaderboard-row:hover {
  background: rgba(0,0,0,.04);
}

.leaderboard-pos {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.leaderboard-pos.gold   { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; }
.leaderboard-pos.silver { background: linear-gradient(135deg, #d1d5db, #9ca3af); color: #374151; }
.leaderboard-pos.bronze { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }
.leaderboard-pos.normal { background: rgba(0,0,0,.08); color: var(--muted); }

.leaderboard-name {
  font-weight: 600;
}

.leaderboard-score {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--green-600);
}

/* Match bracket mock */
.bracket-mock {
  display: grid;
  gap: 14px;
}

.bracket-match {
  background: rgba(0,0,0,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.bracket-players {
  display: grid;
  gap: 8px;
}

.bracket-player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--ink-light);
}

.bracket-player.winner {
  color: var(--green-600);
  font-weight: 700;
}

.bracket-player .score {
  font-family: var(--font-display);
  font-weight: 700;
}

.bracket-vs {
  text-align: center;
  font-size: 11px;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 0;
}

/* Stableford points mock */
.stableford-mock .points-header {
  display: grid;
  grid-template-columns: 1fr repeat(3, 50px);
  gap: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.stableford-row {
  display: grid;
  grid-template-columns: 1fr repeat(3, 50px);
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 4px;
}

.stableford-row:hover {
  background: rgba(0,0,0,.04);
}

.stableford-row .pts {
  font-weight: 800;
  color: var(--green-600);
  text-align: center;
}

.stableford-row .pts-num {
  text-align: center;
  color: var(--muted);
}

/* Scramble team mock */
.scramble-teams {
  display: grid;
  gap: 12px;
}

.scramble-team {
  background: rgba(0,0,0,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.scramble-team-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.scramble-team-name strong {
  color: var(--ink);
  font-size: 15px;
}

.scramble-team-name .score {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--green-600);
}

.scramble-players {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.scramble-player {
  font-size: 12px;
  color: var(--muted);
  background: rgba(0,0,0,.06);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Soon panel */
.soon-panel {
  text-align: center;
  grid-column: 1 / -1;
  padding: 60px 0;
}

.soon-panel .soon-icon {
  font-size: 64px;
  margin-bottom: 20px;
  display: block;
}

.soon-panel h3 {
  color: var(--ink);
  margin-bottom: 12px;
}

.soon-panel p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.65;
}

/* High contrast waitlist buttons for light tournaments section */
.soon-panel .btn-ghost {
  background: transparent;
  color: var(--green-600);
  border: 2px solid var(--green-600);
  box-shadow: none;
}

.soon-panel .btn-ghost:hover {
  background: var(--green-600);
  color: #fff;
  border-color: var(--green-600);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════
   APP SECTION
   ══════════════════════════════════════════════════════ */
.app-section {
  background: linear-gradient(135deg, rgba(10, 34, 16, 0.88), rgba(6, 24, 11, 0.94)), url('assets/appbackground.webp') no-repeat center bottom / cover;
  position: relative;
  overflow: hidden;
  padding-top: 40px;    /* Slightly more padding to balance centered alignment layout */
  padding-bottom: 40px;
}

.app-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(164,211,59,.08), transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
}

/* Center elements for app section */
.app-section .split-layout {
  align-items: center;
  gap: 32px; /* Much smaller gap to bring them closer together */
  max-width: 960px; /* Restrict width to pull it towards the center of the viewport */
  margin: 0 auto; /* Centered alignment wrapper on page */
}

.app-section .feature-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left aligned content items */
  text-align: left; /* Left aligned text */
}

.app-section h2 .accent {
  background: linear-gradient(135deg, var(--lime), var(--lime-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-section .eyebrow {
  margin-left: 0;
  margin-right: 0;
}

.app-section .lead {
  margin-left: 0;
  margin-right: 0;
}

.app-section .app-lead {
  font-size: clamp(14px, 1.35vw, 17.2px) !important; /* Increased by an additional 20% */
  line-height: 1.5;
}

.app-section .app-store-btns {
  justify-content: flex-start; /* Left aligned buttons */
}

.phone-stack {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
}

.phone-mockup {
  width: 165px;
  background: #fff;
  color: var(--ink);
  border-radius: 28px;
  border: 6px solid #1a1a1a;
  padding: 18px 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 5px;
  background: #1a1a1a;
  border-radius: var(--radius-full);
}

.phone-mockup:nth-child(2) {
  margin-top: 28px;
}

.phone-mockup h4 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 16px;
  margin-top: 10px;
}

.phone-card {
  background: var(--green-50);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: transform .2s;
}

.phone-card:hover {
  transform: scale(1.02);
}

.app-store-btns {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.store-btn {
  background: #0a0a0a;
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .3s;
}

.store-btn:hover {
  background: #1a1a1a;
  border-color: rgba(255,255,255,.3);
  transform: translateY(-2px);
}

.store-btn .store-icon {
  font-size: 22px;
}

/* ══════════════════════════════════════════════════════
   DEMO / CTA SECTION
   ══════════════════════════════════════════════════════ */
.demo-section {
  background: var(--surface-2);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr; /* Restore original column layout */
  gap: 40px;
  align-items: center; /* Center vertically on the same row */
}

/* SaaS Contact Details Row at the bottom of the section */
.demo-contact-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}

.demo-contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px; /* Reduced gap since we now have vertical dividers */
}

/* Vertical divider for bottom contact row */
.contact-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border);
  opacity: 0.8;
  align-self: center;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-light);
  font-size: 14px;
  transition: color 0.25s;
}

.contact-info-item:hover {
  color: var(--green-600);
}

.contact-info-icon {
  width: 18px;
  height: 18px;
  color: var(--green-500);
  flex-shrink: 0;
}

.contact-info-text {
  display: flex;
  flex-direction: column;
}

.contact-info-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--subtle);
  letter-spacing: 0.05em;
  margin-bottom: 1px;
}

.contact-info-value {
  font-weight: 600;
}

/* Social Icons styling inside bottom row */
.demo-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-light);
  transition: all 0.3s var(--ease-out);
}

.social-link:hover {
  background: var(--green-500);
  color: #fff;
  border-color: var(--green-500);
  transform: translateY(-2px);
}

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

.demo-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 32px; /* Reduced vertical padding from 32px to 22px (~10% shorter) */
  height: 380px; /* Explicit height to align with illustration wrapper */
  box-sizing: border-box;
}

.demo-form .full-width {
  grid-column: 1 / -1;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px; /* Reduced vertical padding to make it more compact */
  font: inherit;
  font-size: 15px;
  background: var(--surface-2);
  color: var(--ink);
  transition: all .3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(22, 144, 68, .1);
}

.form-textarea {
  min-height: 80px; /* Reduced from 120px to fit form container height */
  resize: none;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2364748b'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark-900);
  color: rgba(255,255,255,.8);
  padding: 64px calc(10vw + 56px) 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 42px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand img:not(.footer-brand-ball) {
  width: 180px;
  margin-bottom: 16px;
  filter: brightness(1.2);
}

.footer-brand p {
  color: rgba(255,255,255,.5);
  font-size: 14px;
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 16px;
}

.footer-brand-ball {
  width: 60px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: 14px;
  padding: 6px 0;
  transition: color .2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

/* ══════════════════════════════════════════════════════
   PARALLAX DECORATIVE ELEMENTS
   ══════════════════════════════════════════════════════ */
.parallax-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.parallax-orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(164,211,59,.1), transparent 70%);
  top: 30%;
  right: -80px;
}

.parallax-orb-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(22,144,68,.08), transparent 70%);
  bottom: 20%;
  left: -60px;
}

/* Floating elements styles */
.deco-element {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  z-index: 1;
}

.deco-element img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.25));
}

/* Hero elements placement (grouped on the right near the card image) */
.deco-golfer-hero {
  width: clamp(140px, 12vw, 240px);
  top: calc(48% + 120px); /* Raised 200px total (from 320px to 120px offset) */
  right: 2%;
  opacity: 1;
  filter: blur(0.5px);
}

.deco-ball-hero {
  width: clamp(72px, 7.25vw, 130px); /* 45% larger */
  top: calc(22% + 140px); /* Lowered an additional 50px (140px total) */
  right: 42%; /* Moved further left to prevent overlap with card */
  opacity: 1;
  z-index: 10; /* Float in front of hero-card */
}

.deco-flag-hero {
  width: clamp(80px, 7vw, 130px);
  top: calc(15% + 170px); /* Lowered an additional 100px (170px total) */
  right: 8%;
  opacity: 1;
  z-index: 10;
}

/* Modulos Section Decos */
.deco-ball-modulos {
  width: clamp(60px, 6vw, 110px);
  left: 3%;
  top: 20%;
  opacity: 1;
}

.deco-trophy-modulos {
  width: clamp(70px, 7vw, 120px);
  right: 3%;
  bottom: 15%;
  opacity: 1;
}

/* Tee Times Section Decos */
.deco-cart-teetimes {
  width: clamp(180px, 18vw, 313px); /* Made 20% larger than previous */
  right: calc(4% - 95px); /* Moved 25px to the left (120px - 25px) */
  top: calc(15% + 500px); /* Raised by an additional 35px (535px - 35px) */
  opacity: 1;
}

.deco-ball-teetimes {
  width: clamp(60px, 5vw, 100px);
  left: 4%;
  bottom: 20%;
  opacity: 1;
}

/* Rounds Section Decos */
.deco-flag-rounds {
  width: clamp(98px, 9.8vw, 182px); /* Made 40% larger */
  right: calc(5% + 35px); /* Moved 35px to the left */
  left: auto;
  top: 25%;
  opacity: 1;
}

/* Caddie Master Section Decos */
.deco-cart-caddie {
  width: clamp(195px, 19.5vw, 342px); /* Made an additional 50% larger */
  right: 4%;
  left: auto;
  top: calc(20% + 720px); /* Lowered an additional 250px (720px total offset from baseline) */
  opacity: 1;
}

/* Pro Shop Section Decos */
.deco-trophy-proshop {
  width: clamp(70px, 7vw, 120px);
  right: 5%;
  bottom: calc(20% + 100px); /* Raised another 50px (100px total) to ensure it stays in the Pro Shop section */
  opacity: 1;
}

/* App Section Decos */
.deco-app-floating {
  width: clamp(70px, 7vw, 120px);
  left: 4%;
  top: 30%;
  transform: translateX(50px); /* Shifted 30px more to the right (50px total) */
  opacity: 1;
}

.deco-app-floating-right {
  width: clamp(91px, 9.1vw, 156px); /* Made 30% larger (original clamp(70px, 7vw, 120px)) */
  right: 4%;
  top: calc(72% + 30px);
  transform: translateX(-150px); /* Shifted 30px more to the left (150px total) */
  opacity: 1;
}

/* Demo Section Decos */
.deco-ball-demo {
  width: clamp(60px, 6vw, 110px);
  left: 3%;
  top: 30%;
  opacity: 1;
}

.deco-faq-demo {
  width: clamp(70px, 7vw, 120px);
  right: 3%;
  bottom: 25%;
  opacity: 1;
}

/* App slideshow container and device frame mock */
.phone-slideshow-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.smartphone-frame {
  width: 250px;
  height: 500px;
  background: #000;
  border-radius: 40px;
  border: 12px solid #1c1d1e;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: visible;
}

.smartphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: #0f172a;
  position: relative;
  overflow: hidden;
}

.smartphone-notch {
  width: 110px;
  height: 18px;
  background: #1c1d1e;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-dots {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 15;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s;
}

.carousel-dots .dot.active {
  background: var(--lime);
}

/* Demo section illustration */
.demo-illustration-wrap {
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); /* Match form border */
  border-radius: var(--radius-lg); /* Match form rounded corners */
  background: var(--surface); /* Match form background */
  height: 380px; /* Matched to the exact height of .demo-form */
  display: flex;
}

.demo-section .demo-lead {
  font-size: clamp(12.6px, 1.2vw, 15.4px) !important; /* Made 40% larger than other descriptions (~11px) */
  line-height: 1.5;
}

.demo-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Keeps aspect ratio intact while filling the 380px height container */
  display: block;
  transition: transform 0.6s var(--ease-out);
  transform: scale(1.25); /* Zoom in to eliminate built-in transparent/white margins of the PNG image */
}

.demo-illustration-wrap:hover .demo-illustration {
  transform: scale(1.32); /* Zoom in slightly more on hover */
}

/* Tab flying animation elements */
.flying-deco {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity;
  transition: transform 0.8s cubic-bezier(0.1, 0.8, 0.3, 1), opacity 0.8s ease;
  width: 70px;
  height: 70px;
}

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

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  /* Nav */
  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 200;
    animation: navFadeIn .35s var(--ease-out);
  }

  @keyframes navFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    font-size: 18px;
    padding: 14px 24px;
  }

  .nav .login-link {
    font-size: 16px;
    margin-left: 0;
    margin-top: 12px;
    position: static; /* override absolute on mobile */
    border: none;
  }

  .nav .btn {
    margin-left: 0;
    margin-top: 4px;
    position: static; /* override absolute on mobile */
  }

  .nav-divider {
    display: none !important; /* Hide divider on mobile viewports */
  }

  .nav-modules-wrapper {
    display: contents !important; /* Remove wrapper container constraints on mobile block list layout */
  }

  .menu-toggle {
    display: flex;
    z-index: 300;
  }

  /* Header Mobile Optimization */
  .site-header {
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 80px !important; /* Force a consistent fixed height on mobile devices */
  }

  .brand {
    position: static !important;
  }

  .brand img {
    width: 120px !important;
  }

  .menu-toggle {
    display: flex !important;
    position: static !important;
    margin-left: auto;
  }

  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 200;
    animation: navFadeIn .35s var(--ease-out);
  }

  @keyframes navFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    font-size: 18px;
    padding: 14px 24px;
  }

  .nav .login-link {
    font-size: 16px;
    margin-left: 0;
    margin-top: 12px;
    position: static; /* override absolute on mobile */
    border: none;
  }

  .nav .btn {
    margin-left: 0;
    margin-top: 4px;
    position: static; /* override absolute on mobile */
  }

  .nav .close-nav {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 28px;
    color: var(--ink);
    background: none;
    border: none;
    cursor: pointer;
  }

  /* Hide heavy decorative float elements on mobile for performance and clean UI */
  .deco-element,
  .tourney-side-deco,
  .tron-golf-grid {
    display: none !important;
  }

  body, html {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
  }

  /* Hero Mobile Centering & Overflow fix */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 140px !important; /* Internal spacing below navbar */
    padding-bottom: 70px; /* Increased to push sections below and avoid overlaps */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    margin-top: 80px !important; /* Pushes the entire section down cleanly below the 80px fixed header navbar */
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 44px) !important;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
  }

  .hero-copy .lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 15px !important;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-card {
    width: 100%;
    max-width: 531px; /* Increased by 15% from 462px */
    margin-top: 22px; /* Raised by 10px (from 32px) */
    transform-origin: top center;
  }

  .hero-card-inner {
    height: 190px; /* Reduced height to make the proportion more horizontal and prevent overlap */
    border-radius: var(--radius-lg);
    padding: 6px;
  }

  /* Dynamically scale down the container if screen width is narrower than 480px to prevent viewport overflow */
  @media (max-width: 480px) {
    .hero-card {
      transform: scale(0.85);
      margin-bottom: 30px; /* Safe positive margin to ensure spacing below the scaled element's pill */
    }
  }

  /* Center alignment globally on mobile split layouts */
  .split-layout,
  .split-layout.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .feature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
  }

  .feature-content h2 {
    font-size: clamp(22px, 6vw, 32px) !important;
    text-align: center;
  }

  .feature-content .eyebrow {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .feature-content .lead {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px !important;
  }

  .feature-content .check-list {
    text-align: left;
    display: inline-block;
    margin: 16px auto;
  }

  .feature-content .btn {
    margin: 8px auto 0;
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .feature-visual {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  /* Mock containers overflow prevention */
  .mock-tee, .mock-caddie, .mock-proshop, .tournament-mock, .soon-panel {
    width: 100% !important;
    max-width: 340px !important;
    box-sizing: border-box;
    margin: 0 auto;
  }

  /* Modules */
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
  }

  /* Tabs Navigation Horizontal Scroll with fading indicator */
  .tab-nav {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    padding: 8px 6px; /* Reduced lateral padding to draw buttons closer to screen edges */
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
    margin: 0 0 24px 0; /* Remove negative screen bleed margin to prevent global page scroll overflow */
    background: rgba(255, 255, 255, 0.85);
  }

  .tab-btn {
    scroll-snap-align: center;
    padding: 9px 16px; /* Made 10% narrower than baseline (18px -> 16px) and 8% less tall (10px -> 9px vertical padding) */
    font-weight: 700;
    font-size: 12px;
  }

  .tab-panels {
    padding: 0;
    width: 100%;
    overflow: hidden;
  }

  .tab-panel.active {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0;
  }

  .tab-panel .tab-content {
    text-align: center;
  }

  .tab-panel .check-list {
    text-align: left;
    display: inline-block;
    max-width: 100%;
  }

  /* Demo */
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .demo-contact-info {
    align-items: center;
    margin-bottom: 24px;
  }

  .contact-info-item {
    text-align: left;
  }

  .demo-contact-footer {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
  }

  .demo-contact-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .contact-divider {
    display: none !important; /* Hide vertical dividers on mobile stack */
  }

  .demo-form {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .demo-illustration-wrap {
    height: 250px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-brand {
    grid-column: span 2;
    align-items: center;
    text-align: center;
  }

  /* Section padding */
  .section {
    padding: var(--section-pad-mobile);
  }

  /* Social proof */
  .social-proof {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .social-proof .divider {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Scale down feature box grid columns for neat readability */
  .rounds-features-grid,
  .caddie-features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  
  .feature-box span {
    font-size: 11px !important;
  }
}

@media (max-width: 640px) {
  .modules-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .phone-stack {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .phone-mockup:nth-child(2) {
    margin-top: 0;
  }

  .app-store-btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  /* Fallback to 1 column for feature-boxes on very narrow viewports */
  .rounds-features-grid,
  .caddie-features-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Benefits Subsection Styles ──────────────────── */
.benefits-subsection {
  margin-top: 80px;
  padding: 48px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.benefits-header h3 {
  font-size: clamp(24px, 2.5vw, 36px);
  color: var(--dark-900);
  margin-bottom: 12px;
}

.benefits-header .accent-text {
  background: linear-gradient(135deg, var(--lime) 0%, var(--lime-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.benefits-intro {
  color: var(--ink-light);
  font-size: 16px;
  margin-bottom: 32px;
}

/* Toggle Switch */
.benefits-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.benefits-toggle-bg {
  position: relative;
  display: flex;
  background: var(--dark-900);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 320px;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}

.benefits-toggle-btn {
  position: relative;
  flex: 1;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  z-index: 2;
  transition: color 0.3s var(--ease-out);
  border-radius: var(--radius-full);
}

.benefits-toggle-btn.active {
  color: var(--dark-900);
}

.benefits-toggle-slider {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  background: linear-gradient(135deg, var(--lime) 0%, var(--lime-end) 100%);
  border-radius: var(--radius-full);
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(27, 154, 69, 0.3);
}

/* Switch Sliding Effect */
.benefits-toggle-bg:has(#btn-soy-club.active) .benefits-toggle-slider {
  transform: translateX(100%);
}

/* Panes & Grid */
.benefits-pane {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.benefits-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  justify-content: center;
}

/* Cards */
.benefit-card {
  background: var(--surface-2);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--lime), var(--lime-end));
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: rgba(181, 220, 53, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green-600);
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
}

.benefit-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .benefits-subsection {
    padding: 32px 20px;
    margin-top: 60px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

