@font-face {
  font-family: "Vazir";
  src: url("../fonts/Vazir.woff2") format("woff2"),
       url("../fonts/Vazir.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazir";
  src: url("../fonts/Vazir-Bold.woff2") format("woff2"),
       url("../fonts/Vazir-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-main: "Vazir", "Vazirmatn", "IRANSansX", "Segoe UI", Tahoma, sans-serif;
  --text: #172033;
  --muted: #667085;
  --line: rgba(23, 32, 51, 0.11);
  --surface: #ffffff;
  --surface-soft: #f7f7fb;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin: 0 auto;
}

.landing-page {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(251, 251, 254, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
}

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

.menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  transition: 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  padding: 54px 0 36px;
}

.hero-grid,
.editorial-grid,
.showcase-grid,
.detail-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-grid,
.editorial-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.hero-spark {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 132, 94, 0.2), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(64, 169, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #fff8f3 0%, #fbfbfe 100%);
}

.hero-editorial {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.04), rgba(34, 197, 94, 0.04)),
    linear-gradient(180deg, #f4f8ff 0%, #fbfbfe 100%);
}

.hero-copy h1,
.editorial-copy h1,
.section-heading h2,
.showcase-copy h2,
.narrative-copy h2,
.detail-copy h2 {
  margin: 0 0 16px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.hero-copy h1,
.editorial-copy h1 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
}

.section-heading h2,
.showcase-copy h2,
.narrative-copy h2,
.detail-copy h2 {
  font-size: clamp(1.7rem, 3.4vw, 3rem);
}

.lead,
.section-heading p,
.showcase-copy p,
.narrative-copy p,
.detail-copy p,
.download-panel p,
.site-footer p,
.terms-column p {
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.78);
  color: #bf4f1d;
}

.cta-row,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #f15a29, #ff8c4b);
  box-shadow: 0 18px 30px rgba(241, 90, 41, 0.24);
}

.button.light {
  background: #fff;
  border-color: rgba(23, 32, 51, 0.1);
}

.button.ghost {
  background: transparent;
  border-color: rgba(23, 32, 51, 0.18);
}

