* {
  box-sizing: border-box; 
}
:root {
  /* Font Sizes - Desktop (XL) - h1: 40px (2.5rem) */
  --h1: 2.25rem;      /* 40px */
  --h2: 1.75rem;        /* 32px */
  --p: 1.125rem;     /* 22px */
  
  /* Font Weights */
  --fw-bold: 700;
  --fw-regular: 400;
}

/* Tablet (L) - max-width: 1024px */
@media (max-width: 1024px) {
  :root {
    --h1: 2.25rem;     /* 36px */
    --h2: 1.75rem;     /* 28px */
    --p: 1.125rem;     /* 18px */
  }
}

/* Mobile (M) - max-width: 768px */
@media (max-width: 768px) {
  :root {
    --h1: 2rem;        /* 32px */
    --h2: 1.5rem;      /* 24px */
    --p: 1rem;         /* 16px */
  }
}

/* Small Mobile (XS) - max-width: 480px */
@media (max-width: 480px) {
  :root {
    --h1: 1.75rem;     /* 28px */
    --h2: 1.25rem;     /* 20px */
    --p: 0.875rem;     /* 14px - (تم تعديله ليكون أصغر قليلاً من M) */
  }
}
body {
margin: 0 auto;
  background: rgba(12, 18, 32, 1);
  font-family: 'Inter', sans-serif;
  color: #fff;
 
}
html {
scroll-behavior: smooth;
}
.container{
max-width: 100rem;
margin: 0 auto;

}

/* NAVBAR */
#menu-btn {
display: none;
}

.menu-label{
display: none;
}
.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
max-width: 100rem;
height: 6.25rem;
padding: 1.25rem 0;
background: rgba(12, 18, 32, 0.6); 
z-index: 999; 
backdrop-filter: blur(5px);
left: 50%;
transform: translateX(-50%);
}


