/* ===================================================================
   ESCAPEBOX — Redesign
   Single-page, responsive, RTL
=================================================================== */

/* فونت وزیرمتن — به‌صورت لوکال سرو می‌شود (نه از Google Fonts)
   چون دسترسی به دامنه‌های گوگل برای خیلی از کاربران ایرانی ناپایدار/کند است.
   فایل فونت باید در assets/fonts/Vazirmatn[wght].woff2 قرار داشته باشد —
   توضیح کامل دانلود آن در README.md آمده. */
@font-face{
  font-family:'Vazirmatn';
  src: url('../fonts/Vazirmatn[wght].woff2') format('woff2 supports variations'),
       url('../fonts/Vazirmatn[wght].woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg-dark:      #0b0b0c;
  --bg-dark-2:    #141416;
  --bg-cream:     #eae4d8;
  --bg-cream-2:   #f3efe6;
  --red:          #e0222c;
  --red-dark:     #b81b23;
  --text-light:   #f5f2ec;
  --text-muted:   #a8a6a2;
  --text-dark:    #1a1816;
  --text-dark-muted:#6b665d;
  --line:         rgba(245,242,236,.12);
  --line-cream:   rgba(26,24,22,.12);
  --radius:       10px;
  --container:    1180px;
  --ff: 'Vazirmatn', Tahoma, sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--ff);
  background:var(--bg-dark);
  color:var(--text-light);
  direction:rtl;
  line-height:1.8;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;}
button{font-family:var(--ff);cursor:pointer;border:none;background:none;color:inherit;}
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  color:var(--text-muted);
}
.eyebrow::before{
  content:"";
  width:22px;height:2px;
  background:var(--red);
  display:inline-block;
}
.section-title{
  font-size:clamp(22px,3.2vw,32px);
  font-weight:800;
}
.section-title .accent{color:var(--red);}
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 26px;
  border-radius:8px;
  font-weight:700;
  font-size:15px;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn svg{width:18px;height:18px;flex:none;}
.btn-primary{
  background:var(--red);
  color:#fff;
  box-shadow:0 8px 24px rgba(224,34,44,.35);
}
.btn-primary:hover{background:var(--red-dark);transform:translateY(-2px);}
.btn-outline{
  border:1px solid var(--line);
  color:var(--text-light);
  background:rgba(255,255,255,.03);
}
.btn-outline:hover{background:rgba(255,255,255,.08);}
.btn-outline.on-cream{border-color:var(--line-cream);color:var(--text-dark);}
.btn-outline.on-cream:hover{background:rgba(0,0,0,.05);}
.btn-block{width:100%;justify-content:center;}

/* ---------- Sticky mini header ---------- */
.site-header{
  position:fixed;
  top:0;left:0;right:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 24px;
  background:rgba(11,11,12,0);
  transition:background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-header.scrolled{
  background:rgba(11,11,12,.92);
  backdrop-filter:blur(8px);
  box-shadow:0 1px 0 var(--line);
  padding:10px 24px;
}
.logo{
  font-weight:800;
  font-size:19px;
  letter-spacing:.3px;
}
.logo span{color:var(--red);}
.site-header .btn-primary{padding:10px 20px;font-size:14px;}

.main-nav{
  display:flex;
  align-items:center;
  gap:30px;
}
.main-nav a{
  font-size:14px;
  color:var(--text-muted);
  transition:color .15s ease;
}
.main-nav a:hover{color:var(--text-light);}

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

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:34px;
  height:34px;
}
.nav-toggle span{
  display:block;
  width:100%;
  height:2px;
  background:var(--text-light);
  border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle.open span:nth-child(2){opacity:0;}
.nav-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:640px;
  display:flex;
  align-items:center;
  padding:150px 0 80px;
  background:
    radial-gradient(60% 50% at 15% 25%, rgba(224,34,44,.20) 0%, rgba(224,34,44,0) 60%),
    var(--bg-dark);
  overflow:hidden;
}
/* عکس به‌صورت بک‌گراند تمام‌عرض کل بخش (نه فقط نیمی از آن) */
.hero-media{
  position:absolute;
  inset:0;
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to left, rgba(11,11,12,.06) 0%, rgba(11,11,12,.55) 45%, rgba(11,11,12,.92) 78%);
}
.hero .container{
  position:relative;
  z-index:2;
  width:100%;
  display:flex;
  align-items:center;
}
.hero-content{
  width:50%;
  max-width:560px;
  text-align:right;
}
.hero-content .eyebrow{margin-bottom:18px;justify-content:flex-start;}
.hero-title{
  font-size:clamp(34px,5.2vw,56px);
  font-weight:800;
  line-height:1.25;
  margin-bottom:22px;
}
.hero-title .accent{color:var(--red);}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}


