/* ============================================
   Gimme - Golf Community Landing Page
   Pure HTML/CSS/JS - No frameworks
   ============================================ */

:root {
  --green: rgb(6, 52, 44);
  --green-light: rgb(12, 68, 58);
  --yellow: rgb(253, 203, 74);
  --yellow-muted: rgba(253, 203, 74, 0.85);
  --bg-dark: rgb(6, 52, 44);
  --bg-card: rgb(8, 62, 54);
  --bg-alt: rgb(10, 72, 62);
  --text-main: rgb(253, 203, 74);
  --text-muted: rgba(253, 203, 74, 0.75);
  --border-subtle: rgba(253, 203, 74, 0.15);
  --font-main: 'Outfit', -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}
h2 {
  text-box: trim-both ex alphabetic;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== Header ========== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgb(6, 52, 44);
}

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

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-main {
  display: flex;
  gap: 2rem;
}

.nav-main a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.35rem;
  transition: color 0.2s;
}

.nav-main a:hover {
  color: rgb(225, 180, 40);
}

.btn-cta {
  background: var(--yellow);
  color: var(--green) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-cta:hover {
  background: rgb(255, 215, 100);
  transform: translateY(-1px);
}

/* ========== Hero ========== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 0 3rem;
  position: relative;
  padding-bottom: 10px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 0;
}

.hero-video-text {
  position: relative;
  z-index: 1;
  width: min(90vw, 900px);
  height: 300px;
}

.hero-video-mask {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center top;
  /* animation: hero-mask-grow 7s ease-in-out infinite alternate; */
}

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

