
/* ========================================
   Reset
======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* ========================================
   Body
======================================== */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: #f5f7fb;
  color: #111827;
  font-family: inherit;
  overflow-x: hidden;
}


/* ========================================
   Landing Page
======================================== */

.landing-page {
  width: 100%;
}


/* ========================================
   Hero
======================================== */

.hero {
  width: calc(100% - 48px);
  max-width: 1000px;
  min-height: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  margin: 112px auto 48px;
  padding: clamp(32px, 5vw, 60px) 24px;

  text-align: center;

  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;

  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
}


/* ========================================
   Hero Title
======================================== */

.hero h1 {
  margin-bottom: 18px;

  color: #111827;
  font-size: 38px;
  line-height: 1.7;
  font-weight: 800;
}


/* ========================================
   Hero Description
======================================== */

.hero p {
  max-width: 620px;
  margin-bottom: 36px;

  color: #6b7280;
  font-size: 17px;
  line-height: 1.8;
}


/* ========================================
   Buttons Container
======================================== */

.landing-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}


/* ========================================
   Common Buttons
======================================== */

.login-button,
.ranking-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 190px;
  height: 50px;
  padding: 0 20px;

  border-radius: 10px;
  text-decoration: none;

  font-family: inherit;
  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.2s ease;
}


/* ========================================
   Login Button
======================================== */

.login-button {
  background: #172554;
  color: #ffffff;
  border: 1px solid #172554;
}

.login-button:hover {
  background: #1e3a8a;
  border-color: #1e3a8a;

  box-shadow: 0 6px 16px rgba(23, 37, 84, 0.15);
}

.login-button:active {
  transform: translateY(1px);
}


/* ========================================
   Ranking Button
======================================== */

.ranking-button {
  background: #ffffff;
  color: #172554;
  border: 1px solid #dbe3ef;
}

.ranking-button:hover {
  background: #f8fafc;
  color: #172554;
  border-color: #cbd5e1;

  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.ranking-button:active {
  transform: translateY(1px);
}


/* ========================================
   Hero Tagline
======================================== */

.hero-tagline {
  margin-top: 28px;

  color: #6b7280;
  font-size: 15px;
  line-height: 1.8;
}


/* ========================================
   General Landing Sections
======================================== */

.landing-section {
  width: calc(100% - 48px);
  max-width: 1000px;

  margin: 0 auto 32px;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px);

  background: #ffffff;

  border: 1px solid #e2e8f0;
  border-radius: 24px;

  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);

  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}


/* ========================================
   Alternating Section Colors
======================================== */

/*
   برای تعیین رنگ دقیق هر سکشن از کلاس‌های
   section-white و section-soft استفاده می‌کنیم.
*/

.landing-section.section-white {
  background: #ffffff;
}

.landing-section.section-soft {
  background: #f8fafc;
}


/* ========================================
   Section Content
======================================== */

.section-content {
  width: 100%;
  max-width: 100%;

  margin: 0 auto;
  padding: 0;

  text-align: center;

  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}


/* ========================================
   Section Label
======================================== */

.section-label {
  margin-bottom: 18px;

  color: #172554;
  font-size: 15px;
  font-weight: 700;
}


/* ========================================
   Section Title
======================================== */

.landing-section h2 {
  margin-bottom: 22px;

  color: #111827;
  font-size: 30px;
  line-height: 1.7;
  font-weight: 800;
}


/* ========================================
   Section Description
======================================== */

.section-description {
  max-width: 720px;
  margin: 0 auto;

  color: #6b7280;
  font-size: 16px;
  line-height: 2.1;
}


/* ========================================
   Why Section
======================================== */

.why-section {
  /* رنگ پس‌زمینه از کلاس section-white یا section-soft */
  background: #ffffff;
}


/* ========================================
   Features Grid
======================================== */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 20px;
  margin-top: 55px;
}


/* ========================================
   Feature Card
======================================== */

.feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  padding: 28px 24px;

  text-align: right;

  border: 1px solid #e5eaf2;
  border-radius: 12px;

  background: #ffffff;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}


/* ========================================
   Feature Hover Overlay
======================================== */

.feature::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -1;

  background: rgba(37, 99, 235, 0.09);

  transform: translateX(-101%);

  transition: transform 0.45s ease;

  pointer-events: none;
}

.feature:hover::before {
  transform: translateX(0);
}

.feature:hover {
  border-color: #cbdaf5;

  box-shadow: 0 8px 24px rgba(23, 37, 84, 0.07);
}


/* ========================================
   Feature Title
======================================== */

.feature h3 {
  margin-bottom: 14px;

  color: #172554;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 700;
}


/* ========================================
   Feature Description
======================================== */