/* ---------- About / case-file section ---------- */
.about{
  position:relative;
  min-height:560px;
  display:flex;
  align-items:center;
  background:var(--bg-cream);
  color:var(--text-dark);
  overflow:hidden;
}
/* عکس به‌صورت بک‌گراند تمام‌عرض کل بخش (نه فقط نیمی از آن) */
.about-media{
  position:absolute;
  inset:0;
}
.about-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.about-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to right, var(--bg-cream) 0%, rgba(234,228,216,.9) 40%, rgba(234,228,216,.15) 68%, rgba(234,228,216,0) 82%);
}
.about .container{
  position:relative;
  z-index:2;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.about-content{width:50%;max-width:560px;}
.about .eyebrow{color:var(--text-dark-muted);}
.about .section-title{margin:16px 0 18px;}
.about p{color:var(--text-dark-muted);font-size:16px;max-width:46ch;}
.about p + p{margin-top:14px;}

/* ---------- Mission steps ---------- */
.mission{
  background:var(--bg-dark);
  padding:90px 0;
  text-align:center;
}
.mission .section-title{margin-bottom:56px;}
.steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:34px;
}
.step{
  padding:0 20px;
  position:relative;
}
.step + .step::before{
  content:"";
  position:absolute;
  right:100%;
  top:26px;
  width:34px;height:1px;
  background:var(--line);
}
.step .idx{
  font-size:12px;
  color:var(--text-muted);
  letter-spacing:1px;
  margin-bottom:18px;
}
.step .icon{
  width:52px;height:52px;
  border-radius:50%;
  border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 20px;
  color:var(--red);
}
.step .icon svg{width:22px;height:22px;}
.step h3{font-size:18px;font-weight:700;margin-bottom:10px;}
.step p{font-size:14px;color:var(--text-muted);max-width:26ch;margin:0 auto;}

/* ---------- App banner ---------- */
.app-banner{
  background:var(--bg-cream-2);
  color:var(--text-dark);
  padding:90px 0;
}
.app-banner .container{
  display:grid;
  grid-template-columns:.85fr 1fr;
  gap:60px;
  align-items:center;
}
.phone-mock{order:1;max-width:280px;}
.phone-mock .frame{
  background:#0b0b0c;
  border-radius:34px;
  padding:14px;
  box-shadow:0 30px 60px rgba(0,0,0,.25);
}
.phone-mock .screen{
  background:#141416;
  border-radius:22px;
  aspect-ratio:9/17.5;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  position:relative;
  overflow:hidden;
}
.phone-mock .tape{
  position:absolute;
  top:16px;right:-26px;
  background:#e9c92b;
  color:#1a1816;
  font-size:10px;
  font-weight:800;
  padding:5px 34px;
  transform:rotate(35deg);
  letter-spacing:.5px;
}
.phone-mock .timer{
  font-family:'Courier New',monospace;
  font-size:30px;
  font-weight:800;
  color:#f5f2ec;
  letter-spacing:1px;
}
.phone-mock .brand{color:var(--red);font-weight:800;font-size:14px;letter-spacing:1px;}
.phone-mock .status{color:var(--text-muted);font-size:12px;}

.app-content{order:2;}
.app-content h2{
  font-size:clamp(22px,3vw,30px);
  font-weight:800;
  line-height:1.6;
  margin-bottom:14px;
}
.app-content-sub{
  color:var(--text-dark-muted);
  font-size:14px;
  max-width:44ch;
  margin-bottom:22px;
}

