@font-face {  font-family: "SomarSans";  src: url("../fonts/SomarSans-Thin.otf") format("opentype");  font-weight: 100;}
@font-face {  font-family: "SomarSans";  src: url("../fonts/SomarSans-ExtraLight.otf") format("opentype");  font-weight: 200;}
@font-face {  font-family: "SomarSans";  src: url("../fonts/SomarSans-Light.otf") format("opentype");  font-weight: 300;}
@font-face {  font-family: "SomarSans";  src: url("../fonts/SomarSans-Regular.otf") format("opentype");  font-weight: 400;}
@font-face {  font-family: "SomarSans";  src: url("../fonts/SomarSans-Medium.otf") format("opentype");  font-weight: 500;}
@font-face {  font-family: "SomarSans";  src: url("../fonts/SomarSans-SemiBold.otf") format("opentype");  font-weight: 600;}
@font-face {  font-family: "SomarSans";  src: url("../fonts/SomarSans-Bold.otf") format("opentype");  font-weight: 700;}
@font-face {  font-family: "SomarSans";  src: url("../fonts/SomarSans-ExtraBold.otf") format("opentype");  font-weight: 800;}
@font-face {  font-family: "SomarSans";  src: url("../fonts/SomarSans-Black.otf") format("opentype");  font-weight: 900;}



/* Design tokens */
:root {
  --primary: #561ce6; --primary-1: #ede7fc; --primary-2: #bda1f7; --primary-3: #8c65f1; --primary-4: #3e10a6;
  --primary-light: var(--primary-3);

  --secondary: #f34b74; --secondary-1: #ffe5eb; --secondary-2: #fca5b8; --secondary-3: #f76b91; --secondary-4: #a5274a;
  --secondary-light: var(--secondary-3);

  --bg: #1e1d26; --bg-1: #b1b1b5; --bg-2: #71717a; --bg-3: #3c3b44;
  --bg-light: #d6d4d9; --bg-light-1: #ffffff; --bg-light-2-min: #f8f7f9; --bg-light-3: #f0eff2; --bg-light-4: #b2afb8;

  --error: #e74c3c; --error-1: #f9b6ab;
  --info: #3498db;  --info-1: #a9d5f4;
  --neutral: #888;  --neutral-1: #ccc;
  --success: #2ecc71; --success-1: #a4edc4;
  --warning: #f9c952; --warning-1: #fde6b8;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1);

  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px;
  --spacing-xs: 8px; --spacing-sm: 12px; --spacing-md: 16px; --spacing-lg: 24px; --spacing-xl: 32px;

  --transition: all .3s cubic-bezier(.4,0,.2,1);
  --font-family-base: "SomarSans";
}


/* Reset */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
img, video, svg, canvas { max-inline-size:100%; block-size:auto; display:block; }

html, body {
  font-family: var(--font-family-base);
  font-size:16px; 
  line-height:1.6; color:#333; background:#fafafa;
  scroll-behavior:smooth; 
  overflow-x:hidden; direction:rtl;
}
body::-webkit-scrollbar {
  display: none; 
}

/* Type */
:is(h1,h2,h3,h4,h5,h6){ line-height:1.25; font-weight:700; }
h1{ font-size:clamp(1.75rem,5vw,2.5rem); font-weight:800; }
h2{ font-size:clamp(1.5rem,4vw,2rem); }
h3{ font-size:clamp(1.25rem,3vw,1.5rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.25rem); }
h5 { font-size: clamp(1rem, 2vw, 1.125rem); }
h6 { font-size: clamp(0.875rem, 1.5vw, 1rem); }
p{  font-size:clamp(.875rem,2.5vw,1rem); }


/* Background */
.Background-1 {
  background: url("../img/img.KarzahSlide/KS-img3.webp") center no-repeat;
}
@media (min-width:1024px) {
  .Background-1 {
    background: url("../img/img.KarzahSlide/KS-img4.webp") center no-repeat;
  }
}

.Background-0 {
  background: white;
}


/* Layout */
section{
  display:flex; align-items:center; justify-content:center; flex-direction: column;
  inline-size:100%; min-block-size:100dvh;
  padding-block:var(--spacing-lg); padding-inline:var(--spacing-md);
  padding-bottom: var(--spacing-xl);
}
.section-size{
  min-block-size:0;
  gap: var(--spacing-lg);
}
.section-gap{
  gap: var(--spacing-xl);
}


.container{
  inline-size:100%;
  max-inline-size:1200px;
  padding-inline:var(--spacing-md);
  margin-inline:auto;
}
@media (min-width:768px){ .container{ padding-inline:var(--spacing-lg);} }
@media (min-width:1024px){ .container{ padding-inline:var(--spacing-xl);} }


.flex{ display:flex; flex-direction:column; gap:var(--spacing-md); align-items:center;}
@media (min-width:1024px){
  .flex{ flex-direction:row; gap:var(--spacing-lg); }
  .direction{ flex-direction:row-reverse; } 
}

.text-col { display:flex; flex-direction:column; gap: var(--spacing-lg); }

.width-100 {width: 100%;}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* الجوال: عمودين */
  gap: var(--spacing-md); /* فجوة بين العناصر */
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr); /* الكمبيوتر: ٥ أعمدة */
    gap: var(--spacing-lg);
  }
}


.feature{
  display:flex;
  flex-direction:column;
  gap:var(--spacing-sm);
  padding:var(--spacing-md);
  border-radius:var(--radius-md);
  background:var(--bg-light-1);
  box-shadow:var(--shadow-sm);
  transition:var(--transition);
}

@media(min-width:1024px){
  .feature{ 
    flex-direction:row; 
    align-items:flex-start; 
    text-align:start; 
    gap:var(--spacing-md);
  }
}

.feature-icon{
  inline-size:48px;
  block-size:48px;
  flex:0 0 auto;
}

.feature-body{
  display:flex;
  flex-direction:column;
  gap:var(--spacing-xs);
}

.rive-box {
  flex: 0 0 auto;                  
  inline-size: 100%;              
  max-inline-size: 480px;           
  aspect-ratio: 16 / 9;           
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-light-2-min);
}

.rive-canvas {
  inline-size: 100%;
  block-size: 100%;
  display: block;
}


/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:var(--spacing-xs);
  padding:var(--spacing-md) var(--spacing-xl);
  /* padding: 15px 20px; */
  font: inherit;
  font-weight: 600;
  border:0; border-radius:var(--radius-md);
  cursor:pointer; transition:var(--transition);
  min-height:44px; min-width:44px; position:relative; overflow:hidden;
}
.btn:focus-visible{ outline:3px solid color-mix(in oklab, var(--primary) 60%, white); outline-offset:2px; }

.btn-primary{
  background:linear-gradient(135deg, var(--primary), var(--primary-light));
  color:#fff; 
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.btn-primary:active{ transform:translateY(0); }

.btn-secondary{
  background:#fff; color:var(--secondary);
  border:2px solid var(--secondary);
}
.btn-secondary:hover{ background:var(--secondary); color:#fff; transform:translateY(-1px); }

/* Motion preference */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
  .btn:hover{ transform:none !important; }
}


.link-btn {
  margin-top: auto;
  border: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  inline-size: max-content;
  inset-block-end: var(--btn-gap);
  inset-inline-start: var(--btn-gap);
  margin: 0;
  min-height: var(--btn-h);
  inline-size: max-content;
  z-index: 1;
  font-family: inherit;
}

