

@font-face {
  font-family: "IranYekan";
  src: url("../assets/fonts/iranyekan/IRANYekan.woff2") format("woff2");
}

:root {
  --aff-primary: #091f5b;
  --aff-primary-dark: #041033;
  --aff-accent: #ff9900;
  --aff-accent-soft: #ffe0b8;
  --aff-bg: #f5f6fb;
  --aff-bg-alt: #eef1fb;
  --aff-text: #333;
  --aff-muted: #6a6a6a;
  --aff-radius: 24px;
  --aff-radius-lg: 28px;
  --aff-shadow-soft: 0 20px 50px rgba(9, 31, 91, 0.18);
  --aff-shadow-card: 0 12px 32px rgba(0, 0, 0, 0.08);
  --aff-shadow-hover: 0 24px 60px rgba(255, 153, 0, 0.25);
  --aff-transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IranYekan", Tahoma, sans-serif;
  background: var(--aff-bg);
  color: var(--aff-text);
  line-height: 2.2;
  overflow-x: hidden;
}

/* Utilities */
.aff-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.2rem;
}

.aff-section {
  padding: 3rem 0;
}

.aff-alt-bg {
  background: var(--aff-bg-alt);
}

.aff-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.aff-section-header h2 {
  font-size: 1.6rem;
  color: var(--aff-primary);
  margin-bottom: 0.8rem;
  position: relative;
  display: inline-block;
}

.aff-section-header h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--aff-accent), #ffb347);
  border-radius: 2px;
}

.aff-section-header p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--aff-muted);
  font-size: 0.95rem;
}

/* Buttons */
.aff-btn-primary,
.aff-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--aff-transition);
  gap: 0.5rem;
  font-weight: 500;
}

.aff-btn-primary {
  background: linear-gradient(135deg, var(--aff-accent), #ffb347);
  color: #22150a;
  box-shadow: 0 12px 28px rgba(255, 153, 0, 0.35);
}

.aff-btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: var(--aff-shadow-hover);
}

.aff-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.aff-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.aff-btn-large {
  padding: 1rem 2.6rem;
  font-size: 1.05rem;
}

/* HERO */
.aff-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, #2e52a8, var(--aff-primary-dark));
  color: #fff;
  padding: 3rem 0 2.8rem;
  border-bottom-left-radius: var(--aff-radius-lg);
  border-bottom-right-radius: var(--aff-radius-lg);
}

.aff-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(circle at 85% 80%, rgba(255, 153, 0, 0.15), transparent 55%);
  opacity: 0.9;
}

.aff-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: stretch;
}

.aff-hero-text {
  max-width: 600px;
}

