/* ============================================================================
   Lineup - Sports Facility Management Landing Page Stylesheet
   Directly matching the visual reference image (media_1789714933945.jpg)
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   ---------------------------------------------------------------------------- */
:root {
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-cyan: #00D2C4;
  --color-teal: #01C2A8;
  --color-navy: #0B1938;
  --color-text-main: #0B1938;
  --color-text-muted: #475569;
  --color-text-subtle: #64748B;
  --color-border: #E2E8F0;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-cursive: 'Caveat', cursive, sans-serif;

  --shadow-card: 0 4px 14px -3px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 12px 24px -4px rgba(37, 99, 235, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-btn: 0 8px 20px -3px rgba(37, 99, 235, 0.38), 0 4px 10px -2px rgba(0, 210, 196, 0.25);
  --shadow-btn-hover: 0 12px 28px -4px rgba(37, 99, 235, 0.48), 0 6px 14px -2px rgba(0, 210, 196, 0.32);
}

/* ----------------------------------------------------------------------------
   2. Reset & Base Styles
   ---------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: #FFFFFF;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------------------------------------------
   3. Main Page Layout (Desktop Composition)
   ---------------------------------------------------------------------------- */
.landing-page-frame {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #FFFFFF;
  background-image: url('./assets/bg-desktop.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

@media (min-aspect-ratio: 16/10) {
  .landing-page-frame {
    background-size: cover;
    background-position: center center;
  }
}

/* Soft White Center Mask: guarantees 100% pure white space for center text with zero ghosting */
.center-backdrop-mask {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 54%;
  background-color: #FFFFFF;
  box-shadow: 0 0 50px 40px #FFFFFF;
  z-index: 2;
  pointer-events: none;
}

/* ----------------------------------------------------------------------------
   4. Central Dominant Content
   ---------------------------------------------------------------------------- */
.central-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 1. Lineup Brand Logo */
.logo-header {
  margin-bottom: 1.15rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lineup-logo {
  display: block;
  max-width: 250px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 2. Main Heading, Subtitle & Feature Categories */
.headline-section {
  max-width: 780px;
  margin: 0 auto 0.45rem;
}

.hero-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.2vw, 1.0625rem);
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

/* Feature Categories Nav List */
.feature-labels-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-labels-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  list-style: none;
  font-size: clamp(0.85rem, 1.05vw, 0.95rem);
  font-weight: 600;
  color: #334155;
}

.pipe-sep {
  color: var(--color-primary);
  font-weight: 700;
  opacity: 0.85;
  user-select: none;
}

/* 3. Five Feature Cards */
.feature-cards-section {
  width: 100%;
  max-width: 760px;
  margin: 0.2rem auto 1.65rem;
}

.cards-flex-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem;
  width: 100%;
}

.feature-card {
  flex: 1;
  min-width: 110px;
  max-width: 135px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  padding: 0.9rem 0.5rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.25);
}

.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F0F6FF 0%, #E8F2FE 100%);
  border: 1px solid rgba(219, 234, 254, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  transition: background 0.25s ease;
}

.feature-card:hover .icon-box {
  background: linear-gradient(135deg, #E0EDFF 0%, #D8EBFE 100%);
}

.feature-svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
}

.card-caption {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
}

/* 4. Coming Soon Section */
.coming-soon-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.coming-soon-title {
  font-size: clamp(1.85rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.coming-soon-subtitle {
  font-size: clamp(0.875rem, 1.05vw, 0.975rem);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 1.15rem;
}

/* Countdown Grid */
.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.countdown-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 0.6rem 0.75rem 0.55rem;
  min-width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

.countdown-number {
  font-size: clamp(1.4rem, 1.8vw, 1.65rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-subtle);
  text-transform: capitalize;
}

/* 5. CTA Button */
.cta-section {
  margin-bottom: 1.2rem;
}

.btn-cta-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(90deg, #2563EB 0%, #00C4D4 100%);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.8rem 2.05rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  outline: none;
}

.btn-cta-gradient:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: var(--shadow-btn-hover);
}

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

.btn-cta-gradient:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4), var(--shadow-btn);
}

