/* ===== Fonts ===== */
@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

/* ===== Tokens ===== */
:root {
  --ink: #0F1720;
  --ink-2: #16212B;
  --ink-3: #1F2C38;
  --paper: #F6F4EE;
  --paper-2: #EDE9DC;
  --teal: #17B7A6;
  --teal-deep: #0E7A70;
  --teal-soft: #D8F2EE;
  --amber: #F2A93C;
  --amber-deep: #D68A1F;
  --text-dark-bg: #E8EEEF;
  --text-dark-bg-mute: #9FB0B4;
  --text-body: #202A32;
  --text-muted: #5B6772;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --container: 1160px;
  --shadow-card: 0 14px 34px -18px rgba(15, 23, 32, 0.35);
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  background: var(--paper);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skip-link {
  position: absolute;
  right: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 0 0 0 10px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { right: 0; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--text-dark-bg-mute);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color .2s ease;
}
.main-nav a:hover { color: #fff; }
.nav-cta {
  background: var(--teal);
  color: var(--ink) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: #22cdba; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: 'Vazirmatn';
}
.btn-primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 12px 26px -12px rgba(242,169,60,0.55);
}
.btn-primary:hover { background: var(--amber-deep); transform: translateY(-2px); }
.btn-ghost {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ===== Hero ===== */
.hero {
  background: radial-gradient(120% 140% at 15% 0%, #16232E 0%, var(--ink) 55%);
  color: #fff;
  padding: 80px 0 96px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.hero-sub {
  margin-top: 22px;
  font-size: 1.08rem;
  color: var(--text-dark-bg-mute);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--teal);
  font-weight: 800;
}
.stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-dark-bg-mute);
  max-width: 16ch;
}

/* ---- Race card ---- */
.race-card {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
}
.race-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark-bg-mute);
  margin-bottom: 22px;
}
.race-row {
  display: grid;
  grid-template-columns: 140px 1fr 70px;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.race-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dark-bg);
  font-weight: 600;
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot.wp { background: #E8734A; }
.dot.go { background: var(--teal); }

.race-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.race-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 1.4s cubic-bezier(.16,.84,.44,1);
}
.wp-bar { background: linear-gradient(90deg, #E8734A, #C85A34); }
.go-bar { background: linear-gradient(90deg, var(--teal), #24D6C0); }

.race-time {
  font-weight: 700;
  font-size: 0.9rem;
  text-align: left;
  color: var(--text-dark-bg);
  font-variant-numeric: tabular-nums;
}
.race-note {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-dark-bg-mute);
}

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-light { background: var(--paper); }
.section-dark { background: var(--ink); color: #fff; }

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.4;
}
.section-head p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.section-head-dark p { color: var(--text-dark-bg-mute); }

/* ---- Problem ---- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.problem-card {
  background: #fff;
  border: 1px solid rgba(15,23,32,0.06);
  border-radius: var(--radius-md);
  padding: 32px 28px;
}
.p-icon {
  width: 42px;
  height: 42px;
  color: var(--teal-deep);
  margin-bottom: 18px;
}
.problem-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.problem-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ---- Process ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 24px 26px;
  background: var(--ink-2);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step p {
  color: var(--text-dark-bg-mute);
  font-size: 0.92rem;
}

/* ---- Features / Bento ---- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 22px;
}
.bento-card {
  background: #fff;
  border: 1px solid rgba(15,23,32,0.06);
  border-radius: var(--radius-md);
  padding: 28px;
  grid-column: span 2;
}
.bento-lg { grid-column: span 4; background: var(--teal-soft); }
.bento-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.bento-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---- Showcase ---- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.site-card {
  display: block;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.site-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.browser-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--ink-3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.browser-chrome .dot { width: 9px; height: 9px; }
.browser-chrome .dot.r { background: #E8734A; }
.browser-chrome .dot.y { background: var(--amber); }
.browser-chrome .dot.g { background: var(--teal); }
.url-bar {
  margin-right: 12px;
  font-size: 0.8rem;
  color: var(--text-dark-bg-mute);
  background: rgba(255,255,255,0.05);
  padding: 4px 12px;
  border-radius: 999px;
}
.site-card-body { padding: 26px; }
.site-card-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.site-card-body p { color: var(--text-dark-bg-mute); font-size: 0.93rem; }
.site-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---- CTA ---- */
.section-cta {
  background: linear-gradient(135deg, var(--teal-deep), var(--ink));
  color: #fff;
  text-align: center;
}
.cta-inner { max-width: 620px; margin: 0 auto; }
.section-cta h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; }
.section-cta p { margin-top: 14px; color: rgba(255,255,255,0.82); font-size: 1.02rem; }

.lead-form {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
}
.lead-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 18px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}
.lead-form input::placeholder { color: rgba(255,255,255,0.55); }
.lead-form input:focus { outline: none; }
.lead-form .btn { padding: 12px 26px; }

.cta-alt {
  margin-top: 22px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
}
.cta-alt a { color: var(--amber); font-weight: 700; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--text-dark-bg-mute);
  padding-top: 56px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { max-width: 360px; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; height: fit-content; }
.footer-nav a { font-size: 0.92rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  padding: 22px 24px;
  font-size: 0.82rem;
  text-align: center;
}

/* ---- Speed check ---- */
.speed-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(15,23,32,0.06);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.speed-box-copy h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 800; line-height: 1.4; }
.speed-box-copy p { margin-top: 12px; color: var(--text-muted); }
.speed-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}
.speed-form input {
  width: 100%;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,32,0.15);
  font-family: inherit;
  font-size: 0.95rem;
}
.speed-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.speed-form input:focus { outline: none; border-color: var(--teal); }
.speed-hint { margin-top: 10px; font-size: 0.8rem; color: var(--text-muted); }

