:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-400: #a1a1aa;
  --gray-600: #52525b;
  --max-width: 1120px;
  --section-gap: clamp(5rem, 12vw, 9rem);
  --font: "Vazirmatn", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.7;
  font-size: 1.0625rem;
  overflow-x: hidden;
}

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

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

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

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  color: var(--gray-600);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--black);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--black);
}

.btn-sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  padding-top: clamp(7rem, 16vw, 10rem);
  padding-bottom: var(--section-gap);
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--gray-200);
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-bottom: 1.75rem;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  background: var(--black);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2.5vw, 1.3125rem);
  color: var(--gray-600);
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.hero-visual {
  margin-top: clamp(3rem, 8vw, 5rem);
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual-inner {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
}

.hero-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Statement */
.statement {
  padding-block: var(--section-gap);
  background: var(--gray-50);
  border-block: 1px solid var(--gray-200);
}

.statement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.statement h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.statement p {
  color: var(--gray-600);
  font-size: 1.0625rem;
}

.statement p + p {
  margin-top: 1rem;
}

/* Features */
.features {
  padding-block: var(--section-gap);
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 22ch;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--gray-200);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row.reverse .feature-content {
  order: 2;
}

.feature-row.reverse .feature-visual {
  order: 1;
}

.feature-content h3 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
  line-height: 1.3;
}

.feature-content p {
  color: var(--gray-600);
  max-width: 38ch;
}

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 1.25rem;
  padding: 2.5rem;
}

.feature-visual img {
  width: clamp(120px, 40%, 200px);
  height: auto;
}

/* Grid features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.feature-card {
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: var(--black);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.feature-card img {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.125rem;
}

.feature-card h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* How it works */
.how {
  padding-block: var(--section-gap);
  background: var(--black);
  color: var(--white);
}

.how .section-label {
  color: var(--gray-400);
}

.how .section-title {
  color: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 3rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, persian);
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  font-size: 2.5rem;
  font-weight: 800;
  opacity: 0.15;
  line-height: 1;
}

.step h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9375rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* Download */
.download {
  padding-block: var(--section-gap);
  text-align: center;
}

.download-box {
  margin-top: 2.5rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--gray-200);
  border-radius: 1.5rem;
  background: var(--gray-50);
  max-width: 560px;
  margin-inline: auto;
}

.download-box .version {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.download-box h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.download-box p {
  color: var(--gray-600);
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.download-meta {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

/* Footer */
.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--gray-200);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.footer-brand img {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-600);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--black);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-400);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--gray-100);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Mobile nav */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 900px) {
  .statement-grid,
  .feature-row,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-content,
  .feature-row.reverse .feature-visual {
    order: unset;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 4rem;
    inset-inline: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.25rem 1.5rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .header-cta-desktop {
    display: none;
  }
}

@media (max-width: 540px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
