:root {
  --primary: #3c95e5;
  --primary-soft: rgba(60, 149, 229, 0.18);
  --navy-top: #152860;
  --navy-bottom: #112058;
  --card: rgba(26, 43, 74, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-soft: rgba(255, 255, 255, 0.55);
  --danger: #e34e00;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  --max: 920px;
  --font: "Poppins", system-ui, sans-serif;
  --font-ar: "Cairo", "Poppins", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: linear-gradient(160deg, var(--navy-top), var(--navy-bottom));
  position: relative;
}

body[dir="rtl"] {
  font-family: var(--font-ar);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 32, 88, 0.82), rgba(13, 24, 64, 0.9)),
    url("../assets/app_background.png") center / cover no-repeat;
  z-index: -1;
}

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

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  border-radius: 8px;
}

.brand span {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav-links a,
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.lang-btn:hover,
.nav-links a.active,
.lang-btn.active {
  background: var(--primary-soft);
  border-color: rgba(60, 149, 229, 0.45);
  color: #fff;
  text-decoration: none;
}

.hero {
  text-align: center;
  margin-bottom: 36px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid rgba(60, 149, 229, 0.35);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
}

.intro-card,
.card,
.faq-item,
.response-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.intro-card {
  padding: 22px 24px;
  margin-bottom: 28px;
  color: var(--text-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.card {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(60, 149, 229, 0.4);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.35rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 650;
}

.card p {
  color: var(--text-soft);
  font-size: 0.9rem;
  flex: 1;
}

.card a.value {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-word;
}

.cta-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(60, 149, 229, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.response-card {
  padding: 22px 24px;
  margin-bottom: 36px;
}

.response-card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.response-card p {
  color: var(--text-muted);
}

.response-card strong {
  color: #fff;
}

.footer {
  border-top: 1px solid var(--card-border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.footer .powered {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.legal-doc {
  display: grid;
  gap: 16px;
}

.legal-section {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.legal-section h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #fff;
}

.legal-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    justify-content: flex-start;
  }
}
