/* ============================================================
   Free AI Video Generator — TechVisionEra Design System
   site.css v1.0 | 2026-05-30
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-body:       #0f172a;
  --bg-panel:      #0b1323;
  --bg-card:       #111d35;
  --bg-card-hover: #152240;
  --green:         #00b619;
  --green-dark:    #009914;
  --green-glow:    rgba(0, 182, 25, 0.18);
  --cyan:          #74d7ff;
  --sand:          #d9c48f;
  --text:          #eef4ff;
  --muted:         #aebed6;
  --border:        rgba(116, 215, 255, 0.10);
  --border-hover:  rgba(116, 215, 255, 0.22);
  --shadow:        0 24px 60px rgba(1, 9, 20, 0.28);
  --shadow-card:   0 8px 32px rgba(1, 9, 20, 0.36);
  --radius-xl:     28px;
  --radius-lg:     20px;
  --radius-md:     14px;
  --radius-sm:     8px;
  --font-sans:     'Inter', sans-serif;
  --nav-h:         72px;
  --transition:    0.22s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-body);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: #fff; }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

p { color: var(--muted); }

/* ── Shell / Container ─────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Header / Nav ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(11, 19, 35, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(1, 9, 20, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 38px;
  width: auto;
}

.brand-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(116, 215, 255, 0.08);
}

.site-nav a.active {
  color: var(--cyan);
}

.lang-pill {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--cyan) !important;
  border: 1px solid rgba(116, 215, 255, 0.35);
  border-radius: 999px;
  padding: 4px 12px !important;
  background: rgba(116, 215, 255, 0.06) !important;
  transition: background var(--transition), border-color var(--transition) !important;
}

.lang-pill:hover {
  background: rgba(116, 215, 255, 0.14) !important;
  border-color: rgba(116, 215, 255, 0.6) !important;
  color: #fff !important;
}

/* ── Nav Toggle (Hamburger) ────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(116, 215, 255, 0.06);
  border: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: rgba(116, 215, 255, 0.12);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Utility Buttons ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: 2px solid var(--green);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--green-glow);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-hover);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-outline:hover {
  background: rgba(238, 244, 255, 0.06);
  border-color: rgba(238, 244, 255, 0.35);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}

/* ── Tags / Badges ─────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 182, 25, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 182, 25, 0.25);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 182, 25, 0.10);
  color: var(--green);
  border: 1px solid rgba(0, 182, 25, 0.28);
  letter-spacing: 0.02em;
}

/* ── Sections ──────────────────────────────────────────────── */
section {
  padding-block: 96px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.18;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-sub {
  margin-inline: auto;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(0, 182, 25, 0.10) 0%, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  align-self: flex-start;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-copy h1 .accent-green { color: var(--green); }
.hero-copy h1 .accent-cyan  { color: var(--cyan); }

.hero-copy > p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.stat-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(116, 215, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  transition: background var(--transition);
}

.stat-pill:hover {
  background: rgba(116, 215, 255, 0.13);
  color: var(--text);
}

.hero-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Features Grid ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.feat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  opacity: 0;
  transition: opacity var(--transition);
}

.feat-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.feat-card:hover::before {
  opacity: 1;
}

.feat-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.feat-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feat-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Steps Section ─────────────────────────────────────────── */
.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.step-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.step-number {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--green), #00d420);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px var(--green-glow);
  flex-shrink: 0;
}

.step-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-item p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Connector line between steps */
.steps-list {
  position: relative;
}

/* ── Levels Section ────────────────────────────────────────── */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.level-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border-left: 4px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition);
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.level-card.level-1 { border-left-color: var(--cyan); }
.level-card.level-2 { border-left-color: var(--green); }
.level-card.level-3 { border-left-color: var(--sand); }

.level-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.level-1 .level-badge {
  background: rgba(116, 215, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(116, 215, 255, 0.28);
}

.level-2 .level-badge {
  background: rgba(0, 182, 25, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 182, 25, 0.28);
}

.level-3 .level-badge {
  background: rgba(217, 196, 143, 0.12);
  color: var(--sand);
  border: 1px solid rgba(217, 196, 143, 0.28);
}

.level-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.level-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Preset Cards ──────────────────────────────────────────── */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.preset-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-top: 3px solid var(--accent-color, var(--cyan));
}

.preset-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-hover);
}

.preset-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.preset-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.preset-card .preset-url {
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
}

