/* ============= BASE ============= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Vazirmatn", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

/* Light / Dark theme */
:root[data-theme="light"] {
  --bg: #ffffff;
  --text: #222;
  --muted: #666;
  --card-bg: #f7f7f7;
  --primary: #0072ff;
  --primary-dark: #0056c7;
  --footer-bg: #111;
  --footer-text: #bbb;
}

:root[data-theme="dark"] {
  --bg: #131313;
  --text: #eeeeee;
  --muted: #aaaaaa;
  --card-bg: #1e1e1e;
  --primary: #4dabff;
  --primary-dark: #1a74d1;
  --footer-bg: #000;
  --footer-text: #aaa;
}

img {
  max-width: 100%;
  display: block;
}

/* Container system */
.container {
  width: 90%;
  max-width: 1250px;
  margin: 0 auto;
}

.flex {
  display: flex;
}
.between {
  justify-content: space-between;
}
.center {
  align-items: center;
}

/* ================= HEADER ================= */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid #e5e5e5;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 99;
}

.brand {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 700;
  gap: 8px;
  text-decoration: none;
}

.nav a {
  margin-right: 20px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}
.nav a:hover {
  color: var(--primary);
}

.toggle {
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ================= HERO ================= */
.hero {
  padding: 80px 0;
}

.hero-inner {
  display: flex;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.brand-text {
  color: var(--primary);
}

.hero-text p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: 0.2s;
}

.primary {
  background: var(--primary);
  color: white;
}
.primary:hover {
  background: var(--primary-dark);
}

.outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}
.outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ================= SECTIONS ================= */
.section {
  padding: 80px 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 35px;
  text-align: center;
}

/* ================= ROLES ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.07);
  transition: 0.2s;
}
.card:hover {
  transform: translateY(-4px);
}
.card h3 {
  font-weight: 700;
  margin-bottom: 10px;
}
.card p {
  color: var(--muted);
}

/* ================= FEATURES ================= */
.features {
  max-width: 800px;
  margin: auto;
  list-style: none;
}

.features li {
  background: var(--card-bg);
  padding: 14px 20px;
  margin-bottom: 12px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ================= PRICING ================= */
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.price-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
  text-align: center;
}

.price-card .price {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 15px 0;
}

.price-card.disabled {
  opacity: 0.5;
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 20px;
  margin-top: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 25px;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 12px;
}

.subfooter {
  text-align: center;
  margin-top: 40px;
  padding-top: 15px;
  border-top: 1px solid #444;
  font-size: 0.9rem;
}