.aff-hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.aff-hero h1 {
  font-size: 1.8rem;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.aff-hero p {
  font-size: 0.95rem;
  margin: 0 0 1.2rem;
  color: #f6f6f6;
}

.aff-hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.aff-hero-highlights li {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.aff-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.aff-hero-note {
  font-size: 0.82rem;
  opacity: 0.95;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.aff-hero-illustration {
  position: relative;
  border-radius: var(--aff-radius-lg);
  background: rgba(8, 17, 53, 0.7);
  padding: 1.2rem;
  box-shadow: var(--aff-shadow-soft);
  overflow: hidden;
}

.aff-hero-illustration picture,
.aff-hero-illustration img {
  display: block;
  width: 100%;
  border-radius: calc(var(--aff-radius-lg) - 6px);
  object-fit: cover;
  max-height: 280px;
  transition: transform 0.5s ease;
}

.aff-hero-illustration:hover img {
  transform: scale(1.03);
}

.aff-hero-floating-card {
  position: absolute;
  background: rgba(10, 19, 60, 0.92);
  color: #fff;
  border-radius: 18px;
  padding: 0.9rem 1.1rem;
  font-size: 0.78rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.aff-card-kpi {
  left: 1rem;
  bottom: 1rem;
  min-width: 170px;
}

.aff-kpi-label {
  display: block;
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

.aff-kpi-value {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.aff-kpi-trend {
  color: #7cffb3;
  font-size: 0.72rem;
}

.aff-card-tag {
  top: 1rem;
  right: 1rem;
}

/* Cards & grids */
.aff-grid-benefits {
  display: grid;
  gap: 1.8rem;
}

.aff-card {
  background: #fff;
  border-radius: var(--aff-radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--aff-shadow-card);
  transition: all var(--aff-transition);
  position: relative;
  overflow: hidden;
}

.aff-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--aff-shadow-soft);
}

.aff-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.1), rgba(255, 179, 71, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--aff-accent);
  font-size: 1.8rem;
}

.aff-card h3 {
  font-size: 1.1rem;
  color: var(--aff-primary);
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.aff-card p {
  margin: 0 0 1rem;
  color: var(--aff-text);
  font-size: 0.92rem;
}

.aff-card ul {
  padding-right: 1.3rem;
  margin: 0.2rem 0 0;
}

.aff-card li {
  margin-bottom: 0.7rem;
  line-height: 2.2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* Steps */
.aff-steps {
  display: grid;
  gap: 1.5rem;
}

.aff-step-card {
  background: #fff;
  border-radius: var(--aff-radius);
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: var(--aff-shadow-card);
  position: relative;
  overflow: hidden;
  transition: all var(--aff-transition);
}

.aff-step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--aff-shadow-soft);
}

.aff-step-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(to bottom, var(--aff-accent), #ffb347);
  border-radius: 0 6px 6px 0;
}

.aff-step-number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 153, 0, 0.09);
  color: var(--aff-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.aff-step-icon {
  font-size: 2rem;
  color: var(--aff-accent);
  margin-bottom: 0.8rem;
}

.aff-step-card h3 {
  font-size: 1.1rem;
  color: var(--aff-primary);
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.aff-step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--aff-text);
}

/* Commission plans */
.aff-grid-commission {
  display: grid;
  gap: 1.8rem;
}

.aff-plan-card {
  position: relative;
  border-top: 6px solid rgba(9, 31, 91, 0.12);
  padding-top: 2rem;
}

.aff-plan-card.aff-highlight {
  border-top-color: var(--aff-accent);
  transform: translateY(-4px);
  box-shadow: var(--aff-shadow-soft);
}

.aff-plan-icon {
  font-size: 2.5rem;
  color: var(--aff-accent);
  margin-bottom: 1rem;
}

.aff-plan-subtitle {
  font-size: 0.88rem;
  color: var(--aff-muted);
  margin-bottom: 1rem;
}

.aff-plan-note {
  font-size: 0.82rem;
  color: var(--aff-muted);
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed #e0e0e0;
}

/* CTA */
.aff-cta-section {
  background: linear-gradient(135deg, #0a1f5e, #071338);
  color: #fff;
  border-radius: var(--aff-radius-lg);
  margin: 2rem auto;
  max-width: calc(1120px - 2.4rem);
}

.aff-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.aff-cta-text h2 {
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
}

.aff-cta-text p {
  margin: 0;
  font-size: 0.95rem;
  color: #f5f5f5;
}

.aff-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.aff-cta-note {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* FAQ */
.aff-faq-list {
  display: grid;
  gap: 1rem;
}

.aff-faq-item {
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--aff-shadow-card);
  overflow: hidden;
  transition: all var(--aff-transition);
}

.aff-faq-item:hover {
  box-shadow: var(--aff-shadow-soft);
}

.aff-faq-question {
  width: 100%;
  padding: 1.2rem 1.2rem;
  background: transparent;
  border: none;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--aff-primary);
}

.aff-faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f0f1fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--aff-primary);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.aff-faq-item.aff-open .aff-faq-icon {
  background: #ffe6c2;
  color: var(--aff-accent);
  transform: rotate(45deg);
}

.aff-faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.2rem;
  border-top: 1px solid #f1f1f6;
  transition: max-height 0.35s ease, padding-bottom 0.35s ease;
}

.aff-faq-answer p {
  margin: 0.8rem 0 1rem;
  font-size: 0.88rem;
  color: var(--aff-muted);
}

.aff-faq-item.aff-open .aff-faq-answer {
  padding-bottom: 1rem;
}

/* Fade in animation */
.aff-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.aff-fade-in.aff-visible {
  opacity: 1;
  transform: none;
}

.aff-fade-in-delayed {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease 0.2s, transform 0.9s ease 0.2s;
}

.aff-fade-in-delayed.aff-visible {
  opacity: 1;
  transform: none;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
  body {
    line-height: 2.3;
  }

  .aff-hero {
    padding: 4rem 0 3.5rem;
  }

  .aff-hero-inner {
    flex-direction: row;
    align-items: center;
  }

  .aff-hero-text {
    flex: 1;
  }

  .aff-hero-illustration {
    flex: 1;
    max-width: 460px;
  }

  .aff-hero h1 {
    font-size: 2.2rem;
  }

  .aff-hero-illustration picture,
  .aff-hero-illustration img {
    max-height: 340px;
  }

  .aff-grid-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aff-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aff-grid-commission {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aff-cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .aff-cta-actions {
    align-items: flex-end;
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .aff-hero h1 {
    font-size: 2.5rem;
  }

  .aff-section-header h2 {
    font-size: 1.8rem;
  }

  .aff-card {
    padding: 2rem 1.8rem;
  }
}
