/* ---------------------------------------------------------------------
   ضربدر (Zarbdar) — landing page
   Design tokens copied 1:1 from tailwind.config.ts, so this page stays in
   the app's real palette instead of inventing a marketing-only theme.
--------------------------------------------------------------------- */

@font-face {
  font-family: "Vazirmatn";
  src: url("../assets/fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --primary: #00694c;
  --primary-foreground: #ffffff;
  --primary-soft: #d1fae5;
  --secondary: #059669;
  --background: #f5f6f7;
  --foreground: #1a1a1a;
  --surface: #ffffff;
  --muted: #f3f4f6;
  --muted-foreground: #6b7280;
  --accent: #f59e0b;
  --accent-light: #fde68a;
  --destructive: #ef4444;
  --border: #e5e7eb;
  --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lift: 0 20px 60px rgba(0, 0, 0, 0.16);
  --radius-lg: 16px;
  --radius-md: 12px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", "Tahoma", sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  margin-block: 14px 10px;
}

.section-heading p {
  color: var(--muted-foreground);
  font-size: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding-inline: 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 24px rgba(0, 105, 76, 0.25);
}

.btn-outline {
  background: var(--surface);
  color: var(--foreground);
  border: 1px solid var(--border);
}

/* ---------------------------------- Header ---------------------------------- */

.site-header {
  position: relative;
  z-index: 50;
  padding-block: 22px;
  background: var(--background);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 40px;
  width: auto;
}

.site-header .brand img {
  height: 46px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions .btn {
  height: 44px;
  padding-inline: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  margin: 5px 0;
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  padding-top: 64px;
  overflow: hidden;
  background: radial-gradient(70% 60% at 50% 0%, var(--primary-soft) 0%, var(--background) 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.hero-content h1 {
  font-size: clamp(32px, 5.4vw, 56px);
  font-weight: 800;
  line-height: 1.3;
  margin-block: 20px 18px;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 17px;
  color: var(--muted-foreground);
  max-width: 540px;
  margin-inline: auto;
}

.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding-inline: 20px;
  border-radius: var(--radius-md);
  background: var(--foreground);
  color: #ffffff;
  font-weight: 700;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.store-badge:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.store-badge .store-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.store-badge .store-badge-text small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
}

.store-badge .store-badge-text strong {
  font-size: 15px;
}

.store-badge svg {
  flex-shrink: 0;
}

.hero-phones {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4vw;
  margin-top: 72px;
  /* Phones bleed past the hero's own bottom edge and get cropped by its
     overflow:hidden — a fixed height + flex-end here previously caused the
     center phone (taller than the box) to overflow upward instead, which is
     what was poking into the download buttons above. */
  margin-bottom: -190px;
}

.hero-phones .phone-frame.is-side {
  transform: translateY(60px) scale(0.86);
  opacity: 0.9;
}

.hero-phones .phone-frame.is-side.is-left {
  transform: translateY(60px) rotate(-6deg) scale(0.86);
}

.hero-phones .phone-frame.is-side.is-right {
  transform: translateY(60px) rotate(6deg) scale(0.86);
}

/* ---------------------------------- Phone frame ---------------------------------- */

.phone-frame {
  position: relative;
  width: 260px;
  height: 540px;
  flex-shrink: 0;
  border-radius: 44px;
  background: #111214;
  padding: 14px;
  box-shadow: var(--shadow-lift);
  border: 2px solid #2a2b2e;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #111214;
  border-radius: 20px;
  z-index: 3;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--background);
  border-radius: 32px;
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ---------------------------------- Value section ---------------------------------- */

.value-section {
  padding-block: 100px 80px;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.value-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.value-card .value-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-card.for-coach .value-icon {
  background: var(--primary-soft);
  color: var(--primary);
}

.value-card.for-athlete .value-icon {
  background: var(--accent-light);
  color: #92650a;
}

.value-card h3 {
  font-size: 22px;
  font-weight: 800;
}

.value-card p {
  color: var(--muted-foreground);
  font-size: 15px;
}

.value-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
}

.value-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

.value-card.for-athlete .value-list li svg {
  color: #92650a;
}

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  background: var(--foreground);
  color: #d4d4d8;
  padding-block: 56px 28px;
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand img {
  filter: brightness(0) invert(1);
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  color: #9ca3af;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 16px;
  color: #fff;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: #9ca3af;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: #9ca3af;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------------------------- Responsive ---------------------------------- */

@media (max-width: 900px) {
  .value-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset-inline: 16px;
    top: 78px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    padding: 12px 10px;
    border-radius: var(--radius-md);
  }

  .nav-links a:hover {
    background: var(--muted);
  }

  .header-actions .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-phones {
    gap: 3vw;
    margin-bottom: -140px;
  }

  .phone-frame {
    width: 190px;
    height: 396px;
    border-radius: 34px;
    padding: 10px;
  }

  .phone-frame::before {
    top: 18px;
    width: 64px;
    height: 16px;
  }

  .phone-screen {
    border-radius: 24px;
  }

  .hero-phones .phone-frame.is-side {
    transform: translateY(46px) scale(0.86);
  }

  .hero-phones .phone-frame.is-side.is-left {
    transform: translateY(46px) rotate(-6deg) scale(0.86);
  }

  .hero-phones .phone-frame.is-side.is-right {
    transform: translateY(46px) rotate(6deg) scale(0.86);
  }

  .value-card {
    padding: 28px 22px;
  }
}

@media (max-width: 480px) {
  .hero-phones {
    gap: 2vw;
    margin-bottom: -110px;
  }

  .phone-frame {
    width: 150px;
    height: 316px;
  }

  .store-badges {
    flex-direction: column;
    width: 100%;
  }

  .store-badge {
    width: 100%;
    justify-content: center;
  }
}
