@font-face {
  font-family: "Vazirmatn";
  src: url("./assets/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("./assets/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f6f8f5;
  --bg-soft: #eaf4f0;
  --paper: #132e2b;
  --muted: rgba(19, 46, 43, 0.68);
  --line: rgba(19, 46, 43, 0.14);
  --teal: #11b9af;
  --green: #8edc75;
  --amber: #c98532;
  --shadow: 0 24px 70px rgba(26, 67, 60, 0.14);
  font-family: "IRANYekan", "IranYekan", "Yekan", "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #edf5f1 100%);
  color: var(--paper);
  text-align: start;
  line-height: 1.7;
}

html[dir="rtl"] body { text-align: right; }
html[dir="ltr"] body { text-align: left; }
html[dir="ltr"] body { font-family: Inter, "IRANYekan", "IranYekan", "Vazirmatn", ui-sans-serif, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
bdi { unicode-bidi: isolate; }

.site-header {
  position: fixed;
  z-index: 30;
  top: 16px;
  left: 50%;
  width: min(1140px, calc(100% - 28px));
  min-height: 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav locale";
  align-items: center;
  gap: 20px;
  padding: 8px 12px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 50px rgba(26, 67, 60, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
  direction: ltr;
}

.site-header.is-solid { background: rgba(255, 255, 255, 0.97); }
.locale-switch { grid-area: locale; direction: ltr; display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.locale-switch a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; color: var(--muted); font: 700 16px/1 "Apple Color Emoji", "Segoe UI Emoji", Inter, sans-serif; text-align: center; }
.locale-switch a.active { background: var(--paper); color: #ffffff; }
.nav-links { grid-area: nav; display: flex; justify-content: center; gap: 28px; color: var(--muted); font-size: 13px; white-space: nowrap; }
html[dir="rtl"] .nav-links { direction: rtl; }
.nav-links a:hover, .site-footer a:hover { color: var(--paper); }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 9px; min-width: max-content; font-weight: 700; direction: ltr; }
.brand img { width: 142px; height: auto; }

.hero { position: relative; min-height: max(660px, 88svh); overflow: hidden; isolation: isolate; }
.hero-bg, .hero-shade { position: absolute; inset: 0; }
.hero-bg { z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { z-index: -2; background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.24) 45%, rgba(246, 248, 245, 0.96) 100%), linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.3)); }
html[dir="rtl"] .hero-shade { background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.24) 45%, rgba(246, 248, 245, 0.96) 100%), linear-gradient(270deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.3)); }
.hero-inner { width: min(1140px, calc(100% - 32px)); min-height: max(660px, 88svh); margin-inline: auto; padding: 118px 0 58px; display: grid; grid-template-columns: minmax(320px, 0.86fr) minmax(430px, 1.1fr); align-items: center; gap: 54px; }
.hero-copy-block { max-width: 540px; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: 13px; font-weight: 700; }
h1, h2, h3, p { text-wrap: pretty; }
.hero h1 { margin: 0; font-size: clamp(52px, 7vw, 88px); line-height: 1; letter-spacing: 0; }
.lead { max-width: 520px; margin: 22px 0 0; color: rgba(19, 46, 43, 0.86); font-size: clamp(17px, 1.7vw, 22px); line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 21px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: transform 180ms ease, filter 180ms ease; }
.button:hover { transform: translateY(-2px); filter: brightness(1.05); }
.button.primary { background: linear-gradient(135deg, var(--teal), var(--green)); color: #06221f; box-shadow: 0 14px 36px rgba(39, 209, 196, 0.2); }
.button.secondary { border: 1px solid rgba(19, 46, 43, 0.2); background: rgba(255, 255, 255, 0.62); color: var(--paper); }

.product-shot { position: relative; overflow: hidden; border: 1px solid rgba(19, 46, 43, 0.18); border-radius: 15px; background: #ffffff; box-shadow: var(--shadow); }
html[dir="rtl"] .product-shot { transform: perspective(1200px) rotateY(4deg) rotateX(1deg); }
html[dir="ltr"] .product-shot { transform: perspective(1200px) rotateY(-4deg) rotateX(1deg); }
.browser-bar { height: 50px; display: flex; align-items: center; gap: 8px; padding-inline: 16px; direction: ltr; border-bottom: 1px solid rgba(19, 46, 43, 0.1); background: #f4f7f4; color: rgba(19, 46, 43, 0.5); font-size: 11px; }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; }
.browser-bar span:nth-child(1) { background: #f26f6a; }
.browser-bar span:nth-child(2) { background: var(--amber); }
.browser-bar span:nth-child(3) { background: var(--green); }
.browser-bar bdi { margin-inline-start: 14px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.subtitle-sample { position: absolute; left: 50%; bottom: 27px; width: min(80%, 650px); margin: 0; padding: 10px 17px; border-radius: 8px; background: rgba(0, 0, 0, 0.82); color: #fff; font-size: clamp(15px, 1.5vw, 21px); font-weight: 700; line-height: 1.65; transform: translateX(-50%); }
.player-line { position: absolute; inset-inline: 24px; bottom: 10px; height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.28); }
.player-line span { display: block; width: 42%; height: 100%; background: var(--teal); }
.extension-panel { position: absolute; top: 70px; width: 208px; padding: 14px; border: 1px solid rgba(19, 46, 43, 0.12); border-radius: 12px; background: rgba(255, 255, 255, 0.94); color: var(--paper); box-shadow: 0 18px 55px rgba(26, 67, 60, 0.18); }
html[dir="rtl"] .extension-panel { inset-inline-start: 28px; }
html[dir="ltr"] .extension-panel { inset-inline-end: 28px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.panel-head span { padding: 3px 8px; border-radius: 999px; background: rgba(39, 209, 196, 0.15); color: var(--teal); font-size: 11px; font-weight: 700; }
.extension-panel label { display: grid; gap: 7px; color: rgba(19, 46, 43, 0.62); font-size: 12px; }
.extension-panel label strong { min-height: 36px; padding: 8px 11px; border-radius: 8px; background: #edf4f0; color: var(--paper); }
.extension-panel button { width: 100%; min-height: 38px; margin-top: 13px; border: 0; border-radius: 999px; background: var(--teal); color: #06221f; font: inherit; font-weight: 700; }

.section { width: min(960px, calc(100% - 32px)); margin-inline: auto; padding-top: 92px; }
.section-heading { max-width: 650px; }
.section-heading.compact { max-width: 560px; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.35; letter-spacing: 0; }
.section-heading > p:last-child { margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.release-card { margin-top: 30px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff; box-shadow: 0 12px 34px rgba(26, 67, 60, 0.08); }
.release-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--paper); }
.release-icon img { width: 33px; height: 33px; }
.release-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.release-title strong { font-size: 17px; }
.release-title span { padding: 3px 8px; border-radius: 999px; background: rgba(39, 209, 196, 0.12); color: var(--teal); font-size: 11px; font-weight: 700; }
.release-info p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.install-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.install-steps li { display: flex; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.72); }
.install-steps li > span, .simple-steps span { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(39, 209, 196, 0.15); color: var(--teal); font-size: 12px; font-weight: 700; }
.install-steps strong { display: block; font-size: 14px; line-height: 1.5; }
.install-steps p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.benefit-card { min-height: 190px; padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; box-shadow: 0 12px 34px rgba(26, 67, 60, 0.06); }
.benefit-card > span { color: var(--amber); font-size: 13px; font-weight: 700; }
.benefit-card h3 { margin: 16px 0 0; font-size: 19px; line-height: 1.45; }
.benefit-card p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.simple-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 27px; }
.simple-steps > div { display: flex; align-items: center; gap: 12px; padding: 16px; border-top: 1px solid var(--line); color: var(--paper); }
.simple-steps strong { font-size: 14px; }
.site-footer { width: min(960px, calc(100% - 32px)); min-height: 92px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding-top: 112px; }
  html[dir] .product-shot { transform: none; }
  .hero-copy-block { max-width: 620px; }
  .install-steps, .benefit-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: auto; }
}

@media (max-width: 600px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 54px;
    grid-template-columns: auto auto;
    grid-template-areas: "brand locale";
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
  }
  .brand img { width: 112px; height: auto; }
  .locale-switch a { width: 26px; height: 26px; font-size: 14px; }
  .hero { min-height: auto; }
  .hero-inner { min-height: 720px; padding: 104px 0 42px; }
  .hero h1 { font-size: 54px; }
  .lead { font-size: 16px; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .extension-panel { position: static; width: auto; margin: 12px; }
  .subtitle-sample { bottom: 40px; width: calc(100% - 24px); padding: 8px 11px; font-size: 12px; }
  .player-line { inset-inline: 14px; bottom: 18px; }
  .section { padding-top: 68px; }
  .section-heading h2 { font-size: 29px; }
  .release-card { grid-template-columns: auto 1fr; }
  .release-card .button { grid-column: 1 / -1; width: 100%; }
  .simple-steps { grid-template-columns: 1fr; gap: 0; }
  .simple-steps > div { border-top: 1px solid var(--line); }
  .site-footer { flex-direction: column; justify-content: center; padding: 22px 0; }
}