.speed-result {
  background: var(--paper-2);
  border-radius: var(--radius-md);
  padding: 24px;
}
.speed-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-weight: 700;
}
.speed-result-row + .speed-result-row { border-top: 1px solid rgba(15,23,32,0.08); }
.speed-result-row strong { font-size: 1.2rem; }
.speed-result-go strong { color: var(--teal-deep); }

/* ---- Trust ---- */
.trust-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 46px;
  text-align: center;
}
.counter strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal-deep);
}
.counter-suffix {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--teal-deep);
  margin-inline-start: 2px;
}
.counter span { display: block; margin-top: 6px; color: var(--text-muted); font-size: 0.9rem; }

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}
.testimonial {
  margin: 0;
  padding: 26px 30px;
  background: var(--paper-2);
  border-radius: var(--radius-md);
  border-right: 4px solid var(--amber);
}
.testimonial p { font-size: 1rem; color: var(--text-body); }
.testimonial cite { display: block; margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); font-style: normal; }

/* ---- FAQ ---- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); overflow: hidden; }
.faq-question {
  width: 100%;
  text-align: right;
  background: var(--ink-2);
  color: #fff;
  border: none;
  padding: 20px 24px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--teal);
  transition: transform .2s ease;
}
.faq-question[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: var(--ink-3);
  transition: max-height .3s ease;
}
.faq-answer p { padding: 0 24px 20px; color: var(--text-dark-bg-mute); font-size: 0.94rem; }

/* ---- Lead status ---- */
.lead-status { margin-top: 14px; font-size: 0.9rem; min-height: 1.4em; }
.lead-status.success { color: #6EE7D8; }
.lead-status.error { color: #F2A93C; }

/* ---- Sticky mobile CTA ---- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 60;
  background: var(--ink);
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: none;
  transform: translateY(100%);
  transition: transform .25s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }

/* ===== Reveal-on-scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .race-bar { transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card { grid-column: span 1; }
  .bento-lg { grid-column: span 2; }
  .showcase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .sticky-cta { display: block; }
  .speed-box { grid-template-columns: 1fr; padding: 28px; }
  .trust-counters { grid-template-columns: 1fr; gap: 18px; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    background: var(--ink);
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-lg { grid-column: span 1; }
  .lead-form { flex-direction: column; border-radius: var(--radius-md); }
  .lead-form .btn { width: 100%; }
  .speed-form-actions { flex-direction: column; align-items: stretch; }
  .speed-form-actions .btn { width: 100%; }
}
