/* qpSport — informational landing
   Monochrome design mirrored 1:1 from the iOS app (AppTheme.swift). */

:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --ink: #111111;
  --ink-2: #666666;
  --ink-3: #9a9a9a;
  --border: #e0e0e0;
  --soft: #ededed;

  --r-card: 22px;
  --r-btn: 18px;
  --r-pill: 999px;

  --shadow-card: 0 6px 14px rgba(0, 0, 0, 0.04);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.08);
  --shadow-phone: 0 40px 90px rgba(0, 0, 0, 0.18);

  --container: 1120px;
  --nav-h: 64px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 0, 0, 0.035), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(0, 0, 0, 0.025), transparent 55%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Logo mark (black rounded square + white dumbbell) ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  flex: none;
}
.logo svg {
  width: 60%;
  height: 60%;
}
.logo--sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.logo--md {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}
.logo--lg {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

/* ---------- Buttons (PrimaryButtonStyle / SoftButtonStyle) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 22px;
  border-radius: var(--r-btn);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.15s ease;
  user-select: none;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--soft {
  background: var(--soft);
  color: var(--ink);
  font-weight: 500;
}
.btn--block {
  width: 100%;
}
.btn--sm {
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 13px;
}
a.btn:hover {
  transform: translateY(-1px);
}
a.btn:active {
  transform: translateY(0) scale(0.99);
  opacity: 0.9;
}
a.btn--primary:hover {
  background: #000;
}
a.btn--soft:hover {
  background: #e4e4e4;
}

/* ---------- Eyebrow / pills ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
}

/* ---------- Navigation (glass) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(245, 245, 245, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(245, 245, 245, 0.85);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav__links a {
  transition: color 0.15s ease;
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__cta {
  flex: none;
}

/* ---------- Language switcher (EN/UA) ---------- */
.lang-switch {
  display: inline-flex;
  flex: none;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px;
}
.lang-switch button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.lang-switch button:not(.is-active):hover {
  color: var(--ink);
}
.lang-switch button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.lang-switch button.is-active {
  background: var(--ink);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding-top: clamp(48px, 8vw, 110px);
  padding-bottom: clamp(40px, 6vw, 90px);
}
.hero__title {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero__title span {
  display: block;
}
.hero__title .muted {
  color: var(--ink-3);
}
.hero__lead {
  max-width: 30em;
  margin-top: 26px;
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 0.5px solid var(--border);
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.trust svg {
  width: 18px;
  height: 18px;
  color: var(--ink);
}

/* ---------- Phone mockup (recreates WelcomeView) ---------- */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  max-width: 78vw;
  aspect-ratio: 300 / 620;
  background: #0b0b0b;
  border-radius: 52px;
  padding: 12px;
  box-shadow: var(--shadow-phone), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  animation: float 7s ease-in-out infinite;
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 42px;
  overflow: hidden;
  display: flex;
}
.phone__island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #0b0b0b;
  border-radius: var(--r-pill);
  z-index: 3;
}
.welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 70px 26px 30px;
}
.welcome__name {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 22px;
}
.welcome__tagline {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
  margin-top: 12px;
  max-width: 18em;
}
.welcome__actions {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.welcome__actions .btn {
  font-size: 15px;
  padding: 14px;
  cursor: default;
}
.phone__glow {
  position: absolute;
  inset: -8% -10% 6%;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.08), transparent 72%);
  filter: blur(8px);
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(48px, 7vw, 96px);
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
.section__head {
  margin-bottom: 44px;
  max-width: 38rem;
}
.section__head .eyebrow {
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* ---------- Card base (CardStyle) ---------- */
.card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 26px;
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 18px;
}
.grid--features {
  grid-template-columns: repeat(3, 1fr);
}
.grid--audience {
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.grid--security {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- Feature card ---------- */
.feature {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  margin-bottom: 18px;
}
.feature__icon svg {
  width: 24px;
  height: 24px;
}
.feature h3,
.secure h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature p,
.secure p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  gap: 14px;
}
.step {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 26px 28px;
}
.step__num {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  min-width: 56px;
  line-height: 1;
}
.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.step p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 52ch;
}

/* ---------- Audience ---------- */
.audience {
  padding: 30px;
}
.audience__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 0.5px solid var(--border);
}
.checklist {
  list-style: none;
  display: grid;
  gap: 14px;
}
.checklist li {
  position: relative;
  padding-left: 32px;
  font-size: 15.5px;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  padding: clamp(44px, 7vw, 76px) 28px;
}
.cta .logo {
  margin-inline: auto;
}
.cta__title {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 24px;
}
.cta__lead {
  color: var(--ink-2);
  font-size: 17px;
  margin-top: 12px;
}
.btn--store {
  margin-top: 28px;
  padding: 16px 28px;
}
.btn--store svg {
  width: 20px;
  height: 20px;
  margin-top: -2px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 0.5px solid var(--border);
  padding-block: 36px;
  margin-top: 20px;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__meta {
  color: var(--ink-2);
  font-size: 14px;
  margin-left: auto;
}
.footer__note {
  color: var(--ink-3);
  font-size: 13px;
  width: 100%;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding-top: 48px;
  }
  .hero__lead {
    margin-inline: auto;
  }
  .hero__actions,
  .trust {
    justify-content: center;
  }
  .trust {
    border-top: none;
    padding-top: 8px;
  }
  .grid--features,
  .grid--security {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .container {
    padding-inline: 18px;
  }
  .nav__links {
    display: none;
  }
  .nav__lang {
    margin-left: auto;
  }
  .nav__inner {
    gap: 14px;
  }
  .grid--features,
  .grid--security,
  .grid--audience {
    grid-template-columns: 1fr;
  }
  .step {
    flex-direction: column;
    gap: 10px;
    padding: 22px;
  }
  .step__num {
    font-size: 24px;
  }
  .footer__meta {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .nav__cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .phone {
    animation: none;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
