@import url('fonts.css');




:root {
  --bg:      #0B0F1C;
  --surface: #151B2E;
  --text:    #EDEAE0;
  --accent:  #FFB020;
  --muted:   #8E97AE;
  --border:  #232B44;

  
  --font-body: 'Archivo', 'Noto Naskh Arabic', 'Vazirmatn', Tahoma,
               ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

  --gutter: 20px;
  --measure: 60ch;

  --step--1: clamp(.8rem, .77rem + .13vw, .87rem);
  --step-0:  clamp(1rem, .97rem + .17vw, 1.08rem);
  --step-1:  clamp(1.15rem, 1.08rem + .33vw, 1.35rem);
  --step-2:  clamp(1.35rem, 1.22rem + .6vw, 1.72rem);
  --step-3:  clamp(1.6rem, 1.36rem + 1.1vw, 2.3rem);
  --step-4:  clamp(2rem, 1.5rem + 2.35vw, 3.4rem);
}


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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


.skip-link {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
  background: var(--accent); color: #0B0F1C;
  padding: 10px 16px; font-weight: 700;
}
.skip-link:focus {
  left: 12px; top: 12px; width: auto; height: auto;
  clip: auto; clip-path: none; z-index: 100;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


.wrap { width: 100%; max-width: 1060px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 700px; }

section { padding-block: 50px; border-top: 1px solid var(--border); }
@media (min-width: 720px) { section { padding-block: 80px; } }


h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 .4em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.01em; }

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

em { font-style: normal; color: var(--accent); }


.kicker {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
html[lang="fa"] .kicker { font-family: var(--font-body); letter-spacing: 0; }

.lead { color: var(--muted); font-size: var(--step-1); }


.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-head__in {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; min-width: 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px;
  font-weight: 700; font-size: 1rem; letter-spacing: -.02em;
  text-decoration: none; white-space: nowrap; flex: 0 0 auto;
}
.brand__mark { width: 20px; height: 20px; flex: 0 0 auto; color: var(--accent); }

.nav { display: none; margin-inline-start: auto; gap: 24px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .92rem;
         white-space: nowrap; padding-block: 8px; }
.nav a:hover { color: var(--text); }
@media (min-width: 900px) { .nav { display: flex; } }

.head-cta {
  margin-inline-start: auto;
  flex: 0 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis;
  display: block; text-align: center;
  line-height: 42px; padding-block: 0;
}

@media (max-width: 420px) {
  .head-cta { padding-inline: 12px; font-size: .86rem; }
  .brand { font-size: .92rem; }
}
@media (max-width: 350px) {
  
  .head-cta { padding-inline: 8px; font-size: .82rem; }
  .site-head__in { gap: 8px; }
  .brand { font-size: .84rem; gap: 6px; }
  .brand__mark { width: 17px; height: 17px; }
}
@media (min-width: 900px) { .head-cta { margin-inline-start: 0; } }


.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 700; font-size: .95rem; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent); color: #14100A; }
.btn--primary:hover { background: #E39A15; }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }
@media (min-width: 560px) { .btn--block { width: auto; } }


.hero { padding-block: 44px 54px; border-top: 0; }
@media (min-width: 720px) { .hero { padding-block: 72px 88px; } }

.badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: var(--step--1);
  color: var(--accent); letter-spacing: .05em;
  border: 1px solid var(--border); background: var(--surface);
  padding: 6px 12px; border-radius: 3px; margin: 0 0 20px;
}
html[lang="fa"] .badge { font-family: var(--font-body); letter-spacing: 0; }
.hero h1 { max-width: 16ch; }
.hero__sub { color: var(--muted); font-size: var(--step-1); max-width: 48ch; margin-top: 18px; }
.hero__actions { margin-top: 28px; }
.hero__note {
  margin-top: 14px; color: var(--muted);
  font-family: var(--font-mono); font-size: var(--step--1);
}
html[lang="fa"] .hero__note { font-family: var(--font-body); }


