:root {
    --bg: #ffffff;
    --card: #ffffff;
    --text: #222;
    --muted: #6b7280;
    --accent: #FF5500;
    --accent-2: #FF7733;
    --radius: 14px;
    --container-gap: 24px;
    --header-height: 60px;
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'SansFont';
    src: url('./fonts/sans.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

html {
    font-size: 14px;
    height: 100%;
    margin: 0;
    padding: 0;
    
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'SansFont', sans-serif;
}

main {
    padding-top: 80px;
}

section {
  scroll-margin-top: 80px; /* همون ارتفاع هدر */
}

/* container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* header */
.site-header {
  background: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  height: auto;
  padding: 8px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 20px;
}

.brand {
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    font-size: 18px;
}

.brand img {
    height: 30px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 16px;
}

.nav a {
    position: relative;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    padding: 8px;
}

.nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.header-cta {
    margin-inline-start: 12px
}

/* buttons */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: white;
    border: none;
}

.btn-ghost {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* hero */
.hero {
    padding: 0px;
}

.hero-inner {
    display: flex;
    gap: 32px;
    justify-content: space-between;
    align-items: flex-start;
}

.hero-text {
    flex: 1;
    min-width: 0
}

.hero-text h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.05;
}

.hero-text p {
    margin: 0 0 18px;
    color: var(--muted)
}

.hero-actions {
    display: flex;
    gap: 12px
}

.top {
  width: 100%;
  height: 70vh;
  margin-top: 20px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 0; /* حذف فاصله اضافی */
}

.top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
}

/* visual mockup */
.hero-visual {
    width: 360px;
    max-width: 40%;
}

.hero-image {
    width: 100%;
    height: 220px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    display: block;
    object-fit: cover;
}

.mockup {
    height: 220px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #f4f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    color: var(--muted);
    font-weight: 600;
}

/* sections */
.section-title {
    font-size: 20px;
    margin: 12px 0 18px;
    color: var(--text);
}

.features {
    padding: 32px 0
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    background: var(--card);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 14px 32px rgba(16, 24, 40, 0.18);
}

/* about */
.about {
    padding: 24px 0;
    background: var(--bg);
}

.about-inner {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 24px 0;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 14px;
    display: block;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
}

/* footer */
/* Footer */
.site-footer {
  background: #fff5ef;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 40px 0 20px;
  color: #333;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand {
  flex: 1 1 250px;
  max-width: 300px;
}

.footer-brand img {
  height: 55px;
  margin-bottom: 10px;
}

.footer-brand p {
  color: #555;
  line-height: 1.8;
}

.footer-info,
.footer-social {
  flex: 1 1 200px;
}

.footer-info h4,
.footer-social h4 {
  color: var(--accent);
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-info p {
  margin: 6px 0;
  color: #555;
}

.footer-social .social-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-social img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.footer-social img:hover {
  transform: scale(1.1);
}

.footer-bottom {
  margin-top: 30px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 15px;
  color: #777;
  font-size: 13px;
}

.download-links {
    display: flex;
    justify-content: center; /* وسط چین روی دسکتاپ */
    gap: 16px; /* فاصله بین عکس‌ها */
    margin-top: 20px;
}

.download-links a img {
    width: 140px;
    height: auto;
    border-radius: 12px;
    transition: transform 0.2s;
}

.download-links a img:hover {
    transform: scale(1.05);
}

.download-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.download-buttons img {
  height: 50px;
  width: auto;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--accent);
  transition: transform .2s ease, opacity .2s ease;
}

/* responsive */
@media (max-width:600px) {

    body {
        padding: 0 12px; /* فاصله از کناره‌ها برای کل سایت */
    }

    .container {
        padding: 0 12px; /* فاصله از کناره‌ها برای کل سایت */
    }

    .menu-toggle {
        display: block;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1100;
    }

    .top {
        height: 50vh; /* موبایل */
    }

    .nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: var(--header-height, 60px);
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 12px;
        gap: 12px;
        z-index: 10 00;
    }

    .nav.open {
        display: flex;
    }

    .header-inner {
        padding: 10px 12px; /* فاصله داخلی هدر از چپ و راست */
    }

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

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-inner {
        flex-direction: column; /* ستون شود */
    }

    .hero-visual {
        order: 2; /* تصویر بعد */
        max-width: 100%;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .about-inner {
        flex-direction: column; /* ستون شود */
    }

    .about-text {
        order: 1; /* متن اول */
    }

    .about-image {
        order: 2; /* عکس بعد */
    }

    .about-text h2 {
        font-size: 24px;
    }

    .download-links {
        flex-direction: column; /* ستون شود */
        align-items: center;    /* وسط چین عمودی */
        gap: 12px;              /* فاصله کمی بین عکس‌ها */
    }

    .download-links a img {
        width: 120px; /* کوچکتر روی موبایل */
    }

    .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .download-buttons img {
    height: 45px;
  }
}

@media (max-width: 768px) {
    .top-inner {
        flex-direction: column;
    }

    .top-text,
    .top-image {
        flex: none;
        height: 50%;
    }

    .nav {
    display: none;
    flex-direction: column;
    background: var(--bg);
    position: absolute;
    top: 60px; /* زیر هدر */
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 1000;
  }

  .nav.open {
    display: flex;
  }
  
    .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-social .social-links {
    justify-content: center;
  }
}