.container-nav {
  width: 90%;
  max-width: 118.75rem;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo (icon + text) */
.logo-group {
  display: flex;
  align-items: center;
  gap: 0.9375rem;
}

.logo-icon {
  width: 2.625rem;
  height: 3.4375rem;
}

.logo-text h1 {

  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.logo-text p {

  font-size: 1rem;
  margin: 0;
  margin-top: 0.125rem;
  font-weight: var(--fw-regular);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem; 
}
/* Center nav links */
.nav-links {
  display: flex;
  gap: 1.5rem; 
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  /* تم التعديل: استخدام المتغير --p (كانت 1.5rem) */
  font-size: var(--p);
  font-weight: 400;
  font-style: regular;
}

/* Right button */
.demo-btn {
  background: rgba(85, 191, 214, 1);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #000;
  text-decoration: none;
  font-size: 1.125rem;
}
/* Main Hero Section */
.hero-section {
  width: 100%;
  padding: 2rem 0;
  margin-top: 3.5rem;
  margin-left: auto;
  margin-right: auto;
}

/* Main Container */
.hero-container {
  width: 90%;
  max-width: 100rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.125rem;
}

/* Text Content */
.hero-text {
  flex: 1;
}

.small-title {
  width: 35rem;
    font-size: var(--p);
font-weight: var(--fw-regular);
  font-weight: 400;
  font-style: regular;
  color:rgba(169, 233, 245, 1) ;
  margin-bottom: 1rem !important;
}

.big-title {
  width: 32.3125rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 100%;
  margin-bottom: 1.5625rem;
  margin-top: 0 !important;
}

.big-title span {
  color:rgba(85, 191, 214, 1);
}

.hero-paragraph {
  width: 43.3125rem;
  font-size: var(--p);
  line-height: 130%;
  font-weight: var(--fw-regular);
  max-width: 37.5rem;
  margin-bottom: 2.5rem;
}

/* Buttons */
.hero-buttons {
  display: flex;
  align-items: center;
  /* justify-content: center; */
  gap: 1.6875rem;
}


.btn {
padding: 0.75rem 1rem; 
font-size: 1.125rem;
border-radius: 0.5rem;
cursor: pointer;
width: auto;  
height: auto; 
}
.primary-btn {
background-color: rgba(85, 191, 214, 1);
color: rgba(12, 18, 32, 1);;
border: none;
}


.secondary-btn {
background: transparent;
border: 1px solid white;
color: white;
text-decoration: none;
text-align: center;

}

/* Image */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 41.25rem;  
  height: 31.1875rem;    
  object-fit: contain;
  border-radius: 0.625rem;
}


.why-section {
  width: 100%;
  padding: 1rem 0;
  background: rgba(12, 18, 32, 1);
  color: white;
 margin:  0 auto;
 margin-top: 0;
}

.why-container {
  width: 90%;
  max-width: 100rem;
  margin: 0 auto;
  /* text-align: center; */
}

.why-title {
  font-size: var(--h1);
  font-weight: var(--fw-bold);
  margin-bottom: 3.75rem;
   text-align: center;

}

.cards {
  display: flex;
  max-width: 100rem;
  gap: 1rem; /* Spacing between cards */
  justify-content: center;
  align-items: stretch; /* Makes cards equal in height */
}

.card {
  flex: 1; /* Makes cards equal in width */
  max-width: 32rem;
  min-width: 0; /* Allows cards to shrink */
  height: 21.75rem;
  background: rgba(20, 31, 55, 1);
  border: 1px solid rgba(43, 52, 75, 1);
  /* border-radius: 0.625rem; */
  padding: 1.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  /* align-items: center;  */
  color: white;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.625rem;
}

.card-title {
  font-size: var(--h2);

  font-weight: var(--fw-bold);
  /* text-align: center; */
  width: 100%;
  margin-bottom: 0.3125rem;
  min-height: 3.2rem;
}

.card-paragraph {
  font-size: var(--p);
  font-weight: var(--fw-regular);
  line-height: 1.3;
  /* text-align: center; */
  width: 100%;
  max-width: 371px;
  min-height: 4.5rem;
}


.features-section {
  width: 100%;
  padding: 2rem 0;
  margin-left: auto; 
  margin-right: auto
}

.features-container {
  width: 90%;
  max-width: 100rem;
  margin: 0 auto;
  /* text-align: center; */
}
.title-features {
  font-size: var(--h1);
  margin-bottom: 3.75rem;
  font-weight: var(--fw-bold);
  font-style: bold;
  text-align: center;

}

/* 1. تطبيق الحدود على جميع الخلايا (اليمين والأسفل) */
.grid-features > div {
  /* لون الحد الذي حددته سابقاً */
  border-right: 0.03125rem solid rgba(43, 52, 75, 1);
  border-bottom: 0.03125rem solid rgba(43, 52, 75, 1);
  padding: 1.875rem 1.5625rem; /* احتفظ بالحشو الأصلي */
}

/* 2. إزالة الحد العمودي (الحد الأيمن) من العمود الأخير (العناصر: 3, 6, 9) */
/* nth-child(3n) تستهدف مضاعفات الرقم 3 (أي العمود الأخير) */
.grid-features > div:nth-child(3n) {
  border-right: none;
}

/* 3. 🎯 إزالة الحد الأفقي (الحد السفلي) من الصف الأخير بالكامل */
/* في تصميمك، الصف الأخير يبدأ من العنصر السابع (7، 8، 9) */
.grid-features > div:nth-child(n + 7) { 
  border-bottom: none;
}
.grid-features > div:nth-child(8) {
  /* إلغاء الحد الأيمن للبطاقة رقم 8 بشكل قاطع */
  border-right: none !important; 
}

/* 4. معالجة خاصة: إذا كانت الصورة تحتاج إزالة الحدود بالكامل */
.illustration {
  border: none !important; /* لضمان إزالة أي حدود قد تكون متبقية من القواعد أعلاه */
  /* ... احتفظ بباقي خصائص العرض للصورة ... */
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.grid-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(20, 31, 55, 1);
  padding-top: 1rem;
  padding-bottom: 2rem;
}

/* Internal borders only */

/* .feature-card {
  text-align: center;
} */

.feature-card .icon-feature {
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: var(--h2);
  font-weight: var(--fw-bold);
  margin-bottom: 0.375rem;
  color:rgba(255, 255, 255, 1) ;
  
  font-style: bold;
}

.feature-card p {
  font-size: var(--p);
  color:rgba(255, 255, 255, 1) ;
  font-weight: var(--fw-regular);
  font-style: regular;
}



.grid-image {
  width: 100%;           
  height: 100%;
  object-fit: contain;      
}

.compare-section {
  width: 100%;
  margin: 0 auto;
  padding: 2rem 0;
  
}

.compare-container {
  width: 90%;
  margin: 0 auto;
  max-width: 100rem;
  justify-content: center;
  align-content: center;
  display: flex;
  flex-direction: column;
}
.compare-titles{
  margin: 0 auto;
}
.compare-small-title {
  margin-left: 0;
  font-size: var(--p);
  font-weight: var(--fw-regular);
  color: rgba(169, 233, 245, 1);
  margin-bottom: 0; 
}
@media (min-width: 1024px) {
  .compare-small-title {
    margin-left: 10px;
  }
}

.compare-big-title {
  font-size: var(--h1);
  font-weight: var(--fw-bold);
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 1);
}
.compare-title-span{
  display: block;
}
.compare-content {
  display: flex;
  align-items: stretch; /* Makes columns equal to image height */
  justify-content: center;
  gap: 2rem;

}

.compare-image {
  flex: 1.2;
  max-width:32.0625rem;
  max-height:22.4375rem ;
}

.compare-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compare-right {
  flex: 1;
  display: flex;
  gap: 2rem;
}

.compare-column {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  gap: 2rem;
}

.compare-item {
  display: flex;
  flex-direction: column; 
  gap: 0.5rem;
  align-items: center;
}

.compare-item h3 {
  display: flex;
  align-items: center; /* Checkmark next to title */
  gap: 0.625rem; /* Spacing between checkmark and title */
  margin: 0;
  font-size: var(--h2);
  font-weight: var(--fw-bold);
  font-style: bold;
  white-space: nowrap;
  width: 100%;
}

