@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg: #f6faff;
  --bg-soft: #edf5ff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --line: #d7e6f8;
  --text: #102033;
  --text-muted: #5e738d;
  --accent: #4a8fe8;
  --accent-strong: #2f72c9;
  --success: #2f9f7e;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background:
    radial-gradient(900px 340px at 8% -15%, rgba(74, 143, 232, 0.18), transparent 58%),
    radial-gradient(740px 300px at 96% 0%, rgba(112, 178, 255, 0.13), transparent 62%),
    linear-gradient(180deg, #fbfdff, #f3f8ff 56%, #eef5ff);
  overflow-x: hidden;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(252, 254, 255, 0.88);
  border-bottom: 1px solid rgba(47, 114, 201, 0.15);
}

.nav-row {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.55rem 0;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.4rem 0.58rem;
  border-radius: 9px;
  transition: color 160ms ease, background-color 160ms ease;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(74, 143, 232, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.login-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.42rem 0.6rem;
  border-radius: 9px;
  transition: color 160ms ease, background-color 160ms ease;
}

.login-link:hover {
  color: var(--text);
  background: rgba(74, 143, 232, 0.12);
}

/* ── Hamburger toggle button ─────────────────────────────────── */

.nav-toggle {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 4px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 150ms ease;
}

.nav-toggle:hover {
  background: rgba(74, 143, 232, 0.1);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 220ms ease, opacity 180ms ease;
}

/* Animate to X when open */
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.add-listing-btn {
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(180deg, #5c9df0, #357ad4);
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  transition: transform 140ms ease, filter 160ms ease;
}

.add-listing-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
}

.hero {
  padding: 1.8rem 0 2.2rem;
}

.hero-inner {
  text-align: center;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 255, 0.98)),
    linear-gradient(0deg, rgba(74, 143, 232, 0.03), rgba(74, 143, 232, 0.03));
  border: 1px solid rgba(47, 114, 201, 0.16);
  border-radius: 22px;
  padding: 1.5rem 1.25rem 2rem;
  box-shadow: 0 20px 40px rgba(40, 94, 170, 0.12);
}

.hero-tag {
  margin: 0;
  color: #2f72c9;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  margin-top: 0.55rem;
  font-size: clamp(1.6rem, 7.6vw, 3rem);
  line-height: 1.14;
}

.hero-subtitle {
  margin: 0.72rem auto 0;
  color: var(--text-muted);
  max-width: 760px;
  font-size: clamp(0.96rem, 3.9vw, 1.1rem);
}

.search-shell {
  margin: 1.1rem auto 0;
  background: rgba(248, 252, 255, 0.96);
  border: 1px solid rgba(47, 114, 201, 0.16);
  border-radius: 18px;
  padding: 0.8rem;
  display: grid;
  gap: 0.62rem;
  text-align: left;
  box-shadow: 0 14px 24px rgba(42, 101, 178, 0.12);
}

.field {
  display: grid;
  gap: 0.34rem;
}

.field span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  padding: 0.74rem 0.8rem;
  font-size: 16px;
}

input::placeholder {
  color: #7d92aa;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 143, 232, 0.2);
}

.search-btn,
.cta-primary {
  border: 0;
  border-radius: 999px;
  min-height: 50px;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 130ms ease, filter 170ms ease;
}

.search-btn:hover,
.cta-primary:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.hero-trust {
  margin: 0.72rem 0 0;
  color: #2f72c9;
  font-size: 0.9rem;
  font-weight: 600;
}

.sports-categories,
.stringer-section,
.how-it-works,
.why-us,
.cta-section {
  padding: 1rem 0;
}

.sports-categories {
  padding-top: 1.7rem;
}

.how-it-works {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px;
  padding: 5.6rem 0;
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(245, 250, 255, 0.72), rgba(240, 247, 255, 0.86)),
    url('./images/how-it-works-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(2.8px) saturate(0.9);
  transform: scale(1.035);
  z-index: -2;
}

.how-it-works::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.26));
  z-index: -1;
}

.how-it-works .container {
  position: relative;
}

.category-grid,
.stringer-grid,
.steps-grid,
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.72rem;
}

