:root {
  --ink: #07111f;
  --ink-2: #0b1d35;
  --ink-3: #102a4c;
  --paper: #f5f7f9;
  --white: #ffffff;
  --muted: #a9b7c9;
  --blue: #146cff;
  --blue-2: #003ea8;
  --yellow: #ffd21e;
  --red: #ff3b2f;
  --orange: #ff8a1f;
  --line: rgba(255, 255, 255, .14);
  --shadow: 0 30px 80px rgba(0, 0, 0, .28);
  --radius: 28px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.matomo-fallback { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; }
.matomo-fallback img { width: 1px; height: 1px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; padding: 10px 16px; background: var(--yellow); color: var(--ink); border-radius: 10px; }
.skip-link:focus { top: 16px; }
.wrap { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.eyebrow { margin: 0 0 18px; color: var(--yellow); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.red { color: #ff8b72; }
.display { margin: 0; max-width: 900px; font-size: clamp(3.3rem, 8vw, 7.4rem); font-weight: 900; letter-spacing: -.065em; line-height: .91; text-wrap: balance; }
.headline { margin: 0; font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 900; letter-spacing: -.055em; line-height: .98; text-wrap: balance; }
.headline.small { font-size: clamp(2.1rem, 4vw, 4rem); }
.lede { max-width: 690px; margin: 28px 0 0; color: #d2dbe6; font-size: clamp(1.06rem, 1.8vw, 1.3rem); text-wrap: pretty; }
.muted { color: var(--muted); }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 78px;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, backdrop-filter .2s ease;
}
.site-header.scrolled { background: rgba(7, 17, 31, .86); border-color: var(--line); backdrop-filter: blur(22px) saturate(140%); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 900; letter-spacing: -.02em; }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 8px 22px rgba(20, 108, 255, .35); }
.brand img.header-logo { width: auto; height: 68px; border-radius: 0; box-shadow: none; filter: drop-shadow(0 8px 14px rgba(0,0,0,.28)); }
.brand > span { color: var(--yellow); }
.brand > span > span { color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #dbe4ef; font-size: .91rem; font-weight: 700; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--yellow); }
.nav-cta { padding: 11px 17px; color: var(--ink) !important; background: var(--yellow); border-radius: 999px; }
.navbar-toggler { width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); color: white; background: rgba(255,255,255,.06); border-radius: 14px; box-shadow: none !important; }
.navbar-toggler-icon { filter: invert(1); }

.hero { position: relative; min-height: 900px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(7,17,31,.98) 0%, rgba(7,17,31,.82) 48%, rgba(7,17,31,.24) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 32%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; right: -260px; top: 80px; border: 120px solid rgba(255, 210, 30, .12); border-radius: 50%; }
.hero-grid { padding: 150px 0 110px; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(350px, .74fr); align-items: center; gap: 70px; }
.hero-copy { position: relative; z-index: 2; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 850; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--yellow); box-shadow: 0 14px 34px rgba(255, 210, 30, .2); }
.button-secondary { color: var(--white); background: rgba(255,255,255,.08); border-color: var(--line); backdrop-filter: blur(12px); }
.button-red { color: white; background: linear-gradient(135deg, var(--red), var(--orange)); box-shadow: 0 14px 34px rgba(255, 59, 47, .25); }
.store-button { display: inline-flex; align-items: center; gap: 10px; min-width: 174px; padding: 10px 16px; color: white; background: #020407; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; text-decoration: none; }
.store-button .store-icon { font-size: 1.75rem; line-height: 1; }
.store-button small, .store-button strong { display: block; line-height: 1.05; }
.store-button small { font-size: .61rem; text-transform: uppercase; letter-spacing: .08em; color: #cbd4df; }
.store-button strong { margin-top: 4px; font-size: 1rem; }
.hero-note { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 24px 0 0; padding: 0; list-style: none; color: #c4cfdd; font-size: .84rem; font-weight: 750; }
.hero-note li::before { content: "✓"; margin-right: 7px; color: var(--yellow); }

.phone-stage { position: relative; min-height: 660px; }
.phone { position: absolute; width: 290px; filter: drop-shadow(0 38px 45px rgba(0,0,0,.48)); }
.phone img { width: 100%; border: 6px solid #111820; border-radius: 38px; background: #111820; }
.phone-one { z-index: 3; right: 10px; top: 18px; transform: rotate(4deg); }
.phone-two { z-index: 2; left: -12px; top: 112px; width: 250px; transform: rotate(-7deg); opacity: .9; }
.float-card { position: absolute; z-index: 4; right: 115px; bottom: 48px; width: 240px; padding: 16px; color: var(--ink); background: rgba(255,255,255,.92); border-radius: 18px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.float-card strong { display: block; font-size: 1rem; }
.float-card span { display: block; margin-top: 5px; color: #4a5b6d; font-size: .82rem; }
.pulse { display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 7px rgba(255,59,47,.15); }

.section { padding: 120px 0; }
.section-soft { color: var(--ink); background: var(--paper); }
.section-blue { background: linear-gradient(135deg, #092851, #0045b7); }
.section-red { background: radial-gradient(circle at 85% 15%, rgba(255,138,31,.28), transparent 32%), linear-gradient(135deg, #240b0a, #72170e); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 54px; }
.section-head p { max-width: 500px; margin: 0; color: inherit; opacity: .7; font-size: 1.05rem; }
.section-soft .eyebrow { color: var(--blue-2); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 270px; padding: 28px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); border-radius: var(--radius); }
.section-soft .feature-card { border-color: #dbe1e7; background: white; box-shadow: 0 14px 45px rgba(12, 32, 57, .08); }
.feature-no { display: inline-grid; width: 44px; height: 44px; place-items: center; margin-bottom: 35px; color: var(--ink); background: var(--yellow); border-radius: 14px; font-weight: 900; }
.section-soft .feature-no { color: white; background: var(--blue); }
.feature-card h3 { margin: 0 0 12px; font-size: 1.32rem; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--muted); }
.section-soft .feature-card p { color: #667386; }

.map-layout { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: 70px; }
.map-panel { position: relative; min-height: 600px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); background-image: linear-gradient(rgba(4,13,24,.26), rgba(4,13,24,.42)), url("img/current/ocr-ios-map.png"); background-position: center 47%; background-size: cover; border-radius: 36px; box-shadow: var(--shadow); }
.map-panel::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px); background-size: 58px 58px; }
.map-land { display: none; }
.map-land::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.12); clip-path: inherit; }
.map-label { position: absolute; z-index: 2; left: 28px; top: 26px; padding: 10px 14px; color: #dce9f8; background: rgba(7,17,31,.66); border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(14px); }
.event-marker { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 0; border: 0; color: inherit; background: transparent; cursor: help; }
.pin { position: relative; flex: 0 0 auto; width: 16px; height: 16px; background: var(--red); border: 4px solid white; border-radius: 50%; box-shadow: 0 0 0 8px rgba(255,59,47,.18), 0 8px 18px rgba(0,0,0,.35); animation: breathe 2.8s ease-in-out infinite; }
.event-marker:nth-of-type(3n) .pin { animation-delay: -.8s; }
.event-marker:nth-of-type(2n) .pin { animation-delay: -1.5s; }
.event-name { position: absolute; left: 25px; width: max-content; max-width: 150px; padding: 6px 9px; color: #f7fbff; background: rgba(7,17,31,.9); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; opacity: 0; transform: translateY(4px); pointer-events: none; font-size: .68rem; font-weight: 800; line-height: 1.15; text-align: left; box-shadow: 0 8px 18px rgba(0,0,0,.2); backdrop-filter: blur(10px); transition: opacity .16s ease, transform .16s ease; }
.event-marker:hover, .event-marker:focus-visible { z-index: 8; outline: none; }
.event-marker:hover .event-name, .event-marker:focus-visible .event-name { opacity: 1; transform: none; }
@keyframes breathe { 50% { transform: scale(1.18); box-shadow: 0 0 0 12px rgba(255,59,47,.06), 0 8px 18px rgba(0,0,0,.35); } }
.marker-1 { left: 25%; top: 34%; }.marker-2 { left: 42%; top: 45%; }.marker-3 { left: 51%; top: 28%; }.marker-4 { left: 58%; top: 58%; }.marker-5 { left: 29%; top: 63%; }
.privacy-chip { position: absolute; z-index: 3; right: 24px; bottom: 24px; max-width: 275px; padding: 13px 15px; color: #d4deea; background: rgba(7,17,31,.8); border: 1px solid var(--line); border-radius: 16px; font-size: .78rem; backdrop-filter: blur(14px); }
.list-checks { margin: 30px 0 0; padding: 0; list-style: none; }
.list-checks li { display: flex; gap: 11px; margin: 13px 0; color: #d3deea; }
.list-checks li::before { content: "→"; color: var(--yellow); font-weight: 900; }

.app-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); align-items: center; gap: 76px; }
.app-icon { width: 84px; height: 84px; margin-bottom: 26px; border-radius: 21px; box-shadow: 0 20px 45px rgba(0,0,0,.25); }
.screen-fan { position: relative; min-height: 650px; }
.screen-fan img { position: absolute; width: 280px; border: 6px solid #10161f; border-radius: 38px; background: #10161f; filter: drop-shadow(0 34px 34px rgba(0,0,0,.35)); }
.screen-fan img:first-child { z-index: 3; right: 0; top: 0; transform: rotate(3deg); }
.screen-fan img:last-child { z-index: 2; left: 0; top: 95px; width: 245px; transform: rotate(-6deg); }
.app-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 34px; }
.app-point { padding: 17px; border: 1px solid var(--line); background: rgba(255,255,255,.06); border-radius: 18px; }
.app-point strong { display: block; margin-bottom: 4px; }
.app-point span { color: var(--muted); font-size: .88rem; }

.trifecta-hero { min-height: 820px; padding-top: 110px; background: radial-gradient(circle at 80% 20%, rgba(255,138,31,.3), transparent 30%), linear-gradient(145deg, #140907, #4c0d08 55%, #130c0b); overflow: hidden; }
.trifecta-hero::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(115deg, transparent 49.5%, white 50%, transparent 50.5%); background-size: 90px 90px; }
.trifecta-art { position: relative; min-height: 590px; }
.trifecta-photo { position: absolute; inset: 20px 0 auto; width: 100%; height: 520px; padding: 10px; object-fit: contain; background: #130a08; border: 1px solid rgba(255,255,255,.16); border-radius: 34px; box-shadow: var(--shadow); }
.trifecta-photo::after { content: ""; }
.medal-stack { position: absolute; right: -28px; bottom: 0; display: flex; gap: 10px; padding: 18px; background: rgba(9,5,4,.82); border: 1px solid rgba(255,255,255,.18); border-radius: 23px; backdrop-filter: blur(18px); }
.medal { display: grid; width: 68px; height: 68px; place-items: center; border: 5px solid; border-radius: 50%; color: white; font-size: .65rem; font-weight: 950; letter-spacing: .08em; }
.medal.sprint { border-color: #ef322c; }.medal.super { border-color: #2478d8; }.medal.beast { border-color: #38a953; }
.trifecta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trifecta-card { position: relative; min-height: 410px; overflow: hidden; border-radius: 28px; }
.trifecta-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.trifecta-card:hover img { transform: scale(1.04); }
.trifecta-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,4,3,.94), transparent 68%); }
.trifecta-card-copy { position: absolute; z-index: 2; inset: auto 24px 24px; }
.trifecta-card-copy span { color: #ff9c65; font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.trifecta-card-copy h3 { margin: 6px 0 0; font-size: 1.55rem; }
.challenge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.challenge-step { padding: 30px; color: var(--ink); background: var(--paper); border-radius: 26px; }
.challenge-step .race { display: inline-block; margin-bottom: 34px; padding: 7px 11px; color: white; background: var(--red); border-radius: 999px; font-size: .74rem; font-weight: 900; letter-spacing: .1em; }
.challenge-step:nth-child(2) .race { background: #2173d2; }.challenge-step:nth-child(3) .race { background: #268c44; }
.challenge-step h3 { margin: 0 0 9px; font-size: 1.5rem; }
.challenge-step p { margin: 0; color: #657183; }

.download-band { padding: 46px 0; color: var(--ink); background: var(--yellow); }
.download-band .wrap, .download-band .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.download-band h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3.5rem); letter-spacing: -.045em; line-height: 1; }
.download-band p { margin: 10px 0 0; color: #374151; }
.download-band .actions { margin: 0; flex-shrink: 0; }

.footer { padding: 70px 0 35px; background: #040a12; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, .7fr); gap: 42px; }
.footer h3 { margin: 0 0 16px; font-size: .82rem; color: #fff; letter-spacing: .1em; text-transform: uppercase; }
.footer p { max-width: 380px; color: #8291a5; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: #a9b7c9; text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 24px; border-top: 1px solid var(--line); color: #6f7e91; font-size: .8rem; }

.screens-showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 28px; max-width: 960px; margin-inline: auto; }
.app-screenshot { position: relative; max-width: 290px; margin-inline: auto; }
.app-screenshot img { width: 100%; border: 6px solid #10161f; border-radius: 40px; background: #10161f; box-shadow: 0 28px 55px rgba(3, 14, 28, .24); }
.platform-tag { position: absolute; z-index: 2; left: 50%; bottom: -14px; translate: -50% 0; width: max-content; padding: 7px 12px; color: white; background: var(--ink); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: .72rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.race-family { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.race-family span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .78rem; font-weight: 850; }
.challenge-note { margin-top: 22px; padding: 18px 20px; color: #4c596a; background: #fff; border-left: 5px solid var(--yellow); border-radius: 0 16px 16px 0; box-shadow: 0 12px 32px rgba(12,32,57,.07); }
.challenge-note strong { color: var(--ink); }

.legal-page { min-height: 70vh; padding: 150px 0 90px; color: var(--ink); background: var(--paper); }
.legal-page > .container { max-width: 920px; padding: clamp(28px, 5vw, 64px); background: white; border: 1px solid #dde3e9; border-radius: 30px; box-shadow: 0 18px 60px rgba(12,32,57,.08); }
.legal-page h1 { margin-bottom: 34px !important; font-size: clamp(2.7rem, 7vw, 5.3rem); font-weight: 900; letter-spacing: -.055em; line-height: .96; }
.legal-intro { max-width: 66ch; margin-bottom: 2.5rem; color: var(--muted); font-size: 1.05rem; }
.release-summary { margin: 0 0 3.25rem; }
.release-summary > h2, .history-title { margin: 0 0 1.1rem; font-size: 1rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.release-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.release-card { padding: 24px; color: white; background: linear-gradient(145deg, #07111f, #15365b); border-radius: 22px; }
.release-card-trifecta { background: linear-gradient(145deg, #210b08, #6f1f11); }
.release-kicker { display: block; margin-bottom: 8px; color: var(--yellow); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.release-card h3 { margin: 0 0 10px; font-size: 1.35rem; font-weight: 900; }
.release-card p { margin: 0; color: rgba(255,255,255,.78); font-size: .92rem; }
.history-title { margin-top: 0; margin-bottom: 1.8rem; }
.legal-page h4, .legal-page h5 { margin-top: 2.3rem; margin-bottom: .75rem; font-weight: 850; letter-spacing: -.02em; }
.legal-page h4 { font-size: 1.45rem; }
.legal-page h5 { font-size: 1.15rem; }
.legal-page p, .legal-page li { color: #4f5d6d; }
.legal-page a { color: var(--blue-2); text-underline-offset: 3px; }
.legal-page hr { margin: 32px 0; color: #cbd4de; }
.legal-page small { color: #758295 !important; }
.legal-page .text-secondary { color: #7a8798 !important; }

.store-redirect-page { min-height: 100vh; background: radial-gradient(circle at 75% 35%, rgba(20,108,255,.22), transparent 36%), var(--ink); }
.store-redirect-trifecta { background: radial-gradient(circle at 75% 35%, rgba(255,82,47,.22), transparent 38%), #170806; }
.store-landing { min-height: calc(100vh - 118px); padding: 135px 0 64px; display: flex; align-items: center; overflow: hidden; }
.store-landing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .58fr); align-items: center; gap: clamp(45px, 8vw, 110px); }
.store-landing-copy { position: relative; z-index: 2; }
.store-app-icon { width: 92px; height: 92px; margin-bottom: 28px; border-radius: 22px; box-shadow: 0 20px 48px rgba(0,0,0,.38); }
.store-landing h1 { max-width: 720px; margin: 0; font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 900; letter-spacing: -.065em; line-height: .91; text-wrap: balance; }
.store-landing-copy > p:not(.eyebrow):not(.redirect-status) { max-width: 660px; margin: 26px 0 0; color: #d2dbe6; font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.redirect-status { display: inline-flex; margin: 22px 0 0; padding: 9px 13px; color: var(--yellow); background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 800; }
.store-detail-link { display: inline-block; margin-top: 24px; color: #dbe5f1; font-weight: 800; text-decoration: none; }
.store-detail-link:hover, .store-detail-link:focus-visible { color: var(--yellow); }
.store-landing-visual { position: relative; max-width: 360px; justify-self: center; transform: rotate(4deg); }
.store-landing-visual::before { content: ""; position: absolute; inset: -28px; z-index: -1; border: 1px solid rgba(255,255,255,.15); border-radius: 64px; }
.store-landing-visual img { width: 100%; border: 7px solid #111820; border-radius: 46px; box-shadow: 0 42px 80px rgba(0,0,0,.5); }

.error-body { min-height: 100vh; background: radial-gradient(circle at 78% 28%, rgba(20,108,255,.2), transparent 34%), var(--ink); }
.error-main { min-height: 720px; padding: 150px 0 90px; display: flex; align-items: center; overflow: hidden; }
.error-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .55fr); align-items: center; gap: clamp(44px, 8vw, 110px); }
.error-copy { position: relative; z-index: 2; }
.error-code { margin: 0 0 18px; color: var(--yellow); font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 950; letter-spacing: .28em; }
.error-copy h1 { max-width: 780px; margin: 0; font-size: clamp(3.6rem, 8vw, 7.4rem); font-weight: 950; letter-spacing: -.065em; line-height: .9; text-wrap: balance; }
.error-copy > p:not(.error-code) { max-width: 650px; margin: 28px 0 0; color: #d2dbe6; font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.error-route-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 28px; }
.error-route-links a { color: #cbd6e4; font-weight: 800; text-decoration: none; }
.error-route-links a:hover, .error-route-links a:focus-visible { color: var(--yellow); }
.error-visual { position: relative; display: grid; width: min(100%, 410px); aspect-ratio: 1; place-items: center; justify-self: center; }
.error-visual::before, .error-visual::after { content: ""; position: absolute; border-radius: 50%; }
.error-visual::before { inset: 0; border: 70px solid rgba(255,210,30,.12); }
.error-visual::after { inset: 18%; border: 1px solid rgba(255,255,255,.2); }
.error-visual span { position: relative; z-index: 2; font-size: clamp(5rem, 12vw, 9rem); font-weight: 950; letter-spacing: -.08em; text-shadow: 0 22px 50px rgba(0,0,0,.45); }
.error-visual i { position: absolute; z-index: 3; width: 22px; height: 22px; background: var(--red); border: 6px solid white; border-radius: 50%; box-shadow: 0 8px 20px rgba(0,0,0,.32); }
.error-visual i:nth-of-type(1) { top: 12%; left: 28%; }
.error-visual i:nth-of-type(2) { right: 7%; bottom: 30%; background: #00bda7; }
.error-visual i:nth-of-type(3) { bottom: 4%; left: 33%; background: var(--yellow); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-grid, .app-split, .map-layout { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 145px; }
  .phone-stage { width: min(100%, 570px); margin-inline: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .map-layout { gap: 44px; }
  .map-copy { order: -1; }
  .trifecta-grid { grid-template-columns: repeat(2, 1fr); }
  .screens-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.3fr repeat(2, 1fr); }
  .footer-grid > :last-child { grid-column: 2; }
  .store-landing-grid { grid-template-columns: 1fr; }
  .store-landing-visual { display: none; }
  .error-layout { grid-template-columns: 1fr; }
  .error-visual { display: none; }
}

@media (max-width: 991.98px) {
  .site-header { background: rgba(7,17,31,.94); border-color: var(--line); backdrop-filter: blur(22px); }
  .nav { position: relative; min-height: 70px; height: auto; }
  .nav-links { position: absolute; top: 76px; right: 0; left: 0; margin: 0; padding: 14px; align-items: stretch; gap: 3px; background: rgba(7,17,31,.985); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.42); }
  .nav-links .navbar-nav { align-items: stretch !important; }
  .nav-links a { padding: 11px 13px; }
  .nav-cta { margin-top: 6px; text-align: center; }
}

@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 28px), var(--content)); }
  .site-header { height: 70px; }
  .brand img.header-logo { height: 58px; }
  .display { font-size: clamp(3.2rem, 17vw, 5.2rem); }
  .hero-grid { padding-bottom: 70px; gap: 34px; }
  .phone-stage { min-height: 520px; }
  .phone { width: 225px; }
  .phone-two { width: 195px; left: 0; }
  .float-card { right: 20px; bottom: 0; width: 210px; }
  .section { padding: 82px 0; }
  .section-head { display: block; margin-bottom: 36px; }
  .section-head p { margin-top: 20px; }
  .feature-grid, .challenge { grid-template-columns: 1fr; }
  .feature-card { min-height: 220px; }
  .map-panel { min-height: 480px; }
  .event-name { max-width: 110px; font-size: .58rem; }
  .marker-1 { left: 13%; }.marker-2 { left: 36%; }.marker-3 { left: 43%; }.marker-4 { left: 47%; }.marker-5 { left: 18%; }
  .screen-fan { min-height: 540px; width: min(100%, 470px); margin-inline: auto; }
  .screen-fan img { width: 225px; }
  .screen-fan img:last-child { width: 190px; }
  .app-points { grid-template-columns: 1fr; }
  .trifecta-hero { padding-top: 100px; }
  .trifecta-art { min-height: 440px; }
  .trifecta-photo { height: 390px; }
  .medal-stack { right: 12px; }
  .medal { width: 54px; height: 54px; border-width: 4px; font-size: .52rem; }
  .trifecta-grid { grid-template-columns: 1fr; }
  .trifecta-card { min-height: 360px; }
  .screens-showcase { grid-template-columns: 1fr; gap: 38px; }
  .release-grid { grid-template-columns: 1fr; }
  .download-band .wrap, .download-band .container { display: block; }
  .download-band .actions { margin-top: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .store-landing { min-height: auto; padding: 112px 0 72px; }
  .store-app-icon { width: 78px; height: 78px; border-radius: 19px; }
  .store-landing h1 { font-size: clamp(3.2rem, 16vw, 5.2rem); }
  .store-landing .actions { align-items: stretch; }
  .store-landing .store-button { flex: 1 1 170px; }
  .error-main { min-height: 660px; padding: 120px 0 72px; }
  .error-copy h1 { font-size: clamp(3.3rem, 16vw, 5.4rem); }
}

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