/* =========================================================
   LapTest – Phase 1 (static homepage, RTL / Persian)
   ========================================================= */

/* Font: download Vazirmatn (open source) and place the file at
   assets/fonts/Vazirmatn-Variable.woff2 – see README */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy-950: #050f24;
  --navy-900: #081634;
  --navy-800: #0c1f4a;
  --navy-700: #12295c;
  --blue: #1f6bff;
  --blue-600: #1857d6;
  --green: #0ea56b;
  --purple: #7c3aed;
  --ink: #0f1b3a;
  --muted: #64708a;
  --line: #e3e8f2;
  --bg: #f6f8fc;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #7fb0ff; outline-offset: 2px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

.ic {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 12px;
  font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-sm { height: 40px; padding: 0 22px; font-size: 14px; border-radius: 999px; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-outline { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-ghost { border-color: #c5d0e6; color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-disabled, .btn:disabled { background: rgba(255,255,255,.08); color: rgba(255,255,255,.4); cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header { background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.06); color: #fff; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.auth { display: flex; gap: 10px; }
.main-nav { display: flex; gap: 34px; margin-inline: auto; font-size: 14.5px; }
.main-nav a { position: relative; padding: 24px 0; color: rgba(255,255,255,.78); transition: color .2s; }
.main-nav a:hover { color: #fff; }
.main-nav a.is-active { color: #fff; }
.main-nav a.is-active::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--blue);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #fff; }
.logo .ic { width: 30px; height: 30px; color: #3b82ff; stroke-width: 1.6; }
.logo b { color: #3b82ff; font-weight: 700; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; }
.nav-toggle .ic { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  color: #fff;
  background:
    radial-gradient(55% 75% at 50% 42%, rgba(38, 99, 235, .30), transparent 70%),
    linear-gradient(180deg, #0a1b45 0%, #071130 100%);
  padding: 56px 0 60px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 210px 1.1fr 1fr; align-items: center; gap: 28px; }

.hero-features { display: grid; gap: 18px; }
.hero-features li { display: flex; align-items: center; gap: 14px; font-size: 14px; color: rgba(255,255,255,.9); }
.tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; }
.tile .ic { width: 20px; height: 20px; }
.tile-green { background: #12a26a; }
.tile-indigo { background: #5b5bf0; }
.tile-red { background: #ef4444; }
.tile-blue { background: #2f6df6; }

.hero-visual { position: relative; padding: 24px 0; }
.laptop {
  max-width: 500px; margin-inline: auto;
  transform: perspective(1500px) rotateY(-16deg) rotateX(3deg) rotateZ(-1.5deg);
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.45));
}
.laptop-screen {
  position: relative; aspect-ratio: 16 / 10;
  border: 9px solid #12151d; border-radius: 14px 14px 3px 3px;
  background:
    radial-gradient(circle at 28% 22%, #7a5cff 0, transparent 46%),
    radial-gradient(circle at 78% 72%, #12b5ff 0, transparent 52%),
    radial-gradient(circle at 62% 28%, #ff5fa2 0, transparent 38%),
    radial-gradient(circle at 20% 85%, #3b2bd6 0, transparent 45%),
    #1b2a7a;
}
.laptop-screen .cam { position: absolute; top: -6px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: #3a4052; }
.laptop-base {
  height: 14px; margin-inline: -5%;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, #d9dde6 0%, #9aa2b3 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.6);
}
.health-card {
  position: absolute; z-index: 2; left: -4px; top: 6px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 16px; border-radius: 14px;
  background: rgba(14, 34, 82, .78);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  transform: rotate(-5deg);
}
.health-check { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #13b874; }
.health-check .ic { width: 20px; height: 20px; stroke-width: 2.6; }
.health-text small { display: block; font-size: 11px; color: rgba(255,255,255,.75); line-height: 1.3; }
.health-text strong { display: block; font-size: 17px; line-height: 1.3; }
.health-bar { position: relative; width: 116px; height: 5px; margin-top: 6px; border-radius: 3px; background: rgba(255,255,255,.18); }
.health-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: #2ee29a; }
.health-bar em { position: absolute; right: 0; top: 8px; font-style: normal; font-size: 10px; color: rgba(255,255,255,.7); }

.hero-copy h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.45; font-weight: 800; }
.hero-copy h1 span { display: block; }
.hero-copy .h1-blue { color: #3b8bff; }
.hero-copy p { margin-top: 20px; font-size: 15px; color: rgba(255,255,255,.82); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-trust { display: flex; margin-top: 44px; }
.hero-trust li {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1; padding-inline: 12px; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.75);
}
.hero-trust li + li { border-inline-start: 1px solid rgba(255,255,255,.14); }
.hero-trust .ic { width: 24px; height: 24px; color: rgba(255,255,255,.7); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; background: var(--bg); }
.section-tight { padding-top: 0; }
#tests { padding-bottom: 48px; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: 24px; font-weight: 800; }
.section-head p { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat {
  padding: 26px 14px 22px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.cat-ic {
  display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--tint); color: var(--fg);
}
.cat-ic .ic { width: 28px; height: 28px; }
.cat h3 { font-size: 15px; font-weight: 700; }
.cat p { margin-top: 4px; font-size: 11.5px; color: var(--muted); }

/* ---------- Demo ---------- */
.demo {
  display: grid; grid-template-columns: 260px 1fr 250px; gap: 18px;
  padding: 18px; border-radius: 22px;
  background: linear-gradient(180deg, #0a1c44, #071330);
  color: #fff;
}
.demo-side { display: grid; gap: 16px; align-content: start; }
.demo-box {
  padding: 18px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
}
.demo-box p { font-size: 12px; line-height: 1.9; color: rgba(255,255,255,.72); }
.free-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.free-title h3 { font-size: 15px; font-weight: 700; }
.free-title .ic { width: 24px; height: 24px; color: #e8ecf7; }
.tip-box .free-title .ic { color: #fbbf24; }
.free-count { display: flex; align-items: center; gap: 12px; margin: 14px 0; font-size: 12.5px; color: rgba(255,255,255,.85); }
.ring {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid #1fd6a0; font-size: 11.5px; font-weight: 700;
}

.demo-main { padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-head h3 { font-size: 15px; font-weight: 700; }
.demo-step { font-size: 12px; color: rgba(255,255,255,.7); }
.demo-progress { height: 4px; margin: 12px 0 14px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.demo-progress i { display: block; height: 100%; width: 16.66%; background: #2ee29a; border-radius: 2px; transition: width .25s; }
.demo-screen {
  position: relative; flex: 1; min-height: 210px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25); cursor: zoom-in; background: #000;
}
.demo-screen.is-bars {
  background: linear-gradient(to right,
    #000 0 14.28%, #fff 14.28% 28.56%, #f00 28.56% 42.84%, #00e600 42.84% 57.12%,
    #0000ff 57.12% 71.4%, #555 71.4% 85.68%, #222 85.68% 100%);
}
.demo-screen:fullscreen { cursor: none; border: 0; border-radius: 0; }
.demo-note { margin: 12px 0; font-size: 12px; line-height: 1.9; color: rgba(255,255,255,.7); }
.demo-actions { display: flex; gap: 12px; }
.demo-actions .btn { height: 42px; min-width: 96px; }

.demo-steps { padding: 18px 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.demo-steps h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.demo-steps ol { display: grid; gap: 8px; }
.demo-steps li {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 10px; border: 1px solid transparent; color: rgba(255,255,255,.65);
}
.demo-steps li.is-current { background: rgba(31,107,255,.22); border-color: rgba(59,139,255,.65); color: #fff; }
.demo-steps .num {
  display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.14); font-size: 12px; font-weight: 700;
}
.demo-steps li.is-current .num { background: var(--blue); }
.demo-steps li div { flex: 1; min-width: 0; }
.demo-steps strong { display: block; font-size: 13.5px; line-height: 1.5; }
.demo-steps small { display: block; font-size: 11px; opacity: .7; line-height: 1.5; }
.demo-steps .state { width: 16px; height: 16px; opacity: .7; }
.demo-steps li.is-current .state { color: #7cb0ff; opacity: 1; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plan {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26px 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
}
.plan-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 8px; }
.plan-ic .ic { width: 24px; height: 24px; }
.plan h3 { font-size: 20px; font-weight: 800; }
.plan-sub { font-size: 12.5px; color: var(--muted); }
.plan-price { margin-top: 12px; font-size: 14px; }
.plan-price strong { font-size: 26px; font-weight: 800; }
.plan-per { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.plan ul { align-self: stretch; display: grid; gap: 10px; margin: 6px 0 22px; padding-top: 16px; border-top: 1px solid var(--line); flex: 1; align-content: start; }
.plan li { display: flex; align-items: center; gap: 8px; font-size: 13px; text-align: start; }
.plan li .ic { width: 16px; height: 16px; stroke-width: 2.4; }

.plan-free .plan-ic { background: #eef2fb; color: #3b4a6b; }
.plan-free h3 { color: var(--ink); }
.plan-free li .ic { color: #3b82ff; }

.plan-basic { border-color: #bfe8d5; }
.plan-basic .plan-ic { background: #e3f7ee; color: var(--green); }
.plan-basic h3, .plan-basic .plan-price strong { color: #0a8a58; }
.plan-basic li .ic { color: var(--green); }
.plan-basic .btn-solid { background: var(--green); color: #fff; }
.plan-basic .btn-solid:hover { background: #0a8a58; }

.plan-pro { border-color: #b9d1ff; }
.plan-pro .plan-ic { background: #e5efff; color: var(--blue); }
.plan-pro h3, .plan-pro .plan-price strong { color: var(--blue); }
.plan-pro li .ic { color: var(--blue); }
.plan-pro .btn-solid { background: var(--blue); color: #fff; }
.plan-pro .btn-solid:hover { background: var(--blue-600); }

.plan-expert { border-color: #d5c3fb; }
.plan-expert .plan-ic { background: #efe7ff; color: var(--purple); }
.plan-expert h3, .plan-expert .plan-price strong { color: #6d28d9; }
.plan-expert li .ic { color: var(--purple); }
.plan-expert .btn-solid { background: var(--purple); color: #fff; }
.plan-expert .btn-solid:hover { background: #6d28d9; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #fff; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.stat { display: flex; align-items: center; gap: 12px; }
.stat .ic { width: 30px; height: 30px; color: #4b8dff; stroke-width: 1.5; }
.stat strong { display: block; font-size: 15px; line-height: 1.4; }
.stat small { display: block; font-size: 11.5px; color: rgba(255,255,255,.6); }
.footer-brand small { display: block; margin-top: 2px; font-size: 11.5px; color: rgba(255,255,255,.6); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; font-size: 12.5px; color: rgba(255,255,255,.65); }
.social { display: flex; gap: 14px; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: rgba(255,255,255,.85); transition: background-color .2s; }
.social a:hover { background: rgba(255,255,255,.1); }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-links a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; }
  .hero-features { order: 3; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .demo { grid-template-columns: 1fr; }
  .demo-main { order: 1; } .demo-steps { order: 2; } .demo-side { order: 3; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; inset-inline: 0; top: 72px; z-index: 20;
    display: none; flex-direction: column; gap: 0; margin: 0; padding: 8px 24px 16px;
    background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; }
  .main-nav a.is-active::after { display: none; }
  .site-header { position: relative; }
  .header-inner { gap: 12px; }
  .logo { margin-inline-start: auto; }
}
@media (max-width: 600px) {
  .container { width: min(1180px, 100% - 32px); }
  .header-inner .auth .btn-outline { display: none; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: column; gap: 14px; align-items: stretch; }
  .hero-trust li { flex-direction: row; justify-content: flex-start; text-align: start; }
  .hero-trust li + li { border: 0; }
  .hero { padding-top: 36px; }
  .health-card { left: 0; transform: rotate(-3deg) scale(.9); }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
