/* ==========================================================================
   Darium — Landing Page Styles
   --------------------------------------------------------------------------
   1. Design tokens
   2. Base & typography
   3. Utilities (buttons, eyebrow, section heads)
   4. Loader & scroll progress
   5. Header / navigation
   6. Hero
   7. Trust marquee
   8. About & stats
   9. Platform
   10. Apps (tabs + phone mockup)
   11. Features
   12. Dashboard showcase
   13. Roles
   14. How it works
   15. Security
   16. Services slider
   17. FAQ
   18. Contact / CTA
   19. Footer
   20. Reveal animations
   21. Responsive
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --bg-tint: #eef2f6;
  --ink: #141414;
  --ink-2: #3a3a3a;
  --muted: #6d6f73;
  --line: #e6e6e3;
  /* Brand — taken from the Darium logo gradient */
  --brand-1: #1e3fbf;
  --brand-2: #3478f0;
  --brand-grad: linear-gradient(45deg, var(--brand-1) 0%, var(--brand-2) 100%);
  --accent: #2554d6;
  --accent-soft: #e4ecfd;
  --sky: #8fb4ff;
  --success: #3a8f6b;
  --danger: #c4554d;
  --warning: #d39a3a;

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-arabic: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 10px rgba(20, 20, 20, .04);
  --shadow: 0 18px 50px -20px rgba(20, 30, 50, .18);
  --shadow-lg: 0 40px 90px -30px rgba(20, 30, 50, .28);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 80px;
}