/* ── FAQ Section ───────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item summary {
  list-style: none;
  padding: 22px 26px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  transition: background var(--transition);
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 26px 22px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #052e10 0%, #073a14 50%, #051b2a 100%);
  border: 1px solid rgba(0, 182, 25, 0.25);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 182, 25, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-banner > p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  padding: 20px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li::after {
  content: '/';
  color: var(--border-hover);
}

.breadcrumb li:last-child::after { display: none; }

.breadcrumb a {
  color: var(--muted);
  font-weight: 500;
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--cyan); }

.breadcrumb li:last-child span {
  color: var(--text);
  font-weight: 500;
}

/* ── Inner Page Content ────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 60px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.18;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.75;
}

.content-section {
  padding-block: 64px;
  border-top: 1px solid var(--border);
}

.content-section h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--text);
}

.content-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--cyan);
}

.content-section p {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 16px;
}

.content-section ul,
.content-section ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.content-section li {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
  list-style: disc;
}

.content-section ol li { list-style: decimal; }

/* ── Data Tables ───────────────────────────────────────────── */
.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  background: var(--bg-panel);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ── Code Blocks ───────────────────────────────────────────── */
.code-block {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: 'Courier New', 'Fira Mono', monospace;
  font-size: 0.87rem;
  color: #a8d8a8;
  line-height: 1.7;
  overflow-x: auto;
  margin-bottom: 24px;
}

.code-block .comment { color: #5a7a5a; }
.code-block .key     { color: var(--cyan); }
.code-block .val     { color: var(--sand); }

/* ── Req Grid ──────────────────────────────────────────────── */
.req-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.req-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.req-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.req-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.req-item p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* ── Setup Steps ───────────────────────────────────────────── */
.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.setup-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color var(--transition);
}

.setup-step:hover { border-color: var(--border-hover); }

.setup-num {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.setup-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.setup-body p {
  font-size: 0.9rem;
  margin: 0;
}

.setup-body code {
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
  color: #a8d8a8;
  margin-top: 10px;
  overflow-x: auto;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding-block: 44px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  font-size: 0.86rem;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.footer-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* ── Arabic RTL ────────────────────────────────────────────── */
body.ar,
[dir="rtl"] {
  direction: rtl;
  font-family: Tahoma, 'Segoe UI', 'Arial', sans-serif;
}

[dir="rtl"] .level-card {
  border-left: none;
  border-right: 4px solid transparent;
}

[dir="rtl"] .level-card.level-1 { border-right-color: var(--cyan); }
[dir="rtl"] .level-card.level-2 { border-right-color: var(--green); }
[dir="rtl"] .level-card.level-3 { border-right-color: var(--sand); }

[dir="rtl"] .feat-card::before { left: auto; right: 0; }
[dir="rtl"] .breadcrumb li::after { content: '\\'; }

[dir="rtl"] .content-section ul,
[dir="rtl"] .content-section ol {
  padding-left: 0;
  padding-right: 24px;
}

[dir="rtl"] .data-table th,
[dir="rtl"] .data-table td { text-align: right; }

[dir="rtl"] .setup-step { flex-direction: row; }

[dir="rtl"] .faq-item summary {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-inner {
  flex-direction: row-reverse;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid    { grid-template-columns: repeat(2, 1fr); }
  .steps-list       { grid-template-columns: repeat(2, 1fr); }
  .presets-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section           { padding-block: 64px; }

  .nav-toggle       { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(11, 19, 35, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.32s ease;
    pointer-events: none;
    z-index: 999;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .site-nav a {
    padding: 12px 16px;
    font-size: 0.96rem;
    border-radius: var(--radius-sm);
  }

  .lang-pill {
    align-self: flex-start;
    margin-top: 8px;
  }

  .hero             { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 56px; }
  .hero-inner       { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual      { order: -1; }

  .features-grid    { grid-template-columns: 1fr; }
  .steps-list       { grid-template-columns: 1fr; }
  .levels-grid      { grid-template-columns: 1fr; }
  .presets-grid     { grid-template-columns: repeat(2, 1fr); }
  .req-grid         { grid-template-columns: 1fr; }

  .cta-banner       { padding: 48px 24px; }
  .cta-buttons      { flex-direction: column; align-items: center; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-links { justify-content: center; }

  .section-header   { margin-bottom: 40px; }

  [dir="rtl"] .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-cta         { flex-direction: column; }
  .btn-primary,
  .btn-outline      { width: 100%; justify-content: center; }
  .presets-grid     { grid-template-columns: 1fr; }

  .section-title    { font-size: 1.6rem; }
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-up {
  animation: fadeUp 0.55s ease both;
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Highlight box ─────────────────────────────────────────── */
.highlight-box {
  background: rgba(0, 182, 25, 0.07);
  border: 1px solid rgba(0, 182, 25, 0.20);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.highlight-box p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* ── Inner page two-column layout ──────────────────────────── */
.inner-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.inner-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.inner-sidebar h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-list a {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  display: block;
}

.toc-list a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  .inner-grid {
    grid-template-columns: 1fr;
  }

  .inner-sidebar {
    position: static;
    order: -1;
  }
}