.compare-item p {
  margin: 0;
  font-size: var(--p);
  font-weight: var(--fw-regular);
  font-style: regular;
  width: 100%;
}
.compare-item .check {
  width: 2.125rem;
  height: 2.125rem;
}

.compare-button {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  
}

.btn-primary {
  padding: 0.875rem 1.5625rem;
  background-color: rgba(85, 191, 214, 1);
  color: #0c1220;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
}
.table-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  background: #0c1220; /* Same background as other sections */
}
.table-title{
  max-width: 33.75rem;
  font-size: var(--h1);
  font-style: bold;
  font-weight: var(--fw-bold);
}
.table-container {
  width: 90%;
  max-width: 100rem;
  margin: 0 auto;
}

.table {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 39.5625rem;
  background: rgba(20, 31, 55, 1);
  border: 1px solid rgba(74, 86, 119, 1);
}

.table-header {
  display: flex;
  border-bottom: 1px solid rgba(74, 86, 119, 1);
  height: 5.5rem;
}

.table-header-cell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Start from left */
  padding-left: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  border-right: 1px solid rgba(74, 86, 119, 1);
}

.table-body {
  display: flex;
  flex: 1;
}

.table-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start; /* All elements start from left */
  padding: 1rem;
  gap: 0.75rem;
  color: #fff;
    font-size: var(--p);
font-weight: var(--fw-regular);
  border-right: 1px solid rgba(74, 86, 119, 1);
}
.table-column3{
color: rgba(85, 191, 214, 1);
flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start; /* All elements start from left */
  padding: 1rem;
  gap: 0.75rem;

    font-size: var(--p);
font-weight: var(--fw-regular);
  border-right: 1px solid rgba(74, 86, 119, 1);
}
.table-column:last-child {
  border-right: none; /* Last column has no border */
}
.faq-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  
}


.faq-title {
  font-size: var(--h1); /* Approximately 48px */
  font-weight: var(--fw-bold);
  color: white;
  margin-bottom: 2rem;
  text-align: center;
}

.faq-box {
  max-width: 1056px;
  min-height: 479px;
  background: rgba(20, 31, 55, 1);
  border: 1px solid rgba(43, 52, 75, 1);
  display: flex;
  flex-direction: column; /* Vertically */
  justify-content: space-around; /* Distribute divs evenly */
  padding: 1.5rem;
  box-sizing: border-box;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Spacing between title and paragraph */
}

.faq-item h3 {
  font-size: var(--h2);
  font-weight: var(--fw-bold);
  font-style: bold;
  color: white;
  margin: 0;
}

.faq-item p {
  font-size: var(--p); /* Approximately 20px */
  color: rgba(200,200,200,1);
  margin: 0;
  font-weight: var(--fw-regular);
  font-style: regular;
}
.footer {
  width: 90%;
  max-width: 78.6875rem;      /* 1259px ÷ 16 */
  height: auto; 
  margin: 0 auto;
  font-size: var(--p);
  font-weight: var(--fw-regular);
  font-style: regular;        /* Regular */
  line-height: 100%;
  text-align: center;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 4rem !important;
}


/* Hover effect for all buttons */
.btn, .btn-primary, .secondary-btn, .demo-btn {
transition: all 0.3s ease; /* حركة ناعمة */
}

.btn:hover, 
.btn-primary:hover, 
.secondary-btn:hover, 
.demo-btn:hover {
transform: translateY(-2px); /* حركة خفيفة للأعلى */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* ظل خفيف */
opacity: 0.95; /* خفيف للشفافية */
}

.nav-links a {
transition: all 0.3s ease;
}

.nav-links a:hover {
opacity: 0.9; 
}


/* ============================================
  RESPONSIVE DESIGN - TABLET (max-width: 1024px)
  ============================================ */