.category-card {
  border: 1px solid rgba(47, 114, 201, 0.16);
  border-radius: 15px;
  background: var(--bg-card);
  min-height: 66px;
  color: var(--text);
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: transform 140ms ease, border-color 160ms ease, box-shadow 180ms ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 143, 232, 0.55);
  box-shadow: 0 12px 22px rgba(47, 114, 201, 0.16);
}

.category-card.is-active {
  border-color: rgba(74, 143, 232, 0.75);
  box-shadow: inset 0 0 0 1px rgba(74, 143, 232, 0.5);
}

.category-icon {
  font-size: 1.15rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 0.68rem;
}

h2 {
  font-size: clamp(1.2rem, 5.1vw, 1.72rem);
}

.section-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stringer-card,
.step-card,
.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(47, 114, 201, 0.12);
  border-radius: 16px;
  padding: 0.95rem;
  box-shadow: 0 12px 20px rgba(42, 101, 178, 0.1);
}

.stringer-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 140ms ease, border-color 170ms ease;
}

.stringer-card:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 143, 232, 0.45);
}

.stringer-card h3 {
  font-size: 1.02rem;
}

.card-city {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stringer-meta {
  margin: 0;
  padding-left: 1.1rem;
  color: #2d4258;
}

.stringer-meta li {
  margin-bottom: 0.28rem;
  font-size: 0.9rem;
}

.trust-pill {
  width: fit-content;
  margin-top: auto;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  background: rgba(74, 143, 232, 0.14);
  color: #2f72c9;
  border: 1px solid rgba(74, 143, 232, 0.28);
  font-size: 0.8rem;
  font-weight: 700;
}

.card-link {
  margin-top: 0.1rem;
  color: #ffffff;
  background: linear-gradient(180deg, #5c9df0, #357ad4);
  text-decoration: none;
  border-radius: 999px;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
}

.empty-state {
  margin: 0.72rem 0 0;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.step-icon {
  font-size: 1.2rem;
}

.step-card p,
.feature-card p {
  margin: 0.38rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.how-it-works .step-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(2px);
}

.cta-section {
  padding-top: 1.25rem;
}

.cta-inner {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 255, 0.98)),
    linear-gradient(0deg, rgba(74, 143, 232, 0.04), rgba(74, 143, 232, 0.04));
  border: 1px solid rgba(47, 114, 201, 0.14);
  border-radius: 18px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 14px 24px rgba(42, 101, 178, 0.12);
}

.cta-inner p {
  margin: 0.55rem auto 0.95rem;
  color: var(--text-muted);
  max-width: 620px;
}

.site-footer {
  margin-top: 1.25rem;
  border-top: 1px solid rgba(47, 114, 201, 0.15);
  background: #f7fbff;
}

.footer-inner {
  min-height: 84px;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-brand {
  margin: 0;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.footer-copy {
  margin: 0.18rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-nav a,
.footer-login {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

.footer-nav a:hover,
.footer-login:hover {
  color: var(--text);
}

/* ── Mobile nav (hamburger) ──────────────────────────────────── */

@media (max-width: 759px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav,
  .nav-actions {
    display: none;
    width: 100%;
  }

  .nav-open .main-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0 0.6rem;
    border-top: 1px solid rgba(47, 114, 201, 0.12);
  }

  .nav-open .main-nav a {
    font-size: 1rem;
    padding: 0.65rem 0.5rem;
    border-radius: 10px;
    width: 100%;
  }

  .nav-open .nav-actions {
    display: flex;
    padding: 0 0 0.75rem;
  }
}

@media (min-width: 760px) {
  .nav-row {
    min-height: 72px;
    gap: 1rem;
    flex-wrap: nowrap;
    padding: 0.35rem 0;
  }

  .search-shell {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 0.65rem;
  }

  .search-btn {
    min-width: 140px;
    min-height: 50px;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps-grid,
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .how-it-works {
    padding: 6.9rem 0;
  }

  .stringer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    min-height: 90px;
    padding: 0.9rem 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}

@media (min-width: 1040px) {
  .hero {
    padding: 2.25rem 0 1.4rem;
  }

  .hero-inner {
    padding: 2rem 1.6rem 2.35rem;
  }

  .stringer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .how-it-works {
    padding: 8.7rem 0;
  }
}