.why h2 { max-width: 19ch; }
.why h2 span { display: block; color: var(--accent); }
.why__body { margin-top: 24px; }
.why__body p { color: var(--muted); }


.spec { margin-top: 30px; border: 1px solid var(--border); border-radius: 3px;
        background: var(--surface); overflow: hidden; }
.spec__row {
  display: grid; gap: 4px 20px;
  padding: 16px 18px;
  border-top: 1px solid var(--border);
}
.spec__row:first-child { border-top: 0; }
.spec__k {
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: .07em; color: var(--accent);
}
html[lang="fa"] .spec__k { font-family: var(--font-body); letter-spacing: 0; }
.spec__v { color: var(--text); margin: 0; max-width: 52ch; }
@media (min-width: 640px) {
  .spec__row { grid-template-columns: 15ch 1fr; align-items: baseline; }
}


.emo { background: var(--surface); }
.emo h2 { font-size: var(--step-3); max-width: 20ch; }
.emo p { color: var(--muted); margin-top: 12px; }


.faq { margin-top: 28px; }
.faq details { border-top: 1px solid var(--border); padding-block: 4px; }
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 56px; font-weight: 700; font-size: var(--step-0);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; color: var(--accent); font-family: var(--font-mono);
  font-size: 1.25rem; line-height: 1; flex: 0 0 auto;
}
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--muted); padding-bottom: 18px; margin: 0; }


.cta h2 { max-width: 18ch; }
.cta__sub { color: var(--muted); margin-top: 12px; }
.cta__actions { margin-top: 24px; }
.cta__note {
  margin-top: 14px; color: var(--muted);
  font-family: var(--font-mono); font-size: var(--step--1);
}
html[lang="fa"] .cta__note { font-family: var(--font-body); }


.site-foot { border-top: 1px solid var(--border); padding-block: 30px 38px; }
.site-foot__in { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .site-foot__in { grid-template-columns: 1fr auto; align-items: start; }
}

.foot-links { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.foot-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--muted); text-decoration: none; font-size: .92rem;
}
.foot-links a:hover { color: var(--accent); }
.foot-links--legal { margin-top: 2px; }
.foot-links--legal a { font-size: .85rem; opacity: .8; min-height: 44px; }
.foot-links--legal a:hover { opacity: 1; }
.foot-note { color: var(--muted); font-size: var(--step--1); margin-top: 12px; }


.lang { display: inline-flex; align-items: center; gap: 8px; }
.lang select {
  font: inherit; font-size: .92rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 3px; padding: 10px 12px; min-height: 44px;
}


.form { margin-top: 26px; display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: var(--step--1); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 3px;
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field__hint { color: var(--muted); font-size: var(--step--1); }
.form__foot { margin-top: 6px; }
.form__note { color: var(--muted); font-size: var(--step--1); margin-top: 10px; }
.form__err {
  border-inline-start: 3px solid var(--accent);
  padding: 10px 14px; background: var(--surface); margin-bottom: 16px;
}
.form__ok { border: 1px solid var(--border); padding: 22px; background: var(--surface); }


.legal { padding-block: 36px 58px; }
.legal h1 { font-size: var(--step-3); }
.legal__updated { font-family: var(--font-mono); color: var(--muted); font-size: var(--step--1); }
html[lang="fa"] .legal__updated { font-family: var(--font-body); }
.legal__sec h2 {
  font-size: var(--step-1); padding-top: 20px; margin-top: 28px;
  border-top: 1px solid var(--border);
}
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--accent); }
.legal ul { padding-inline-start: 20px; }
.legal li { margin-bottom: .5em; }
.legal__nav {
  display: flex; flex-wrap: wrap; gap: 2px 20px;
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border);
}
.legal__nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--muted); text-decoration: none; font-size: .89rem;
}
.legal__nav a:hover { color: var(--accent); }