@media (max-width: 1024px) {
/* Navbar */
.navbar {
  height: auto;
  padding: 1rem 0;
}

.container-nav {
  width: 95%;
}

.logo-text h1 {
  font-size: 2rem;
}

.logo-text p {
  font-size: 0.875rem;
}

.nav-links {
  gap: 1.25rem;
}

.nav-links a {
    font-size: var(--p);
font-weight: var(--fw-regular);
}

.demo-btn {
  padding: 0.75rem 1.25rem;
  /* تم التعديل: استخدام المتغير --p (كانت 1rem) */
  font-size: 1rem;
}
.hero-section{
  margin-top: 5rem;
}

/* Hero Section */
.hero-container {
  flex-direction: column;
  gap: 2rem;
  
}

.hero-text {
  text-align: center;
}

.small-title {
  width: 100%;
  text-align: center;
}

.big-title {
  width: 100%;
  font-size: 3rem;
  text-align: center;
}

.hero-paragraph {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.hero-buttons {
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image img {
  max-width: 70%;
  height: auto;
}

/* Why Section */
.cards {
  flex-direction: column;
  align-items: center;
}

.card-icon{
  width: 3rem;
  height: 3rem;
}
.card {
  width: 100%;
  max-width: 32rem;
  height: auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.card-header {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
}
/* Features Section */

    
  /* 1. تفعيل نظام العمودين */
  .grid-features {
    grid-template-columns: repeat(2, 1fr);
}

/* 2. إعادة تطبيق الحد بوضوح على العمود الأول (العناصر الفردية: 1, 3, 5, 7, ...) */
/* البطاقة رقم 3 تندرج تحت هذه القاعدة. استخدام !important يضمن تطبيق الحد */
.grid-features > div:nth-child(2n + 1) {
    border-right: 0.03125rem solid rgba(43, 52, 75, 1) !important; 
}

/* 3. إزالة الحد من العمود الأخير (العناصر الزوجية: 2, 4, 6, 8, ...) */
/* هذا يضمن إزالة الحد من البطاقة رقم 4 */
.grid-features > div:nth-child(2n) {
    border-right: none !important; 
}

/* 4. إزالة الحد السفلي من الصف الأخير (7, 8, 9) */
.grid-features > div:nth-child(n + 7) { 
    border-bottom: none !important;
}
.grid-features > div.illustration {
  border-right: none !important;
}

/* إلغاء الحد الأيمن للعنصر التاسع بشكل عام للتأكد */
.grid-features > div:nth-child(9) {
  border-right: none !important;
}

/* 5. معالجة عنصر الصورة */
.illustration {
    border: none !important; 
}


.feature-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.feature-header{
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: baseline; 

}
.feature-header h3{

  margin: 0;
  padding: 0;

}
.feature-card .icon-feature{
  width: 3rem;
  height: 3rem;
  margin: 0;
}
/* Compare Section */
.compare-content {
  flex-direction: column;
  align-items: center;
}

.compare-image {
  max-width: 70%;
  max-height: none;
}

.compare-right {
  flex-direction: column;
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  text-align: center;
}

.compare-column {
  width: 100%;
}

.compare-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.compare-item h3 {
  white-space: normal;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  margin: 0;
}

.compare-item p {
  margin: 0;
  margin-top: 0;
  width: 100%;
  text-align: left;
  padding-left: 2rem;
}

/* Table Section */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(85, 191, 214, 1) rgba(20, 31, 55, 1);
}

.table-container::-webkit-scrollbar {
  height: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: rgba(20, 31, 55, 1);
}

.table-container::-webkit-scrollbar-thumb {
  background: rgba(85, 191, 214, 1);
  border-radius: 4px;
}

.table {
  min-width: 600px;
}

.table-header {
  min-width: 600px;
  display: flex;
  border-bottom: 1px solid rgba(74, 86, 119, 1);
  height: 5.5rem;
}

.table-header-cell {
  border-right: 1px solid rgba(74, 86, 119, 1);
  border-bottom: none;
  padding-left: 1rem;
  white-space: nowrap;
  font-size: 1.125rem;
}

.table-header-cell:last-child {
  border-right: none;
}

.table-column {
  border-right: 1px solid rgba(74, 86, 119, 1);
  border-bottom: none;
  /* تم التعديل: استخدام المتغير --p (كانت 0.9375rem) */
  font-size: var(--p);
}

.table-column:last-child {
  border-right: none;
}

.table-column3 {
  border-right: none;
  border-bottom: none;
  /* تم التعديل: استخدام المتغير --p (كانت 0.9375rem) */
  font-size: var(--p);
}

/* FAQ Section */
.faq-container {
  width: 90%;
  max-width: 100%;
}

.faq-box {
  width: 100%;
  height: auto;
  min-height: 479px;
}
}
.footer {

width: 95%;
/* تم التعديل: استخدام المتغير --p (كانت 1rem) */
font-size: var(--p);
height: auto;
}

/* ============================================
  RESPONSIVE DESIGN - MOBILE (max-width: 768px)
  ============================================ */

@media (max-width: 768px) {
/* Body */
body {
  max-width: 100%;
  max-height: none;
}

/* Navbar */
.navbar {
  height: auto;
  padding: 0.75rem 0;
}

.container-nav {
  width: 95%;
  flex-wrap: wrap;
}

.menu-label {
  display: block;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2000;
  /* تم التعديل: استخدام المتغير --h1 (كانت 2rem) */
  font-size: var(--h1);
  color: white;
  background: rgba(12, 18, 32, 0.8);
  padding: 0.5rem;
  border-radius: 0.25rem;
}

.nav-right {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(12, 18, 32, 0.95);
  backdrop-filter: blur(10px);
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#menu-btn:checked ~ .nav-right {
  display: flex;
}

.nav-links {
  flex-direction: column;
  width: 100%;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  /* تم التعديل: استخدام المتغير --p (كانت 1.125rem) */
  font-size: var(--p);
  padding: 0.5rem 0;
  display: block;
  width: 100%;
}

.demo-btn {
  text-align: center;
  padding: 0.875rem 1.25rem;
}

.logo-group {
  flex: 1;
}

.logo-text h1 {
  font-size: 1.75rem;
}

.logo-text p {

  font-size: 0.75rem;
}

.logo-icon {
  width: 2rem;
  height: 2.5rem;
}

/* Hero Section */
.hero-section {
  padding: 1.5rem 0;
  padding-top: 3rem;

}

.hero-container {
  width: 95%;
  gap: 1.5rem;
}

.small-title {
  /* تم التعديل: استخدام المتغير --p (كانت 1rem) */
  font-size: var(--p);
  margin-bottom: 0.75rem;
}

.big-title {
  /* تم التعديل: استخدام المتغير --h1 (كانت 2rem) */
  font-size: var(--h1);
  line-height: 120%;
  margin-bottom: 1rem;
}

.hero-paragraph {
  /* تم التعديل: استخدام المتغير --p (كانت 1.125rem) */
  font-size: var(--p);
  margin-bottom: 1.5rem;
}

.hero-buttons {
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  width: auto;
  gap: 1rem;
}

.btn {
  width: auto;
  min-width: 12.5rem;
  text-align: center;
  padding: 0.875rem 1.25rem;
  /* تم التعديل: استخدام المتغير --p (كانت 1rem) */
  font-size: var(--p);
}

.hero-image img {
  height: auto;
  max-height: 20rem;
}

/* Why Section */
.why-section {
  padding: 1.5rem 0;
}

.why-title {
  /* تم التعديل: استخدام المتغير --h1 (كانت 2rem) */
  font-size: var(--h1);
  margin-bottom: 2rem;
}

.card {
  width: 100%;
  padding: 1rem;
  height: auto;
  min-height: auto;
}

.card-icon{
  width: 2.8rem;
  height: 2.8rem;
}

.card-title {
  white-space: normal;
}

.card-paragraph {
  /* تم التعديل: استخدام المتغير --p (كانت 1.125rem) */
  font-size: var(--p);
}

/* Features Section */
.features-section {
  padding: 1.5rem 0;
}

.title-features {
  /* تم التعديل: استخدام المتغير --h1 (كانت 2rem) */
  font-size: var(--h1);
  margin-bottom: 2rem;
}

.grid-features {
  grid-template-columns: 1fr;
}

.grid-features {
  grid-template-columns: 1fr;
}

/* 1. تطبيق الحد السفلي على كل عنصر في الشبكة بقوة (1 إلى 9) */
.grid-features > div {
  /* هذه القاعدة تضمن أن الحد السفلي يظهر على جميع البطاقات */
  border-bottom: 0.03125rem solid rgba(255, 255, 255, 0.25) !important; 
  border-right: none !important; /* إلغاء الحدود العمودية */
  padding: 1.25rem 1rem;
}

/* 2. إلغاء أي تأثير لقواعد nth-child قديمة كانت تزيل الحد السفلي */
.grid-features > div:nth-child(2n),
.grid-features > div:nth-child(3n) {
  border-bottom: 0.03125rem solid rgba(255, 255, 255, 0.25) !important;
  border-right: none !important; 
}

/* 3. 🎯 القاعدة الحاسمة: إزالة الحد السفلي من البطاقة رقم 8 وما يليها فقط */
/* هذا يستهدف العناصر (8 و 9) ويزيل الحد السفلي منها، تاركًا الحد تحت (7) كما هو. */
.grid-features > div:nth-child(n + 8) { 
  border-bottom: none !important; 
}

/* 4. معالجة عنصر الصورة (البطاقة رقم 9) للتأكد */
.grid-features > .illustration {
  border: none !important; /* يزيل جميع الحدود */
  padding: 0; 
}
/* حل الطوارئ: استهداف البطاقة رقم 7 مباشرة بالـ nth-child */
.grid-features > div:nth-child(7) {
  border-bottom: 0.03125rem solid rgba(255, 255, 255, 0.25) !important;
}
.feature-card .icon-feature {
  width: 3rem;
  height: 3rem;
}

.feature-card h3 {
  /* تم التعديل: استخدام المتغير --h2 (كانت 1.75rem) */
  font-size: var(--h2);
}

.feature-card p {
  /* تم التعديل: استخدام المتغير --p (كانت 1.125rem) */
  font-size: var(--p);
}

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

.illustration img {
  width: 70%;   /* صغّرت الصورة */
  max-width: 600px; /* عشان متكبرش عن كده */
  height: auto;
}

/* Compare Section */
.compare-section {
  padding: 1.5rem 0;
}

.compare-container {
  width: 95%;
}

.compare-small-title {
  max-width: 100%;
  text-align: center;
}

.compare-big-title {
  font-size: 2rem;
  max-width: 100%;
}

.compare-content {
  gap: 1.5rem;
}

.compare-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.compare-image {
  max-width: 70%;      /* صغّر الصورة */
  margin: 0 auto;      /* خليها في النص */
}

.compare-image img {
  width: 100%;
  height: auto;
}
.compare-item h3 {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  margin: 0;
}

.compare-item p {
  /* تم التعديل: استخدام المتغير --p (كانت 1.125rem) */
  font-size: var(--p);
  margin: 0;
  margin-top: 0;
  width: 100%;
}

.compare-item .check {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.btn-primary {
  width: auto;
  min-width: 12.5rem;
  padding: 0.875rem 1.5625rem;
  /* تم التعديل: استخدام المتغير --p (كانت 1rem) */
  font-size: var(--p);
}

/* Table Section */
.table-section {
  padding: 1.5rem 0;
}

.table-container {
  width: 95%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(85, 191, 214, 1) rgba(20, 31, 55, 1);
}

.table-container::-webkit-scrollbar {
  height: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: rgba(20, 31, 55, 1);
}

.table-container::-webkit-scrollbar-thumb {
  background: rgba(85, 191, 214, 1);
  border-radius: 4px;
}

.table-title {
  /* تم التعديل: استخدام المتغير --h1 (كانت 2rem) */
  font-size: var(--h1);
  max-width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

.table {
  max-height: none;
  min-width: 600px;
  width: 100%;
}

.table-header {
  min-width: 600px;
  display: flex;
  border-bottom: 1px solid rgba(74, 86, 119, 1);
  height: 5.5rem;

}

.table-body {
  min-width: 600px;
  display: flex;
  flex: 1;
  
}

.table-header-cell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 1rem;
  /* تم التعديل: استخدام المتغير --p (كانت 1rem) */
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  border-right: 1px solid rgba(74, 86, 119, 1);
  white-space: nowrap;
}

.table-header-cell:last-child {
  border-right: none;
}

.table-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 1rem;
  gap: 0.75rem;
  color: #fff;
  /* تم التعديل: استخدام المتغير --p (كانت 0.875rem) */
  font-size: var(--p);
  border-right: 1px solid rgba(74, 86, 119, 1);
  min-width: 0;
}

.table-column:last-child {
  border-right: none;
}

.table-column3 {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 1rem;
  gap: 0.75rem;
  color: rgba(85, 191, 214, 1);
  /* تم التعديل: استخدام المتغير --p (كانت 0.875rem) */
  font-size: var(--p);
  border-right: none;
  min-width: 0;
}

/* FAQ Section */
.faq-section {
  padding: 1.5rem 0;

}

.faq-container {
  width: 95%;

}

.faq-title {
  /* تم التعديل: استخدام المتغير --h1 (كانت 2rem) */
  font-size: var(--h1);
  margin-bottom: 1.5rem;
}

.faq-box {
  height: auto;
  min-height: auto;
  padding: 1.25rem;
  gap: 1.5rem;
  justify-content: flex-start;
}

/* Footer */
.footer {
  width: 95%;
  /* تم التعديل: استخدام المتغير --p (كانت 1rem) */
  font-size: var(--p);
  height: auto;
  /* لا تلمسي الـ padding-bottom هنا */
}
}

/* ============================================
  RESPONSIVE DESIGN - SMALL MOBILE (max-width: 480px)
  ============================================ */
@media (max-width: 480px) {

/* Navbar */
.navbar {
  padding: 0.5rem 0;
}

.container-nav {
  width: 95%;
}

.menu-label {
  right: 0.5rem;
  /* تم التعديل: استخدام المتغير --h1 (كانت 1.75rem) */
  font-size: var(--h1);
  padding: 0.4rem;
}

#menu-btn:checked ~ .nav-right {
  display: flex; 
}

.logo-text h1 {
 
  font-size: 1.25rem;
}

.logo-text p {
  
  font-size: 0.25rem;
}

.logo-icon {
  width: 1.75rem;
  height: 2.25rem;
}

.logo-icon {
  width: 2rem;
  height: 2.5rem;
}

.logo-text h1 {
 
  font-size: 1.5rem;
}

.logo-text p {
 
  font-size: 0.75rem;
}

/* Hero Section */
.big-title {

  font-size: 1.75rem;
}

.hero-paragraph {
 
  font-size: 1rem;
}

.btn {
  width: auto;
  min-width: 10rem;
  height: 3rem;
  font-size: 0.9375rem;
}

.btn-primary {
  width: auto;
  min-width: 10rem;
}

/* Why Section */
.why-title {
  /* تم التعديل: استخدام المتغير --h1 (كانت 1.75rem) */
  font-size: var(--h1);
}

/* .card-title {
  font-size: 1.5rem;
} */

.card-paragraph {
  /* تم التعديل: استخدام المتغير --p (كانت 1rem) */
  font-size: var(--p);
}
.card-header {
  gap: 0.5rem;
}
.card-title{
  white-space: nowrap;
}
.card-icon{
  width: 2rem;
  height: 2rem;
}


/* Features Section */
.title-features {
  /* تم التعديل: استخدام المتغير --h1 (كانت 1.75rem) */
  font-size: var(--h1);
}

.feature-card h3 {
  /* تم التعديل: استخدام المتغير --h2 (كانت 1.5rem) */
  font-size: var(--h2);
}

.feature-card p {
  /* تم التعديل: استخدام المتغير --p (كانت 1rem) */
  font-size: var(--p);
}
.feature-card .icon-feature {
  width: 2rem;
  height: 2rem;
 
}
.illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.illustration img {
  width: 70%;   /* صغّرت الصورة */
  max-width: 300px; /* عشان متكبرش عن كده */
  height: auto;
}

/* Compare Section */
.compare-big-title {
  /* تم التعديل: استخدام المتغير --h1 (كانت 1.75rem) */
  font-size: var(--h1);
}

.compare-item h3 {
  
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compare-item p {
  /* تم التعديل: استخدام المتغير --p (كانت 1rem) */
  font-size: var(--p);
  margin-top: 0;
}
.compare-image {
  max-width: 80%;      /* صغّر الصورة */
  margin: 0 auto;      /* خليها في النص */
}

.compare-image img {
  width: 100%;
  height: auto;
}

/* Table Section */
.table-title {
  /* تم التعديل: استخدام المتغير --h1 (كانت 1.75rem) */
  font-size: var(--h1);
}

.table-header-cell {
  /* تم التعديل: استخدام المتغير --p (كانت 0.875rem) */
  font-size: 0.875rem;
  padding-left: 1rem;
  white-space: nowrap;
}

.table-column {
  /* تم التعديل: استخدام المتغير --p (كانت 0.75rem) */
  font-size: var(--p);
  padding: 1rem;
}

.table-column3 {
  /* تم التعديل: استخدام المتغير --p (كانت 0.75rem) */
  font-size: var(--p);
  padding: 1rem;
  color: rgba(85, 191, 214, 1);
}

.table {
  min-width: 600px;
}

.table-header {
  min-width: 600px;
}

.table-body {
  min-width: 600px;
}

/* FAQ Section */
.faq-title {
  /* تم التعديل: استخدام المتغير --h1 (كانت 1.75rem) */
  font-size: var(--h1);
}

.faq-item h3 {
  /* تم التعديل: استخدام المتغير --h2 (كانت 1.5rem) */
  font-size: var(--h2);
}

.faq-item p {
  /* تم التعديل: استخدام المتغير --p (كانت 1rem) */
  font-size: var(--p);
}

/* Footer */
.footer {
  width: 95%;
  /* تم التعديل: استخدام المتغير --p (كانت 1rem) */
  font-size: var(--p);
  height: auto;
  
}
}
/* ############################################ */
@media (max-width: 1044px) and (min-width: 1024px) {
  .card-title {
    margin-top: 0;
  }
}






/* الألوان والخطوط الأساسية (يفضل أن تكون في :root أو ملف منفصل) */
:root {
  --primary-bg: #0C1220;
  --secondary-bg: #141F37;
  --input-bg: #0D162B;
  --border-color: #2B344B;
  --text-color: #FFFFFF;
  --label-color: #D6E0FF;
  --accent-blue: #55BFD6;
  --error-red: #D65555; 
  --modal-radius: 0.5rem;
  --font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--primary-bg);
  color: var(--text-color);
  font-family: var(--font-family);
  margin: 0;
}

/* -------------------- Modal Styles -------------------- */

/* الطبقة الخلفية (الشفافة التي تغطي الصفحة) */


.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* خلفية شفافة وداكنة */
  display: flex; /* لعرض الـ modal في المنتصف */
  align-items: center; /* توسيط رأسي */
  justify-content: center; /* توسيط أفقي */
  z-index: 1000; /* ليكون فوق كل شيء آخر */
  /* display: none; /* ستقوم الـ JS بالتحكم في هذا */
}