@keyframes hero-mask-grow {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

.hero-video-mask-desktop {
  margin-top: 1.5rem;
  /* -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-420 0 1840 300'%3E%3Ctext x='500' y='110' text-anchor='middle' font-family='Outfit,-apple-system,sans-serif' font-size='88' font-weight='900' fill='white'%3EUNITING%20THE%20GOLF%20COMMUNITY%3C/text%3E%3Ctext x='500' y='208' text-anchor='middle' font-family='Outfit,-apple-system,sans-serif' font-size='88' font-weight='900' fill='white'%3ETHROUGH%20SHARED%20PASSION.%3C/text%3E%3C/svg%3E"); */
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='20 0 1160 420'%3E%3Ctext x='600' y='130' text-anchor='middle' font-family='Futura,Arial,sans-serif' font-size='134' font-weight='900' fill='white'%3EWE CONNECT%3C/text%3E%3Ctext x='600' y='246' text-anchor='middle' font-family='Futura,Arial,sans-serif' font-size='134' font-weight='900' fill='white'%3EPOLISH GOLF%3C/text%3E%3Ctext x='600' y='404' text-anchor='middle' font-family='Futura,Arial,sans-serif' font-size='170' font-weight='900' fill='white'%3E...FINALLY%3C/text%3E%3C/svg%3E");
  /* -webkit-mask-repeat: no-repeat; */
  mask-repeat: no-repeat;
  /* -webkit-mask-position: center; */
  mask-position: center;
  /* -webkit-mask-size: 100% 100%; */
  mask-size: 100% 100%;
}

.hero-video-mask-mobile {
  display: none;
  /* -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 450'%3E%3Ctext x='500' y='80' text-anchor='middle' font-family='Outfit,-apple-system,sans-serif' font-size='95' font-weight='900' fill='white'%3EUNITING%20THE%3C/text%3E%3Ctext x='500' y='175' text-anchor='middle' font-family='Outfit,-apple-system,sans-serif' font-size='95' font-weight='900' fill='white'%3EGOLF%20COMMUNITY%3C/text%3E%3Ctext x='500' y='270' text-anchor='middle' font-family='Outfit,-apple-system,sans-serif' font-size='95' font-weight='900' fill='white'%3ETHROUGH%20SHARED%3C/text%3E%3Ctext x='500' y='365' text-anchor='middle' font-family='Outfit,-apple-system,sans-serif' font-size='95' font-weight='900' fill='white'%3EPASSION.%3C/text%3E%3C/svg%3E"); */
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='250 0 1050 420'%3E%3Ctext x='775' y='122' text-anchor='middle' font-family='Futura,Arial,sans-serif' font-size='134' font-weight='900' fill='white'%3EWE CONNECT%3C/text%3E%3Ctext x='775' y='246' text-anchor='middle' font-family='Futura,Arial,sans-serif' font-size='134' font-weight='900' fill='white'%3EPOLISH GOLF%3C/text%3E%3Ctext x='775' y='396' text-anchor='middle' font-family='Futura,Arial,sans-serif' font-size='170' font-weight='900' fill='white'%3E...FINALLY%3C/text%3E%3C/svg%3E");
  /* -webkit-mask-repeat: no-repeat; */
  mask-repeat: no-repeat;
  /* -webkit-mask-position: center; */
  mask-position: center;
  /* -webkit-mask-size: 100% 100%; */
  mask-size: 100% 100%;
}

@media (max-width: 768px) {

  .hero-video-mask-desktop {
    display: none;
  }

  .hero-video-mask-mobile {
    display: block;
  }
}

@supports not ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .hero-video-mask {
    display: none;
  }

  .hero-video-text::before {
    content: "UNITING THE GOLF COMMUNITY\A THROUGH SHARED PASSION.";
    white-space: pre-line;
    display: block;
    color: var(--green);
    font-family: var(--font-main);
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.05;
    text-transform: uppercase;
    text-align: center;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 2rem 0;
}

@media (min-width: 769px) {
  .hero-content {
    margin: 5rem 0 2rem;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero p {
  font-size: 2.2rem;
  color: var(--green);
  margin-bottom: 0;
}

.btn-primary {
  display: inline-block;
  background: var(--yellow);
  color: var(--green);
  padding: 0.85rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: rgb(255, 215, 100);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(253, 203, 74, 0.35);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ========== Notifications Section ========== */
.notifications {
  padding: 5rem 5%;
  padding-top: 10px;
  background: #ffffff;
}

.notifications-showcase {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  min-height: 680px;
}

/* ========== Phone Component ========== */
.phone {
  position: relative;
  overflow: hidden;
  /* Tweak width/height to match frame exactly */
  width: 480px;
}

.phone__frame {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}

.phone__screen {
  position: absolute;
  overflow: hidden;
  z-index: 1;
  top: 3%;
  left: 21%;
  width: 60.8%;
  height: 94%;
  border-radius: 30px;
}

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

/* Notifications section phone */
.notifications-showcase .phone {
  width: 480px;
  margin: 0 auto;
}

.feature-callout {
  --callout-final-x: 0px;
  --callout-enter-shift: 0px;
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 3;
  max-width: 300px;
  opacity: 1;
  transform: translateX(var(--callout-final-x));
  transition: opacity 0.55s ease-out, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.notifications-showcase.is-pending-animation .feature-callout {
  opacity: 0;
  transform: translateX(calc(var(--callout-final-x) + var(--callout-enter-shift)));
}

.notifications-showcase.animated .feature-callout {
  opacity: 1;
  transform: translateX(var(--callout-final-x));
}

.callout-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.callout-icon svg {
  display: block;
  width: 34px;
  height: 34px;
}

.callout-label {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.callout-top-left {
  top: 8%;
  left: 0;
  --callout-final-x: 25px;
  --callout-enter-shift: -80px;
  transition-delay: 0s;
  background: #FDCB4Ad0;
  color: var(--green);
}

.callout-top-right {
  top: 24%;
  right: 2%;
  --callout-final-x: -25px;
  --callout-enter-shift: 80px;
  transition-delay: 0.22s;
  background: rgba(6, 52, 44, 0.8125);
  color: var(--yellow);
}

.callout-bottom-left {
  bottom: 26%;
  left: 0;
  --callout-final-x: 25px;
  --callout-enter-shift: -80px;
  transition-delay: 0.44s;
  background: rgba(6, 52, 44, 0.8125);
  color: var(--yellow);
}

.callout-bottom-right {
  bottom: 20%;
  right: 0;
  --callout-final-x: -25px;
  --callout-enter-shift: 80px;
  transition-delay: 0.66s;
  background: #FDCB4Ad0;
  color: var(--green);
}

/* ========== Story Section ========== */
.story {
  padding: 5rem 5%;
}

.story h2,
.story .story-title {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 700;
  font-family: "Century Gothic", "CenturyGothic", AppleGothic, sans-serif;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.1em;
  color: var(--yellow);
}

.story-content {
  max-width: 720px;
  margin: 0 auto 3rem;
}

.story-content p,
.story-content .story-paragraph {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 300;
  font-family: "Century Gothic", "CenturyGothic", AppleGothic, sans-serif;
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.75;
  text-align: justify;
}

.story-content .highlight {
  color: var(--yellow);
  font-weight: 700;
  font-family: "Century Gothic", "CenturyGothic", AppleGothic, sans-serif;
}

/* Story animation - initial state */
.story .story-title,
.story .story-paragraph {
  opacity: 0;
  transform: translateY(30px);
}

.story.animated .story-title,
.story.animated .story-paragraph {
  opacity: 1;
  transform: translateY(0);
}

.story .story-title {
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.story.animated .story-title {
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.story .story-paragraph {
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.story.animated .story-paragraph:nth-child(1) { transition-delay: 0.2s; }
.story.animated .story-paragraph:nth-child(2) { transition-delay: 0.35s; }
.story.animated .story-paragraph:nth-child(3) { transition-delay: 0.5s; }
.story.animated .story-paragraph:nth-child(4) { transition-delay: 0.65s; }

/* ========== Values Section ========== */
.values {
  padding: 5rem 5%;
  background: var(--bg-alt);
}

.values h2 {
  font-size: 3rem;
  font-weight: 700;
  font-family: "Century Gothic", "CenturyGothic", AppleGothic, sans-serif;
  text-align: center;
  margin-bottom: 5rem;
  letter-spacing: 0.1em;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.value-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s, border-color 0.2s;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(253, 203, 74, 0.4);
}

.value-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--yellow);
}

.value-card p {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.7;
  text-align: justify;
}

/* ========== Features Section ========== */
.features {
  padding: 5rem 5%;
  background: #ffffff;
}

.features h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: 0.02em;
  color: var(--green);
}

.features-list {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;

  @media (min-width: 901px) {
    article {
      &:not(:first-child) {
        margin-top: -120px;
      }
    }
  }
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  min-height: 380px;
}

.feature-row--alt {
  flex-direction: row-reverse;
}

.feature-content {
  flex: 1;
  min-width: 0;
}

.feature-content h3 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--green);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.feature-content p {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--green);
  opacity: 0.85;
}

.feature-phone {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.features-list .phone {
  width: 320px;
}

@media (max-width: 900px) {
  .feature-row,
  .feature-row--alt {
    flex-direction: column;
    gap: 2.5rem;
    min-height: auto;
    text-align: center;
  }

  .feature-content h3 {
    margin-bottom: 1rem;
  }

  .features-list .phone {
    width: 280px;
  }
}

/* ========== Download CTA ========== */
.download-cta {
  padding: 6rem 5%;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-dark) 100%);
  text-align: center;
}

.download-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.download-cta p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.phone-mockups {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.phone-mockups .phone {
  width: 480px;
}


/* ========== Newsletter ========== */
.newsletter {
  padding: 5rem 5%;
  background: var(--bg-card);
}

.newsletter h2 {
  font-size: clamp(2.5rem, 10vw, 8rem);

  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  font-weight: 700;
  text-align: center;
  margin-top: 5px;
  margin-bottom: 60px;
}

.newsletter > p {
  text-align: justify;
  font-size: 17px;
  color: white;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.newsletter-form input[type="email"] {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-dark);
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--yellow);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--yellow);
}

.newsletter-form .newsletter-btn {
  align-self: center;
  margin-top: 0.5rem;
  min-width: 190px;
  padding: 0.95rem 2.25rem;
  border: 2px solid var(--yellow);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: none;
}

.newsletter-form .newsletter-btn:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}

.newsletter-form .newsletter-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.newsletter-form .newsletter-btn:disabled:hover {
  transform: none;
}

.privacy-link {
  color: var(--yellow);
  text-decoration: underline;
  margin-left: 0.35rem;
}

/* ========== Subscription Modal ========== */
body.is-modal-open {
  overflow: hidden;
}

.subscription-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.subscription-modal.is-open {
  display: flex;
}

.subscription-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.subscription-modal__content {
  position: relative;
  width: min(92vw, 520px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-card);
  color: var(--text-main);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.subscription-modal__content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.85rem;
}

.subscription-modal__content p {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 1.6rem;
}

.subscription-modal__button {
  border: 2px solid var(--yellow);
  cursor: pointer;
}

/* ========== Footer ========== */
footer {
  padding: 2rem 5%;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .logo img {
    height: 38px;
  }

  .nav-main {
    gap: 0.75rem;
  }

  .nav-main a {
    font-size: 1.15rem;
  }

  .hero {
    padding: 6rem 1.5rem 2.5rem;
  }

  .hero-video-text {
    width: 95vw;
    height: min(40vh, 280px);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.7rem;
  }

  .notifications-showcase {
    --notify-scale: 0.82;
    max-width: calc(700px * var(--notify-scale));
    min-height: calc(680px * var(--notify-scale));
  }

  .notifications-showcase .phone {
    width: calc(480px * var(--notify-scale));
  }

  .feature-callout {
    max-width: calc(280px * var(--notify-scale));
    gap: calc(0.85rem * var(--notify-scale));
    padding: calc(1rem * var(--notify-scale)) calc(1.5rem * var(--notify-scale));
    border-radius: calc(16px * var(--notify-scale));
  }

  .callout-icon svg {
    width: calc(34px * var(--notify-scale));
    height: calc(34px * var(--notify-scale));
  }

  .callout-label {
    font-size: calc(1.15rem * var(--notify-scale));
    line-height: 1.3;
  }

  .callout-top-left {
    top: 8%;
    left: 0;
    --callout-final-x: calc(25px * var(--notify-scale));
    --callout-enter-shift: calc(-80px * var(--notify-scale));
  }

  .callout-top-right {
    top: 24%;
    right: 0;
    --callout-final-x: calc(-25px * var(--notify-scale));
    --callout-enter-shift: calc(80px * var(--notify-scale));
  }

  .callout-bottom-left {
    bottom: 26%;
    left: 0;
    --callout-final-x: calc(25px * var(--notify-scale));
    --callout-enter-shift: calc(-80px * var(--notify-scale));
  }

  .callout-bottom-right {
    bottom: 4%;
    right: 0;
    --callout-final-x: calc(-25px * var(--notify-scale));
    --callout-enter-shift: calc(80px * var(--notify-scale));
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .phone-mockups .phone {
    width: 340px;
  }
}

@media (max-width: 480px) {
  .hero p {
    font-size: 1.45rem;
  }

  .notifications-showcase {
    --notify-scale: 0.7;
    max-width: calc(700px * var(--notify-scale));
    min-height: calc(680px * var(--notify-scale));
  }

  .notifications-showcase .phone {
    width: calc(480px * var(--notify-scale));
  }

  .feature-callout {
    max-width: calc(280px * var(--notify-scale));
    gap: calc(0.85rem * var(--notify-scale));
    padding: calc(1rem * var(--notify-scale)) calc(1.5rem * var(--notify-scale));
    border-radius: calc(16px * var(--notify-scale));
  }

  .callout-icon svg {
    width: calc(34px * var(--notify-scale));
    height: calc(34px * var(--notify-scale));
  }

  .callout-label {
    font-size: calc(1.15rem * var(--notify-scale));
    line-height: 1.3;
  }

  .callout-top-left {
    --callout-final-x: calc(25px * var(--notify-scale));
    --callout-enter-shift: calc(-80px * var(--notify-scale));
  }

  .callout-top-right {
    --callout-final-x: calc(-25px * var(--notify-scale));
    --callout-enter-shift: calc(80px * var(--notify-scale));
  }

  .callout-bottom-left {
    --callout-final-x: calc(25px * var(--notify-scale));
    --callout-enter-shift: calc(-80px * var(--notify-scale));
  }

  .callout-bottom-right {
    --callout-final-x: calc(-25px * var(--notify-scale));
    --callout-enter-shift: calc(80px * var(--notify-scale));
  }
}
