:root {
  --bg: #f7f5f2;
  --bg-elev: #ffffff;
  --ink: #111111;
  --ink-soft: #5c5a57;
  --line: #e6e2db;
  --accent: #fc4c02;
  --accent-hover: #e24402;
  --forest: #1c3d2e;
  --wrap: 1120px;
  --radius: 4px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: var(--bg);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ——— Header ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a:hover { color: var(--ink); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang {
  position: relative;
  flex-shrink: 0;
}

.lang-btn {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.lang-btn::-webkit-details-marker { display: none; }

.lang-btn::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.1rem;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
}

.lang[open] .lang-btn {
  background: #fff;
  border-color: var(--accent);
}

.lang-flag {
  display: block;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.lang-code {
  letter-spacing: 0.02em;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 80;
  min-width: 12.5rem;
  max-height: min(70vh, 22rem);
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.12);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.5rem 0.55rem;
  border-radius: calc(var(--radius) - 2px);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: var(--bg);
  outline: none;
}

.lang-option.is-active {
  background: rgba(234, 88, 12, 0.1);
  font-weight: 700;
}

.lang-option-label {
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0.7rem 1.15rem;
  font-weight: 650;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: #fff; }

.btn-ghost-light {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-lg { padding: 0.9rem 1.4rem; font-size: 0.95rem; }

/* ——— Hero (Strava-like split) ——— */
.hero {
  display: grid;
  min-height: calc(100vh - 64px);
  background: var(--bg);
}

.hero-photo {
  min-height: 42vh;
  position: relative;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 42vh;
}

.hero-panel {
  display: flex;
  align-items: center;
  padding: 2.75rem 1.25rem 3.25rem;
}

.hero-copy { max-width: 34rem; }

.kicker {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.4vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 750;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy p {
  margin: 1.15rem 0 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

/* ——— Stats ——— */
.stats {
  border-block: 1px solid var(--line);
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
}

.stat {
  padding: 1.5rem 1rem;
}

.stat + .stat { border-top: 1px solid var(--line); }

.stat strong {
  display: block;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  font-weight: 750;
}

.stat span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ——— Sections ——— */
.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 750;
}

.section-head p {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* How */
.how-grid {
  display: grid;
  gap: 1.25rem;
}

.how-card {
  padding: 1.5rem 1.35rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.how-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}

.how-card h3 {
  margin: 0.55rem 0 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.how-card p {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Sports mosaic */
.sports-mosaic {
  display: grid;
  gap: 8px;
}

.sport-tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  color: #fff;
  isolation: isolate;
}

.sport-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

.sport-tile:hover img { transform: scale(1.07); }

.sport-tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.72) 100%);
}

.sport-tile__copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.15rem 1.2rem;
}

.sport-tile__copy .eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
}

.sport-tile__copy h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.sport-tile__copy p {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.86);
  max-width: 28rem;
}

.sport-tile--featured { min-height: 420px; }
.sport-tile--featured img { min-height: 420px; }
.sport-tile--featured h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* Split features */
.split {
  display: grid;
}

.split-media {
  min-height: 320px;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.split-copy {
  display: flex;
  align-items: center;
  padding: 2.75rem 1.25rem;
  background: #fff;
}

.split-copy .inner { max-width: 32rem; }

.split-copy h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
  font-weight: 750;
}

.split-copy p {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* CTA */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 5rem 0;
}

.cta-band .kicker { color: var(--accent); }

.cta-band h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-weight: 750;
}

.cta-band p {
  margin: 0.9rem 0 0;
  color: rgba(255,255,255,0.72);
  max-width: 32rem;
  font-size: 1.05rem;
}

.cta-band .btn { margin-top: 1.6rem; }

/* Footer */
.site-footer {
  background: #111;
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0 2rem;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-brand img {
  width: 24px; height: 24px;
  border-radius: 50%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
}

.sports-mosaic--rest {
  grid-template-rows: none;
}

/* Dar ekranda Giriş / CTA gizlenmez — üst çubuk sıkışır. */
@media (max-width: 719px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 1.25rem));
  }

  .topbar-inner {
    gap: 0.5rem;
  }

  .brand {
    min-width: 0;
    flex-shrink: 1;
  }

  .topbar-actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .topbar-actions .btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .lang-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    gap: 0.3rem;
  }

  .lang-flag {
    width: 18px;
    height: 13px;
  }
}

@media (max-width: 400px) {
  /* En dar telefonlarda marka yazısı düşer; logo + Giriş + CTA kalır. */
  .brand span { display: none; }
}

@media (min-width: 720px) {
  .nav-links { display: flex; }

  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat + .stat { border-top: 0; border-left: 1px solid var(--line); }

  .how-grid { grid-template-columns: repeat(3, 1fr); }

  .sports-mosaic {
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: 250px 250px;
  }
  .sport-tile--featured {
    grid-row: 1 / span 2;
    min-height: 100%;
  }
  .sport-tile--featured img { min-height: 100%; height: 100%; }

  .split { grid-template-columns: 1.05fr 0.95fr; min-height: 520px; }
  .split--flip .split-media { order: 2; }
  .split--flip .split-copy { order: 1; }
  .split-media, .split-media img { min-height: 100%; height: 100%; }
  .split-copy { padding: 3.5rem; }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .sports-mosaic--rest {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: 200px;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: 1.12fr 0.88fr;
    min-height: calc(100vh - 64px);
  }
  .hero-photo, .hero-photo img { min-height: 100%; height: 100%; }
  .hero-panel { padding: 4rem 3.5rem; }

  .sports-mosaic { grid-template-rows: 280px 280px; }
}

.apps-intro { padding-top: 3.5rem; }

.apps-title {
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  font-weight: 750;
}

.platform-grid {
  display: grid;
  gap: 1rem;
}

.platform-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.6rem;
}

.platform-card h2 {
  margin: 0.85rem 0 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.platform-card p {
  margin: 0.5rem 0 1.25rem;
  color: var(--ink-soft);
}

.platform-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #111;
  color: #fff;
  border-radius: 8px;
  padding: 0.55rem 1rem 0.55rem 0.85rem;
  min-width: 11.5rem;
}

.store-badge:hover { background: #000; }

.store-badge small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.store-badge strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.store-qr {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.store-qr-link {
  display: inline-block;
  padding: 0.55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  line-height: 0;
}

.store-qr-img {
  display: block;
  width: 148px;
  height: 148px;
}

.store-qr-caption {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (min-width: 720px) {
  .platform-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sport-tile img, .sport-tile:hover img { transform: none; transition: none; }
}