/* مربع الـ Modal نفسه */
.modal {
  background-color: var(--secondary-bg); /* لون الخلفية الداخلي */
  border: 1px solid var(--border-color); /* إطار حول الـ Modal */
  border-radius: 0.5rem; /* زوايا دائرية */
  width: 90%; /* عرض Modal على الشاشات الصغيرة */
  max-width: 700px; /* أقصى عرض للـ Modal */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 1.5rem; /* مسافة داخلية */
  box-sizing: border-box; /* لضمان أن الـ padding لا يزيد العرض الكلي */
}

/* Header في الـ Modal (العنوان وزر الإغلاق) */
.modal header.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem; /* مسافة تحت الهيدر */
  border-bottom: 1px solid var(--border-color); /* خط فاصل */
  margin-bottom: 1.5rem; /* مسافة تحت الخط */
}

.modal header h3 {
  margin: 0; /* إزالة الهامش الافتراضي */
  font-size: 1rem; /* حجم الخط لعنوان الـ Modal */
  font-weight: 700;
  color: var(--text-color);
}

/* زر الإغلاق X */
.modal header button.btn {
  background: none;
  border: none;
  color: var(--label-color); /* لون رمز الإغلاق */
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}
.modal header button.btn:hover {
  color: var(--text-color);
}

