/* static pages */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* body */
body {
  font-family: 'Vazirmatn', sans-serif;
  background: #0a0a0f;
  color: #eef0ff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 2;
}

/* light theme */
body.light-theme { background: #f5f7fc; color: #1a1c2e; }

/* page bg */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #0a0a0f 0%, #14142a 55%, #101c33 100%);
}

body.light-theme .page-bg {
  background: linear-gradient(135deg, #f5f7fc 0%, #eef1f9 55%, #e6ecf7 100%);
}

/* page topbar */
.page-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.82);
}

body.light-theme .page-topbar {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(16, 24, 48, 0.09);
}

html[data-perf-blur="on"] .page-topbar { backdrop-filter: blur(14px); }

/* page brand */
.page-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.page-brand span {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00d4ff, #7c5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-nav { display: flex; gap: 0.4rem; align-items: center; }

/* page nav */
.page-nav a {
  padding: 0.42rem 0.85rem;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 0.8rem;
  opacity: 0.8;
  transition: background 0.18s ease, opacity 0.18s ease;
}

.page-nav a:hover { background: rgba(124, 92, 255, 0.14); opacity: 1; }

.page-main { flex: 1; padding: 2rem 1.3rem 4rem; }

.page-shell { width: 100%; max-width: 820px; margin: 0 auto; }

.page-hero { text-align: center; margin-bottom: 2.4rem; }

/* page hero */
.page-hero .page-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(0, 212, 255, 0.18));
  border: 1px solid rgba(124, 92, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9db8ff;
}

body.light-theme .page-hero .page-icon { color: #4a34b8; }
.page-hero .page-icon .icon { width: 1.7rem; height: 1.7rem; }

.page-hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-hero p { font-size: 0.86rem; opacity: 0.62; }

/* page card */
.page-card {
  background: rgba(18, 18, 32, 0.86);
  border: 1px solid rgba(124, 92, 255, 0.18);
  border-radius: 22px;
  padding: 1.8rem;
  margin-bottom: 1.2rem;
}

body.light-theme .page-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 24, 48, 0.09);
  box-shadow: 0 10px 30px rgba(20, 30, 60, 0.07);
}

.page-card h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
  color: #7fe3ff;
}

body.light-theme .page-card h2 { color: #0b5cad; }
.page-card h2 .icon { width: 1.15rem; height: 1.15rem; }

.page-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 1.2rem 0 0.5rem;
}

.page-card p { font-size: 0.84rem; opacity: 0.82; margin-bottom: 0.7rem; }
.page-card p:last-child { margin-bottom: 0; }

.page-card ul { padding-right: 1.3rem; margin-bottom: 0.8rem; }
.page-card li { font-size: 0.84rem; opacity: 0.82; margin-bottom: 0.45rem; }
.page-card li::marker { color: #7c5cff; }

.page-card strong { color: #fff; font-weight: 700; }
body.light-theme .page-card strong { color: #10121f; }

/* page note */
.page-note {
  font-size: 0.78rem;
  padding: 0.85rem 1.1rem;
  border-radius: 13px;
  background: rgba(124, 92, 255, 0.11);
  border: 1px solid rgba(124, 92, 255, 0.26);
  margin-top: 1rem;
}

body.light-theme .page-note {
  background: rgba(106, 75, 255, 0.08);
  border-color: rgba(106, 75, 255, 0.22);
}

/* page footer */
.page-footer {
  text-align: center;
  padding: 1.6rem;
  font-size: 0.76rem;
  opacity: 0.5;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-theme .page-footer { border-top-color: rgba(16, 24, 48, 0.08); }

.page-updated { font-size: 0.74rem; opacity: 0.5; text-align: center; margin-top: 1.4rem; }

/* mobile 640px */
@media (max-width: 640px) {
  .page-topbar { padding: 0.85rem 1rem; }
  .page-nav a { padding: 0.35rem 0.55rem; font-size: 0.74rem; }
  .page-main { padding: 1.4rem 0.9rem 3rem; }
  .page-card { padding: 1.3rem 1.1rem; border-radius: 18px; }
  .page-hero h1 { font-size: 1.5rem; }
}