.cta-envelope-icon {
  width: 18px;
  height: 18px;
}

/* 6. Contact Information */
.contact-section {
  margin-bottom: 1.15rem;
  text-align: center;
}

.contact-prompt {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.contact-email {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

.contact-email:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* 7. Footer */
.site-footer {
  text-align: center;
  padding-top: 0.25rem;
}

.footer-company {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-subtle);
  margin-bottom: 0.25rem;
}

.footer-mission {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* 8. Mobile Facilities Bar */
.mobile-facilities-bar {
  display: none;
  width: 100%;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
}

.mobile-bar-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 0.75rem;
}

.mobile-bar-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sport-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1E293B;
  background: #F1F5F9;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
}

/* ----------------------------------------------------------------------------
   5. Subscription Modal
   ---------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 25, 56, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #FFFFFF;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  padding: 2.25rem 1.85rem 1.85rem;
  box-shadow: 0 24px 48px -12px rgba(11, 25, 56, 0.22), 0 0 0 1px rgba(226, 232, 240, 0.8);
  position: relative;
  text-align: center;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-button {
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  background: none;
  border: none;
  font-size: 1.65rem;
  line-height: 1;
  color: #94A3B8;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 50%;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.modal-close-button:hover {
  color: var(--color-navy);
  background-color: #F1F5F9;
}

.modal-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.modal-icon-badge svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-primary);
}

.modal-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.45rem;
}

.modal-subtext {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-bottom: 1.5rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-group {
  position: relative;
  text-align: left;
}

.modal-input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-navy);
  background: #F8FAFC;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.modal-input:focus {
  background: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.modal-error-msg {
  display: none;
  font-size: 0.75rem;
  color: #EF4444;
  font-weight: 600;
  margin-top: 0.35rem;
  padding-left: 0.25rem;
}

.modal-error-msg.visible {
  display: block;
}

.modal-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(90deg, #2563EB 0%, #00C4D4 100%);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.modal-submit-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.submit-arrow-icon {
  width: 14px;
  height: 14px;
}

/* Success View */
.modal-success-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.15rem;
}

.modal-success-badge svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-teal);
}

.modal-done-btn {
  width: 100%;
  padding: 0.8rem;
  background: #0F172A;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.modal-done-btn:hover {
  background: #1E293B;
}

/* ----------------------------------------------------------------------------
   6. Responsive Breakpoints
   ---------------------------------------------------------------------------- */

/* Tablet (Screens <= 992px) */
@media (max-width: 992px) {
  .landing-page-frame {
    background: #FFFFFF;
    background-image: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  }

  .center-backdrop-mask {
    display: none;
  }

  .central-content {
    max-width: 720px;
    padding: 2rem 1.25rem 2rem;
  }

  .cards-flex-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
  }

  .feature-card {
    flex: 0 1 calc(33.333% - 0.85rem);
    min-width: 100px;
  }

  .mobile-facilities-bar {
    display: block;
  }
}

/* Mobile (Screens <= 480px) */
@media (max-width: 480px) {
  .central-content {
    padding: 1.75rem 0.875rem 2rem;
  }

  .lineup-logo {
    max-width: 185px;
  }

  .hero-title {
    font-size: 1.65rem;
    line-height: 1.22;
  }

  .hero-subtitle {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }

  .feature-labels-list {
    font-size: 0.8125rem;
    gap: 0.4rem;
  }

  /* 2-column feature card grid on mobile */
  .cards-flex-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    max-width: 320px;
  }

  .feature-card {
    max-width: none;
    padding: 0.75rem 0.5rem;
  }

  .feature-card:last-child {
    grid-column: span 2;
    max-width: 180px;
    margin: 0 auto;
    width: 100%;
  }

  .coming-soon-title {
    font-size: 1.65rem;
  }

  .coming-soon-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  /* 2x2 grid for countdown on small mobile */
  .countdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
  }

  .countdown-card {
    min-width: 0;
    width: 100%;
    padding: 0.6rem 0.5rem;
  }

  .btn-cta-gradient {
    width: 100%;
    max-width: 280px;
    padding: 0.85rem 1.5rem;
  }
}