/* -------------------- Form Styles -------------------- */

/* الأقسام ذات العمودين */
.twocol {
  display: flex;
  gap: 1.5rem; /* المسافة بين الأعمدة */
  margin-bottom: 1rem; /* المسافة بين الصفوف */
}
.twocol > div {
  flex: 1; /* لجعل الأعمدة تتوزع بالتساوي */
}

/* Labels */
label {
  display: block; /* لجعل الـ label يأخذ سطراً كاملاً */
  margin-bottom: 0.5rem;
  color: var(--label-color);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Input fields و Select و Textarea */
input, select, textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);  /* لون خلفية المدخلات */
  color: var(--text-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  box-sizing: border-box; /* لضمان أن الـ padding لا يزيد العرض */
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent-blue); /* لون الإطار عند التركيز */
  outline: none;
}

/* Textarea */
textarea {
  resize: vertical; /* للسماح بتغيير الحجم عمودياً فقط */
  min-height: 80px;
  margin-top: 0.5rem; /* المسافة بين الـ label والـ textarea */
}

/* المسافة للـ textarea لوحدها */
form > div:last-of-type:not(.twocol) {
  margin-bottom: 1.5rem;
}

/* زر الإرسال */
.modal-actions {
  display: flex;
  justify-content: flex-start; /* محاذاة لليسار */
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn--primary {
  background-color: var(--accent-blue);
  color: var(--primary-bg);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}
.btn--primary:hover {
  background-color: #6edceb; /* لون أزرق أفتح قليلا عند التمرير */
}

/* رسالة تأكيد النموذج */
#formMsg {
  font-size: 0.9rem;
  color: var(--label-color);
}

