/* ==========================================================================
   iCore landing page
   ========================================================================== */

:root {
  --bg: #060816;
  --bg-2: #0a0e24;
  --surface: rgba(18, 24, 54, 0.55);
  --surface-2: rgba(28, 36, 78, 0.6);
  --border: rgba(148, 163, 255, 0.14);
  --border-strong: rgba(148, 163, 255, 0.28);
  --text: #e8ecff;
  --muted: #9aa3c7;
  --dim: #6b7399;
  --cyan: #38bdf8;
  --violet: #a78bfa;
  --pink: #f472b6;
  --green: #34d399;
  --grad: linear-gradient(120deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --radius: 18px;
  --radius-lg: 28px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'Cairo', 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang='ar'] body { font-family: var(--font-ar); }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
html[lang='ar'] h1, html[lang='ar'] h2, html[lang='ar'] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(860px, 100% - 32px); }

/* ---------- Background layers ---------- */

#core-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(900px 600px at 0% 40%, rgba(167, 139, 250, 0.10), transparent 60%),
    linear-gradient(rgba(148, 163, 255, 0.045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(148, 163, 255, 0.045) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 85%);
}

main, .footer, .nav { position: relative; z-index: 2; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}
[dir='rtl'] .scroll-progress span { transform-origin: right; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  will-change: transform;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-primary {
  background: var(--grad);
  color: #060816;
  box-shadow: 0 10px 30px -10px rgba(129, 140, 248, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(129, 140, 248, 1), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
[dir='rtl'] .btn .arrow { transform: scaleX(-1); }
[dir='rtl'] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 8, 22, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--border);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; direction: ltr; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo.small { font-size: 20px; }

.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  position: relative;
  display: inline-flex;
  width: 72px;
  height: 36px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  direction: ltr;
}
.lang-toggle::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 32px;
  height: 28px;
  border-radius: 999px;
  background: var(--grad);
  transition: transform 0.35s var(--ease);
}
html[lang='ar'] .lang-toggle::before { transform: translateX(32px); }
.lang-toggle span { position: relative; flex: 1; display: grid; place-items: center; font-size: 13px; font-weight: 700; transition: color 0.3s; font-family: var(--font-ar); }
html[lang='en'] .lang-en, html[lang='ar'] .lang-ar { color: #060816; }

.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 12px; background: rgba(255, 255, 255, 0.04); flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease); }
.menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  position: relative;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(56, 189, 248, 0.08);
  color: #bfe9ff;
  font-size: 13.5px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); } 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); } }

.hero h1 { font-size: clamp(38px, 5.2vw, 68px); font-weight: 800; margin: 22px 0 22px; }
.hero h1 span { display: block; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }

.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 34px 0 0; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--muted);
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.025);
}
.chips li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.hero-visual { position: relative; height: 560px; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(14, 19, 46, 0.62);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  font-size: 13px;
  animation: bob 6s ease-in-out infinite;
  will-change: transform;
}
.float-card small { display: block; color: var(--muted); font-size: 11.5px; }
.float-card b { font-size: 14px; font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.fc-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.fc-icon svg { width: 20px; height: 20px; }
.fc-1 { top: 8%; inset-inline-start: -2%; }
.fc-2 { top: 44%; inset-inline-end: -4%; animation-delay: -2s; }
.fc-3 { bottom: 6%; inset-inline-start: 10%; animation-delay: -4s; }
.spark { width: 80px; height: 24px; }
@keyframes bob { 50% { translate: 0 -12px; } }

em.ok, em.info { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
em.ok { color: var(--green); background: rgba(52, 211, 153, 0.12); }
em.info { color: var(--violet); background: rgba(167, 139, 250, 0.14); }

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mouse { width: 22px; height: 34px; border: 1.5px solid var(--dim); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.mouse i { width: 3px; height: 7px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(10, 14, 36, 0.82);
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  direction: ltr;
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; font-size: 16px; white-space: nowrap; }
.marquee-track svg { width: 20px; height: 20px; color: var(--c); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: 130px 0; position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
html[lang='ar'] .eyebrow { letter-spacing: 0; font-size: 15px; }
.section h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; }
.section-head p, .dash-copy > p, .sec-copy > p, .cta-copy p { color: var(--muted); font-size: 17.5px; margin-top: 18px; }

/* ---------- Features ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1400px; }

.feature {
  --c: var(--cyan);
  position: relative;
  padding: 30px 28px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(24, 31, 68, 0.86), rgba(9, 12, 32, 0.9));
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 18%, transparent), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.feature:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c) 55%, transparent); }
.feature:hover::before { opacity: 1; }

.feature-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  box-shadow: 0 0 30px -6px color-mix(in srgb, var(--c) 60%, transparent);
  transform: translateZ(40px);
  margin-bottom: 22px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 21px; font-weight: 700; transform: translateZ(30px); }
.feature p { color: var(--muted); font-size: 15px; margin-top: 10px; transform: translateZ(20px); }
.feature ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; transform: translateZ(16px); }
.feature li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #c8cff0; }
.feature li::before { content: ''; flex: none; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--c) 20%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.feature .num { position: absolute; top: 24px; inset-inline-end: 26px; font-size: 13px; font-weight: 700; color: var(--dim); font-variant-numeric: tabular-nums; }

/* ---------- Workflow ---------- */

.flow { position: relative; padding-top: 10px; }
.flow-line { position: absolute; top: 46px; inset-inline: 8%; height: 2px; background: var(--border); border-radius: 2px; }
.flow-line span { display: block; height: 100%; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 20px rgba(129, 140, 248, 0.8); }
[dir='rtl'] .flow-line span { transform-origin: right; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; position: relative; }
.flow-step { text-align: center; opacity: 0.35; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transform: translateY(16px); }
.flow-step.lit { opacity: 1; transform: none; }
.flow-node {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 22px;
  display: grid; place-items: center; position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  font-weight: 800; font-size: 20px; color: var(--muted);
  transition: all 0.6s var(--ease);
  transform: rotate(45deg);
}
.flow-node span { transform: rotate(-45deg); }
.flow-step.lit .flow-node { background: var(--grad); color: #060816; border-color: transparent; box-shadow: 0 0 40px -4px rgba(129, 140, 248, 0.9); }
.flow-step h3 { font-size: 17px; font-weight: 700; }
.flow-step p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* ---------- Dashboard ---------- */

.dash-layout { display: grid; grid-template-columns: 0.85fr 1.25fr; gap: 60px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: center; color: #d2d8f5; }
.checks li::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23060816' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat, var(--grad); }

.dash-stage { position: relative; perspective: 1800px; }
.dash {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  background: rgba(10, 14, 36, 0.94);
  border: 1px solid var(--border-strong);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: rotateX(14deg) rotateY(-16deg) rotateZ(2deg);
  transform-style: preserve-3d;
  overflow: hidden;
  will-change: transform;
  font-size: 12px;
}
[dir='rtl'] .dash { transform: rotateX(14deg) rotateY(16deg) rotateZ(-2deg); }
.dash-glow { position: absolute; inset: 10% 5%; background: var(--grad); filter: blur(80px); opacity: 0.25; z-index: 0; }

.dash-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.dash-url { flex: 1; text-align: center; color: var(--dim); background: rgba(255, 255, 255, 0.04); border-radius: 8px; padding: 4px; direction: ltr; }
.dash-tag { font-size: 10.5px; color: var(--dim); border: 1px dashed var(--border-strong); padding: 2px 8px; border-radius: 6px; }

.dash-body { display: flex; }
.dash-side { width: 54px; border-inline-end: 1px solid var(--border); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dash-side i { width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
.dash-side i.on { background: var(--grad); box-shadow: 0 0 16px rgba(129, 140, 248, 0.7); }
.dash-main { flex: 1; padding: 18px; display: grid; gap: 14px; min-width: 0; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); transform: translateZ(30px); }
.kpi small { color: var(--dim); display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { display: block; font-size: 18px; margin: 4px 0 2px; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
.kpi em { font-style: normal; font-size: 11px; font-weight: 600; direction: ltr; display: inline-block; }
.kpi em.up { color: var(--green); }
.kpi em.down { color: var(--pink); }

.dash-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.panel { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); transform: translateZ(20px); min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12.5px; flex-wrap: wrap; }
.legend { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 11px; }
.legend i { width: 8px; height: 8px; border-radius: 3px; }
.legend .l1 { background: var(--cyan); }
.legend .l2 { background: var(--pink); margin-inline-start: 6px; }

.bars { height: 150px; display: flex; align-items: flex-end; gap: 6px; direction: ltr; }
.bar-group { flex: 1; display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.bar-group i { flex: 1; border-radius: 4px 4px 1px 1px; height: var(--h); transform: scaleY(0); transform-origin: bottom; transition: transform 1.1s var(--ease); transition-delay: var(--d); }
.bar-group i:first-child { background: linear-gradient(to top, rgba(56, 189, 248, 0.35), var(--cyan)); }
.bar-group i:last-child { background: linear-gradient(to top, rgba(244, 114, 182, 0.35), var(--pink)); }
.dash.in .bar-group i { transform: scaleY(1); }

.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.docs li { display: flex; align-items: center; gap: 10px; }
.docs li > span:nth-child(2) { flex: 1; min-width: 0; }
.docs b { display: block; font-size: 12px; font-weight: 600; }
.docs small { color: var(--dim); font-size: 10.5px; direction: ltr; display: block; text-align: start; }
.docs .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); flex: none; }
.docs em { font-size: 10px; padding: 2px 8px; }

/* ---------- Security ---------- */

.sec-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.sec-matrix {
  position: relative;
  padding: 52px 26px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(24, 31, 68, 0.88), rgba(9, 12, 32, 0.92));
  border: 1px solid var(--border-strong);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease);
}
.sec-matrix table { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 14px; transform: translateZ(30px); }
.sec-matrix th { color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding: 0 8px 6px; text-align: center; }
html[lang='ar'] .sec-matrix th { letter-spacing: 0; font-size: 13px; }
.sec-matrix th:first-child, .sec-matrix td:first-child { text-align: start; }
.sec-matrix td { padding: 12px 8px; background: rgba(255, 255, 255, 0.03); text-align: center; }
.sec-matrix td:first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; font-weight: 600; padding-inline-start: 16px; }
.sec-matrix td:last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
.sec-matrix td.y::after, .sec-matrix td.n::after { content: ''; display: inline-block; width: 22px; height: 22px; border-radius: 7px; vertical-align: middle; transform: scale(0); transition: transform 0.5s var(--ease); transition-delay: var(--d, 0s); }
.sec-matrix td.y::after { background: rgba(52, 211, 153, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%2334d399' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.sec-matrix td.n::after { background: rgba(244, 114, 182, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m5 5 6 6m0-6-6 6' fill='none' stroke='%23f472b6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.sec-matrix.in td::after { transform: scale(1); }

.shield-3d {
  position: absolute;
  top: -34px;
  inset-inline-end: -26px;
  width: 84px; height: 84px;
  border-radius: 24px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #060816;
  box-shadow: 0 20px 50px -10px rgba(129, 140, 248, 0.9);
  transform: translateZ(80px) rotate(-8deg);
  animation: bob 5s ease-in-out infinite;
}
.shield-3d svg { width: 44px; height: 44px; }

.sec-points { display: grid; gap: 18px; margin-top: 30px; }
.sec-points div { padding-inline-start: 18px; border-inline-start: 2px solid; border-image: var(--grad) 1; }
.sec-points b { font-size: 16.5px; }
.sec-points p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ---------- Stats ---------- */

.stats { position: relative; z-index: 2; padding: 20px 0 40px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: rgba(10, 14, 36, 0.85); overflow: hidden;
}
.stat { padding: 40px 20px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--border); }
.stat b { display: block; font-size: clamp(40px, 5vw, 60px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; font-family: var(--font); }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 14px; }
.faq details {
  border-radius: var(--radius);
  background: rgba(14, 19, 44, 0.85);
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
}
.faq details[open] { border-color: var(--border-strong); background: rgba(22, 29, 64, 0.92); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); font-size: 20px; font-weight: 400; transition: transform 0.35s var(--ease), background 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--grad); color: #060816; }
.faq details p { padding: 0 26px 24px; color: var(--muted); }

/* ---------- CTA ---------- */

.cta-box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 64px;
  border-radius: 36px;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(140deg, rgba(56, 189, 248, 0.14), rgba(167, 139, 250, 0.14) 60%, rgba(244, 114, 182, 0.1)),
    rgba(8, 11, 30, 0.88);
}
.cta-orb { position: absolute; width: 520px; height: 520px; border-radius: 50%; inset-inline-start: -200px; bottom: -300px; background: radial-gradient(circle, rgba(129, 140, 248, 0.45), transparent 60%); filter: blur(20px); animation: orb 10s ease-in-out infinite; }
@keyframes orb { 50% { transform: translate(60px, -40px) scale(1.15); } }
.cta-copy, .cta-form { position: relative; }
.cta-form { display: grid; gap: 14px; }
.cta-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.cta-form input {
  font: inherit; font-size: 15px; color: var(--text);
  padding: 13px 16px; border-radius: 14px;
  background: rgba(6, 8, 22, 0.6);
  border: 1px solid var(--border-strong);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cta-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15); }
.cta-form .btn { margin-top: 6px; }
.form-note { font-size: 13px; color: var(--green); min-height: 1em; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--border); padding: 40px 0; background: rgba(6, 8, 22, 0.8); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { color: var(--dim); font-size: 14px; margin-top: 6px; }

/* ---------- Reveal animations ---------- */

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-layout, .sec-layout { grid-template-columns: 1fr; gap: 50px; }
  .dash-copy, .sec-copy { max-width: 640px; }
  .sec-copy { order: -1; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    inset-inline: 16px;
    flex-direction: column;
    padding: 12px;
    border-radius: 20px;
    background: rgba(10, 14, 36, 0.96);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s var(--ease);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 12px 16px; font-size: 16px; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-actions { margin-inline-start: auto; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-inline: auto; }
  .hero-ctas, .chips { justify-content: center; }
  .hero-visual { height: 380px; }
  .fc-1 { inset-inline-start: 0; }
  .fc-2 { inset-inline-end: 0; }
  .scroll-hint { display: none; }

  .flow-line { top: 36px; bottom: 36px; height: auto; width: 2px; inset-inline: 35px auto; }
  .flow-line span { transform: scaleY(0); transform-origin: top; }
  [dir='rtl'] .flow-line span { transform-origin: top; }
  .flow-steps { grid-template-columns: 1fr; gap: 28px; }
  .flow-step { display: grid; grid-template-columns: 72px 1fr; gap: 0 22px; text-align: start; align-items: center; }
  .flow-node { grid-row: span 2; margin: 0; }
  .flow-step p { margin: 0; }
  .flow-step h3 { align-self: end; }
  .flow-step p { align-self: start; }

  .cta-box { grid-template-columns: 1fr; padding: 40px 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

@media (max-width: 640px) {
  .section { padding: 90px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-row { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash { transform: rotateX(8deg) rotateY(0) rotateZ(0) !important; }
  .hero-visual { height: 320px; }
  .float-card { font-size: 12px; padding: 10px 12px; }
  .fc-3 { display: none; }
  .shield-3d { width: 64px; height: 64px; inset-inline-end: -6px; top: -28px; }
  .shield-3d svg { width: 34px; height: 34px; }
  .sec-matrix { padding: 44px 12px 12px; }
  .sec-matrix table { font-size: 13px; }
  .sec-matrix th { font-size: 10px; padding: 0 2px 6px; }
  .sec-matrix td { padding: 10px 2px; }
  .sec-matrix td:first-child { padding-inline-start: 10px; }
  .dash-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- No-WebGL fallback: a CSS orb stands in for the 3D core ---------- */

.no-webgl #core-canvas { display: none; }
.no-webgl .hero-visual::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #dbeafe 0%, #38bdf8 18%, #818cf8 45%, transparent 70%);
  box-shadow: 0 0 120px 20px rgba(129, 140, 248, 0.35);
  animation: orb 8s ease-in-out infinite;
}