.store-buttons{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-width:320px;
}
.store-btn{
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid var(--line-cream);
  background:var(--bg-dark);
  color:var(--text-light);
  border-radius:8px;
  padding:12px 18px;
  transition:transform .15s ease, background .15s ease;
}
.store-btn:hover{background:var(--bg-dark-2);transform:translateY(-1px);}
.store-btn svg{width:22px;height:22px;flex:none;}
.store-btn span{font-size:12px;color:var(--text-muted);line-height:1.6;}
.store-btn span b{display:block;font-size:15px;color:var(--text-light);font-weight:700;}
.store-btn-android svg{color:#3ddc84;}

/* ---------- About us ---------- */
.about-us{
  position:relative;
  min-height:560px;
  display:flex;
  align-items:center;
  background:var(--bg-dark);
  overflow:hidden;
}
/* عکس به‌صورت بک‌گراند تمام‌عرض کل بخش (نه فقط نیمی از آن) */
.board{
  position:absolute;
  inset:0;
}
.board img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.board::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to left, rgba(11,11,12,.06) 0%, rgba(11,11,12,.55) 45%, rgba(11,11,12,.92) 78%);
}
.about-us .container{
  position:relative;
  z-index:2;
  width:100%;
  display:flex;
  align-items:center;
}
.au-content{width:50%;max-width:560px;text-align:right;}
.au-content .eyebrow{justify-content:flex-start;}
.au-content .section-title{margin:16px 0 18px;}
.au-content p{color:var(--text-muted);max-width:48ch;margin-bottom:30px;}
.partners{
  display:flex;
  gap:40px;
  flex-wrap:wrap;
}
.partner b{display:block;font-size:15px;font-weight:700;margin-bottom:4px;}
.partner span{font-size:12px;color:var(--text-muted);}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--bg-dark-2);
  padding:70px 0 0;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1fr;
  gap:40px;
  padding-bottom:50px;
  border-bottom:1px solid var(--line);
}
.footer-brand p{
  color:var(--text-muted);
  font-size:14px;
  margin:14px 0 22px;
  max-width:32ch;
}
.footer-col h4{font-size:15px;font-weight:700;margin-bottom:18px;}
.footer-col li{margin-bottom:12px;}
.footer-col a{color:var(--text-muted);font-size:14px;transition:color .15s;}
.footer-col a:hover{color:var(--text-light);}
.footer-col li{display:flex;align-items:center;gap:8px;}
.footer-col svg{width:15px;height:15px;flex:none;color:var(--red);}
.footer-app-links{display:flex;gap:10px;}
.footer-app-links .btn-outline{padding:10px 16px;font-size:13px;}
.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  padding:22px 0;
  font-size:13px;
  color:var(--text-muted);
}
.footer-cta{
  background:var(--red);
  color:#fff;
}
.footer-cta .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  padding:20px 24px;
}
.footer-cta p{font-weight:700;}
.footer-cta .btn{background:#fff;color:var(--red);}
.footer-cta .btn:hover{background:#f2f2f2;}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .app-banner .container{
    grid-template-columns:1fr;
  }
  .main-nav{
    position:fixed;
    top:64px;
    left:16px;
    right:16px;
    background:var(--bg-dark-2);
    border:1px solid var(--line);
    border-radius:10px;
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
    padding:10px;
    display:none;
  }
  .main-nav.open{display:flex;}
  .main-nav a{padding:11px 10px;width:100%;}
  .nav-toggle{display:flex;}

  /* هیرو، درباره و درباره‌ما: از حالت بک‌گراند لبه‌به‌لبه‌ی دو ستونه
     به حالت عکس تمام‌عرض بالای بخش + متن زیرش سوییچ می‌کنند */
  .hero,.about,.about-us{
    flex-direction:column;
    align-items:stretch;
    min-height:0;
  }
  .hero{padding-top:100px;}
  .hero-media,.about-media,.board{
    position:relative;
    width:100%;
    aspect-ratio:4/3;
  }
  .hero-media::after,.about-media::after,.board::after{display:none;}
  .hero .container,.about .container,.about-us .container{padding-top:40px;padding-bottom:48px;}
  .hero-content,.about-content,.au-content{width:100%;max-width:none;margin-inline:0;}

  .hero-content{text-align:center;}
  .hero-content .eyebrow{justify-content:center;}
  .hero-actions{justify-content:center;}

  .about-content{text-align:center;}
  .about p{margin-inline:auto;}

  .steps{grid-template-columns:1fr;gap:44px;}
  .step + .step::before{display:none;}

  .phone-mock{order:0;margin-inline:auto;}
  .app-content{order:1;text-align:center;}
  .app-content-sub{margin-inline:auto;}
  .store-buttons{margin-inline:auto;}

  .au-content{text-align:center;}
  .au-content .eyebrow{justify-content:center;}
  .au-content p{margin-inline:auto;}
  .partners{justify-content:center;}

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

@media (max-width:640px){
  .container{padding:0 18px;}
  .hero{padding-bottom:60px;}
  .hero-actions{flex-direction:column;align-items:stretch;}
  .hero-actions .btn{justify-content:center;}
  .mission,.app-banner{padding:64px 0;}
  .footer-grid{grid-template-columns:1fr;gap:34px;}
  .footer-bottom{flex-direction:column;text-align:center;}
  .footer-cta .container{flex-direction:column;text-align:center;}
}