input::placeholder, textarea::placeholder {
  font-size: 0.9rem; /* أصغر قليلاً من حجم النص العادي */
  color: #8C99B0; /* لون أغمق قليلاً للـ Placeholder */
}
/* التركيز على الإدخالات (عند الضغط عليها) */
input:focus, select:focus, textarea:focus {
  /* 👈 تم تغيير لون الحدود عند التركيز إلى الأبيض */
  border-color: var(--text-color); 
  outline: none;
}
/* -------------------- Responsive (Mobile) -------------------- */
@media (max-width: 768px) {
 
  .modal header h3 {
      font-size: 1.5rem;
  }
  .modal header.wrap {
      padding-bottom: 1rem;
      margin-bottom: 1rem;
  }
  .modal-backdrop {
    /* لجعل النموذج يبدأ من الأعلى بدلاً من المنتصف في الجوال */
    align-items: flex-start; 
    padding-top: 20px; 
    overflow-y: auto;
    /* لإضافة مسافة من أعلى الشاشة */
}

.modal {
    padding: 1rem;
    width: 95%; 
    /* 👈 إضافة هامش سفلي للتأكد من أن الزر يظهر بالكامل */
    margin-bottom: 20px; 
    overflow-y: auto;
}
  .twocol {
      flex-direction: column; /* جعل الأعمدة فوق بعضها في الموبايل */
      gap: 0.5rem; /* تقليل المسافة بين الحقول */
      margin-bottom: 0.5rem;
  }
  label {
      margin-bottom: 0.3rem;
  }
  input, select, textarea {
      padding: 0.6rem 0.8rem;
      font-size: 0.9rem;
  }
  .btn--primary {
    padding: 0.2rem 0.7rem; 
    font-size: 0.9rem;
  }
  .modal-actions {
      margin-top: 1rem;
      justify-content: center; /* توسيط زر الإرسال في الموبايل */
  }
  form > div:last-of-type:not(.twocol) {
      margin-bottom: 1rem;
  }
}

