:root {
  --bg: #0b0e14;
  --panel: #0f141c;
  --panel2: #101824;
  --text: #e9eefc;
  --muted: #a9b4d0;
  --border: rgba(255,255,255,0.10);
  --shadow: 0 18px 60px rgba(0,0,0,0.45);
  --radius: 18px;

  /* Our League brand */
  --accent: #4caf50;        /* primary */
  --accent-soft: rgba(76,175,80,0.22);
  --accent-strong: #43a047; /* slightly darker for hover */
  --accent-contrast: #08130b;

  --white: #ffffff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.9; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11,14,20,0.55);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0.2px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(76,175,80,0.35);

  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


.brand-text { font-size: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 600;
}
.nav-links a { padding: 8px 10px; border-radius: 10px; }
.nav-links a:hover { background: rgba(255,255,255,0.06); color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(76,175,80,0.55);
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--accent-strong)
  );
  color: var(--accent-contrast);
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

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

.btn-small { padding: 10px 12px; border-radius: 12px; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); transform: none; }

.nav-burger {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 10px;
  gap: 6px;
  flex-direction: column;
}
.nav-burger span {
  width: 18px;
  height: 2px;
  background: rgba(233,238,252,0.9);
  display: block;
  border-radius: 2px;
}

/* Mobile nav should NEVER show by default */
.nav-mobile {
  display: none;
  gap: 10px;
  padding: 0 0 16px 0;
}

/* Even if JS/CSS gets weird, respect the HTML hidden attribute */
.nav-mobile[hidden] {
  display: none !important;
}

.nav-mobile a { color: var(--muted); padding: 10px 12px; border-radius: 12px; }
.nav-mobile a:hover { background: rgba(255,255,255,0.06); color: var(--text); }


.hero {
  padding: 22px 0 18px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start; /* was center */
}
.pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
}
h1 {
  margin: 14px 0 10px;
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.6px;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  min-width: 210px;
}

.store:hover { background: rgba(255,255,255,0.09); }

.store-icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  color: rgba(255,255,255,0.92);
}

.store-text { display: inline-flex; flex-direction: column; }
.store-top { color: var(--muted); font-size: 12px; font-weight: 650; }
.store-bottom { font-size: 16px; font-weight: 850; letter-spacing: -0.2px; }

.store-badge img {
  height: 44px;
  width: auto;
  display: block;
}
.store-badge {
  display: inline-flex;
  align-items: center;
}
.store-badge:hover {
  filter: brightness(1.05);
}

.web-app-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  height: 44px;              /* match store badges */
  padding: 0 18px;

  border-radius: 10px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.85);

  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.web-app-link:hover {
  background: #111;
}


.web-icon {
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}



.micro {
  margin-top: 14px;
  color: rgba(233,238,252,0.70);
  font-size: 13px;
}

.hero-media {
  height: 100%;
}
.hero-media .mock {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: var(--shadow);
  padding: 14px;
  height: 78vh;        /* was min(72vh, 760px) */
  max-height: 860px;   /* allow it to grow on big monitors */
  overflow: hidden;
}
@media (max-width: 920px) {
  .hero {
    min-height: auto;         /* don’t force full-height hero on mobile */
  }
  .hero-media .mock {
    height: 60vh;
    max-height: 640px;
  }
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* fills the container */
  object-position: top;      /* keep the important stuff */
  display: block;
  border-radius: calc(var(--radius) - 10px);
}
.note {
  margin-top: 10px;
  color: rgba(233,238,252,0.65);
  font-size: 12px;
}
.note code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
}

.strip {
  padding: 18px 0 10px;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.strip-item {
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}
.strip-kicker { font-weight: 850; letter-spacing: -0.2px; }
.strip-text { color: var(--muted); margin-top: 6px; }

/* Strip used inside hero (more compact) */
.hero-strip {
  padding: 16px 0 0;   /* was 18px 0 10px on the standalone section */
}

.hero-strip .strip-grid {
  grid-template-columns: 1fr; /* stack in hero so it doesn't get cramped */
  gap: 10px;
}

@media (min-width: 720px) {
  .hero-strip .strip-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hero-strip .strip-item {
  padding: 12px 12px;
}

.section {
  position: relative;
  padding: 56px 0;
}
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    600px 200px at 50% -50px,
    rgba(76,175,80,0.06),
    transparent 70%
  );
  opacity: 0.4;
}
.section.alt {
  background: linear-gradient(
    180deg,
    rgba(76,175,80,0.08),
    #0b0e14 70%
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.4px;
}
.sub {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 70ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
  box-shadow: 0 10px 30px rgba(0,0,0,0.20);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h3 {
  margin: 10px 0 6px;
  font-size: 18px;
  color: #dff5e1;
}

.card p { margin: 0; color: var(--muted); }

/* Image wrapper */
.card-media {
  width: 100%;
  aspect-ratio: 9 / 16;   /* or 4 / 3 if your screenshots are taller */
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Image itself */
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* 👈 THIS is the key */
  display: block;
}

.icon { font-size: 22px; }

.steps {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}
.steps article:nth-child(1) { opacity: 1; }
.steps article:nth-child(2) { opacity: 0.95; }
.steps article:nth-child(3) { opacity: 0.9; }
.steps article:nth-child(4) { opacity: 0.85; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.06),
      rgba(255,255,255,0.02)
    );
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: var(--accent-soft);
  border: 1px solid rgba(76,175,80,0.45);
  color: #b9f6ca;
}

.step h3 { margin: 2px 0 4px; }
.step p { margin: 0; color: var(--muted); }

.center-cta {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}
details {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  padding: 14px 16px;
}
summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.final {
  padding: 56px 0 72px;
}
.final-box {
  border-radius: 26px;
  border: 1px solid rgba(76,175,80,0.45);
  background:
    linear-gradient(
      135deg,
      rgba(76,175,80,0.28),
      rgba(76,175,80,0.12)
    );
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}

.final-box p { color: rgba(233,238,252,0.78); margin-top: 8px; }

.final .cta-row {
  justify-content: center;
  margin-top: 18px;
}
.final .store-badge img {
  height: 48px;
}
.final .web-app-link {
  height: 48px;
}


.footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  background: rgba(0,0,0,0.18);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-weight: 650;
}
.footer-links a { padding: 8px 10px; border-radius: 10px; }
.footer-links a:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
  }

  .nav-mobile {
    display: grid;
  }
}
