/* =========================================================
   Glesta — shared stylesheet
   Mobile-first · logical properties · LTR + RTL
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a1226;
  --bg-deep: #060b1a;
  --surface: rgba(18, 29, 56, 0.72);
  --surface-solid: #121d38;
  --border: #22335a;
  --primary: #2a7de1;
  --primary-glow: #4a9eff;
  --cyan: #00d4ff;
  --purple: #7c3aed;
  --text: #eef2f6;
  --muted: #9fb0c8;
  --success: #34d399;
  --danger: #f87171;
  --gradient: linear-gradient(135deg, #2a7de1, #7c3aed, #00d4ff);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  --nav-h: 68px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-arabic: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-block-start: calc(var(--nav-h) + 1rem); }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -10%, #16275a 0%, rgba(10, 18, 38, 0) 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-block-size: 100vh;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-inline-size: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; inset-block-start: -100px; z-index: 3000;
  background: var(--primary); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { inset-block-start: 1rem; }

/* ---------- Icons (inline SVG injected by main.js) ---------- */
.ico { inline-size: 1em; block-size: 1em; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Background layer ---------- */
.bg-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.32; }
.blob-1 { inline-size: 420px; block-size: 420px; background: #2a7de1; inset-block-start: -120px; inset-inline-start: -80px; animation: drift1 28s ease-in-out infinite alternate; }
.blob-2 { inline-size: 380px; block-size: 380px; background: #7c3aed; inset-block-start: 40%; inset-inline-end: -140px; opacity: 0.26; animation: drift2 34s ease-in-out infinite alternate; }
.blob-3 { inline-size: 320px; block-size: 320px; background: #00b4d8; inset-block-end: -140px; inset-inline-start: 30%; opacity: 0.2; animation: drift3 40s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(160px, 120px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-180px, -120px) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-140px, -160px) scale(1.2); } }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(120, 160, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(120, 160, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.scroll-progress {
  position: fixed; inset-block-start: 0; inset-inline-start: 0; z-index: 1100;
  block-size: 3px; inline-size: 100%;
  background: var(--gradient); transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- Layout ---------- */
.container { inline-size: 100%; max-inline-size: 1240px; margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: 4rem; }
.section-alt {
  background: linear-gradient(180deg, rgba(6, 11, 26, 0.55), rgba(14, 24, 50, 0.55));
  border-block: 1px solid rgba(34, 51, 90, 0.5);
}
.section-head { margin-block-end: 2.25rem; max-inline-size: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-label {
  display: inline-block; margin-block-end: 0.9rem; padding: 0.3rem 0.9rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cyan); background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2); border-radius: 999px;
}
.section-title { font-size: clamp(1.75rem, 5vw, 2.75rem); margin-block-end: 0.9rem; }
.section-subtitle { font-size: 1.05rem; color: var(--muted); max-inline-size: 650px; }
.section-head.center .section-subtitle { margin-inline: auto; }
.text-gradient, .section-title span, .page-hero h1 span, .hero-title span {
  background: var(--gradient); background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradshift 6s ease infinite;
}
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.7rem; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 1rem; line-height: 1.2; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn-primary {
  position: relative; overflow: hidden; color: #fff;
  background: var(--gradient); background-size: 200% 200%; animation: gradshift 8s ease infinite;
  box-shadow: 0 8px 20px -6px rgba(42, 125, 225, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 30px -8px rgba(42, 125, 225, 0.6); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); background: rgba(42, 125, 225, 0.1); transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
.btn .ico { transition: transform 0.25s; }
.btn:hover [data-icon="arrow"] .ico { transform: translateX(4px); }
.cta-row { display: flex; flex-direction: column; gap: 0.85rem; }
@keyframes gradshift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.92rem; font-weight: 600; color: var(--cyan); transition: gap 0.2s; }
.link-arrow:hover { gap: 0.7rem; }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 1000;
  block-size: var(--nav-h); display: flex; align-items: center;
  background: rgba(10, 18, 38, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-block-end: 1px solid rgba(34, 51, 90, 0.6); transition: background 0.3s;
}
.navbar.scrolled { background: rgba(6, 11, 26, 0.92); border-block-end-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.logo [data-icon] { color: var(--cyan); font-size: 1.3rem; }
.nav-links { display: none; align-items: center; gap: 1.75rem; }
.nav-links a { position: relative; font-size: 0.95rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a::after {
  content: ''; position: absolute; inset-block-end: -6px; inset-inline-start: 0;
  block-size: 2px; inline-size: 0; background: var(--gradient); transition: inline-size 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { inline-size: 100%; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-actions .btn, .nav-actions .lang-switch { display: none; }
.mobile-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  inline-size: 44px; block-size: 44px; font-size: 1.5rem; color: #fff;
  background: transparent; border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
}

/* Language switcher */
.lang-switch { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.25rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(6, 11, 26, 0.5); }
.lang-switch button {
  min-inline-size: 40px; padding: 0.35rem 0.6rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-switch button:hover { color: #fff; background: rgba(42, 125, 225, 0.15); }
.lang-switch button[aria-current="true"] { color: #fff; background: var(--primary); }
.lang-switch button[data-lang="ar"], .lang-switch button[data-lang="ckb"] { font-family: var(--font-arabic); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; gap: 2rem;
  padding: calc(var(--nav-h) + 1rem) 1.5rem 2rem; overflow-y: auto;
  background: rgba(6, 11, 26, 0.98); backdrop-filter: blur(12px);
  visibility: hidden; opacity: 0; transition: opacity 0.25s, visibility 0.25s;
}
.mobile-menu.open { visibility: visible; opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu nav a { padding-block: 0.7rem; font-size: 1.35rem; font-weight: 500; border-block-end: 1px solid rgba(34, 51, 90, 0.5); }
.mobile-menu nav a.active { color: var(--cyan); }
.mobile-close {
  position: absolute; inset-block-start: 12px; inset-inline-end: 1.25rem;
  inline-size: 44px; block-size: 44px; font-size: 1.5rem; color: #fff;
  background: transparent; border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-menu .lang-switch { align-self: flex-start; }
body.menu-open { overflow: hidden; }

/* ---------- Home hero slider ---------- */
.hero { position: relative; min-block-size: 100svh; display: flex; align-items: center; overflow: hidden; padding-block: calc(var(--nav-h) + 2rem) 5rem; }
.hero-net { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; z-index: 1; }
.hero-slider { position: relative; z-index: 2; inline-size: 100%; display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0.9s ease; }
.slide.active, html:not(.js) .slide:first-child { opacity: 1; visibility: visible; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 18, 38, 0.92) 0%, rgba(10, 18, 38, 0.55) 55%, rgba(10, 18, 38, 0.15) 100%);
}
.hero-glow { position: absolute; z-index: 0; inline-size: 600px; block-size: 600px; border-radius: 50%; filter: blur(120px); opacity: 0.35; inset-inline-end: -150px; inset-block-start: 10%; background: #2a7de1; transition: background 1s; }
.hero[data-active="1"] .hero-glow { background: #7c3aed; }
.hero[data-active="2"] .hero-glow { background: #00b4d8; }
.hero[data-active="3"] .hero-glow { background: #4f46e5; }
.hero-text { max-inline-size: 720px; }
.hero-title { font-size: clamp(2.1rem, 8vw, 4.3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-block-end: 1.25rem; }
.hero-text p { font-size: 1.1rem; color: var(--muted); max-inline-size: 560px; margin-block-end: 2rem; }
.js .slide .hero-text > * { opacity: 0; transform: translateY(24px); }
.slide.active .hero-text > * { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.slide.active .hero-text > :nth-child(2) { animation-delay: 0.15s; }
.slide.active .hero-text > :nth-child(3) { animation-delay: 0.3s; }
.slide.active .hero-text > :nth-child(4) { animation-delay: 0.45s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.slider-controls { position: absolute; z-index: 3; inset-block-end: 2rem; inset-inline-start: 50%; transform: translateX(-50%); display: flex; gap: 0.6rem; }
.slider-dot { position: relative; overflow: hidden; inline-size: 36px; block-size: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, 0.2); cursor: pointer; transition: inline-size 0.3s; }
.slider-dot::before { content: ''; position: absolute; inset-inline: -8px; inset-block: -14px; }
.slider-dot::after { content: ''; position: absolute; inset: 0; background: var(--cyan); transform: scaleX(0); transform-origin: 0 50%; }
.slider-dot.active { inline-size: 56px; }
.slider-dot.active::after { animation: dotfill var(--slide-ms, 6000ms) linear forwards; }
.hero.paused .slider-dot.active::after { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding-block: calc(var(--nav-h) + 3.5rem) 3rem; overflow: hidden; }
.page-hero::after {
  content: ''; position: absolute; z-index: -1; inline-size: 520px; block-size: 520px; border-radius: 50%;
  filter: blur(120px); opacity: 0.28; background: var(--purple); inset-inline-end: -160px; inset-block-start: -120px;
}
.page-hero h1 { font-size: clamp(2rem, 7vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; margin-block-end: 1rem; max-inline-size: 820px; }
.page-hero p { font-size: 1.1rem; color: var(--muted); max-inline-size: 640px; margin-block-end: 1.75rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-end: 1rem; font-size: 0.88rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [data-icon] { opacity: 0.6; }

/* ---------- Trust strip ---------- */
.trust { padding-block: 2rem; border-block: 1px solid rgba(34, 51, 90, 0.5); background: rgba(6, 11, 26, 0.45); }
.trust-label { text-align: center; font-size: 0.9rem; color: var(--muted); margin-block-end: 1rem; }
.trust-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.5rem; }
.trust-list li { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; color: #cbd6e6; font-size: 0.95rem; }
.trust-list [data-icon] { color: var(--cyan); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card {
  position: relative; overflow: hidden; padding: 1.75rem 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1), border-color 0.3s, box-shadow 0.3s;
}
.card::before { content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; block-size: 3px; background: var(--gradient); opacity: 0; transition: opacity 0.3s; }
.card:hover { transform: translateY(-5px); border-color: rgba(42, 125, 225, 0.5); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.2rem; margin-block-end: 0.6rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card p + .link-arrow, .card p + .tags { margin-block-start: 1.1rem; }
.card-icon, .info-icon { display: flex; align-items: center; justify-content: center; }
.card-icon {
  inline-size: 54px; block-size: 54px; margin-block-end: 1.25rem; border-radius: 14px; font-size: 1.5rem;
  color: var(--cyan); background: rgba(42, 125, 225, 0.12); border: 1px solid rgba(0, 212, 255, 0.15);
}
.card-spot::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 212, 255, 0.13), transparent 45%);
}
.card-spot:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  display: inline-block; padding: 0.3rem 0.8rem; font-size: 0.82rem; font-weight: 500;
  color: #cfe0f5; background: rgba(42, 125, 225, 0.12); border: 1px solid rgba(74, 158, 255, 0.25); border-radius: 999px;
}
.tags-lg .tag { padding: 0.55rem 1.1rem; font-size: 0.95rem; background: var(--surface); border-color: var(--border); }

.check-list { display: grid; gap: 0.55rem; margin-block-start: 1rem; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; color: #cbd6e6; font-size: 0.93rem; }
.check-list [data-icon] { color: var(--cyan); margin-block-start: 0.28rem; }

/* ---------- Process ---------- */
.process { display: grid; gap: 1rem; counter-reset: step; }
.process-step { position: relative; counter-increment: step; padding: 1.25rem 1.25rem 1.25rem 0; padding-inline-start: 4.25rem; }
.process-step::before {
  content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: 1rem;
  inline-size: 48px; block-size: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--cyan);
  background: var(--surface-solid); border: 2px solid var(--primary);
}
.process-step h3 { font-size: 1.1rem; margin-block-end: 0.3rem; }
.process-step p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat { padding: 1.4rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: transform 0.3s, border-color 0.3s; }
.stat:hover { transform: translateY(-4px); border-color: var(--primary); }
.stat-number {
  display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 6vw, 2.4rem); font-weight: 700; line-height: 1; margin-block-end: 0.4rem;
  background: var(--gradient); background-size: 200% 200%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradshift 6s ease infinite; unicode-bidi: plaintext;
}
.stat-label { font-size: 0.9rem; color: var(--muted); }

/* ---------- Support teaser / box ---------- */
.support-box {
  display: grid; gap: 2rem; padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #0f172a, #1e293b); border: 1px solid var(--border); border-radius: var(--radius);
}
.support-box h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-block-end: 0.9rem; }
.support-box > div > p { color: var(--muted); margin-block-end: 1.5rem; }
.mini-list { display: grid; gap: 1rem; }
.mini-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border-radius: var(--radius-sm); background: rgba(6, 11, 26, 0.45); border: 1px solid rgba(34, 51, 90, 0.7); }
.mini-item .card-icon { inline-size: 44px; block-size: 44px; font-size: 1.2rem; margin: 0; border-radius: 12px; }
.mini-item h3 { font-size: 1.02rem; margin-block-end: 0.2rem; }
.mini-item p { font-size: 0.9rem; color: var(--muted); }

/* ---------- SLA banner ---------- */
.sla { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border-radius: var(--radius); background: var(--border); border: 1px solid var(--border); }
.sla-item { padding: 1.5rem 1rem; text-align: center; background: linear-gradient(180deg, #111c36, #0c152b); }
.sla-item .stat-number { font-size: clamp(1.4rem, 5vw, 2rem); }

/* ---------- Plans ---------- */
.plan { display: flex; flex-direction: column; }
.plan .check-list { flex: 1; margin-block-end: 1.5rem; }
.plan-featured { border-color: rgba(0, 212, 255, 0.5); background: linear-gradient(160deg, rgba(42, 125, 225, 0.18), rgba(18, 29, 56, 0.8)); }
.plan-badge { align-self: flex-start; margin-block-end: 0.8rem; padding: 0.2rem 0.7rem; font-size: 0.75rem; font-weight: 600; color: #0a1226; background: var(--cyan); border-radius: 999px; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.avatar {
  inline-size: 84px; block-size: 84px; margin: 0 auto 1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: #fff;
  background: var(--gradient); box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.12);
}
.team-card h3 { font-size: 1.08rem; margin-block-end: 0.2rem; }
.team-card p { font-size: 0.9rem; }

/* ---------- Case studies ---------- */
.case { padding: 0; display: flex; flex-direction: column; }
.case-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(255, 255, 255, 0.85); }
.case-media::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 28px 28px; }
.case-media.m1 { background: linear-gradient(135deg, #0e7490, #1e3a8a); }
.case-media.m2 { background: linear-gradient(135deg, #5b21b6, #1e1b4b); }
.case-media.m3 { background: linear-gradient(135deg, #1d4ed8, #0f172a); }
.case-media.m4 { background: linear-gradient(135deg, #0369a1, #312e81); }
.case-media.m5 { background: linear-gradient(135deg, #6d28d9, #0c4a6e); }
.case-media.m6 { background: linear-gradient(135deg, #0f766e, #1e293b); }
.case-media [data-icon] { position: relative; }
.case-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.case-body .tag { align-self: flex-start; }
.case-body h3 { margin: 0; }
.case-metric { margin-block-start: auto; padding-block-start: 1rem; border-block-start: 1px solid var(--border); display: flex; align-items: baseline; gap: 0.6rem; }
.case-metric .stat-number { font-size: 1.6rem; margin: 0; }
.case-metric span:last-child { font-size: 0.88rem; color: var(--muted); }

/* ---------- Final CTA ---------- */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.final-cta {
  position: relative; text-align: center; padding: 3rem 1.5rem; margin-inline: auto; max-inline-size: 1100px;
  border: 1px solid transparent; border-radius: var(--radius);
  background: radial-gradient(circle at 50% 50%, #1a2c5a, #0a1226) padding-box,
              conic-gradient(from var(--angle), #2a7de1, #7c3aed, #00d4ff, #2a7de1) border-box;
  animation: borderspin 6s linear infinite;
}
.final-cta h2 { font-size: clamp(1.75rem, 5vw, 2.75rem); margin-block-end: 0.9rem; }
.final-cta p { color: var(--muted); font-size: 1.08rem; max-inline-size: 600px; margin: 0 auto 1.75rem; }
@keyframes borderspin { to { --angle: 360deg; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2rem; }
.info-panel { display: grid; gap: 1rem; align-content: start; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.info-icon { inline-size: 44px; block-size: 44px; flex-shrink: 0; border-radius: 12px; font-size: 1.2rem; color: var(--cyan); background: rgba(42, 125, 225, 0.12); }
.info-label { display: block; font-size: 0.82rem; color: var(--muted); margin-block-end: 0.15rem; }
.info-item a:hover { color: var(--cyan); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.hours { display: grid; gap: 0.35rem; margin-block-start: 0.2rem; }
.hours li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; font-size: 0.93rem; }
.hours li span:first-child { color: #cbd6e6; }
.hours li span:last-child { color: var(--muted); white-space: nowrap; }
.info-item > div:not(.info-icon) { flex: 1; min-inline-size: 0; }
.info-item a.ltr { white-space: nowrap; }

.form { display: grid; gap: 1rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 500; color: #cbd6e6; }
.field input, .field select, .field textarea {
  inline-size: 100%; padding: 0.8rem 1rem; font-size: 1rem; text-align: start;
  background: rgba(6, 11, 26, 0.6); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-block-size: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 2.5rem; }
.field select option { background: #0a1226; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.checkbox { display: flex; gap: 0.7rem; align-items: center; font-size: 0.93rem; color: #cbd6e6; cursor: pointer; }
.checkbox input { inline-size: 18px; block-size: 18px; accent-color: var(--primary); }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-status { font-size: 0.93rem; min-block-size: 1.4em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }
.form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); border-block-start: 1px solid var(--border); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; gap: 2rem; margin-block-end: 2.5rem; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; margin-block: 0.9rem 1.25rem; max-inline-size: 320px; }
.footer h4 { font-size: 1rem; margin-block-end: 1rem; color: #fff; }
.footer-links { display: grid; gap: 0.6rem; }
.footer-links a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-contact { display: grid; gap: 0.75rem; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--muted); font-size: 0.92rem; }
.footer-contact [data-icon] { color: var(--cyan); margin-block-start: 0.25rem; }
.footer-contact a:hover { color: var(--cyan); }
.social { display: flex; gap: 0.6rem; }
.social a { inline-size: 40px; block-size: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--muted); border: 1px solid var(--border); border-radius: 12px; transition: color 0.2s, border-color 0.2s; }
.social a:hover { color: var(--cyan); border-color: var(--cyan); }
.footer-bottom { display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; padding-block-start: 1.75rem; border-block-start: 1px solid var(--border); color: var(--muted); font-size: 0.86rem; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }


/* ---------- Page-level helpers ---------- */
.section-tight { padding-block: 0 1rem; }
.section-top-0 { padding-block-start: 0; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: #cbd6e6; max-inline-size: 820px; margin-block-end: 3rem; line-height: 1.75; }
.prose p { color: var(--muted); font-size: 1.05rem; margin-block-end: 1.1rem; max-inline-size: 68ch; }
.card-title { font-size: 1.35rem; margin-block-end: 0.6rem; }
.card .tags { margin-block-start: 1.1rem; }
.card-more { margin-block-start: 1.25rem; }
.protocol-name { font-size: 1.6rem; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature-list { display: grid; gap: 0.55rem; margin-block-start: 1.1rem; }
.feature-list li { position: relative; padding-inline-start: 1.6rem; color: #cbd6e6; font-size: 0.93rem; }
.feature-list li::before {
  content: ''; position: absolute; inset-inline-start: 0.3rem; inset-block-start: 0.35em;
  inline-size: 0.4rem; block-size: 0.75rem; border: solid var(--cyan); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.plan-badge { display: none; }
.plan-featured .plan-badge { display: inline-block; }
.plan .feature-list { flex: 1; margin-block-end: 1.75rem; }
.plan .btn { align-self: stretch; }
.form-title { font-size: 1.35rem; }
.stats-2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .stats.stats-2 { grid-template-columns: repeat(2, 1fr); }
  .process.process-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) { .grid-5 { grid-template-columns: repeat(5, 1fr); } }

/* =========================================================
   Breakpoints (mobile-first)
   ========================================================= */
@media (min-width: 560px) {
  .container { padding-inline: 1.75rem; }
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sla { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .section { padding-block: 5.5rem; }
  .support-box { padding: 3rem; }
  .final-cta { padding: 4.5rem 2rem; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .process { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
  .process-step { padding: 3.75rem 0 0; text-align: center; }
  .process-step::before { inset-inline-start: 50%; inset-block-start: 0; transform: translateX(-50%); }
  .process-step::after { content: ''; position: absolute; inset-block-start: 24px; inset-inline-start: calc(50% + 32px); inline-size: calc(100% - 64px + 1.25rem); block-size: 2px; background: linear-gradient(90deg, var(--primary), transparent); opacity: 0.45; }
  .process-step:last-child::after { display: none; }
  .form { padding: 2rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: start; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .support-box { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
  .hero-text p { font-size: 1.22rem; }
  .about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3.5rem; align-items: center; }
}
@media (min-width: 1180px) {
  .nav-links { display: flex; }
  .nav-actions .btn, .nav-actions .lang-switch { display: flex; }
  .mobile-toggle { display: none; }
}

/* =========================================================
   RTL — the logical properties above already mirror the layout.
   These are the few cases logical properties can't express.
   ========================================================= */
html[dir="rtl"] body, html[dir="rtl"] .btn, html[dir="rtl"] input, html[dir="rtl"] select, html[dir="rtl"] textarea { font-family: 'Inter', 'Noto Sans Arabic', system-ui, sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] .logo { font-family: 'Space Grotesk', 'Noto Sans Arabic', sans-serif; }
html[dir="rtl"] body { line-height: 1.85; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { line-height: 1.45; }
/* Arabic script must never be letter-spaced or upper-cased */
html[dir="rtl"] *, html[dir="rtl"] *::before { letter-spacing: 0 !important; }
html[dir="rtl"] .section-label { text-transform: none; }

/* Physical transforms/gradients that logical properties don't flip */
html[dir="rtl"] .hero::before { background: linear-gradient(270deg, rgba(10, 18, 38, 0.92) 0%, rgba(10, 18, 38, 0.55) 55%, rgba(10, 18, 38, 0.15) 100%); }
html[dir="rtl"] [data-icon="arrow"] .ico, html[dir="rtl"] [data-icon="chevron"] .ico { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover [data-icon="arrow"] .ico { transform: scaleX(-1) translateX(4px); }
html[dir="rtl"] .scroll-progress, html[dir="rtl"] .slider-dot::after { transform-origin: 100% 50%; }
html[dir="rtl"] .slider-controls { transform: translateX(50%); }
html[dir="rtl"] .field select { background-position: 14px 55%, 20px 55%; }
html[dir="rtl"] .field input, html[dir="rtl"] .field textarea { text-align: right; }
html[dir="rtl"] .field input[type="email"], html[dir="rtl"] .field input[type="tel"] { direction: ltr; text-align: right; }
@media (min-width: 768px) {
  html[dir="rtl"] .process-step::before { transform: translateX(50%); }
  html[dir="rtl"] .process-step::after { background: linear-gradient(270deg, var(--primary), transparent); }
}


/* ---------- Kurdish (Sorani): Speda ---------- */
@font-face {
  font-family: 'Speda';
  src: url('../fonts/Speda.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

html[dir="rtl"] body, html[dir="rtl"] .btn,
html[dir="rtl"] input, html[dir="rtl"] select, html[dir="rtl"] textarea,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4,
html[dir="rtl"] .logo,
.lang-switch button[data-lang="ar"], .lang-switch button[data-lang="ckb"] {
  font-family: 'Inter', 'Speda', 'Noto Sans Arabic', sans-serif;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .slide .hero-text > * { opacity: 1 !important; transform: none !important; }
  .hero-net { display: none; }
}


/* ---------- Legal pages (Impressum, Datenschutz, AGB) ---------- */
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.25rem; }
.footer-legal a { color: var(--muted); transition: color 0.2s; }
.footer-legal a:hover { color: var(--cyan); }

.page-hero-legal { padding-block-end: 2rem; }
.page-hero-legal h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
.legal-notice { font-size: 0.95rem !important; margin-block-end: 0 !important; }

.legal { max-inline-size: 78ch; padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.legal h2 { font-size: 1.2rem; color: #fff; margin-block: 2rem 0.75rem; }
.legal h2:first-child, .legal .legal-updated + h2, .legal .legal-updated + .todo + h2 { margin-block-start: 0.5rem; }
.legal p, .legal li { color: #cbd6e6; line-height: 1.75; margin-block-end: 0.9rem; overflow-wrap: anywhere; }
.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { font-size: 0.9rem; color: var(--muted) !important; }

/* Placeholders to replace with your own details. Delete this rule when the texts are final. */
.legal .todo { color: #1a1a1a; background: #ffd966; border-radius: 4px; padding-inline: 0.3em; }
.legal p.todo { display: block; padding: 0.6rem 0.9rem; font-size: 0.92rem; }


/* ---------- Header logo image ---------- */
.navbar .logo img { display: block; block-size: 34px; inline-size: auto; max-inline-size: 180px; object-fit: contain; }
@media (min-width: 768px) { .navbar .logo img { block-size: 60px; } }

.footer .logo img { display: block; block-size: 60px; inline-size: auto; max-inline-size: 200px; object-fit: contain; }