/* MatchLens — matchlens.com.au
   Brand world: night stadium, chrome lettering, one neon colour per sport.
   --accent follows the sport on screen; CA cyan is reserved for Coach Assist.
   System fonts only: nothing is requested from third-party servers. */
:root {
  --night: #03060B;
  --deck: #0A1018;
  --panel: #0F1722;
  --rule: #1C2633;
  --chrome: #EAF0F6;
  --steel: #9AA8B8;
  --brand: #1EA7FF;
  --accent: #1EA7FF;
  --ca: #22F5E6;
  --live: #3BE37F;
  --dev: #F5B83D;
  --display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--night); color: var(--chrome); font: 17px/1.6 var(--body); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
html[data-lang="en"] [lang="zh-Hans"]:not(html), html[data-lang="zh"] [lang="en"]:not(html) { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.012em; margin: 0; }

/* ---------- header (floats over the hero) ---------- */
.bar { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.bar .wrap { display: flex; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: 0.06em; }
.mark span:last-child b { color: var(--accent); transition: color .8s; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 15px; }
.bar nav a { text-decoration: none; color: #C7D2DE; }
.bar nav a:hover { color: #fff; }
.lang { white-space: nowrap; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.22); color: #fff; border-radius: 999px; padding: 5px 13px; font: 600 14px var(--body); cursor: pointer; }
.bar.solid { position: static; background: var(--night); border-bottom: 1px solid var(--rule); }

/* ---------- hero: the sport poster stands clear, like the app splash; copy sits beneath ---------- */
.hero { position: relative; isolation: isolate; }
.hero .slide { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 92vh; overflow: hidden; background: var(--night); }
.hero .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0; transition: opacity 1.4s ease, transform 7s linear; transform: scale(1.04); }
.hero .slide img.on { opacity: 1; transform: scale(1); }
.hero .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,6,11,0.6) 0%, rgba(3,6,11,0) 16%, rgba(3,6,11,0) 78%, var(--night) 100%); pointer-events: none; }
.hero-copy { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 60px; align-items: end; padding-top: 10px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 80px); line-height: 1; max-width: 15ch; }
.hero p { font-size: clamp(17px, 1.5vw, 20px); color: #CFD8E2; margin: 0; max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: 700 16px var(--body); text-decoration: none; border: 1.5px solid transparent; }
.btn.primary { background: var(--accent); color: #02060A; box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 55%, transparent); transition: background .8s, box-shadow .8s; }
.btn.ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn:hover { filter: brightness(1.08); }
.sportbar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sportbar button { font: 600 13px var(--body); color: #AFBBC8; background: var(--deck); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.sportbar button[aria-pressed="true"] { color: #02060A; background: var(--accent); border-color: var(--accent); }
.sportbar .live { width: 7px; height: 7px; border-radius: 50%; background: var(--live); display: inline-block; margin-right: 6px; vertical-align: 1px; }
.sportbar button[aria-pressed="true"] .live { background: #02060A; }

/* ---------- section scaffolding ---------- */
section.block { padding: 110px 0; }
.kicker { color: var(--accent); font-weight: 700; font-size: 15px; margin: 0 0 12px; transition: color .8s; }
.block h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.04; max-width: 18ch; }
.block .intro { color: var(--steel); font-size: 19px; max-width: 58ch; margin: 18px 0 0; }

/* ---------- the three tools: chrome emblems ---------- */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.tool { background: var(--deck); border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; }
.tool img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.tool div { padding: 22px 26px 28px; }
.tool h3 { font-size: 28px; display: flex; align-items: center; gap: 12px; }
.tool h3 small { font: 700 12px var(--body); color: #02060A; background: #F5C542; border-radius: 6px; padding: 3px 8px; letter-spacing: 0.04em; }
.tool p { color: var(--steel); margin: 10px 0 0; }

/* ---------- Coach Assist ---------- */
.ca { background: radial-gradient(1100px 520px at 18% 40%, rgba(34,245,230,0.10), transparent 60%), #000; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ca .grid { display: grid; grid-template-columns: 420px 1fr; gap: 70px; align-items: center; }
.ca .emblem { width: 100%; border-radius: 34px; box-shadow: 0 0 90px rgba(34,245,230,0.22); }
.ca .kicker { color: var(--ca); }
.feed { margin-top: 34px; display: grid; gap: 12px; max-width: 640px; }
.alert { display: grid; grid-template-columns: 10px 1fr; gap: 14px; align-items: start; background: #061212; border: 1px solid rgba(34,245,230,0.28); border-radius: 14px; padding: 14px 18px; }
.alert i { width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; }
.alert b { display: block; font-size: 16px; }
.alert span { color: #A9C4C2; font-size: 15px; }
.alert.warn i { background: #F5B83D; box-shadow: 0 0 12px #F5B83D; }
.alert.good i { background: var(--ca); box-shadow: 0 0 12px var(--ca); }
.alert.learn i { background: #B48CFF; box-shadow: 0 0 12px #B48CFF; }
.alert.pulse { animation: pulse 2.4s ease-in-out 1.2s 2; }
@keyframes pulse { 0%, 100% { border-color: rgba(34,245,230,0.28); } 50% { border-color: rgba(34,245,230,0.9); box-shadow: 0 0 28px rgba(34,245,230,0.25); } }
@media (prefers-reduced-motion: reduce) { .alert.pulse { animation: none; } .hero .slide img { transition: none; transform: none; } }

/* ---------- the pitch ---------- */
.pitchwrap { margin-top: 50px; border-radius: 22px; overflow: hidden; border: 1px solid var(--rule); background: #2F353C; }
.pitch { width: 100%; height: auto; display: block; }
.pitch .line { fill: none; stroke: #E9EDF0; stroke-width: 2.2; opacity: 0.85; }
.pitch .dash { fill: none; stroke: #E9EDF0; stroke-width: 2; stroke-dasharray: 7 9; opacity: 0.55; }
.pitch .stripe { fill: #262B31; }
.pitch .ev { opacity: 0; transform-box: fill-box; transform-origin: center; }
.pitch.go .ev { animation: drop .45s cubic-bezier(.2,1.4,.4,1) forwards; }
.pitch .note { font: 600 15px var(--body); fill: #E9EDF0; paint-order: stroke; stroke: #2F353C; stroke-width: 7px; stroke-linejoin: round; }
.pitch .note-sub { font: 13px var(--body); fill: #A3ACB5; paint-order: stroke; stroke: #2F353C; stroke-width: 7px; stroke-linejoin: round; }
@keyframes drop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pitch .ev { opacity: 1; animation: none !important; } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; font-size: 14px; color: var(--steel); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; }

/* ---------- Elite ---------- */
.elite { background: linear-gradient(180deg, var(--night), #050C16 50%, var(--night)); }
.elite .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.elite figure { margin: 0; background: #000; border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; }
.elite figcaption { padding: 18px 24px 24px; color: var(--steel); }
.elite figcaption b { display: block; color: var(--chrome); font-family: var(--display); font-size: 21px; margin-bottom: 4px; }
.note-line { color: var(--steel); margin-top: 26px; }

/* ---------- every sport ---------- */
.wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 50px; }
.wall a { grid-column: span 2; }
.wall a { position: relative; display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--rule); text-decoration: none; background: #000; }
.wall a img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; transition: transform .5s ease; }
.wall a:hover img, .wall a:focus-visible img { transform: scale(1.05); }
.wall a .cap { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; font-weight: 700; font-size: 15px; background: #070C13; }
.wall a .st { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.wall a .st.live { color: #032611; background: var(--live); }
.wall a .st.dev { color: var(--dev); border: 1px solid rgba(245,184,61,0.5); }
.wall a.big { grid-column: span 3; }
.wall a.ask { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 22px 24px; background: radial-gradient(400px 200px at 30% 30%, rgba(30,167,255,0.18), transparent), #070C13; border-style: dashed; border-color: #2C3B4E; }
.wall a.ask b { font-family: var(--display); font-size: 22px; }
.wall a.ask > span { color: var(--steel); font-size: 15px; }
.wall a.big .cap { font-size: 18px; padding: 14px 18px; }

/* ---------- help ---------- */
.manuals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.manual { display: flex; flex-direction: column; background: var(--deck); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; text-decoration: none; }
.manual img { aspect-ratio: 16 / 7; width: 100%; object-fit: cover; object-position: center 35%; }
.manual div { padding: 18px 22px 22px; }
.manual h3 { font-size: 22px; }
.manual p { margin: 6px 0 12px; color: var(--steel); font-size: 15px; }
.manual span.dl { font-weight: 700; color: var(--accent); }

/* ---------- promise strip + footer ---------- */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--rule); }
.promise h3 { font-size: 20px; margin-bottom: 6px; }
.promise p { margin: 0; color: var(--steel); font-size: 15px; }
footer { border-top: 1px solid var(--rule); padding: 30px 0 44px; color: var(--steel); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
footer a { color: var(--steel); }
footer .grow { margin-right: auto; }

/* ---------- reading pages ---------- */
.doc { max-width: 760px; padding-top: 50px; padding-bottom: 90px; }
.doc h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.04; margin: 0 0 10px; }
.doc .date { color: var(--steel); margin: 0 0 34px; }
.doc h2 { font-size: 24px; margin: 36px 0 6px; }
.doc p, .doc li { color: #C9D3DD; }
.doc ol { padding-left: 1.3em; }
.contact { display: inline-block; margin: 8px 0 10px; padding: 14px 24px; border-radius: 999px; background: var(--brand); color: #02060A; font-weight: 800; font-size: 19px; text-decoration: none; }

@media (max-width: 980px) {
  .hero-copy { grid-template-columns: 1fr; }
  .tools, .elite .row, .manuals { grid-template-columns: 1fr 1fr; }
  .ca .grid { grid-template-columns: 1fr; gap: 36px; }
  .ca .emblem { max-width: 300px; }
  .wall { grid-template-columns: repeat(2, 1fr); }
  .wall a { grid-column: span 1; }
  .wall a.big, .wall a.ask { grid-column: span 2; }
  .promise { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 640px) {
  .bar { position: static; background: var(--night); }
  .bar .wrap { padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .mark { font-size: 17px; }
  .tool { display: grid; grid-template-columns: 120px 1fr; align-items: center; }
  .tool img { height: auto; aspect-ratio: 1 / 1; align-self: center; }
  .tool div { padding: 16px 18px; }
  .tool h3 { font-size: 22px; }
  .tool p { font-size: 15px; }
  .elite figure { display: grid; grid-template-columns: 120px 1fr; align-items: center; }
  .elite figure img { height: auto; aspect-ratio: 1 / 1; align-self: center; }
  .elite figcaption { padding: 14px 18px; font-size: 15px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .bar nav a.hide-sm { display: none; }
  .bar nav { gap: 16px; }
  .tools, .elite .row, .manuals { grid-template-columns: 1fr; }
  .wall a.big { grid-column: span 3; }
.wall a.ask { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 22px 24px; background: radial-gradient(400px 200px at 30% 30%, rgba(30,167,255,0.18), transparent), #070C13; border-style: dashed; border-color: #2C3B4E; }
.wall a.ask b { font-family: var(--display); font-size: 22px; }
.wall a.ask > span { color: var(--steel); font-size: 15px; }
  section.block { padding: 76px 0; }
  .hero .slide { aspect-ratio: 4 / 3; }
  .hero .slide img { object-position: 50% 30%; }
  .sportbar { display: none; }
  .pitch .note, .pitch .note-sub, .pitch .note-ln { display: none; }
}
