/* ============================================================
   Hit Tracker — landing page
   Palette from the app’s asset catalog:
   navy #0D121C · blue #1A80E5 · blue2 #367AE8 · steel #637587
   red #FC6B6B · silver #F0F2F5 · line #D1D9E5 · white #F7FAFA
   ============================================================ */

@font-face { font-family: "Lexend"; src: url("../fonts/Lexend-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../fonts/Lexend-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../fonts/Lexend-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../fonts/Lexend-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../fonts/Lexend-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../fonts/Lexend-Black.ttf") format("truetype"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --navy: #0D121C;
  --navy-2: #121417;
  --navy-3: #161D2B;
  --blue: #1A80E5;
  --blue-2: #367AE8;
  --sky: #8FC1F7;
  --red: #FC6B6B;
  --silver: #F0F2F5;
  --line: #D1D9E5;
  --steel: #637587;
  --text-blue: #4F6B96;
  --white: #F7FAFA;
  --paper: #FFFFFF;
  --font-display: "Lexend", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --shadow-card: 0 10px 30px rgba(13, 18, 28, .08);
  --shadow-pop: 0 18px 50px rgba(13, 18, 28, .18);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.container { width: min(1140px, 92%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(26, 128, 229, .35); }
.btn-primary:hover { background: var(--blue-2); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(247, 250, 250, .35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }
.btn-silver { background: var(--silver); color: var(--navy); }
.btn-sm { padding: .5rem 1.1rem; font-size: .8rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding: 1.1rem 0; transition: background .25s ease, box-shadow .25s ease, padding .25s ease; }
.nav.scrolled { background: rgba(13, 18, 28, .92); backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(13, 18, 28, .35); padding: .65rem 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--white); letter-spacing: .01em; }
.nav-menu { display: flex; align-items: center; gap: 1.8rem; }
.nav-menu a { font-family: var(--font-display); font-weight: 500; font-size: .92rem; color: rgba(247, 250, 250, .82); text-decoration: none; transition: color .15s; }
.nav-menu a:hover { color: #fff; }
.nav-menu .btn { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 600px at 78% -10%, #1B2B45 0%, var(--navy) 55%); color: var(--white); padding: 10.5rem 0 6rem; }
.streak { position: absolute; height: 3px; width: 46%; border-radius: 999px; opacity: .85; transform: rotate(-14deg); pointer-events: none; }
.streak-red { top: 24%; right: -8%; background: linear-gradient(90deg, transparent, var(--red) 45%, #fff 100%); box-shadow: 0 0 24px rgba(252, 107, 107, .55); }
.streak-blue { top: 34%; right: -14%; background: linear-gradient(90deg, transparent, var(--blue-2) 45%, var(--sky) 100%); box-shadow: 0 0 24px rgba(54, 122, 232, .6); }
.streak-low { top: auto; bottom: 14%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 1.4rem; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(252, 107, 107, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(252, 107, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(252, 107, 107, 0); } }
.hero-title { font-size: clamp(2.6rem, 5.2vw, 4.3rem); font-weight: 900; letter-spacing: -.01em; }
.hero-title em { font-style: normal; color: transparent; background: linear-gradient(92deg, var(--sky), var(--blue-2) 55%, var(--red)); -webkit-background-clip: text; background-clip: text; }
.hero-sub { max-width: 46ch; color: rgba(247, 250, 250, .78); font-size: 1.08rem; margin: 1.5rem 0 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2.4rem; color: rgba(247, 250, 250, .72); font-size: .92rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-points li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--blue) center/62% no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.hero-art { position: relative; display: grid; place-items: center; }
.logo-card { width: min(400px, 82%); border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(143, 193, 247, .18); transform: rotate(2deg); }
@keyframes float { 50% { transform: rotate(2deg) translateY(-14px); } }
.float-chip { position: absolute; display: flex; align-items: center; gap: .7rem; background: rgba(247, 250, 250, .97); color: var(--navy); border-radius: 16px; padding: .7rem 1rem; box-shadow: var(--shadow-pop); font-size: .8rem; }
.float-chip strong { display: block; font-family: var(--font-display); font-size: .95rem; }
.float-chip span { color: var(--steel); }
.chip-record { top: 9%; left: 2%; animation: float 6s .8s ease-in-out infinite; }
.chip-pitch { bottom: 8%; right: 0; animation: float 6.6s .4s ease-in-out infinite; }
.chip-dot { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--blue-2) center/55% no-repeat; }

/* ---------- stats band ---------- */
.stats-band { background: var(--navy-2); color: rgba(247, 250, 250, .85); padding: 1.1rem 0; border-top: 1px solid rgba(143, 193, 247, .12); }
.stats-band .container { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem 1.4rem; }
.stats-label { font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--sky); }
.stats-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; }
.stats-chips li { font-family: var(--font-display); font-size: .78rem; font-weight: 500; padding: .32rem .85rem; border-radius: 999px; background: rgba(26, 128, 229, .16); border: 1px solid rgba(26, 128, 229, .35); }

/* ---------- sections ---------- */
.section { padding: 6rem 0; }
.section-head { max-width: 640px; margin: 0 auto 3.2rem; text-align: center; }
.section-eyebrow { font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: .8rem; }
.eyebrow-light { color: var(--sky); }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; }
.title-light { color: var(--white); }
.section-sub { color: var(--steel); margin-top: 1rem; font-size: 1.02rem; }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.7rem; box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }
.feature-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 1.2rem; }
.feature-icon svg { width: 27px; height: 27px; }
.icon-blue { background: rgba(26, 128, 229, .12); color: var(--blue); }
.icon-red { background: rgba(252, 107, 107, .14); color: var(--red); }
.feature-card h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: .55rem; }
.feature-card p { color: var(--steel); font-size: .95rem; }

/* ---------- why (dark) ---------- */
.section-dark { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 12% 110%, #1B2B45 0%, var(--navy) 60%); color: var(--white); }
.why-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
.why-art { position: relative; }
.why-art img { width: 100%; max-width: 430px; margin-inline: auto; border-radius: 26px; background: rgba(143, 193, 247, .08); box-shadow: var(--shadow-pop); }
.why-lead { color: rgba(247, 250, 250, .8); font-size: 1.05rem; margin: 1.2rem 0 1.8rem; max-width: 52ch; }
.check-list { list-style: none; display: grid; gap: 1.1rem; }
.check-list li { display: flex; align-items: flex-start; gap: .8rem; color: rgba(247, 250, 250, .78); font-size: .96rem; }
.check-list strong { color: var(--white); font-family: var(--font-display); font-weight: 600; }
.check-list li::before { content: "✓"; flex: none; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(26, 128, 229, .22); border: 1px solid rgba(26, 128, 229, .55); color: var(--sky); font-size: .8rem; font-weight: 700; margin-top: .1rem; }

/* ---------- how it works ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow-card); position: relative; }
.step-num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-2)); box-shadow: 0 8px 18px rgba(26, 128, 229, .4); margin-bottom: 1.1rem; }
.step h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.step p { color: var(--steel); font-size: .95rem; }
.step em { font-style: normal; color: var(--blue); font-weight: 600; }

/* ---------- screens carousel ---------- */
.screens { background: linear-gradient(180deg, var(--white) 0%, var(--silver) 100%); }
.carousel-wrap { position: relative; }
.carousel { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.6rem; padding: .5rem 0 1rem; }
.phone { background: var(--navy-3); border-radius: 38px; padding: 12px; box-shadow: var(--shadow-pop); position: relative; }
.phone-notch { width: 110px; height: 22px; background: var(--navy); border-radius: 0 0 14px 14px; margin: 0 auto 10px; position: relative; z-index: 2; }
.screen { background: var(--white); border-radius: 28px; padding: 1.1rem 1rem 1.3rem; min-height: 480px; display: flex; flex-direction: column; }
.ui-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-align: center; margin-bottom: 1rem; color: var(--navy); }
.ui-subtitle { font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--navy); margin: 1rem 0 .5rem; }
.ui-caption { margin-top: auto; padding-top: .8rem; text-align: center; font-family: var(--font-display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }

/* app-faithful mockup components (from the SwiftUI screens) */
.app-btn { font-family: var(--font-display); font-weight: 700; font-size: .74rem; color: #fff; background: var(--blue); border: 0; border-radius: 14px; padding: .68rem .8rem; cursor: default; }
.app-btn-silver { background: var(--silver); color: var(--navy); }
.app-btn-block { width: 100%; }

.home-club { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: .8rem; }
.home-info { display: grid; gap: .1rem; background: var(--silver); border-radius: 10px; padding: .55rem .7rem; margin-bottom: .55rem; }
.home-info b { font-family: var(--font-display); font-size: .78rem; color: var(--navy); }
.home-info span { font-size: .72rem; color: var(--steel); }
.home-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin: .8rem 0; }
.home-ground { width: 100%; border-radius: 12px; }
.screen-home .tabbar { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding: .5rem 0 .15rem; color: var(--navy); }
.tabbar svg { width: 20px; height: 20px; margin-inline: auto; opacity: .85; }
.tabbar svg:nth-child(2) { opacity: 1; }

.ui-titlebar { position: relative; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: .88rem; color: var(--navy); margin-bottom: .7rem; }
.ui-back { position: absolute; left: 0; font-size: 1.1rem; line-height: 1; }
.ui-man { position: absolute; right: 0; font-size: .85rem; }
.ui-meta-row { display: flex; justify-content: space-between; font-size: .72rem; color: var(--navy); margin-bottom: .7rem; }
.ui-meta-row span:last-child { color: var(--steel); }
.ui-heading { font-family: var(--font-display); font-weight: 700; font-size: .78rem; color: var(--navy); text-align: center; margin: .6rem 0 .6rem; }

.zone-row { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-bottom: .4rem; }
.zone-batter { width: 26px; height: 92px; object-fit: contain; background: #E9F2E4; border-radius: 8px; }
.zone-grid { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); width: 128px; border: 2px solid var(--navy); background: #fff; }
.zone-grid span { height: 27px; display: grid; place-items: center; font-size: 13px; line-height: 1; border: 2px solid transparent; }
.zone-grid span:nth-child(7), .zone-grid span:nth-child(8), .zone-grid span:nth-child(9),
.zone-grid span:nth-child(12), .zone-grid span:nth-child(13), .zone-grid span:nth-child(14),
.zone-grid span:nth-child(17), .zone-grid span:nth-child(18), .zone-grid span:nth-child(19) { border-color: var(--navy); }
.zone-box { width: 132px; margin: .4rem auto .7rem; padding: 2px; border: 2px solid var(--navy); background: #fff; }
.zone-box .zone-grid { width: auto; border: 0; }

.select-field { display: flex; align-items: center; justify-content: space-between; background: #F7FAFA; border: 1px solid rgba(99, 117, 135, .4); border-radius: 10px; padding: .5rem .65rem; margin-bottom: .45rem; }
.select-field span { font-size: .7rem; color: var(--steel); }
.select-field b { font-family: var(--font-display); font-weight: 600; font-size: .72rem; color: var(--text-blue); }
.select-field i { font-style: normal; font-size: .6rem; }

.sb-grid { display: grid; grid-template-columns: 22px repeat(5, 1fr); margin-bottom: .55rem; border: 1px solid var(--navy); background: var(--silver); }
.sb-grid > div { height: 26px; display: grid; place-items: center; font-size: .68rem; color: var(--navy); border: 1px solid var(--navy); background: #EAEAEA; }
.sb-label { font-family: var(--font-display); font-weight: 700; background: #EAEAEA; }

.screen-record { background: #000; color: #9A9A9A; }
.record-close { font-size: .9rem; color: gray; text-align: left; margin-bottom: .6rem; }
.meta-row { display: flex; gap: .4rem; font-size: .72rem; padding: .12rem 0; }
.meta-row span { color: #8E8E93; white-space: nowrap; }
.meta-row b { color: #34C759; font-weight: 600; }
.hit-field { position: relative; margin-top: .7rem; }
.hit-field img { width: 100%; border-radius: 8px; }
.hit-line { position: absolute; left: 50%; bottom: 10px; width: 2px; height: 76px; background: #FC4F4F; transform: translateX(-30px) rotate(-38deg); transform-origin: bottom center; }
.ui-caption-dark { color: #7A7A7E; }

/* ---------- download ---------- */
.download-inner { text-align: center; max-width: 640px; }
.download-logo { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 1.6rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(143, 193, 247, .2); }
.download-sub { color: rgba(247, 250, 250, .8); margin: 1rem 0 2.2rem; font-size: 1.05rem; }
.store-badge { display: inline-flex; align-items: center; gap: .8rem; background: var(--white); color: var(--navy); border-radius: 14px; padding: .65rem 1.4rem .65rem 1.1rem; text-decoration: none; font-family: var(--font-display); transition: transform .18s, box-shadow .18s; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0, 0, 0, .45); }
.store-badge svg { width: 30px; height: 30px; }
.store-text { display: grid; line-height: 1.2; text-align: left; }
.store-text small { font-size: .68rem; color: var(--steel); }
.store-text { font-weight: 700; font-size: 1.15rem; }
.download-note { margin-top: 1.4rem; font-size: .85rem; color: rgba(247, 250, 250, .6); }

/* ---------- footer ---------- */
.footer { background: var(--navy-2); color: rgba(247, 250, 250, .7); padding: 3rem 0; border-top: 1px solid rgba(143, 193, 247, .1); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a { color: rgba(247, 250, 250, .7); text-decoration: none; font-family: var(--font-display); font-size: .88rem; }
.footer-links a:hover { color: #fff; }
.copyright { font-size: .82rem; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .logo-card, .float-chip { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 8.5rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-art { max-width: 480px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .section { padding: 4.2rem 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(13, 18, 28, .97); backdrop-filter: blur(12px); padding: 0 1.4rem; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
  .nav-menu.open { max-height: 420px; padding: 1.2rem 1.4rem 1.6rem; }
  .nav-menu a { padding: .8rem 0; border-bottom: 1px solid rgba(143, 193, 247, .12); }
  .nav-menu .btn { justify-content: center; margin-top: 1rem; border-bottom: 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .float-chip { transform: scale(.9); }
}
