@font-face {
  font-family: 'Vazirmatn Local';
  src: url('/fa-fonts/Vazirmatn-Variable.woff2') format('woff2-variations');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Local';
  src: url('/ran-fonts/Geist-Variable.woff2') format('woff2-variations');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color: #172033;
  background: #ffffff;
  font-family: 'Vazirmatn Local', Tahoma, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:root[lang='en'] {
  font-family: 'Geist Local', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: #ffffff;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

#landing-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, rgba(36, 99, 235, 0.045), transparent 32rem), #ffffff;
}

.topbar {
  width: min(1180px, calc(100% - 48px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf0f5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #172033;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #ffffff;
  background: #2463eb;
  box-shadow: 0 8px 20px rgba(36, 99, 235, 0.2);
}

.brand-mark svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  border: 1px solid #e1e6ef;
  border-radius: 12px;
  background: #fafbfc;
}

.language-switch > span {
  width: 1px;
  height: 17px;
  background: #dfe4ec;
}

.language-option {
  min-height: 34px;
  padding: 4px 12px;
  border: 0;
  border-radius: 8px;
  color: #778196;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.language-option:hover {
  color: #172033;
}

.language-option.is-active {
  color: #172033;
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(16, 24, 40, 0.09);
}

.workspace {
  width: min(980px, calc(100% - 48px));
  margin: auto;
  padding: 58px 0 46px;
}

.intro {
  margin: 0 auto 36px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 13px;
  margin-bottom: 15px;
  border: 1px solid #dbe5ff;
  border-radius: 999px;
  color: #2463eb;
  background: #f5f8ff;
  font-size: 13px;
  font-weight: 700;
}

.intro h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(34px, 4.8vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

:root[lang='en'] .intro h1 {
  line-height: 1.08;
}

.intro p {
  max-width: 610px;
  margin: 12px auto 0;
  color: #697386;
  font-size: 17px;
  line-height: 1.9;
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.action-card {
  position: relative;
  min-width: 0;
  min-height: 126px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 24px;
  border: 1px solid #e2e7ef;
  border-radius: 18px;
  color: #172033;
  background: #ffffff;
  text-align: start;
  text-decoration: none;
  box-shadow:
    0 2px 4px rgba(16, 24, 40, 0.02),
    0 12px 30px rgba(16, 24, 40, 0.035);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.action-card:hover {
  z-index: 1;
  transform: translateY(-3px);
  border-color: #c7d3e6;
  box-shadow:
    0 5px 12px rgba(16, 24, 40, 0.055),
    0 22px 44px rgba(16, 24, 40, 0.07);
}

.action-card:focus-visible,
.install-button:focus-visible,
.language-option:focus-visible {
  outline: 3px solid rgba(36, 99, 235, 0.24);
  outline-offset: 3px;
}

.action-open {
  grid-column: 1 / -1;
  min-height: 112px;
  border-color: #2463eb;
  color: #ffffff;
  background: linear-gradient(135deg, #2463eb, #174fc5);
  box-shadow: 0 18px 36px rgba(36, 99, 235, 0.17);
}

.action-open:hover {
  border-color: #174fc5;
  box-shadow: 0 22px 46px rgba(36, 99, 235, 0.23);
}

.action-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
}

.action-icon svg {
  width: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.action-open .action-icon {
  background: rgba(255, 255, 255, 0.15);
}

.word .action-icon {
  color: #2463eb;
  background: #eef4ff;
}

.powerpoint .action-icon {
  color: #dd5a25;
  background: #fff2eb;
}

.excel .action-icon {
  color: #168252;
  background: #eaf8f1;
}

.action-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.action-copy strong {
  overflow: hidden;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.action-copy small {
  color: #7a8497;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

.action-open .action-copy strong {
  font-size: 21px;
}

.action-open .action-copy small {
  color: rgba(255, 255, 255, 0.76);
}

.action-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-inline-start: auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
}

.action-arrow svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

:root[dir='ltr'] .action-arrow svg {
  transform: rotate(180deg);
}

.install-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  background: #f9fafc;
}

.install-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #505b70;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.07);
}

.install-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.install-copy h2 {
  margin: 0;
  color: #172033;
  font-size: 17px;
  font-weight: 700;
}

.install-copy p {
  margin: 3px 0 0;
  color: #697386;
  font-size: 13px;
  line-height: 1.75;
}

.install-copy .install-hint {
  display: none;
  color: #4f5c73;
}

.install-card.show-hint .install-hint {
  display: block;
}

.install-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 19px;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  color: #172033;
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 7px rgba(16, 24, 40, 0.05);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.install-button:hover {
  transform: translateY(-1px);
  border-color: #bdc7d5;
  background: #fdfdfe;
}

.install-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.install-button:disabled {
  cursor: default;
  opacity: 0.62;
  transform: none;
}

.footer {
  width: min(1180px, calc(100% - 48px));
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  border-top: 1px solid #edf0f5;
  color: #9099a9;
  font-size: 12px;
}

.privacy-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c8ced8;
}

@media (max-width: 800px) {
  .workspace {
    padding-top: 42px;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .action-open {
    grid-column: 1;
  }

  .install-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .install-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .topbar,
  .workspace,
  .footer {
    width: calc(100% - 30px);
  }

  .topbar {
    height: 74px;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .language-switch {
    gap: 4px;
    padding: 3px;
  }

  .language-option {
    min-height: 32px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .workspace {
    padding: 34px 0 32px;
  }

  .intro {
    margin-bottom: 28px;
  }

  .intro h1 {
    font-size: 32px;
  }

  .intro p {
    font-size: 15px;
  }

  .action-card {
    min-height: 106px;
    padding: 18px;
    border-radius: 16px;
  }

  .action-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 14px;
  }

  .action-copy strong,
  .action-open .action-copy strong {
    font-size: 17px;
  }

  .action-arrow {
    display: none;
  }

  .install-card {
    padding: 19px;
  }

  .install-icon {
    display: none;
  }

  .install-card {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-wrap: wrap;
    padding: 16px 0;
  }
}

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