/* -------------------- Toast Notification -------------------- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 400px;
  word-wrap: break-word;
}

.toast-show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background-color: #10b981; /* Green */
}

.toast-error {
  background-color: #ef4444; /* Red */
}

@media (max-width: 768px) {
  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
    font-size: 0.9rem;
    padding: 0.875rem 1.25rem;
  }
}/* 1. الحالة الافتراضية (مخفية) */
#demoModal {
  /* أساسيات التوسيط في الشاشة */
  display: none; /* يتم التحكم به بواسطة JavaScript عند الإغلاق */
  opacity: 0; /* يبدأ شفافًا */
  transition: opacity 0.3s ease-out, transform 0.3s ease-out; /* تطبيق حركة سلسة */
  
  /* ضبط أولي للتحجيم لإنشاء تأثير الظهور */
  transform: scale(0.95);
  
  /* تأكد من أن الـ modal-backdrop يملأ الشاشة */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000; /* تأكد أنه يظهر فوق كل شيء */
  background-color: rgba(0, 0, 0, 0.5); /* خلفية داكنة */
}

/* 2. حالة الظهور (تُضاف عند الفتح) */
#demoModal.is-visible {
  opacity: 1; /* يصبح مرئيًا بالكامل */
  transform: scale(1); /* يعود لحجمه الطبيعي */
  display: flex; /* يُظهر الـ Modal كـ flex */
}

/* 3. تطبيق الحركة على مربع الـ Modal الداخلي لجعل الحركة أفضل */
#demoModal .modal {
  transition: transform 0.3s ease-out; 
  /* يمكن إضافة حركة مختلفة على الـ modal الداخلي إذا أردت */
}