@font-face {
  font-family: "JabamaSans";
  src:
    url("../assets/fonts/jabama-sans.woff2") format("woff2"),
    url("../assets/fonts/sans.woff2") format("woff2");
  font-display: swap;
}

:root {
  --font-family: "JabamaSans", "Vazirmatn", "IRANSansX", "IRANSans", "Segoe UI", Tahoma, sans-serif;
  --color-bg: #f7f5f2;
  --color-surface: #ffffff;
  --color-border: #e6e0d9;
  --color-text: #2d2a26;
  --color-text-muted: #6b6258;
  --color-primary: #a62626;
  --color-primary-soft: #f9e6e6;
  --shadow-sm: 0 6px 16px rgba(34, 24, 14, 0.08);
  --shadow-md: 0 16px 32px rgba(34, 24, 14, 0.12);
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 3.1rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: color-mix(in srgb, #fffaf7 96%, transparent);
  border-bottom: 1px solid #ded4ca;
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.site-header.is-scrolled {
  border-color: #d3c8bd;
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand img {
  width: 38px;
  height: 38px;
}

.top-nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.top-nav a:hover {
  color: var(--color-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(166, 38, 38, 0.25);
}

.btn-soft {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: #efcaca;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero.section {
  padding: 3.4rem 0 2rem;
}

.eyebrow {
  display: inline-flex;
  background: var(--color-primary-soft);
  border: 1px solid #efcaca;
  color: var(--color-primary);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.35;
  margin: 0.8rem 0;
}

h1 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
}

.hero-copy p {
  margin: 0.6rem 0;
  color: var(--color-text-muted);
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-highlights {
  margin: 1rem 0 0;
  padding-inline-start: 1rem;
  color: var(--color-text);
}

.hero-highlights li {
  margin-bottom: 0.35rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.42;
  filter: blur(2px);
  animation: floatY 6s ease-in-out infinite;
}

.orb-one {
  width: 88px;
  height: 88px;
  background: #f0b6b6;
  top: -20px;
  left: -26px;
}

.orb-two {
  width: 64px;
  height: 64px;
  background: #e9d8c3;
  bottom: -16px;
  right: -18px;
  animation-delay: 1s;
}

.stats {
  padding: 0 0 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.stat-value {
  margin: 0;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--color-primary);
}

.section-head {
  margin-bottom: 1.5rem;
  max-width: 72ch;
}

.section-head p {
  color: var(--color-text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card,
.platform-card,
.support-box,
.cta-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.feature-card p,
.platform-card p,
.support-box p,
.cta-box p {
  color: var(--color-text-muted);
}

.finance {
  background: linear-gradient(180deg, #f8f2f2 0%, #f7f5f2 100%);
}

.finance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.finance img {
  border-radius: var(--radius-lg);
  border: 1px solid #ebd7d7;
  box-shadow: var(--shadow-md);
}

.check-list {
  margin: 0.75rem 0 0;
  padding-inline-start: 1rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.support-box,
.cta-box {
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cta-box {
  background: #fff9f9;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.2rem 0 2rem;
  color: var(--color-text-muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: transform 620ms ease, opacity 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 {
  transition-delay: 120ms;
}

.reveal.delay-2 {
  transition-delay: 220ms;
}

.pulse-cta {
  animation: pulseShadow 2.5s ease-in-out infinite;
}

@keyframes pulseShadow {
  0%,
  100% {
    box-shadow: 0 10px 22px rgba(166, 38, 38, 0.25);
  }
  50% {
    box-shadow: 0 12px 34px rgba(166, 38, 38, 0.42);
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 960px) {
  .top-nav {
    display: none;
  }

  .hero-grid,
  .finance-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .platform-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 2.5rem 0;
  }

  .hero.section {
    padding: 2.7rem 0 1.5rem;
  }

  .stats {
    padding-bottom: 1.2rem;
  }

  .feature-grid,
  .platform-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    min-height: 66px;
  }

  .brand span {
    display: none;
  }

  .orb-one {
    left: 0;
  }

  .orb-two {
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
