/* ============================================================
   FALAQ — same structure & rhythm as the reference layout,
   recolored with the Falaq brand palette.
   ============================================================ */
:root {
  /* Falaq brand */
  --ink: #0d0818;
  --ink-2: #0d0818;
  --ink-3: #0d0818;
  --cream: #f4f1ff;
  --paper: #0d0818;          /* page background — flat, uniform */
  --paper-2: #0d0818;        /* same as --paper: no section color divisions */
  --accent: #7A50EE;         /* primary violet */
  --accent-dark: #6a3fd0;
  --violet: #9c7dff;
  --coral: #E05842;          /* secondary coral/red */
  --coral-dark: #c94733;
  --text: #f4f1ff;
  --text-soft: rgba(244,241,255,0.72);
  --line: rgba(122, 80, 238, 0.25);
  --card: rgba(244,241,255,0.04);
  --font: "Dubai", "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --body-bg: #0d0818;
}

html[lang="en"] {
  --font: "Optima", "Segoe UI", "Century Gothic", system-ui, sans-serif;
}

:root[data-theme="light"] {
  --paper: #ffffff;
  --paper-2: #f3f0fc;
  --text: #191035;
  --text-soft: #55496e;
  --line: rgba(122, 80, 238, 0.18);
  --card: rgba(25, 16, 53, 0.03);
  --body-bg:
    radial-gradient(900px circle at 88% 8%, rgba(122,80,238,0.10), transparent 60%),
    radial-gradient(700px circle at 6% 92%, rgba(224,88,66,0.06), transparent 60%),
    linear-gradient(160deg, #ffffff 0%, #f6f3ff 55%, #efe8ff 100%);
}

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

html { scroll-behavior: smooth; cursor: url("../elements/star2-cursor.png") 32 32, auto; }

body {
  font-family: var(--font);
  background: var(--body-bg);
  color: var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.4s ease, color 0.4s ease;
}

::selection { background: var(--accent); color: var(--cream); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #574086; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; cursor: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: inherit; }

.container { width: min(1240px, 92%); margin-inline: auto; }

/* ---------- Buttons (rounded, smooth fills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 30px;
  font-size: 17px; font-weight: 500; line-height: 1;
  border-radius: 25px; border: none;
  color: #fff; background: var(--accent);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(124,92,246,0.35); }
.btn.coral { background: var(--coral); }
.btn.coral:hover { background: var(--coral-dark); box-shadow: 0 12px 30px rgba(224,88,66,0.35); }
.btn.ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1.5px rgba(124,92,246,0.45);
  border-radius: 20px;
}
.btn.ghost:hover { background: var(--accent); color: #fff; }

/* ---------- Section headings ---------- */
.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 22px;
}
.sec-label::before {
  content: ""; width: 34px; height: 2px; background: var(--coral); display: inline-block;
}
.sec-title {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700; line-height: 1.28; color: var(--text);
}
.sec-title .dot { color: var(--coral); }
.sec-sub {
  margin-top: 20px; max-width: 560px;
  font-size: 17px; line-height: 1.9; color: var(--text-soft);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(42px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

/* ============================================================
   HEADER — dark rounded bar inset from the edges
   ============================================================ */
.header {
  position: fixed; inset-inline: 12px; top: 12px; z-index: 100;
  background: transparent;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  border: none;
  transition: box-shadow 0.4s ease, background 0.4s ease;
}
.header.scrolled { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); background: rgba(13,8,24,0.92); }
.header.scrolled .nav a {
  color: var(--cream);
  opacity: 1;
}
.header.scrolled .lang-btn {
  color: var(--cream);
  border-color: rgba(122,80,238,0.6);
}
:root[data-theme="light"] .header.scrolled { background: rgba(255,255,255,0.94); box-shadow: 0 14px 40px rgba(25,16,53,0.1); }
:root[data-theme="light"] .header.scrolled .nav a { color: var(--text); }
:root[data-theme="light"] .header.scrolled .lang-btn { color: var(--text); border-color: rgba(122,80,238,0.4); }
:root[data-theme="light"] .header.scrolled .brand img { filter: brightness(0); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
}
.brand { display: flex; align-items: center; gap: 12px; }
/* logo: white at the top, black once the page is scrolled */
.brand img { height: 72px; width: auto; filter: brightness(0) invert(1); transition: filter 0.3s ease; }
.brand .brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-txt b { color: var(--cream); font-size: 24px; font-weight: 700; letter-spacing: 0.02em; }
.brand .brand-txt span { color: var(--violet); font-size: 12px; letter-spacing: 0.34em; font-weight: 500; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 12px 18px; font-size: 18px; font-weight: 700; color: var(--cream);
  opacity: 0.85; transition: color 0.3s, opacity 0.3s;
}
.nav a::after {
  content: ""; position: absolute; inset-inline-start: 16px; bottom: 6px;
  height: 2px; width: calc(100% - 32px);
  background: var(--coral); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.45s var(--ease);
}
.nav a:hover, .nav a.active { color: #fff; opacity: 1; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: 0% 50%; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  padding: 10px 18px; border-radius: 25px; border: 1.5px solid rgba(124,92,246,0.6);
  background: transparent; color: var(--cream); font-size: 15px; font-weight: 600;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.lang-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: none;
  color: #fff; transition: color 0.3s;
}
.theme-btn svg { width: 22px; height: 22px; display: none; }
.theme-btn svg.active { display: block; }
.header.scrolled .theme-btn { color: var(--accent-dark); }
.header .btn { padding: 11px 22px; font-size: 15px; }

.burger {
  display: none; width: 46px; height: 42px; border-radius: 8px; border: none;
  background: var(--accent); align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(12, 6, 32, 0.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.45s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  color: var(--cream); font-size: 27px; font-weight: 600; padding: 10px 20px;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--coral); }

/* ============================================================
   HERO — full-screen media + dark overlay, headline at bottom-start
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  width: 100vw; max-width: 100%;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: url("../assets/falaq.jpeg") center / cover no-repeat;
}
@media (min-width: 1081px) {
  .hero-bg { background-attachment: fixed; }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(12,6,32,0.42) 0%, rgba(12,6,32,0.66) 55%, rgba(12,6,32,0.88) 100%);
}
.hero-glow {
  display: none !important;
}

.hero-content {
  position: relative; z-index: 2;
  width: min(1240px, 92%); margin-inline-start: auto; margin-inline-end: 6vw;
  padding-bottom: 190px; padding-top: 140px;
}
.hero h1 {
  font-size: clamp(38px, 5.8vw, 84px);
  font-weight: 800; line-height: 1.3; color: #fff;
  max-width: 28ch;
}
.hero h1 .line:nth-child(1) { font-weight: 400; }
[dir="rtl"] .hero-content .line { width: min(1240px, 92%); margin-inline: 0; }
[dir="ltr"] .hero-content .line { width: min(1240px, 92%); margin-inline: 0; }
/* line 1 is white, line 2 coral — alignment follows the page direction */
[dir="rtl"] .hero-content .line { text-align: right; }
[dir="ltr"] .hero-content .line { text-align: left; }
.hero h1 .accent { color: var(--violet); }
.hero h1 .line:nth-child(2) {
  animation: flicker 2.6s ease-in-out infinite;
}
.hero h1 .line:nth-child(2) .accent { color: inherit; }
.hero h1 .line:nth-child(2):hover,
.hero h1 .line:nth-child(2):hover .accent { color: var(--coral); animation-play-state: paused; }
@keyframes flicker {
  0%, 100% { color: #fff; text-shadow: none; }
  50% { color: var(--coral); text-shadow: 0 0 22px rgba(224,88,66,0.75); }
}
.hero h1 .line { display: block; overflow: hidden; padding-block: 0.1em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.18s; }
@keyframes rise { to { transform: none; } }

/* Align hero text by document direction */
[dir="rtl"] .hero-content { text-align: right; }
[dir="ltr"] .hero-content { text-align: left; margin-inline-start: 4vw; margin-inline-end: auto; padding-bottom: 110px; }

.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: fade-up 1s var(--ease) 0.55s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-scroll {
  position: absolute; z-index: 2; bottom: 26px; inset-inline-end: 5%;
  display: flex; align-items: center; gap: 10px;
  color: rgba(244,241,255,0.75); font-size: 13px; letter-spacing: 0.1em;
}
.hero-scroll .wheel {
  width: 22px; height: 34px; border: 1.5px solid rgba(244,241,255,0.5); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.hero-scroll .wheel i { width: 3px; height: 7px; border-radius: 3px; background: var(--coral); animation: wheel 1.6s ease infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }


/* ============================================================
   VISION SECTION — "من نحن و رؤيتنا"
   ============================================================ */
.vision-section { position: relative; }
.about-wrapper { padding: 110px 0; background: var(--paper-2); }
.about-container { width: min(1240px, 92%); margin: 0 auto; text-align: center; display: block; }
.about-title {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700; line-height: 1.28; color: var(--text); margin-bottom: 20px;
  display: inline-block; transition: color 0.3s ease;
}
.about-title:hover { color: var(--coral); }
.about-wrapper p {
  font-size: 22px; line-height: 1.95; color: var(--text-soft);
  max-width: 1000px; margin: 0 auto; text-align: justify; text-align-last: center;
}
html[lang="ar"] .about-wrapper p { font-size: 25px; max-width: 1100px; }

/* ============================================================
   STICKY CIRCLE — scroll-driven expanding circle
   ============================================================ */
.circle-section { position: relative; height: 220vh; }
.circle-sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-2);
  border-radius: 26px;
}
.big-circle {
  position: absolute; width: 46vmin; height: 46vmin; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ff8a5e, var(--coral) 70%);
  box-shadow: 0 0 90px rgba(224, 88, 66, 0.55), inset 0 0 70px rgba(224,88,66,0.35);
  will-change: transform;
}
.big-circle::after {
  content: ""; position: absolute; inset: -1.5vmin; border-radius: 50%;
  border: 1.5px dashed rgba(224, 88, 66, 0.5);
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.circle-inner { position: relative; z-index: 2; text-align: center; padding: 0 8%; transition: transform 0.9s var(--ease); }
.circle-inner .cap {
  font-size: 15px; letter-spacing: 0.16em; font-weight: 700; color: var(--accent-dark); margin-bottom: 18px;
  transition: color 0.5s, font-size 0.7s var(--ease), letter-spacing 0.7s var(--ease);
}
/* before scrolling: only "رؤيتنا" shows, big and centered over the circle */
.circle-sticky:not(.lit) .circle-inner { transform: translateY(40%); }
.circle-sticky:not(.lit) .circle-inner .cap { font-size: clamp(28px, 3.6vw, 46px); letter-spacing: 0.06em; color: #fff; }
/* the rest of the content appears once the circle has grown */
.circle-more { opacity: 0; transform: translateY(46px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.circle-sticky.lit .circle-more { opacity: 1; transform: none; }
.circle-inner h2 {
  font-size: clamp(30px, 4.8vw, 56px); font-weight: 700; line-height: 1.35; color: var(--text);
  transition: color 0.5s;
}
.circle-inner p { margin: 22px auto 0; max-width: 620px; font-size: 18px; line-height: 1.95; color: var(--text-soft); transition: color 0.5s; }
.circle-inner .btn { margin-top: 32px; }
.circle-sticky.lit .circle-inner h2 { color: var(--cream); }
.circle-sticky.lit .circle-inner p { color: rgba(244,241,255,0.72); }
.circle-sticky.lit .circle-inner .cap { color: var(--accent-dark); font-weight: 700; }
.circle-section-north .circle-inner p { font-size: 21px; max-width: 700px; }
.circle-section-north .circle-sticky:not(.lit) .circle-inner .cap { font-size: clamp(20px, 2.6vw, 34px); }
.circle-section-north .circle-sticky.lit .circle-inner .cap { font-size: 18px; color: #ff8a5e; }
.circle-section-north .circle-sticky.lit .circle-inner p { color: #fff; }

/* "Our North Star" circle — English only, sits above "Our Spark" */
.circle-section-north { display: none; }
html[lang="en"] .circle-section-north { display: block; }
.north-circle {
  background: radial-gradient(circle at 30% 25%, #9c7dff, var(--accent-dark) 70%);
  box-shadow: 0 0 90px rgba(106, 63, 208, 0.55), inset 0 0 70px rgba(106, 63, 208, 0.35);
}
.north-circle::after { border-color: rgba(106, 63, 208, 0.5); }

/* ============================================================
   SOLUTIONS — staggered service cards
   ============================================================ */
.solutions { position: relative; padding: 110px 0; background: var(--paper); }
.solutions-head { width: min(1240px, 92%); margin: 0 auto 56px; }
.solutions-stack { width: min(1240px, 92%); margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
.sol-card {
  width: min(840px, 90%);
  background: linear-gradient(160deg, rgba(224,88,66,0.10), rgba(18,10,46,0.6) 55%);
  border-radius: 22px; padding: clamp(34px, 4.6vw, 54px);
  border: 1px solid rgba(224,88,66,0.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  display: flex; align-items: center; gap: 30px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
  position: relative;
}
.sol-card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(224,88,66,0.2); border-color: rgba(224,88,66,0.7); }
.sol-card:nth-child(2) { align-self: end; }
.sol-card:nth-child(3) { align-self: start; }
.sol-body { flex: 1; min-width: 0; }
.sol-card h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 14px; }
.sol-card p { font-size: 16px; line-height: 1.85; color: var(--text-soft); }
.sol-card .tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.sol-card .tags span {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--violet);
  background: rgba(122,80,238,0.10); border: 1px solid rgba(122,80,238,0.4);
  padding: 6px 14px; border-radius: 30px;
}
.sol-icon {
  flex-shrink: 0; width: clamp(150px, 18vw, 230px); height: clamp(150px, 18vw, 230px); position: relative; z-index: 1;
}
.sol-icon img { width: 100%; height: 100%; object-fit: contain; }
.spark-pulse {
  transform-origin: center;
  animation: spark-pulse 2.2s ease-in-out infinite;
}
@keyframes spark-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 0 rgba(224,88,66,0)); }
  50% { transform: scale(1.08); filter: brightness(1.25) drop-shadow(0 0 18px rgba(224,88,66,0.55)); }
}
:root[data-theme="light"] .sol-card {
  background: #ffffff;
  border-color: rgba(224,88,66,0.55);
  box-shadow: 0 20px 50px rgba(25,16,53,0.08);
}
:root[data-theme="light"] .sol-card:hover { box-shadow: 0 26px 60px rgba(224,88,66,0.18); border-color: rgba(224,88,66,0.85); }
:root[data-theme="light"] .sol-card .tags span { color: var(--accent-dark); background: rgba(122,80,238,0.08); border-color: rgba(122,80,238,0.35); }

/* ============================================================
   CLIENTS
   ============================================================ */

.clients { padding: 70px 0 60px; }
.clients-head { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 35px; }
.clients-head .sec-label { color: var(--accent); letter-spacing: 0.14em; font-size: 15px; font-weight: 600; }
.clients-head .sec-title { font-size: clamp(30px, 4vw, 46px); font-weight: 700; color: var(--text); text-align: center; display: inline-block; transition: color 0.3s ease; }
.clients-head .sec-title:hover { color: var(--coral); }
.clients-slider {
  overflow: hidden;
  border: 1px solid rgba(224, 88, 66, 0.55);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(10, 4, 27, 0.35);
}
 .clients-track {
   display: flex; align-items: center; justify-content: flex-start; flex-wrap: nowrap; gap: clamp(12px, 1.6vw, 22px);
   padding: 28px 0; min-width: max-content;
   animation: marquee-rtl 14s linear infinite;
   will-change: transform;
 }
 html[dir="ltr"] .clients-track { animation-name: marquee-ltr; }
 .client-logo {
   flex: 0 0 auto;
   width: clamp(150px, 14vw, 190px);
   height: 90px;
   display: flex; align-items: center; justify-content: center;
   transition: transform 0.3s ease;
 }
 .client-logo:hover { transform: translateY(-6px); }
 .client-logo img { width: 100%; height: 100%; object-fit: contain; }
 .client-logo img[src*="IMG_1059"], .client-logo img[src*="OIP"] { transform: scale(1.55); }
 .client-logo img[src*="IMG_1105"] { transform: scale(1.6); }
 .client-logo img[src*="BA white logo"] { transform: scale(1); }
 .client-logo:has(img[src*="BA white logo"]) { margin-inline-end: 16px; }
 .client-logo img[src*="bluearrow"] { transform: scale(1.6); }
 .client-logo:has(img[src*="bluearrow"]) { margin-inline-end: 16px; }
 .client-logo img[src*="wacom"] { transform: scale(1.1); }
 /* dark theme: force every logo to a uniform soft white */
 .client-logo .logo-dark { filter: brightness(0) invert(1) opacity(0.92); transition: filter 0.3s ease; }
 .client-logo:hover .logo-dark { filter: brightness(0) invert(1) opacity(1); }
 /* light theme: show the full-color version instead (white logos are invisible on white) */
 .client-logo .logo-light { display: none; }
 :root[data-theme="light"] .client-logo .logo-dark { display: none; }
 :root[data-theme="light"] .client-logo .logo-light { display: block; }
 /* HP and Sarvel only have a light-theme (colored) version — hide in dark theme */
 .light-only-logo { display: none; }
 :root[data-theme="light"] .light-only-logo { display: flex; }
 /* only has a dark-theme (white) version — hide in light theme (HP already covers it there) */
 .dark-only-logo img { filter: brightness(0) invert(1) opacity(0.92); transition: filter 0.3s ease; }
 .dark-only-logo:hover img { filter: brightness(0) invert(1) opacity(1); }
 :root[data-theme="light"] .dark-only-logo { display: none; }
 .client-logo img[src*="hp.PNG"] { filter: brightness(0); transform: scale(1.6); }
 /* seamless loop: content is duplicated once, so sliding by exactly 50%
    lands on an identical frame and the animation restarts invisibly */
 @keyframes marquee-rtl {
   from { transform: translateX(0); }
   to { transform: translateX(50%); }
 }
 @keyframes marquee-ltr {
   from { transform: translateX(0); }
   to { transform: translateX(-50%); }
 }

/* ============================================================
   SECTORS — "القطاعات التي نمكّنها"
   ============================================================ */
.sectors { padding: 110px 0; }
.sectors-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.sectors-word { transition: color 0.3s ease; }
.sectors-word:hover { color: var(--coral); }
.sectors-head .sec-label { justify-content: center; }
.sectors-head .sec-label::before { display: none; }
.sectors, .sectors .sec-title, .sectors .sec-label, .sectors .sector h3, .sectors .sector p {
  color: var(--text);
}

.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 26px; }
.sector {
  position: relative; padding: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 16% 100%, 0 14%);
  background: linear-gradient(90deg, var(--accent-dark), var(--coral));
  transition: transform 0.4s var(--ease);
}
html[dir="ltr"] .sector { clip-path: polygon(0 0, 100% 0, 100% 14%, 84% 100%, 0 100%); }
.sector:hover { transform: translateY(-6px); }
.sector-inner {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 16% 100%, 0 14%);
  background: var(--paper);
  height: 100%; min-height: 108px; padding: 40px 30px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
html[dir="ltr"] .sector-inner { clip-path: polygon(0 0, 100% 0, 100% 14%, 84% 100%, 0 100%); }
.sector .num { font-size: 14px; font-weight: 700; color: var(--coral); letter-spacing: 0.12em; }
.sector h3 { margin: 0; font-size: 22px; font-weight: 700; color: var(--text); }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  margin: 40px auto; width: min(1240px, 92%);
  background:
    radial-gradient(700px circle at 85% 20%, rgba(124,92,246,0.5), transparent 60%),
    radial-gradient(520px circle at 12% 90%, rgba(224,88,66,0.35), transparent 60%),
    linear-gradient(135deg, var(--ink-2), var(--ink) 70%);
  border-radius: 24px; padding: clamp(50px, 8vw, 96px) clamp(26px, 6vw, 90px);
  text-align: center; color: var(--cream);
  position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(27px, 4vw, 46px); font-weight: 700; line-height: 1.45; max-width: 20ch; margin-inline: auto; }
.cta p { margin: 20px auto 0; max-width: 600px; font-size: 17px; line-height: 1.9; color: rgba(244,241,255,0.72); }
.cta .btn, .giant .btn { margin-top: 36px; }

/* ============================================================
   GIANT DISPLAY TEXT
   ============================================================ */
.giant { padding: 130px 0 110px; text-align: center; overflow: hidden; }
.giant .small { font-size: 17px; font-weight: 600; color: var(--coral); letter-spacing: 0.1em; margin-bottom: 24px; }
.giant h2 {
  font-size: clamp(36px, 7.5vw, 100px);
  font-weight: 800; line-height: 1.22; color: var(--text);
}
.giant h2 .fill { color: var(--coral); }
.giant h2 .stroke {
  color: var(--accent);
  -webkit-text-stroke: 0;
  transition: color 0.3s ease;
}

/* ============================================================
   FOOTER — dark, multi-column
   ============================================================ */
.footer {
  background: var(--ink); color: var(--cream);
  border-radius: 26px 26px 0 0;
  padding: 90px 0 0; position: relative; overflow: hidden;
}
.footer::before {
  content: ""; position: absolute; width: 55vw; height: 55vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,246,0.22), transparent 65%);
  bottom: -30vw; inset-inline-start: -18vw; pointer-events: none;
}
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 50px; position: relative; }
.footer h4 { font-size: 17px; font-weight: 700; color: var(--violet); margin-bottom: 22px; letter-spacing: 0.06em; }
.footer-brand img { height: 54px; margin-bottom: 22px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 17px; line-height: 1.95; color: rgba(244,241,255,0.75); max-width: 340px; }
.footer-col a {
  display: block; padding: 7px 0; font-size: 16px; color: rgba(244,241,255,0.7);
  transition: color 0.3s, transform 0.35s var(--ease);
}
.footer-col a:hover { color: var(--coral); transform: translateX(-6px); }
.footer-services a { display: flex; align-items: center; gap: 8px; }
.footer-services a::before {
  content: ""; flex-shrink: 0; width: 10px; height: 10px;
  background: url("../elements/star2.png") center / contain no-repeat;
}
html[dir="ltr"] .footer-col a:hover { transform: translateX(6px); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; font-size: 16px; color: rgba(244,241,255,0.75); line-height: 1.7; }
.footer-contact li i { color: var(--coral); font-style: normal; display: inline-flex; align-items: center; justify-content: center; width: 30px; flex-shrink: 0; margin-top: 4px; }
.footer-contact li a.mail-link { display: inline-flex; align-items: center; gap: 12px; color: inherit; cursor: pointer; }
.footer-contact li a.mail-link i { margin-top: 0; }
.footer-contact li a.mail-link:hover { color: var(--coral); }
.footer-contact li i.ico-loc {
  height: 30px;
  background-color: var(--coral) !important;
  -webkit-mask: url("../assets/location.png") center / contain no-repeat;
          mask: url("../assets/location.png") center / contain no-repeat;
}
.socials { margin-top: 24px; display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(244,241,255,0.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); font-size: 16px;
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-4px); }
.footer-bottom {
  margin-top: 70px; padding: 24px 0;
  border-top: 1px solid rgba(244,241,255,0.12);
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  font-size: 14.5px; color: rgba(244,241,255,0.55);
  position: relative;
}
.footer-bottom span { width: 100%; text-align: center; }
  /* removed back-to-top button styles */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header .btn { display: none; }
  .burger { display: flex; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sectors-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .brand .brand-txt span { display: none; }
  .lang-btn { padding: 9px 12px; }
  .hero-scroll { display: none; }
  .sol-card {
    width: 94%;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 26px 22px;
  }
  .sol-card:nth-child(2), .sol-card:nth-child(3) { align-self: center; }
  .sol-icon { width: 110px; height: 110px; margin: 0 auto; }
  .footer { padding-top: 56px; border-radius: 22px 22px 0 0; }
  .footer::before { width: 90vw; height: 90vw; bottom: -50vw; }
  .footer-top { gap: 34px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { margin-top: 40px; }
  .circle-inner { padding: 0 6%; }
  .circle-inner .cap { margin-bottom: 10px; }
  .circle-inner h2 { line-height: 1.25; }
  .circle-inner p { margin-top: 14px; font-size: 15.5px; line-height: 1.7; }
  .circle-inner .btn { margin-top: 18px; }
  .circle-section-north .circle-inner p { font-size: 16px; max-width: 100%; }
  .circle-section-north .circle-sticky.lit .circle-inner .cap { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
/* Preloader styles */
.preloader-hidden { opacity: 0; pointer-events: none; }

#preloader {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #0d0818; z-index: 99999; transition: opacity 0.6s ease;
}
#preloader .inner { text-align: center; color: #fff; }
#preloader img { height: 80px; width: auto; display: block; margin: 0 auto 18px; filter: brightness(0) invert(1); }
#preloader .divider { width: 48%; height: 1px; background: rgba(255,255,255,0.06); margin: 18px auto; }
#preloader .tag {
  letter-spacing: 0.28em; text-transform: uppercase; font-weight:700;
  color: rgba(122,80,238,0.18); /* muted base color */
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 0% 100%; background-repeat: no-repeat; background-position: left center;
  animation: fillText 3s linear forwards;
}
@keyframes fillText { to { background-size: 100% 100%; } }