/* 2. Base & typography --------------------------------------------------- */
html { scroll-behavior: auto; } /* Lenis handles smoothing; fallback set in JS */
html.no-lenis { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink-2);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--accent); }
.cta-contact a { color: inherit; }
.cta-contact a:hover { color: #fff; }

img { max-width: 100%; display: block; }

::selection { background: var(--brand-1); color: #fff; }

.section { padding: 120px 0; position: relative; }
.text-white-75 { color: rgba(255, 255, 255, .78) !important; }

/* 3. Utilities ----------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
}
.eyebrow-light { color: rgba(255, 255, 255, .85); }

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  margin-bottom: 20px;
}
.section-title em, .grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-inline-end: .06em; /* keeps italic overhang from clipping */
}
.section-title.text-white em { background: linear-gradient(45deg, #8fb4ff, #cfe0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  font-weight: 300;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head .section-title { margin-bottom: 0; }
.section-head .section-lead { margin-bottom: 4px; max-width: 440px; }

/* Buttons */
.btn {
  font-weight: 500;
  font-size: 1.0625rem;
  border-radius: 999px;
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s var(--ease);
}
.btn i { transition: transform .4s var(--ease); }
.btn:hover i { transform: translate(3px, -3px); }
.btn .bi-arrow-right { transition: transform .4s var(--ease); }
.btn:hover .bi-arrow-right { transform: translateX(4px); }

.btn-ink { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-ink:hover { background: #000; color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }

.btn-brand { background: var(--brand-grad); color: #fff; border: 0; padding: 13px 27px; background-size: 140% 140%; background-position: 0% 50%; transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-position .6s var(--ease); }
.btn-brand:hover { color: #fff; transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 14px 30px -12px rgba(37, 84, 214, .6); }

.btn-light-pill { background: #fff; color: var(--ink); border: 1px solid #fff; }
.btn-light-pill:hover { background: #fff; color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }

.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(8px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-ghost-light:hover i { transform: none; }

/* 4. Loader & scroll progress ------------------------------------------- */
.page-loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 2000;
  display: grid; place-items: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.page-loader.done { opacity: 0; visibility: hidden; }
.loader-mark { display: flex; align-items: center; }
.loader-mark img { animation: pulse 1.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.88); opacity: .6; } }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1100; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--brand-grad); transform-origin: 0 50%; transform: scaleX(0); }

/* 5. Header / navigation ------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: transform .5s var(--ease), background .4s, box-shadow .4s;
}
.site-header .navbar { height: var(--header-h); padding: 0; }
.site-header.scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.hide { transform: translateY(-100%); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-logo { height: 34px; width: auto; }
.site-footer .brand-logo { height: 38px; }
.offcanvas .brand-logo { height: 30px; }

.navbar .nav-link {
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--ink-2);
  padding: 8px 16px !important;
  position: relative;
}
.navbar .nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.navbar .nav-link.active { color: var(--ink); }

.lang-toggle {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 8px 14px; font-size: 1rem; color: var(--ink-2); transition: background .3s, border-color .3s, color .3s;
  display: inline-block; line-height: 1.4; font-family: var(--font-arabic);
}
html[lang="ar"] .lang-toggle { font-family: var(--font-sans); }
.lang-toggle:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }

.nav-toggle { border: 0; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; box-shadow: none !important; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; }
.nav-toggle span:last-child { width: 60%; margin-left: auto; }

.mobile-menu { border-left: 0 !important; }
.mobile-links { list-style: none; padding: 0; margin: 0; }
.mobile-links a { display: block; padding: 14px 0; font-size: 1.5rem; font-weight: 400; color: var(--ink); border-bottom: 1px solid var(--line); }

/* 6. Hero ---------------------------------------------------------------- */
.hero { padding: calc(var(--header-h) + 8px) 0 40px; }
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: center;
  isolation: isolate;
  clip-path: inset(6% 4% 6% 4% round 32px);
  transition: clip-path 1.4s var(--ease);
}
body.loaded .hero-card { clip-path: inset(0 0 0 0 round 32px); }

.hero-media { position: absolute; inset: -8% 0; z-index: -2; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.2s var(--ease); }
body.loaded .hero-media img { transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(14, 22, 34, .72) 0%, rgba(14, 22, 34, .38) 45%, rgba(14, 22, 34, .05) 75%),
    linear-gradient(0deg, rgba(14, 22, 34, .35), transparent 40%);
}

.hero-content { padding: 64px clamp(28px, 6vw, 80px); max-width: 760px; color: #fff; }
.hero-title {
  color: #fff;
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.04;
  margin-bottom: 24px;
}
.hero-title em { color: #fff; }
.hero-title .grad-light { background: linear-gradient(45deg, #a9c4ff, #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: .06em; }
.hero-lead { font-size: 1.25rem; font-weight: 300; color: rgba(255,255,255,.85); max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-float {
  position: absolute;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #fff;
  animation: floaty 6s ease-in-out infinite;
}
.hero-float small { display: block; font-size: .875rem; opacity: .8; }
.hero-float strong { font-weight: 500; font-size: 1.2rem; }
.float-a { right: 6%; top: 22%; }
.float-b { right: 12%; bottom: 14%; animation-delay: -3s; }
.float-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-grad); color: #fff; font-size: 1.15rem; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.occupancy-ring {
  --p: 0;
  width: 48px; height: 48px; border-radius: 50%;
  background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.2) 0);
  display: grid; place-items: center; position: relative;
}
.occupancy-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: rgba(30, 45, 65, .85); }
.occupancy-ring span { position: relative; font-size: .78rem; font-weight: 500; }

/* 7. Trust marquee ------------------------------------------------------- */
.trust { padding: 40px 0 20px; }
.trust-label { text-align: center; font-size: .98rem; color: var(--muted); margin-bottom: 26px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--ink-2); white-space: nowrap; font-weight: 400; }
.marquee-track i { font-size: 1.3rem; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 8. About & stats ------------------------------------------------------- */
.about-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin-top: 28px; }
.about-points div { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; color: var(--ink-2); }
.about-points i { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-size: .85rem; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat { padding: 36px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s var(--ease); }
.stat:hover { background: var(--bg-soft); }
.stat-num { display: block; font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 400; color: var(--ink); letter-spacing: -.03em; line-height: 1; margin-bottom: 12px; }
.stat-label { font-size: 1.0625rem; color: var(--muted); }

/* 9. Platform ------------------------------------------------------------ */
.platform { background: var(--bg-soft); border-radius: var(--radius-lg); margin: 0 12px; }
.platform-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 14px 28px;
  height: 100%;
  position: relative;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.platform-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.platform-img { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 24px; background: var(--bg-tint); }
.platform-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.platform-card:hover .platform-img img { transform: scale(1.06); }
.platform-tag { position: absolute; top: 26px; left: 26px; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); padding: 4px 12px; border-radius: 999px; font-size: .875rem; color: var(--ink); }
.platform-card h3 { font-size: 1.3rem; margin: 0 10px 10px; }
.platform-card p { font-size: 1.0625rem; color: var(--muted); margin: 0 10px; }

/* 10. Apps --------------------------------------------------------------- */
.apps { overflow: hidden; }
.apps-head { max-width: 680px; margin-bottom: 44px; }
.apps-head .section-lead { max-width: 520px; }

.app-tabs {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
  background: var(--bg-soft); padding: 6px; border-radius: 999px;
  width: fit-content; margin: 0 auto 64px;
}
.app-tab {
  border: 0; background: transparent; border-radius: 999px;
  padding: 10px 20px; font-size: 1.0625rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .4s var(--ease), color .3s, box-shadow .4s;
}
.app-tab:hover { color: var(--ink); }
.app-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.app-tab.active i { color: var(--accent); }

.app-detail { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.app-detail.switching { opacity: 0; transform: translateY(14px); }
.app-detail-kicker { font-size: .98rem; color: var(--accent); font-weight: 500; }
.app-detail-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 400; margin: 10px 0 16px; }
.app-detail-text { color: var(--muted); font-weight: 300; font-size: 1.2rem; max-width: 520px; }

.app-feature-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 24px; }
.app-feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.0625rem; color: var(--ink-2); }
.app-feature-list i { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; color: var(--ink); }
.app-feature-list li span { padding-top: 6px; }

.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 1.0625rem; line-height: 1.1; transition: transform .4s var(--ease); }
.store-badge:hover { color: #fff; transform: translateY(-3px); }
.store-badge i { font-size: 1.5rem; }
.store-badge small { display: block; font-size: .75rem; opacity: .7; }

/* Phone mockup */
.phone {
  width: 300px; max-width: 100%;
  aspect-ratio: 9 / 19;
  margin: 0 auto;
  border-radius: 46px;
  background: #0f0f10;
  padding: 11px;
  position: relative;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a2a2c;
}
.phone::before { content: ""; position: absolute; inset: -60px; z-index: -1; background: radial-gradient(circle, #d6e2fd 0%, transparent 65%); }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 26px; border-radius: 20px; background: #0f0f10; z-index: 3; }
.phone-screen {
  height: 100%; border-radius: 36px; background: #f7f8fa; overflow: hidden;
  padding: 54px 16px 16px; display: flex; flex-direction: column; gap: 14px; position: relative;
  transition: opacity .4s var(--ease);
}
.phone-screen.switching { opacity: 0; }
.ps-top { display: flex; justify-content: space-between; align-items: center; }
.ps-greet { font-size: .7rem; color: var(--muted); }
.ps-name { font-size: 1rem; color: var(--ink); font-weight: 500; }
.ps-avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); font-size: .9rem; }
.ps-hero { border-radius: 18px; padding: 16px; color: #fff; background: var(--brand-grad); }
.ps-hero small { font-size: .68rem; opacity: .8; display: block; }
.ps-hero strong { font-size: 1.35rem; font-weight: 500; display: block; margin: 4px 0 8px; }
.ps-chip { font-size: .62rem; background: rgba(255,255,255,.18); padding: 3px 8px; border-radius: 999px; }
.ps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ps-grid div { background: #fff; border-radius: 12px; padding: 10px 4px; text-align: center; font-size: .56rem; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.ps-grid i { display: block; font-size: 1rem; color: var(--accent); margin-bottom: 4px; }
.ps-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ps-item { background: #fff; border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-sm); }
.ps-item i { width: 28px; height: 28px; border-radius: 8px; background: var(--bg-soft); display: grid; place-items: center; font-size: .8rem; flex: none; }
.ps-item div { flex: 1; min-width: 0; }
.ps-item strong { display: block; font-size: .7rem; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-item small { font-size: .6rem; color: var(--muted); }
.ps-item .tag { font-size: .55rem; padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.ps-item .tag.green { background: #e2f2ea; color: var(--success); }
.ps-item .tag.amber { background: #faf0de; color: #a8721a; }
.ps-item .tag.red { background: #f8e3e1; color: var(--danger); }
.ps-nav { display: flex; justify-content: space-around; background: #fff; border-radius: 16px; padding: 10px 0; box-shadow: var(--shadow-sm); color: #b0b3b8; }
.ps-nav i.active { color: var(--ink); }

/* 11. Features ----------------------------------------------------------- */
.sticky-col { position: sticky; top: calc(var(--header-h) + 40px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: #fff; padding: 30px 26px; transition: background .4s var(--ease); position: relative; }
.feature::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand-grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.feature:hover { background: var(--bg-soft); }
.feature:hover::after { transform: scaleX(1); }
.feature i { font-size: 1.5rem; color: var(--ink); display: inline-block; margin-bottom: 18px; transition: transform .5s var(--ease); }
.feature:hover i { transform: translateY(-4px) rotate(-6deg); color: var(--accent); }
.feature h4 { font-size: 1.18rem; margin-bottom: 8px; }
.feature p { font-size: 1rem; color: var(--muted); margin: 0; }

/* 12. Dashboard showcase ------------------------------------------------- */
.showcase { background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 60%, #fff 100%); }
.dash {
  display: flex;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}
.dash-side { width: 72px; flex: none; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 24px 0; color: #a3a6ab; font-size: 1.1rem; }
.dash-side .dash-logo { margin-bottom: 10px; }
.dash-side i.active { color: var(--ink); background: var(--bg-soft); padding: 8px; border-radius: 10px; margin: -8px; }
.dash-main { flex: 1; padding: 28px; min-width: 0; }
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.dash-top small { color: var(--muted); font-size: .92rem; }
.dash-top h5 { margin: 2px 0 0; font-size: 1.2rem; font-weight: 500; }
.dash-pills { display: flex; background: var(--bg-soft); border-radius: 999px; padding: 4px; font-size: .92rem; }
.dash-pills span { padding: 6px 14px; border-radius: 999px; color: var(--muted); }
.dash-pills span.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.kpi small { display: block; color: var(--muted); font-size: .9rem; }
.kpi strong { display: block; font-size: 1.35rem; font-weight: 500; color: var(--ink); margin: 6px 0 4px; letter-spacing: -.02em; }
.kpi em { font-family: var(--font-sans); font-style: normal; font-size: .85rem; }
.kpi em.up { color: var(--success); } .kpi em.down { color: var(--danger); } .kpi em.neutral { color: var(--warning); }
.dash-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.dash-chart, .dash-alerts { border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.dash-chart-head { display: flex; justify-content: space-between; align-items: center; font-size: .98rem; color: var(--ink); margin-bottom: 18px; gap: 10px; flex-wrap: wrap; }
.legend { font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-left: 8px; }
.legend .l1 { background: var(--brand-2); } .legend .l2 { background: var(--accent-soft); }
.bars { display: flex; align-items: flex-end; justify-content: space-between; height: 210px; gap: 12px; }
.bar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 5px; position: relative; padding-bottom: 22px; }
.bar-col small { position: absolute; bottom: 0; font-size: .82rem; color: var(--muted); }
.bar { width: 40%; max-width: 22px; border-radius: 6px 6px 2px 2px; height: 0; transition: height 1.4s var(--ease); }
.bar.b1 { background: linear-gradient(0deg, var(--brand-1), var(--brand-2)); } .bar.b2 { background: var(--accent-soft); }
.dash.in-view .bar { height: var(--h); }
.dash.in-view .bar-col:nth-child(2) .bar { transition-delay: .08s; }
.dash.in-view .bar-col:nth-child(3) .bar { transition-delay: .16s; }
.dash.in-view .bar-col:nth-child(4) .bar { transition-delay: .24s; }
.dash.in-view .bar-col:nth-child(5) .bar { transition-delay: .32s; }
.dash.in-view .bar-col:nth-child(6) .bar { transition-delay: .40s; }
.alert-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.alert-row:last-child { border-bottom: 0; }
.alert-row strong { display: block; font-size: .95rem; font-weight: 500; color: var(--ink); }
.alert-row small { font-size: .86rem; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.dot.red { background: var(--danger); } .dot.amber { background: var(--warning); } .dot.blue { background: var(--accent); } .dot.green { background: var(--success); }

/* 13. Roles -------------------------------------------------------------- */
.roles-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.role-group { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; }
.role-group h6 { font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 20px; }
.role-chips { display: flex; flex-direction: column; gap: 10px; }
.role-chips span {
  background: #fff; border-radius: 12px; padding: 12px 14px; font-size: 1.0625rem; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.role-chips span:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.role-chips i { color: var(--accent); }

/* 14. How it works ------------------------------------------------------- */
.how-media { position: relative; margin-top: 36px; }
.how-media img { border-radius: var(--radius-lg); aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; background: var(--bg-tint); }
.spin-badge {
  position: absolute; top: -40px; right: -30px;
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--brand-grad); color: #fff;
  box-shadow: 0 20px 40px -18px rgba(30, 63, 191, .6);
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
}
.spin-badge svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 18s linear infinite; }
.spin-badge text { fill: #fff; font-size: 10px; letter-spacing: 1.6px; font-family: var(--font-sans); }
.spin-badge i { font-size: 1.6rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.steps { list-style: none; padding: 0; margin: 0; }
.step {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: start;
  padding: 32px 0; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease);
}
.step:first-child { padding-top: 8px; }
.step:hover { padding-left: 12px; }
.step-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-size: 1.2rem; transition: transform .5s var(--ease); }
.step:hover .step-icon { transform: rotate(-12deg) scale(1.05); }
.step h4 { font-size: 1.35rem; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 1.0625rem; max-width: 460px; }
.step-no { font-family: var(--font-serif); font-size: 1.6rem; color: #c9cacc; font-style: italic; }

/* 15. Security ----------------------------------------------------------- */
.security-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(40px, 6vw, 80px); isolation: isolate; min-height: 520px; display: flex; align-items: flex-end; }
.security-inner { width: 100%; }
.security-media { position: absolute; inset: -10% 0; z-index: -2; }
.security-media img { width: 100%; height: 100%; object-fit: cover; }
.security-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,22,34,.35), rgba(14,22,34,.85)); }
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sec-item { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 1.0625rem; backdrop-filter: blur(12px); transition: background .4s; }
.sec-item:hover { background: rgba(255,255,255,.18); }
.sec-item i { font-size: 1.15rem; color: var(--sky); }

/* 16. Services slider ---------------------------------------------------- */
.slider-nav { display: flex; gap: 12px; }
.slider-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #cfd0d0; background: transparent; color: var(--ink); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.slider-btn:hover { transform: scale(1.06); background: var(--bg-soft); }
.slider-btn.dark { background: var(--brand-grad); border-color: transparent; color: #fff; }
.slider-btn.dark:hover { background: var(--brand-grad); }

.svc-slider {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  --edge: max(12px, calc((100vw - 1296px) / 2 + 12px));
  padding: 4px var(--edge) 20px;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none; cursor: grab;
}
.svc-slider::-webkit-scrollbar { display: none; }
.svc-slider.dragging { cursor: grabbing; scroll-snap-type: none; }
.svc-slider.dragging * { pointer-events: none; }
.svc-card { flex: 0 0 clamp(260px, 28vw, 360px); scroll-snap-align: start; }
.svc-img { border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 3.8; margin-bottom: 18px; background: var(--bg-tint); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.svc-card:hover .svc-img img { transform: scale(1.06); }
.svc-card h4 { font-size: 1.3rem; margin-bottom: 6px; }
.svc-card p { font-size: 1.0625rem; color: var(--muted); margin: 0; }

/* 17. FAQ ---------------------------------------------------------------- */
.faq-acc .accordion-item { border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.faq-acc .accordion-item:first-child { border-top: 1px solid var(--line); }
.faq-acc .accordion-button { background: transparent; box-shadow: none; font-size: 1.25rem; font-weight: 400; color: var(--ink); padding: 26px 0; }
.faq-acc .accordion-button::after { background-image: none; content: "\F64D"; font-family: "bootstrap-icons"; font-size: 1.1rem; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.faq-acc .accordion-button:not(.collapsed)::after { transform: rotate(45deg); background: var(--brand-grad); color: #fff; border-color: transparent; }
.faq-acc .accordion-body { padding: 0 60px 26px 0; color: var(--muted); font-weight: 300; font-size: 1.1rem; }

/* 18. Contact / CTA ------------------------------------------------------ */
.cta-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(36px, 6vw, 80px); isolation: isolate; background: #121821; }
.cta-bg { position: absolute; inset: -10% 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,14,20,.92) 0%, rgba(10,14,20,.75) 55%, rgba(10,14,20,.6)); }
.cta-contact { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 12px; color: rgba(255,255,255,.85); }
.cta-contact i { color: var(--sky); margin-right: 10px; }

.demo-form { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 24px; padding: 28px; backdrop-filter: blur(16px); }
.demo-form .form-label { color: rgba(255,255,255,.75); font-size: .95rem; margin-bottom: 6px; }
.demo-form .form-control, .demo-form .form-select {
  background-color: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff;
  border-radius: 12px; padding: 12px 14px; font-size: 1.0625rem; font-weight: 300;
  transition: border-color .3s, background-color .3s;
}
.demo-form .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.demo-form .form-select option { color: var(--ink); }
.demo-form .form-control::placeholder { color: rgba(255,255,255,.45); }
.demo-form .form-control:focus, .demo-form .form-select:focus { background-color: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); box-shadow: none; color: #fff; }
.demo-form .invalid-feedback { color: #f1a39c; }
.demo-form .btn { justify-content: center; padding: 14px; }
.form-success { color: #9fe0bf; margin: 14px 0 0; font-size: 1.0625rem; text-align: center; }

/* 19. Footer ------------------------------------------------------------- */
.site-footer { padding: 90px 0 30px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-about { color: var(--muted); margin: 20px 0 24px; max-width: 340px; font-weight: 300; font-size: 1.0625rem; }
.site-footer h6 { font-size: .92rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { color: var(--ink-2); font-size: 1.0625rem; }
.footer-mail { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.0625rem; }
.footer-mail i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-grad); color: #fff; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s, transform .4s var(--ease); }
.socials a:hover { background: var(--brand-grad); color: #fff; border-color: transparent; transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 70px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--brand-grad); color: #fff; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* 20. Reveal animations -------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal="fade-up"]    { transform: translateY(40px); }
[data-reveal="fade-left"]  { transform: translateX(40px); }
[data-reveal="fade-right"] { transform: translateX(-40px); }
[data-reveal="zoom"]       { transform: scale(.94) translateY(30px); }
[data-reveal="fade"]       { transform: none; }
[data-reveal].is-visible   { opacity: 1; transform: none; }

/* Hero floats keep their bobbing after reveal */
.hero-float[data-reveal].is-visible { transform: none; }

/* Reveal fallback if JS is disabled */
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-card { clip-path: none; }
}

/* 21. Responsive --------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .roles-wrap { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
  :root { --header-h: 70px; }
  .section { padding: 90px 0; }
  .site-header { background: rgba(255,255,255,.9); backdrop-filter: blur(14px); }
  .float-a { display: none; }
  .float-b { right: 24px; bottom: 24px; }
  .sticky-col { position: static; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .spin-badge { right: 10px; top: -50px; width: 120px; height: 120px; }
  .platform { margin: 0; border-radius: 0; }
}

@media (max-width: 767.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2.5rem; }
  .hero-card { min-height: 640px; align-items: flex-end; }
  .hero-content { padding: 40px 24px 120px; }
  .about-points, .app-feature-list { grid-template-columns: 1fr; }
  .stat { padding: 26px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .roles-wrap { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-main { padding: 18px; }
  .step { grid-template-columns: auto 1fr; }
  .step-no { display: none; }
  .app-tabs { border-radius: 20px; }
  .app-tab { padding: 8px 14px; font-size: .95rem; }
  .faq-acc .accordion-body { padding-right: 0; }
}