.feature p {
  color: #6b7280;
  font-size: 14px;
  line-height: 2;
}


/* ========================================
   Services Section
======================================== */

.services-section {
  background: #f8fafc;
}


/* ========================================
   Services Grid
======================================== */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 20px;
  margin-top: 55px;
}


/* ========================================
   Service Card
======================================== */

.service-card {
  padding: 30px 24px;

  text-align: right;

  background: #ffffff;

  border: 1px solid #dbe3ef;
  border-radius: 12px;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);

  border-color: #cbd5e1;

  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}


/* ========================================
   Service Title
======================================== */

.service-card h3 {
  margin-bottom: 14px;

  color: #172554;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 700;
}


/* ========================================
   Service Description
======================================== */

.service-card p {
  color: #6b7280;
  font-size: 14px;
  line-height: 2;
}


/* ========================================
   Q&A Section
======================================== */

.qa-section {
  background: #ffffff;
}

.qa-content {
  max-width: 750px;
}


/* ========================================
   Telegram Button
======================================== */

.telegram-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 220px;
  height: 50px;

  margin-top: 34px;
  padding: 0 24px;

  border-radius: 10px;

  background: #172554;
  color: #ffffff;

  border: 1px solid #172554;

  text-decoration: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.2s ease;
}

.telegram-button:hover {
  background: #1e3a8a;
  border-color: #1e3a8a;

  box-shadow: 0 6px 16px rgba(23, 37, 84, 0.15);
}

.telegram-button:active {
  transform: translateY(1px);
}


/* ========================================
   Telegram Note
======================================== */

.telegram-note {
  max-width: 560px;
  margin: 20px auto 0;

  color: #6b7280;
  font-size: 14px;
  line-height: 2;
}


/* ========================================
   Telegram Address
======================================== */

.telegram-address {
  display: inline-block;

  max-width: 100%;
  margin-top: 12px;
  padding: 10px 18px;

  background: #ffffff;
  color: #172554;

  border: 1px solid #dbe3ef;
  border-radius: 8px;

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;

  direction: ltr;
  word-break: break-word;
  user-select: text;
}


/* ========================================
   Final Section
======================================== */

.final-section {
  background: #f8fafc;
  padding-bottom: 48px;
}

.final-section h2 {
  margin-bottom: 12px;
}

.final-section p {
  margin-bottom: 30px;

  color: #6b7280;
  font-size: 16px;
  line-height: 1.8;
}

.final-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ========================================
   Tablet
======================================== */

@media (max-width: 800px) {
  .features,
  .services {
    grid-template-columns: 1fr;
  }

  .feature,
  .service-card {
    text-align: center;
  }
}


/* ========================================
   Small Mobile
======================================== */

@media (max-width: 600px) {
  .hero {
    width: calc(100% - 24px);

    min-height: auto;

    margin: 100px auto 32px;
    padding: 32px 20px 36px;

    border-radius: 18px;
  }

  .brand {
    margin-bottom: 26px;
    font-size: 26px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.8;
  }

  .hero p {
    margin-bottom: 30px;

    font-size: 15px;
    line-height: 2;
  }

  .landing-buttons {
    flex-direction: column;

    width: 100%;
    gap: 10px;
  }

  .login-button,
  .ranking-button {
    width: 100%;
    max-width: 300px;
  }

  .hero-tagline {
    margin-top: 24px;
    font-size: 14px;
  }


  /* Sections */

  .landing-section {
    width: calc(100% - 24px);

    margin-bottom: 20px;
    padding: 32px 20px;

    border-radius: 18px;
  }

  .section-content {
    padding: 0;
  }

  .landing-section h2 {
    font-size: 25px;
    line-height: 1.8;
  }

  .section-description {
    font-size: 14px;
    line-height: 2.2;
  }


  /* Cards */

  .features,
  .services {
    gap: 14px;
    margin-top: 40px;
  }

  .feature,
  .service-card {
    padding: 24px 20px;
  }

  .feature h3,
  .service-card h3 {
    font-size: 17px;
  }

  .feature p,
  .service-card p {
    font-size: 14px;
    line-height: 2.1;
  }


  /* Telegram */

  .telegram-button {
    width: 100%;
    max-width: 300px;
  }

  .telegram-note {
    max-width: 300px;

    font-size: 13px;
    line-height: 2.1;
  }

  .telegram-address {
    max-width: 100%;
    padding: 11px 16px;

    font-size: 14px;
  }


  /* Final Section */

  .final-section {
    padding-bottom: 32px;
  }
}


/* ========================================
   Reduced Motion Accessibility
======================================== */

@media (prefers-reduced-motion: reduce) {
  .feature,
  .feature::before,
  .service-card,
  .landing-section,
  .login-button,
  .ranking-button,
  .telegram-button {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
