/* ===================== PCL — Pro Clubs League ===================== */
:root {
  --bg:            #070d1c;
  --bg-2:          #0a1428;
  --surface:       #0f1c38;
  --surface-2:     #13234a;
  --line:          rgba(120,160,255,.14);
  --blue:          #2f7bff;
  --blue-bright:   #4d9bff;
  --blue-deep:     #1b4fd6;
  --cyan:          #46c8ff;
  --silver:        #c8d4ec;
  --text:          #eaf1ff;
  --muted:         #93a6cc;
  --muted-2:       #6d80a6;
  --radius:        18px;
  --radius-sm:     12px;
  --shadow:        0 20px 60px rgba(3,10,30,.55);
  --glow-blue:     0 0 60px rgba(47,123,255,.45);
  --max:           1180px;
  --font:          'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
/* images never render larger than their natural size */
img { max-width: 100%; height: auto; display: block; }
.phone-main { max-width: 380px; }        /* natural design cap */
.feature-shot .phone { max-width: 340px; }
.download-logo { max-width: 220px; }
.brand-logo { max-width: 48px; }
.footer-brand img { max-width: 56px; }
h1, h2, h3 { line-height: 1.35; font-weight: 800; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.section { padding: 92px 0; }
.center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: .25s ease; white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  color: #fff; box-shadow: 0 10px 26px rgba(47,123,255,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(47,123,255,.55); }
.btn-outline {
  background: rgba(47,123,255,.08); color: var(--text);
  border-color: rgba(77,155,255,.45);
}
.btn-outline:hover { background: rgba(47,123,255,.18); border-color: var(--blue-bright); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--silver); border-color: transparent; }
.btn-ghost:hover { color: #fff; }

/* ===================== Header ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,13,28,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; filter: drop-shadow(0 4px 14px rgba(47,123,255,.5)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 20px; letter-spacing: 1px; }
.brand-text small { font-size: 10px; color: var(--muted); letter-spacing: 1.5px; }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* ===================== Football pitch motifs ===================== */
/* mowed-pitch stripes rendered in blue tones to respect the palette */
.pitch-stripes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    100deg,
    rgba(47,123,255,.055) 0 60px,
    rgba(47,123,255,.015) 60px 120px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.pitch-stripes.soft { opacity: .5; mask-image: none; }
.pitch-lines {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%;
  opacity: .8;
}

/* ===================== Hero ===================== */
.hero { position: relative; overflow: hidden; padding: 70px 0 40px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(700px 340px at 50% -8%, rgba(120,180,255,.30), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(47,123,255,.22), transparent 60%),
    radial-gradient(700px 500px at 5% 15%, rgba(27,79,214,.20), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
/* stadium floodlight cones from top */
.hero-bg::before {
  content: ""; position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 70%;
  background:
    conic-gradient(from 200deg at 20% 0%, transparent 0 8deg, rgba(160,200,255,.08) 12deg, transparent 20deg),
    conic-gradient(from 160deg at 80% 0%, transparent 0 8deg, rgba(160,200,255,.08) 12deg, transparent 20deg);
  filter: blur(6px); pointer-events: none;
}
.ball { position: absolute; font-size: 40px; opacity: .18; filter: grayscale(.2) drop-shadow(0 8px 16px rgba(0,0,0,.4)); }
.ball-a { top: 16%; left: 8%; animation: spin 14s linear infinite, floatY 6s ease-in-out infinite; }
.ball-b { bottom: 14%; right: 10%; font-size: 30px; animation: spin 18s linear infinite reverse, floatY 7s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatY { 0%,100%{ margin-top:0 } 50%{ margin-top:-16px } }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(47,123,255,.12); border: 1px solid rgba(77,155,255,.35);
  color: var(--blue-bright); font-size: 13px; font-weight: 600;
  padding: 7px 15px; border-radius: 100px; margin-bottom: 22px;
}
.pill .dot { width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 10px var(--cyan); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.hero h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 900; margin-bottom: 20px; }
.grad { background: linear-gradient(120deg, var(--blue-bright), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-points { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.hero-points li { color: var(--silver); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.chk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(47,123,255,.18); color: var(--blue-bright); font-size: 13px; font-weight: 800; }

.hero-visual { position: relative; display: grid; place-items: center; }
.glow { position: absolute; width: 420px; height: 420px; background: radial-gradient(circle, rgba(47,123,255,.5), transparent 68%); filter: blur(30px); z-index: 0; }
.glow.small { width: 320px; height: 320px; opacity: .8; }
.phone { position: relative; z-index: 1; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }
.phone-main { width: min(360px, 82%); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

/* ===================== Stats ===================== */
.stats { position: relative; padding: 26px 0 6px; background: var(--bg); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat {
  text-align: center;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 16px; transition: .3s;
}
.stat:hover { transform: translateY(-5px); border-color: rgba(77,155,255,.5); box-shadow: var(--shadow); }
.stat-ico { display: block; font-size: 26px; margin-bottom: 8px; }
.stat b { display: block; font-size: 28px; font-weight: 900; background: linear-gradient(120deg,#fff,var(--blue-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span:not(.stat-ico) { color: var(--muted); font-size: 14px; }

/* ===================== Section head ===================== */
.section-head { max-width: 720px; margin: 0 auto 52px; }
.eyebrow { display: inline-block; color: var(--blue-bright); font-weight: 700; font-size: 14px; letter-spacing: .5px; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 16px; }

/* ===================== Cards ===================== */
.cards-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.card {
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(77,155,255,.5); box-shadow: var(--shadow); }
.card-ico { width: 54px; height: 54px; display: grid; place-items: center; font-size: 25px; border-radius: 14px; background: rgba(47,123,255,.12); border: 1px solid rgba(77,155,255,.25); margin-bottom: 16px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }

.about-long { margin-top: 40px; background: rgba(15,28,56,.4); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; }
.about-long p { color: var(--silver); font-size: 16px; text-align: justify; }

/* ===================== Features ===================== */
.features { background:
  radial-gradient(700px 400px at 100% 0%, rgba(27,79,214,.14), transparent 60%),
  var(--bg); }
.feature-row {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: 24px;
  padding: 42px 46px; margin-bottom: 26px;
  position: relative; overflow: hidden;
}
.feature-row.reverse { direction: ltr; }
.feature-row.reverse > * { direction: rtl; }
.feature-row:last-child { margin-bottom: 0; }
.feature-badge { display: inline-grid; place-items: center; width: 56px; height: 56px; font-size: 26px; border-radius: 16px; background: rgba(47,123,255,.14); border: 1px solid rgba(77,155,255,.3); margin-bottom: 16px; }
.feature-text h3 { font-size: 24px; margin-bottom: 12px; }
.feature-text p { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 30px; color: var(--silver); font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 2px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(47,123,255,.18); color: var(--blue-bright); font-size: 12px; font-weight: 800; }
.feature-shot { position: relative; display: grid; place-items: center; }
.feature-shot::before { content: ""; position: absolute; width: 72%; height: 72%; background: radial-gradient(circle, rgba(47,123,255,.4), transparent 70%); filter: blur(34px); }
.feature-shot .phone { position: relative; z-index: 1; width: min(280px, 80%); }

/* ===================== Download CTA ===================== */
.download-box {
  display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; gap: 30px;
  background: linear-gradient(120deg, var(--surface-2), var(--bg-2));
  border: 1px solid rgba(77,155,255,.3); border-radius: 26px;
  padding: 50px 46px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.download-box::before { content: ""; position: absolute; inset-inline-start: -60px; top: -60px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(47,123,255,.35), transparent 70%); }
.download-copy { position: relative; z-index: 1; }
.download-copy h2 { font-size: clamp(24px, 3.5vw, 34px); margin-bottom: 12px; }
.download-copy p { color: var(--muted); margin-bottom: 24px; font-size: 16px; }
.download-logo { position: relative; z-index: 1; justify-self: center; width: min(200px, 60%); filter: drop-shadow(0 12px 34px rgba(47,123,255,.5)); animation: float 6s ease-in-out infinite; }

/* ===================== Contact ===================== */
.contact-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 18px; transition: .3s;
}
.contact-card:hover { transform: translateY(-6px); border-color: var(--blue-bright); box-shadow: var(--shadow); }
.c-ico { font-size: 30px; }
.contact-card b { font-size: 17px; }
.contact-card span { color: var(--muted); font-size: 14px; }

/* ===================== Footer ===================== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: 30px; padding: 46px 22px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 50%; filter: drop-shadow(0 4px 14px rgba(47,123,255,.4)); }
.footer-brand strong { font-size: 17px; }
.footer-brand p { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: var(--muted); font-size: 15px; transition: .2s; }
.footer-links a:hover { color: #fff; }
.footer-enamad { background: #fff; border-radius: 10px; padding: 6px; display: inline-flex; }
.footer-enamad img { max-height: 96px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; }
.footer-bottom p { text-align: center; color: var(--muted-2); font-size: 14px; }

/* ===================== Responsive ===================== */
/* ---------- Tablet ---------- */
@media (max-width: 940px) {
  html { scroll-padding-top: 74px; }

  .hero { padding: 34px 0 30px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 22px; }
  .hero-copy { order: 1; }              /* text & CTAs come first */
  .hero-visual { order: 2; }            /* phone image below the content */
  .hero-copy .pill { margin-inline: auto; }
  .lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; align-items: center; }
  .hero-points { display: inline-flex; text-align: start; }
  .phone-main { width: min(230px, 56vw); }

  .cards-4 { grid-template-columns: 1fr 1fr; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: rtl; text-align: center; gap: 24px; padding: 32px 24px; }
  .feature-row .feature-shot { order: 2; }   /* text first, screenshot after */
  .feature-badge { margin-inline: auto; }
  .feature-shot .phone { width: min(230px, 54vw); }
  .ticks { display: inline-flex; text-align: start; }
  .ticks li { text-align: start; }

  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .stat b { font-size: 24px; }
  .contact-grid { grid-template-columns: repeat(2,1fr); }

  .download-box { grid-template-columns: 1fr; text-align: center; padding: 40px 26px; }
  .download-copy { order: 2; }
  .download-copy .hero-actions { justify-content: center; }
  .download-logo { order: 1; width: min(150px, 42vw); }

  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 22px; }
  .footer-brand { flex-direction: column; text-align: center; }
}

/* ---------- Large phone ---------- */
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 22px 12px; }
  .stat + .stat::before { display: none; }
}

/* ---------- Header on phones ---------- */
@media (max-width: 560px) {
  .site-header { padding: 0; }
  .nav-inner { height: 62px; }
  .brand-text small { white-space: nowrap; }
  .brand-text strong { font-size: 18px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn { padding: 9px 14px; font-size: 13px; }
  .brand-logo { width: 38px; }
}

/* ---------- Small phone ---------- */
@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .hero h1 { font-size: 27px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .download-copy .hero-actions .btn { width: 100%; }
  .cards-4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .phone-main { width: min(210px, 62vw); }
  .feature-shot .phone { width: min(210px, 60vw); }
}

/* ---------- Very small phone ---------- */
@media (max-width: 360px) {
  .brand-text small { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
