/* FootyStats — footystatss.app
   Dark navy ground built from the brand navy #00268F, with the brand green
   #047855 for fills. Green text is lifted to #12B481 so it clears 7:1 on the
   ground; #047855 itself only reaches 3.6:1 and is not safe for small text. */

:root {
  --ground: #050B1F;
  --surface: #0B1630;
  --surface-2: #101E3D;
  --line: rgba(154, 167, 196, 0.16);
  --ink: #F4F6FB;
  --muted: #9AA7C4;
  --muted-dim: #7C89A8;
  --navy: #00268F;
  --green: #047855;
  --green-text: #12B481;
  --green-bright: #1ECB93;
  --radius: 18px;
  --page: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Urbanist, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { width: min(100% - 48px, var(--page)); margin-inline: auto; }

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 11, 31, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .18s; }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--ink); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--green); color: #fff;
  font-weight: 700; font-size: 15px; text-decoration: none;
  border: 1px solid rgba(255,255,255,.14);
  transition: background .18s, transform .18s;
}
.pill:hover, .pill:focus-visible { background: #059268; transform: translateY(-1px); }
.pill--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.pill--ghost:hover, .pill--ghost:focus-visible { background: rgba(255,255,255,.06); }

:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------- eyebrow */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 26px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); }
.eyebrow--plain::before { display: none; }
.eyebrow .num { color: var(--green-text); }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; padding: 84px 0 70px; }
.hero::before {
  content: ""; position: absolute; inset: -220px -10% auto 40%;
  height: 620px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,38,143,.55), transparent 70%);
  filter: blur(10px);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
h1 { font-size: clamp(44px, 6.4vw, 82px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 26px; text-wrap: balance; }
h1 .accent { color: var(--green-text); display: block; }
.lede { font-size: clamp(17px, 1.35vw, 19px); color: var(--muted); max-width: 46ch; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero__note { font-size: 13px; color: var(--muted-dim); margin: 0; }

/* phones */
.phones { position: relative; height: 560px; }
.phone {
  position: absolute; width: 236px; border-radius: 34px; padding: 9px;
  background: linear-gradient(160deg, #26324f, #0d1428);
  box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
}
.phone img { border-radius: 26px; }
.phone--a { left: 4%;  top: 74px;  transform: rotate(-7deg); z-index: 2; }
.phone--b { left: 30%; top: 6px;   transform: rotate(1.5deg); z-index: 3; }
.phone--c { left: 57%; top: 104px; transform: rotate(8deg);  z-index: 1; }

.stat-card {
  position: absolute; right: -6px; top: 16px; z-index: 4;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 18px; box-shadow: 0 20px 44px rgba(0,0,0,.5);
}
.stat-card__label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dim); margin: 0 0 4px; }
.stat-card__value { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.stat-card__value span { color: var(--green-text); font-size: 16px; font-weight: 700; }

/* -------------------------------------------------------------- ticker */

.ticker { border-block: 1px solid var(--line); padding: 15px 0; overflow: hidden; background: rgba(0,38,143,.10); }
.ticker__track { display: flex; gap: 34px; width: max-content; animation: slide 34s linear infinite; }
.ticker span { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ticker span.sep { color: var(--green-text); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ sections */

section { padding: 96px 0; }
h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -0.032em; font-weight: 800; margin: 0 0 24px; text-wrap: balance; }
h2 .accent { color: var(--green-text); }
.section__lead { color: var(--muted); max-width: 58ch; font-size: 18px; margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; position: relative; overflow: hidden;
}
.card__n { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--green-text); margin: 0 0 18px; }
.card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card--wide { grid-column: span 2; background: linear-gradient(120deg, var(--navy), #061033); }
.card--wide h3 { font-size: 28px; }
.card__stat { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 18px 0 0; }
.card__stat span { font-size: 15px; color: var(--green-text); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; counter-reset: step; }
.step { border-top: 2px solid var(--green); padding-top: 22px; }
.step__n { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--green-text); margin: 0 0 12px; }
.step h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }

/* gallery */
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 48px 0 14px; scroll-snap-type: x mandatory; }
.gallery img { width: 250px; flex: 0 0 auto; border-radius: 20px; border: 1px solid var(--line); scroll-snap-align: start; }

/* quote */
.quote { text-align: center; border-block: 1px solid var(--line); background: rgba(4,120,85,.07); }
.quote__mark { font-size: 60px; line-height: 1; color: var(--green-text); margin: 0 0 8px; font-weight: 800; }
.quote blockquote { font-size: clamp(28px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.032em; line-height: 1.1; margin: 0 auto 22px; max-width: 18ch; text-wrap: balance; }
.quote cite { font-style: normal; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dim); }

/* support */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green-text); font-size: 22px; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; font-size: 16px; }
.contact-card { background: linear-gradient(140deg, var(--green), #03573d); border-radius: var(--radius); padding: 34px; }
.contact-card h3 { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.contact-card p { color: rgba(255,255,255,.86); margin: 0 0 22px; font-size: 16px; }
.contact-card a.mail { display: inline-block; font-size: 20px; font-weight: 800; color: #fff; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.45); }
.contact-card a.mail:hover { border-bottom-color: #fff; }
.contact-card .small { font-size: 14px; color: rgba(255,255,255,.72); margin: 20px 0 0; }

/* final cta */
.cta { text-align: center; }
.cta .icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 24px 50px rgba(0,0,0,.5); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 46px 0 60px; color: var(--muted-dim); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--ink); }

/* --------------------------------------------------------------- prose */

.prose { max-width: 72ch; margin-inline: auto; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 52px 0 14px; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 20px; font-weight: 700; margin: 30px 0 8px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--muted); font-size: 17px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 9px; }
.prose a { color: var(--green-text); }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 12px; padding: 22px 26px; margin: 30px 0; }
.callout p { margin: 0; }
.meta { font-size: 14px; color: var(--muted-dim); }
.page-head { padding: 68px 0 10px; }
.page-head h1 { font-size: clamp(38px, 5vw, 62px); margin-bottom: 14px; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .hero__grid, .two-col, .cards, .steps, .support-grid { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .nav__links { display: none; }
  .phones { height: 430px; margin-top: 16px; }
  .phone { width: 176px; }
  .phone--a { left: 0; top: 60px; } .phone--b { left: 27%; top: 0; } .phone--c { left: 54%; top: 84px; }
  /* The card hangs off the right edge at desktop width, which is the look
     there; on a phone that clips it, so bring it inside. */
  .stat-card { right: 6px; top: -6px; padding: 11px 15px; }
  .stat-card__value { font-size: 25px; }
  section { padding: 72px 0; }
  .hero { padding-top: 56px; }
}
