/* Landing page – builds on app.css tokens */
html { scroll-behavior: smooth; }
body { background: var(--bg); overflow-x: hidden; }
#top { scroll-margin-top: 70px; }
section[id] { scroll-margin-top: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.l-header { position: sticky; top: 0; z-index: 50; background: rgba(4, 31, 46, 0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.l-header .wrap { display: flex; align-items: center; height: 70px; gap: 24px; }
.l-header .logo img { height: 40px; width: auto; }
.l-nav { display: flex; gap: 28px; margin: 0 auto; }
.l-nav a { color: #cfe3ec; font-weight: 600; font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; text-decoration: none; }
.l-nav a:hover { color: #fff; border-color: var(--green); text-decoration: none; }
.l-header .actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
@media (max-width: 820px) { .l-nav { display: none; } .l-header .btn.ghost { display: none; } }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 70px 0 110px;
  background: #041f2e url("/assets/hero-bg.jpg") no-repeat top center / cover;
}
/* fade the photo into the page background at the bottom, and darken the text side for legibility */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 31, 46, 0.92) 0%, rgba(4, 31, 46, 0.55) 38%, rgba(4, 31, 46, 0) 62%),
              linear-gradient(180deg, rgba(4, 31, 46, 0) 70%, #041f2e 100%); }
.hero .wrap { display: block; }
.hero .copy { max-width: 36rem; }
@media (max-width: 900px) {
  .hero { align-items: flex-start; min-height: 0; padding: 44px 0 450px; background-size: auto 420px; background-position: 74% 100%; }
  /* solid page colour behind the text, softly fading into the photo, and back out at the very bottom */
  .hero::before { background: linear-gradient(180deg, #041f2e calc(100% - 425px), rgba(4, 31, 46, 0) calc(100% - 300px)), linear-gradient(180deg, rgba(4, 31, 46, 0) calc(100% - 90px), #041f2e 100%); }
}
.kicker { color: var(--green); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 4.9rem); line-height: 1; font-weight: 900; font-style: italic; letter-spacing: -0.03em; }
.hero h1 .g { background: linear-gradient(90deg, #9be300, #3fb200); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.hero p.lead { color: #c3d9e3; font-size: 1.12rem; max-width: 33rem; margin: 22px 0 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }

.strip { margin-top: -34px; position: relative; z-index: 2; }
.strip .wrap > div { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 22px; display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) { .strip .wrap > div { grid-template-columns: 1fr 1fr; } }
.strip .item { padding: 22px 24px; display: flex; gap: 14px; align-items: center; border-left: 1px solid var(--line); }
.strip .item:first-child { border-left: 0; }
@media (max-width: 800px) { .strip .item:nth-child(3) { border-left: 0; } .strip .item:nth-child(n+3) { border-top: 1px solid var(--line); } }
.strip b { display: block; font-size: 1.05rem; } .strip span { color: var(--muted); font-size: 0.86rem; }
.strip .ico { width: 40px; height: 40px; color: var(--green); flex: none; }
.strip .ico svg { width: 100%; height: 100%; }

section.block { padding: 96px 0 0; }
.eyebrow { color: var(--green); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px; }
.h2 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.h2 .g { color: var(--green); display: block; }
.sub { color: #b9d2dd; font-size: 1.05rem; max-width: 34rem; margin-top: 16px; }

.built .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .built .wrap { grid-template-columns: 1fr; } }
.phone { width: 290px; margin: 0 auto; border-radius: 42px; padding: 11px; background: linear-gradient(160deg, #20475e, #0a2433); border: 1px solid var(--line-2); box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 0 6px rgba(255,255,255,.03); transform: rotate(3deg); }
.phone .screen { background: var(--bg); border-radius: 32px; padding: 20px 14px 16px; min-height: 540px; position: relative; overflow: hidden; }
.phone .notch { width: 84px; height: 22px; background: #020c12; border-radius: 0 0 14px 14px; position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.phone h4 { margin: 10px 0 2px; font-size: 1.05rem; letter-spacing: -0.01em; } .phone .s { font-size: .72rem; color: var(--muted); margin-bottom: 10px; }
.p-next { background: linear-gradient(135deg, #0f4a3a, var(--card)); border: 1px solid rgba(111,208,0,.3); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.p-next small { color: var(--green); font-weight: 800; letter-spacing: .14em; font-size: .6rem; } .p-next div { font-weight: 800; font-size: .86rem; margin-top: 3px; }
.p-wins { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.p-wins div { background: var(--card); border-radius: 10px; padding: 7px; text-align: center; font-size: .62rem; color: var(--muted); border-top: 4px solid var(--c); } .p-wins b { display: block; color: #fff; font-size: 1.2rem; }
.p-row { display: grid; grid-template-columns: 16px 1fr 28px 74px; gap: 7px; align-items: center; padding: 8px 8px; font-size: .75rem; background: var(--card); border-radius: 10px; margin-bottom: 5px; }
.p-row .a { width: 22px; height: 22px; border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 6px; }
.p-row .f { display: flex; gap: 2px; justify-content: flex-end; } .p-row .f i { width: 11px; height: 11px; border-radius: 3px; background: var(--green); } .p-row .f i.d { background: var(--warn); } .p-row .f i.l { background: var(--danger); }
.p-row b { text-align: right; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; transition: .2s; }
.feature:hover { border-color: rgba(111,208,0,.45); transform: translateY(-3px); }
.feature .ico { width: 52px; height: 52px; border-radius: 15px; background: rgba(111,208,0,.12); border: 1px solid rgba(111,208,0,.3); display: grid; place-items: center; color: var(--green); margin-bottom: 16px; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; } .feature p { color: var(--muted); font-size: .95rem; }

.sports { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
@media (max-width: 800px) { .sports { grid-template-columns: repeat(2, 1fr); } }
.sport { border-radius: 20px; padding: 28px 12px 20px; text-align: center; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), var(--bg-2)); font-weight: 700; transition: .2s; }
.sport:hover { border-color: rgba(111,208,0,.5); transform: translateY(-3px); }
.sport svg { width: 54px; height: 54px; color: var(--green); margin: 0 auto 12px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; counter-reset: s; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px 24px 22px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(180deg, #8be000, #46b400); color: var(--green-ink); font-weight: 900; margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; } .step p { color: var(--muted); font-size: .95rem; }

.final { margin-top: 100px; padding: 70px 0; background: radial-gradient(800px 360px at 50% 0%, rgba(111,208,0,.18), transparent 70%), linear-gradient(180deg, transparent, rgba(255,255,255,.02)); border-top: 1px solid var(--line); text-align: center; }
.final .cta { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.final .sub { margin-left: auto; margin-right: auto; }
.l-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; }
.l-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.l-footer img { height: 36px; width: auto; } .l-footer .links { display: flex; gap: 22px; } .l-footer a { color: var(--muted); font-size: .92rem; } .l-footer small { color: #6d8b9a; }

/* ---------- smoke backdrop below the hero ---------- */
.below { position: relative; isolation: isolate; }
.below::before { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1; pointer-events: none;
  aspect-ratio: 2576 / 1457; max-height: 1100px; background: url("/assets/smoke.jpg") no-repeat center top / cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 70%, transparent 100%); }

/* ---------- scroll reveal ---------- */
.rv .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.rv .reveal.r-scale { transform: translateY(18px) scale(.94); }
.rv .reveal.r-phone { transform: translateX(48px) translateY(20px) rotate(7deg); }
.rv .reveal.in { opacity: 1; transform: none; }
.rv .reveal.r-phone.in { transform: rotate(3deg); }
.rv .hero .copy > * { animation: rise .9s cubic-bezier(.22,.61,.36,1) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rv .reveal { opacity: 1; transform: none; transition: none; }
  .rv .reveal.r-phone { transform: rotate(3deg); }
  .rv .hero .copy > * { animation: none; }
}
.l-nav a.active { color: #fff; border-color: var(--green); }
