@font-face {
  font-family: Vazirmatn;
  src: url('./assets/vazirmatn-variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f8fd;
  --white: #fff;
  --ink: #111d37;
  --muted: #4a5872;
  --blue: #204fdb;
  --blue-hover: #153cb1;
  --rule: #dce4f2;
  --night: #111c35;
  --green: #187350;
  font-family: Vazirmatn, Tahoma, sans-serif;
  line-height: 1.65;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
bdi { unicode-bidi: isolate; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #3866ed; outline-offset: 4px; }
section[id] { scroll-margin-block-start: 2rem; }
.wrap { width: min(1190px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: fixed; inset-block-start: .6rem; inset-inline-start: .6rem; z-index: 4; padding: .6rem 1rem; color: #fff; background: var(--blue); transform: translateY(-180%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { border-block-end: 1px solid var(--rule); background: var(--white); }
.header-inner, .footer-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .64rem; flex: none; }
.brand img { border-radius: 10px; }
.brand strong { display: block; line-height: 1.2; font-size: 1.28rem; font-weight: 900; }
.brand small { display: block; margin-block-start: .18rem; font-size: .73rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.85rem, 3.25vw, 2.8rem); font-size: .91rem; font-weight: 700; }
.site-nav a, .footer-inner > a:last-child { padding-block: .45rem; }
.site-nav a:hover, .footer-inner > a:last-child:hover { color: var(--blue); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .62rem 1.16rem; border: 1px solid transparent; border-radius: 9px; font-size: .9rem; font-weight: 800; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-hover); }
.button-outline { border-color: #ccd8f0; color: #1b429f; background: rgba(255,255,255,.66); }
.button-outline:hover { border-color: #9ab5f4; background: #eaf0ff; }
.header-action { min-height: 40px; padding: .4rem .82rem; font-size: .82rem; }

.hero { background: linear-gradient(112deg, #eaf0ff 0%, #f6f8fd 58%, #fbfcff 100%); border-block-end: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.42fr); align-items: center; gap: clamp(32px, 5vw, 80px); padding-block: clamp(52px, 7vw, 103px) clamp(47px,7vw,94px); }
.kicker { display: flex; align-items: center; gap: .5rem; color: #244ebf; font-size: .82rem; font-weight: 850; }
.kicker span { width: 17px; height: 2px; border-radius: 2px; background: currentColor; }
.hero h1 { margin-block: .95rem .95rem; max-width: 12em; font-weight: 950; font-size: clamp(2.35rem, 4.4vw, 4.1rem); line-height: 1.33; letter-spacing: -.031em; }
.hero h1 em { display: block; color: var(--blue); font-style: normal; }
.lede { color: var(--muted); font-size: clamp(.95rem, 1.55vw, 1.13rem); line-height: 1.95; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-block-start: 1.6rem; }
.hero-meta { margin-block-start: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; color: var(--muted); font-size: .77rem; }
.hero-meta span { width: 4px; height: 4px; border-radius: 50%; background: #7181a3; }
.hero-visual { position: relative; min-width: 0; isolation: isolate; }
.hero-visual::before { content: ''; position: absolute; z-index: -1; inset: -23px -16px 15px -17px; border: 1px solid #d5e0fb; border-radius: 18px; background: linear-gradient(142deg, rgba(47,98,250,.12), transparent 77%), linear-gradient(rgba(69,107,208,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(69,107,208,.10) 1px, transparent 1px), #eaf0ff; background-size: auto, 22px 22px, 22px 22px, auto; }
.window { overflow: hidden; border: 1px solid #bac9ed; border-radius: 12px; box-shadow: 0 24px 48px -30px rgba(32,64,151,.55); background: var(--white); }
.window-bar { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 43px; padding-inline: .62rem; gap: .4rem; border-block-end: 1px solid var(--rule); }
.window-title { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.window-dots { display: flex; gap: 4px; direction: ltr; grid-column: 3; grid-row: 1; justify-self: end; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #acbbdf; }
.window-dots i:first-child { background: #557be7; }
.window-title { grid-column: 2; grid-row: 1; }
.theme-switch { grid-column: 1; grid-row: 1; justify-self: start; display: flex; gap: 2px; padding: 2px; border: 1px solid #dce5f6; border-radius: 7px; background: #f4f7ff; white-space: nowrap; }
.theme-switch button, .preview-switch button { border: 0; background: transparent; border-radius: 4px; min-height: 26px; padding: .13rem .38rem; font-size: .7rem; color: #465777; }
.theme-switch button[aria-pressed=true], .preview-switch button[aria-pressed=true] { background: var(--blue); color: #fff; }
.window-hero > img { inline-size: 100%; height: auto; aspect-ratio: 16 / 9; }
.hero-figure figcaption { display: flex; gap: .44rem; align-items: center; padding-block-start: .55rem; color: var(--muted); font-size: .73rem; }
.status-dot { inline-size: 6px; block-size: 6px; background: var(--green); border-radius: 50%; }

.section { padding-block: clamp(58px, 7vw, 102px); }
.section-heading h2 { margin-block: .72rem .48rem; font-size: clamp(1.86rem, 3.5vw, 3.05rem); font-weight: 920; line-height: 1.37; letter-spacing: -.03em; }
.section-heading > p:last-child { color: var(--muted); max-width: 48ch; font-size: .98rem; line-height: 1.95; }
.product { background: var(--white); }
.product-tabs { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; gap: .24rem; margin-block: 1.35rem 1rem; border: 1px solid var(--rule); border-radius: 11px; padding: .25rem; background: #f3f6fd; }
.product-tabs button { border: none; background: transparent; color: var(--muted); font-weight: 800; padding: .52rem .9rem; min-height: 42px; border-radius: 7px; font-size: .85rem; }
.product-tabs button[aria-selected=true] { color: #1745c1; background: var(--white); box-shadow: inset 0 0 0 1px #dce6fc, 0 2px 6px #19387912; }
.product-panel { display: grid; grid-template-columns: minmax(0, .64fr) minmax(0, 1.4fr); align-items: center; gap: clamp(19px, 3vw, 51px); padding: clamp(18px, 3.5vw, 45px); background: #f2f6ff; border: 1px solid #e0e8fa; border-radius: 17px; }
.product-copy h3 { font-weight: 900; font-size: clamp(1.14rem, 2.5vw, 1.65rem); line-height: 1.5; }
.product-copy p { margin-block-start: .54rem; color: var(--muted); font-size: .9rem; line-height: 1.9; }
.product-copy ul { padding: 0; margin-block: 1.1rem 0; list-style: none; }
.product-copy li { position: relative; padding-inline-start: 1.03rem; margin-block: .42rem; color: #2e426b; font-size: .81rem; }
.product-copy li::before { content: ''; position: absolute; inset-inline-start: 0; inset-block-start: .57em; width: 6px; height: 6px; border: 2px solid #315ce0; border-radius: 50%; }
.product-media { position: relative; min-width: 0; }
.product-desktop { position: relative; min-width: 0; overflow: hidden; border: 1px solid #c8d6f5; border-radius: 9px; box-shadow: 0 12px 25px -19px #25458f; background: #fff; }
.product-desktop img { width: 100%; height: auto; }
.product-media:has(.product-mobile:not([hidden])) { padding-inline-end: 13%; }
.product-mobile { position: absolute; inset-block-end: -.3rem; inset-inline-end: 0; width: 22%; border: 1px solid #c7d2ef; border-radius: 11px; padding: 3px; background: var(--white); box-shadow: 0 12px 24px -11px rgba(13,40,120,.55); }
.product-mobile img { width: 100%; height: auto; border-radius: 7px; }
.product-mobile figcaption { padding: .1rem; text-align: center; color: var(--muted); font-size: .61rem; }

.lab { color: #f1f5ff; background: radial-gradient(ellipse at 93% -2%, #203e83 0, transparent 45%), #111c35; }
.lab .kicker { color: #aac3ff; }
.lab .section-heading > p:last-child { color: #c3cee7; }
.lab :focus-visible { outline-color: #a7bfff; }
.lab-workspace { margin-block-start: 1.6rem; overflow: hidden; border: 1px solid #405277; border-radius: 13px; background: #131f39; }
.lab-tabs { display: flex; flex-wrap: wrap; direction: ltr; align-items: stretch; gap: 2px; padding: .5rem; background: #182746; border-block-end: 1px solid #364b76; }
.lab-tabs button { display: flex; align-items: center; justify-content: center; flex: 1 1 max-content; gap: .55rem; padding: .55rem .65rem; min-height: 47px; font-size: .82rem; font-weight: 750; color: #cdd8f5; border: 1px solid transparent; border-radius: 7px; background: none; white-space: nowrap; }
.lab-tabs button:hover { background: #22345a; }
.lab-tabs button[aria-selected=true] { color: #f4f7ff; border-color: #637fb7; background: #2b406c; }
.lab-tabs img { flex: none; width: auto; max-width: 32px; height: 23px; object-fit: contain; }
.lab-body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: 1rem; padding: 1rem; }
.lab-preview { min-width: 0; padding: .35rem; }
.lab-preview h3 { font-size: .98rem; margin-block-end: .68rem; }
.preview-card { padding: .7rem; border-radius: 11px; color: var(--ink); background: #eef4ff; }
.preview-tools { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.preview-tools strong { font-size: .92rem; color: #213b76; }
.preview-switch { display: flex; padding: 2px; gap: 2px; border: 1px solid #d5e0f6; border-radius: 7px; background: #fff; }
.preview-switch button { min-height: 32px; padding-inline: .44rem; font-size: .74rem; }
.preview-content { margin-block-start: .7rem; min-height: 113px; padding: .8rem 1rem; border-inline-start: 3px solid #4f74e8; background: #fff; }
.preview-content strong { display: block; line-height: 1.3; font-size: 1.18rem; margin-block: .25rem; }
.preview-content p { color: #4a5b79; font-size: .77rem; }
.lab-scope { margin-block-start: .8rem; color: #c3cee7; font-size: .8rem; line-height: 1.9; }
.code-panel { min-width: 0; border: 1px solid #3c507e; border-radius: 9px; background: #0c152a; }
.code-toolbar { min-height: 51px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .42rem; padding: .4rem .62rem; border-block-end: 1px solid #334775; }
.code-toolbar > span { min-width: 0; overflow-wrap: anywhere; color: #bdccf0; font: .78rem Consolas, monospace; }
.code-actions { display: flex; flex-wrap: wrap; column-gap: .35rem; row-gap: .25rem; }
.code-button { display: inline-flex; align-items: center; min-height: 35px; border: 1px solid #4e65a0; border-radius: 6px; background: #1b2b4d; padding: .18rem .58rem; color: #e3ebff; font-weight: 700; font-size: .74rem; white-space: nowrap; }
.code-button:hover { background: #263d6c; }
.code-button.download { color: #fff; border-color: #3a61d8; background: #2b51c4; }
.code-button.download:hover { background: #365fdc; }
.code-button:disabled { opacity: .63; }
.code-panel pre { margin: 0; overflow: auto; height: 292px; padding: 1rem; color: #d9e3ff; font-size: .81rem; line-height: 1.62; text-align: start; tab-size: 2; }
.code-panel code { font-family: Consolas, 'Courier New', monospace; }
.token-keyword { color: #b7adff; }
.token-string { color: #8de2b5; }
.token-comment { color: #99acd0; }
.token-number { color: #ffcb9b; }
.script-note { padding: .75rem; color: #cbd6f0; }

.package { border-block-end: 1px solid var(--rule); background: #f5f8ff; }
.package-grid, .faq-grid { display: grid; align-items: start; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); gap: clamp(18px, 6vw, 95px); }
.package-list { background: var(--white); border-block: 1px solid var(--rule); }
.package-list > div { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); align-items: baseline; gap: .5rem 1rem; padding: .9rem .95rem; }
.package-list > div + div { border-block-start: 1px solid var(--rule); }
.package-list dt { font-weight: 850; font-size: .91rem; color: #244392; }
.package-list dd { font-size: .84rem; color: var(--muted); }
.faq { background: var(--white); }
.faq-list { border-block-start: 1px solid var(--rule); }
.faq-list details { padding: .83rem .1rem; border-block-end: 1px solid var(--rule); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; cursor: pointer; font-weight: 850; font-size: .9rem; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: #eaf0ff; color: #1c47bd; font: 800 1rem system-ui; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { margin-block-start: .43rem; color: var(--muted); font-size: .84rem; line-height: 1.92; max-width: 70ch; }
.site-footer { color: #fff; background: #111c35; }
.footer-inner { min-height: 94px; }
.footer-inner p { color: #cbd7f3; font-size: .82rem; }
.footer-inner > a:last-child { color: #d2e0ff; font-size: .84rem; font-weight: 800; }
.footer-inner > a:last-child:hover { color: #fff; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 52px); }
  .hero-grid { gap: 30px; }
  .hero h1 { font-size: clamp(1.9rem, 4.65vw, 3.6rem); }
}
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; min-height: 64px; padding-block: .58rem; gap: .5rem; }
  .site-nav { order: 3; width: 100%; justify-content: flex-start; font-size: .81rem; }
  .header-action { min-height: 40px; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 44px 37px; gap: 38px; }
  .hero h1 { font-size: clamp(2.1rem, 8.3vw, 3.5rem); max-width: 14em; }
  .hero-visual { margin-inline: 8px; }
  .hero-visual::before { inset: -14px -9px 16px -9px; }
  .hero-meta { margin-block-start: .77rem; }
  .product-panel, .lab-body, .package-grid, .faq-grid { grid-template-columns: 1fr; }
  .product-media { margin-block-end: .4rem; }
  .lab-tabs button { flex-basis: calc(33.333% - 4px); font-size: .74rem; gap: .34rem; min-height: 42px; padding: .35rem .25rem; }
  .lab-tabs img { height: 18px; max-width: 24px; }
  .lab-body { gap: .7rem; padding: .62rem; }
  .code-panel pre { height: 248px; }
  .section { padding-block: 55px; }
}
@media (max-width: 400px) {
  .wrap { width: calc(100% - 32px); }
  .header-action { padding-inline: .46rem; font-size: .75rem; }
  .button { padding-inline: .65rem; }
  .hero-actions { gap: .35rem; }
  .window-bar { min-height: 38px; padding-inline: .32rem; }
  .window-title { font-size: .65rem; }
  .theme-switch button { padding-inline: .3rem; }
  .product-tabs button { padding-inline: .56rem; }
  .product-panel { padding: .76rem; }
  .lab-tabs { padding: .28rem; }
  .lab-tabs button { font-size: .65rem; }
  .lab-tabs img { height: 17px; }
  .product-mobile figcaption { display: none; }
  .package-list > div { grid-template-columns: 1fr; gap: .15rem; }
  .footer-inner { padding-block: .83rem; flex-wrap: wrap; gap: .5rem 1rem; }
  .footer-inner p { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