.mini-points,
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.mini-points span,
.stat-row div {
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.stat-row strong {
  display: block;
  font-size: 0.95rem;
}

.stat-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.device-stage,
.editorial-frame {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.device-frame {
  width: 100%;
}

.floating-card {
  position: absolute;
  max-width: 220px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(23, 32, 51, 0.88);
  color: #fff;
  box-shadow: 0 20px 30px rgba(17, 24, 39, 0.24);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.7;
}

.card-top {
  top: 28px;
  left: -18px;
}

.card-bottom {
  right: -16px;
  bottom: 24px;
}

.section {
  padding: 88px 0;
}

.split-heading {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  gap: 20px;
}

.feature-grid-spark {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.pillar-card,
.comparison-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.feature-card img,
.comparison-card img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 18px;
}

.feature-card h3,
.pillar-card h3,
.comparison-card h3,
.terms-grid h3,
.detail-list h3 {
  margin: 0 0 10px;
  line-height: 1.45;
}

.feature-card p,
.pillar-card p,
.comparison-card p,
.terms-grid p,
.detail-list p,
.editorial-frame figcaption,
.shot-card figcaption,
.wide-visual figcaption,
.editorial-shot figcaption {
  color: var(--muted);
  margin: 0;
}

.accent-red { border-top: 4px solid #f15a29; }
.accent-blue { border-top: 4px solid #3182f6; }
.accent-green { border-top: 4px solid #19a974; }
.accent-gold { border-top: 4px solid #c28a11; }

.section-dark {
  background:
    radial-gradient(circle at 20% 20%, rgba(241, 90, 41, 0.12), transparent 25%),
    #182130;
  color: #fff;
}

.section-dark .eyebrow {
  color: #ffb184;
  background: rgba(255, 255, 255, 0.08);
}

.section-dark .showcase-copy p,
.section-dark .check-list li,
.section-dark figcaption {
  color: rgba(255, 255, 255, 0.76);
}

.showcase-grid {
  grid-template-columns: 0.85fr 1.15fr;
}

.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-right: 28px;
  margin-bottom: 14px;
}

.check-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.8em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9363, #ffd977);
}

.shot-stack {
  position: relative;
  min-height: 520px;
}

.shot-card,
.wide-visual,
.editorial-shot {
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(11, 18, 32, 0.18);
}

.shot-card {
  position: absolute;
  width: min(92%, 420px);
}

.shot-card.offset {
  left: 0;
  bottom: 0;
}

.shot-card:first-child {
  top: 0;
  right: 0;
}

.narrative-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.wide-visual {
  background: #fff;
}

.section-download {
  background: linear-gradient(180deg, rgba(49, 130, 246, 0.06), rgba(241, 90, 41, 0.08));
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.download-panel.compact {
  align-items: flex-start;
}

.download-actions.stacked {
  flex-direction: column;
  min-width: min(100%, 280px);
}

.terms-panel {
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.terms-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.terms-grid article {
  padding: 18px;
  border-radius: 20px;
  background: #f8f8fc;
  border: 1px solid rgba(23, 32, 51, 0.06);
}

.site-footer {
  padding: 24px 0 36px;
}

.footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  max-width: 440px;
}

.footer-side {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-weight: 700;
}

.footer-social svg {
  width: 20px;
  height: 20px;
  color: #229ed9;
}

.enamad-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px;
  min-width: 108px;
  min-height: 108px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(23, 32, 51, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.enamad-seal img {
  position: relative;
  z-index: 2;
  width: 92px;
  height: auto;
  display: block;
}

.enamad-fallback {
  position: absolute;
  inset: 8px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff8ea, #fff1cf);
  color: #8a5a00;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.5;
}

.editorial-intro,
.comparison-panel {
  display: grid;
  gap: 28px;
}

.pillar-grid,
.comparison-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.pillar-index {
  display: inline-flex;
  margin-bottom: 14px;
  font-weight: 800;
  color: #3182f6;
}

.section-soft {
  background: linear-gradient(180deg, rgba(23, 32, 51, 0.03), rgba(23, 32, 51, 0.01));
}

.detail-grid {
  grid-template-columns: 0.95fr 1.05fr;
}

.detail-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.detail-list article {
  padding: 18px 18px 16px;
  border-right: 4px solid #3182f6;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(23, 32, 51, 0.06);
}

.detail-visuals {
  display: grid;
  gap: 18px;
}

.editorial-shot.large {
  transform: rotate(-2deg);
}

.editorial-shot.small {
  width: min(78%, 360px);
  justify-self: start;
  transform: rotate(4deg);
}

.editorial-terms .terms-column {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

@media (max-width: 1100px) {
  .feature-grid-spark,
  .terms-grid,
  .pillar-grid,
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .editorial-grid,
  .split-heading,
  .showcase-grid,
  .narrative-panel,
  .detail-grid,
  .download-panel,
  .footer-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-side {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .download-panel {
    justify-content: stretch;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    top: 88px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(23, 32, 51, 0.08);
    box-shadow: var(--shadow);
  }

  .menu.is-open {
    display: flex;
  }

  .hero {
    padding-top: 26px;
  }

  .floating-card,
  .shot-card {
    position: static;
    max-width: none;
    width: 100%;
  }

  .shot-stack {
    min-height: auto;
    display: grid;
    gap: 18px;
  }
}

@media (max-width: 680px) {
  .feature-grid-spark,
  .terms-grid,
  .pillar-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .section,
  .hero {
    padding: 72px 0;
  }

  .terms-panel,
  .download-panel,
  .device-stage,
  .editorial-frame,
  .shot-card,
  .wide-visual,
  .editorial-shot {
    padding: 18px;
    border-radius: 22px;
  }

  .button {
    width: 100%;
  }
}

/* Standalone terms and conditions page */
.menu a[aria-current="page"],
.footer-meta a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
}

.terms-hero {
  padding: 72px 0 58px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 132, 94, 0.2), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(64, 169, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #fff8f3 0%, #fbfbfe 100%);
}

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

.terms-hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 0 0 auto;
}

.language-nav .button {
  min-height: 48px;
}

.terms-document-section {
  scroll-margin-top: 94px;
}

.legal-document {
  padding: 34px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.legal-document-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.legal-document-header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.75rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.text-link {
  flex: 0 0 auto;
  color: #2675dc;
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.legal-clauses {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.legal-clause {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  background: #f8f8fc;
  border: 1px solid rgba(23, 32, 51, 0.06);
}

.clause-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #f15a29, #ff8c4b);
  box-shadow: 0 10px 20px rgba(241, 90, 41, 0.18);
}

.legal-clause h3 {
  margin: 0 0 8px;
  line-height: 1.5;
}

.legal-clause p {
  margin: 0;
  color: var(--muted);
}

.legal-clause p + p {
  margin-top: 10px;
}

.legal-clause-confirmation {
  background: linear-gradient(135deg, rgba(241, 90, 41, 0.08), rgba(49, 130, 246, 0.08));
  border-color: rgba(241, 90, 41, 0.16);
}


.legal-document-en .legal-clause {
  grid-template-columns: 48px minmax(0, 1fr);
}

@media (max-width: 920px) {
  .terms-hero-inner,
  .legal-document-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .terms-hero {
    padding: 46px 0 38px;
  }

  .terms-document-section {
    padding: 56px 0;
  }

  .legal-document {
    padding: 20px;
    border-radius: 24px;
  }

  .legal-clause,
  .legal-document-en .legal-clause {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 13px;
    padding: 17px;
  }

  .clause-number {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .language-nav,
  .language-nav .button {
    width: 100%;
  }
}
