:root {
  --primary: #0f1b2d;
  --accent: #22c55e;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --text: #1d2733;
  --muted: #6c757d;
  --border: #e5e9ef;
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; display: block; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: transform .08s ease, opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--border); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--primary); text-decoration: none; white-space: nowrap; }
/* Centered section links */
.nav-links { display: flex; align-items: center; gap: 22px; flex: 1; justify-content: center; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }
/* Right-aligned actions (login + language) */
.nav-actions { display: flex; align-items: center; gap: 14px; white-space: nowrap; }

/* Language switcher */
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch button { border: none; background: transparent; padding: 6px 12px; font-weight: 700; font-size: .8rem; color: var(--muted); cursor: pointer; }
.lang-switch button.active { background: var(--primary); color: #fff; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--primary), #1c3050); color: #fff; padding: 72px 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 3rem; line-height: 1.08; letter-spacing: -1px; }
.hero .accent { color: var(--accent); }
.lead { margin: 20px 0 28px; font-size: 1.15rem; color: #d6e0ee; max-width: 36ch; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.fineprint { margin-top: 16px; font-size: .9rem; color: #aebed4; }
.hero-shot img { margin: 0 auto; max-height: 520px; border-radius: 28px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 2rem; text-align: center; letter-spacing: -.5px; }
.section-sub { text-align: center; color: var(--muted); margin-top: 10px; }

/* Green section icon above each heading (matches the donation heart) */
.section-ico { display: block; text-align: center; font-size: 2.4rem; line-height: 1; color: var(--accent); margin-bottom: 8px; }
.download-copy .section-ico { text-align: left; }

/* Pulsing heart above the Support / donate section */
#support .section-ico {
  filter: drop-shadow(0 4px 12px rgba(34, 197, 94, .5));
  animation: donateBeat 1.9s ease-in-out infinite;
}
@keyframes donateBeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.18); }
  24% { transform: scale(1); }
  36% { transform: scale(1.1); }
  48% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #support .section-ico { animation: none; }
}

/* Features grid */
.grid.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.section-alt .card { background: #fff; }
.card .ico { font-size: 1.8rem; }
.card h3 { margin: 12px 0 6px; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* Sport strip */
.sport-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.chip {
  --c: var(--primary);
  border: 2px solid var(--c); color: var(--c); background: #fff;
  padding: 8px 16px; border-radius: 999px; font-weight: 600;
}

/* Screenshots — portrait phone captures */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; max-width: 860px; margin-left: auto; margin-right: auto; }
.shots img { width: 100%; border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(0,0,0,.12); }

/* Download */
.download-inner { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center; }
.download-copy h2 { text-align: left; }
.download-copy p { color: var(--muted); margin: 12px 0 22px; max-width: 42ch; }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge { height: 56px; }
.qr { text-align: center; }
.qr img { width: 180px; height: 180px; margin: 0 auto 10px; border: 1px solid var(--border); border-radius: 16px; padding: 10px; background: #fff; }
.qr span { color: var(--muted); font-size: .9rem; }

/* Footer */
.footer { background: var(--primary); color: #cdd7e6; padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-seal-link { display: inline-flex; }
.footer-seal { height: 46px; width: auto; display: block; border-radius: 4px; }
.footer nav { display: flex; gap: 20px; }
.footer a { color: #cdd7e6; text-decoration: none; }
.footer a:hover { color: #fff; }

/* Responsive */

/* Tablet — keep multi-column but relax the tightest grids */
@media (max-width: 960px) {
  .section { padding: 56px 0; }
  .hero { padding: 56px 0; }
  .grid.features { grid-template-columns: repeat(2, 1fr); }
}

/* Stacked layout — single-column hero/download, gallery narrows */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero-shot img { max-height: 440px; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero h1 { font-size: 2.3rem; }
  .grid.features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 560px; }
  .download-inner { grid-template-columns: 1fr; text-align: center; }
  .download-copy h2, .download-copy p { text-align: center; margin-left: auto; margin-right: auto; }
  .download-copy .section-ico { text-align: center; }
  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
  .footer nav { flex-wrap: wrap; justify-content: center; }
}

/* Nav: brand + actions stay on top row; section links become a
   horizontally-scrollable strip underneath (no hamburger needed). */
@media (max-width: 760px) {
  .nav-inner { flex-wrap: wrap; gap: 10px 16px; }
  .brand { order: 1; margin-right: auto; }
  .nav-actions { order: 2; }
  .nav-links {
    order: 3; flex-basis: 100%; justify-content: flex-start;
    gap: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  /* subtle divider so the strip reads as its own row */
  .nav-links { border-top: 1px solid var(--border); padding-top: 8px; }
}

/* Small phones — tighten type, gallery to 2-up */
@media (max-width: 560px) {
  .section { padding: 44px 0; }
  .section h2 { font-size: 1.7rem; }
  .nav-links a { font-size: .95rem; }
  .nav-actions { gap: 10px; }
  .btn { padding: 10px 16px; }
  .hero h1 { font-size: 2rem; }
  .lead { font-size: 1.05rem; }
  .shots { grid-template-columns: repeat(2, 1fr); max-width: 400px; }
  .store-badges { justify-content: center; }
}

.brand i { color: var(--accent); }
