/* ============================================================
   BRAND TOKENS
   ============================================================ */
:root {
  --bg:         #08191B;
  --surface:    #180D3C;
  --accent:     #542DBB;
  --green:      #91FCB2;
  --teal:       #5FBE97;
  --text:       #F2F2F2;
  --muted:      rgba(242,242,242,0.5);
  --border:     rgba(242,242,242,0.08);
  --glass:      rgba(24,13,60,0.5);
  --glass2:     rgba(8,25,27,0.6);
  --radius-lg:  28px;
  --radius-md:  18px;
  --radius-sm:  10px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', 'Tajawal', 'Cairo', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
ul { list-style: none; }
a  { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   PAGE WRAP
   ============================================================ */
.page-wrap {
  width: 96vw;
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   COMMON BUTTONS
   ============================================================ */
.btn-ghost {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(242,242,242,0.2); background: rgba(242,242,242,0.05); }

.btn-primary {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg);
  padding: 8px 22px;
  border-radius: 50px;
  background: linear-gradient(135deg, #91FCB2, #5FBE97);
  box-shadow: 0 4px 20px rgba(145,252,178,0.3);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 8px 28px rgba(145,252,178,0.45); }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bg);
  background: linear-gradient(135deg, #91FCB2 0%, #5FBE97 100%);
  box-shadow: 0 6px 30px rgba(145,252,178,0.35), 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  letter-spacing: -0.01em;
}
.btn-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 40px rgba(145,252,178,0.5), 0 4px 12px rgba(0,0,0,0.25);
}
.btn-cta--sm { padding: 10px 22px; font-size: 0.875rem; margin-top: 20px; }

.btn-arrow-wrap {
  display: flex; align-items: center;
  background: rgba(8,25,27,0.25);
  border-radius: 50%; width: 28px; height: 28px;
  justify-content: center;
  transition: transform 0.25s var(--ease);
}
.btn-cta:hover .btn-arrow-wrap { transform: translateX(3px); }

.btn-outline-hero {
  display: inline-flex; align-items: center;
  padding: 14px 26px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: transparent;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.btn-outline-hero:hover { color: var(--text); border-color: rgba(242,242,242,0.2); background: rgba(242,242,242,0.04); }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.section--alt {
  background: linear-gradient(180deg, rgba(24,13,60,0.15) 0%, rgba(8,25,27,0) 100%);
}

.section-bg-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.section-bg-glow--left  { left: -200px; top: 50%; transform: translateY(-50%); background: radial-gradient(circle, rgba(84,45,187,0.14) 0%, transparent 70%); }
.section-bg-glow--right { right: -200px; top: 50%; transform: translateY(-50%); background: radial-gradient(circle, rgba(95,190,151,0.1) 0%, transparent 70%); }
.section-bg-glow--center{ left: 50%; top: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(84,45,187,0.12) 0%, transparent 70%); }

.section-head {
  text-align: center;
  margin-bottom: 70px;
  position: relative; z-index: 1;
}
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(145,252,178,0.08);
  border: 1px solid rgba(145,252,178,0.2);
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 60% at 70% 60%, rgba(84,45,187,0.2) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 30%, rgba(95,190,151,0.09) 0%, transparent 60%),
    var(--bg);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242,242,242,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,242,242,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.hero-orb--1 { width: 600px; height: 600px; top: -100px; right: -100px; background: rgba(84,45,187,0.22); animation: orbDrift1 12s ease-in-out infinite alternate; }
.hero-orb--2 { width: 400px; height: 400px; bottom: -80px; left: -80px; background: rgba(95,190,151,0.12); animation: orbDrift2 15s ease-in-out infinite alternate; }
.hero-orb--3 { width: 300px; height: 300px; top: 40%; left: 30%; background: rgba(145,252,178,0.06); animation: orbDrift3 18s ease-in-out infinite alternate; }

@keyframes orbDrift1 { 0%{transform:translate(0,0)} 100%{transform:translate(-60px,40px)} }
@keyframes orbDrift2 { 0%{transform:translate(0,0)} 100%{transform:translate(40px,-50px)} }
@keyframes orbDrift3 { 0%{transform:translate(0,0)} 100%{transform:translate(-30px,30px)} }

/* NAVBAR */
.navbar {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 20px;
  opacity: 0; transform: translateY(-16px);
  animation: navReveal 0.7s var(--ease) 0.1s forwards;
}
@keyframes navReveal { to { opacity:1; transform:translateY(0); } }

.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: filter 0.3s ease;
}
.nav-logo-img:hover {
  filter: drop-shadow(0 0 10px rgba(145,252,178,0.6)) drop-shadow(0 0 20px rgba(84,45,187,0.35));
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  padding: 7px 15px; border-radius: 50px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--text); background: rgba(242,242,242,0.06); }

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

/* ── Language Toggle ─────────────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.lang-toggle:hover { border-color: rgba(145,252,178,0.25); background: rgba(145,252,178,0.05); }

.lt-segment {
  color: var(--muted);
  transition: color 0.25s;
}
.lt-segment.active {
  color: var(--green);
}
.lt-sep {
  color: rgba(242,242,242,0.2);
  font-weight: 300;
  line-height: 1;
}

.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--muted); border-radius: 2px; transition: 0.3s; }

.mobile-menu {
  display: none;
  position: absolute; top: 78px; left: 2vw; right: 2vw;
  background: rgba(24,13,60,0.97);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 24px; z-index: 100;
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.mobile-menu ul a { display: block; padding: 10px 12px; font-size: 0.95rem; color: var(--muted); border-radius: 10px; transition: background 0.2s, color 0.2s; }
.mobile-menu ul a:hover { background: rgba(242,242,242,0.06); color: var(--text); }
.mobile-actions { display: flex; gap: 10px; }
.mobile-actions .btn-ghost, .mobile-actions .btn-primary { flex: 1; text-align: center; }

/* HERO BODY */
.hero-body {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 40px 20px 80px;
  gap: 40px;
  flex: 1;
  min-height: calc(100vh - 90px);
}

.hero-left {
  flex: 1 1 480px;
  max-width: 560px;
  display: flex; flex-direction: column; gap: 28px;
}

/* Hero Tag */
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--green);
  background: rgba(145,252,178,0.07); border: 1px solid rgba(145,252,178,0.18);
  padding: 6px 16px; border-radius: 50px;
  width: fit-content;
  opacity: 0; transform: translateY(16px);
  animation: revUp 0.7s var(--ease) 0.3s forwards;
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px rgba(145,252,178,0.8); animation: pulse 2.5s ease-in-out infinite; }

/* Hero Headline */
.hero-h1 {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.045em;
  opacity: 0; transform: translateY(22px);
  animation: revUp 0.8s var(--ease) 0.45s forwards;
}
.hero-accent {
  background: linear-gradient(90deg, #91FCB2, #5FBE97);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Hero Sub */
.hero-sub {
  font-size: 1.05rem; line-height: 1.7; color: var(--muted);
  max-width: 440px;
  opacity: 0; transform: translateY(18px);
  animation: revUp 0.75s var(--ease) 0.6s forwards;
}

/* Hero CTA */
.hero-cta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  opacity: 0; transform: translateY(14px);
  animation: revUp 0.7s var(--ease) 0.72s forwards;
}

/* Pills */
.hero-pills {
  display: flex; gap: 10px; flex-wrap: wrap;
  opacity: 0; transform: translateY(12px);
  animation: revUp 0.65s var(--ease) 0.85s forwards;
}
.pill {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 500; color: var(--muted);
  background: rgba(242,242,242,0.05); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 50px; letter-spacing: 0.02em;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px rgba(145,252,178,0.7); animation: pulse 2.5s ease-in-out infinite; }
.pill-dot--purple { background: var(--accent); box-shadow: 0 0 6px rgba(84,45,187,0.7); }
.pill-dot--teal   { background: var(--teal); box-shadow: 0 0 6px rgba(95,190,151,0.7); }

/* HERO RIGHT */
.hero-right {
  flex: 1 1 500px;
  max-width: 600px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.hero-shape-wrap {
  position: relative;
  width: 100%; max-width: 560px;
  aspect-ratio: 1 / 1;
  opacity: 0; transform: scale(0.92) translateX(24px);
  animation: shapeReveal 1s var(--ease) 0.15s forwards;
}
@keyframes shapeReveal { to { opacity:1; transform:scale(1) translateX(0); } }

/* AI Voice Nexus Canvas */
.ai-voice-canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 60px rgba(84,45,187,0.55))
          drop-shadow(0 0 50px rgba(145,252,178,0.22))
          drop-shadow(0 0 100px rgba(84,45,187,0.25));
}

/* FLOATING CARDS */
.fc {
  position: absolute;
  width: 230px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(24,13,60,0.75);
  border: 1px solid rgba(242,242,242,0.1);
  backdrop-filter: blur(28px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 4px 16px rgba(84,45,187,0.2), inset 0 1px 0 rgba(242,242,242,0.08);
  opacity: 0; transform: translateY(16px) scale(0.96);
}
.fc--top { top: 6%; right: -5%; animation: cardRev 0.7s var(--ease) 0.9s forwards, floatA 4.5s var(--ease) 1.8s infinite; }
.fc--bot { bottom: 10%; left: -5%; animation: cardRev 0.7s var(--ease) 1.1s forwards, floatB 5s var(--ease) 2s infinite; }

.fc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.fc-ico {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fc-ico--green { background: rgba(145,252,178,0.1); border: 1px solid rgba(145,252,178,0.22); }
.fc-ico--purple{ background: rgba(84,45,187,0.12);  border: 1px solid rgba(84,45,187,0.28); }

.fc-lbl { font-size: 0.77rem; font-weight: 600; color: var(--muted); flex: 1; letter-spacing: 0.02em; }
.fc-badge { font-size: 0.66rem; font-weight: 700; padding: 2px 8px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.06em; animation: livePulse 2s ease-in-out infinite; }
.fc-badge--green  { color: var(--green); background: rgba(145,252,178,0.12); border: 1px solid rgba(145,252,178,0.2); }
.fc-badge--purple { color: #b794ff; background: rgba(84,45,187,0.15); border: 1px solid rgba(84,45,187,0.25); animation: livePulseP 2s ease-in-out infinite; }

.fc-val { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 8px; line-height: 1; }
.fc-val--purple { background: linear-gradient(135deg, #b794ff, #542DBB); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.fc-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fc-status { font-size: 0.74rem; color: var(--muted); }
.fc-delta { font-size: 0.74rem; font-weight: 700; color: var(--green); background: rgba(145,252,178,0.1); padding: 2px 8px; border-radius: 50px; }

.fc-bar { height: 4px; background: rgba(242,242,242,0.07); border-radius: 4px; overflow: hidden; }
.fc-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #91FCB2, #5FBE97); box-shadow: 0 0 8px rgba(145,252,178,0.5); transition: width 1.4s var(--ease-out) 1.5s; }
.fc-bar-fill--purple { background: linear-gradient(90deg, #b794ff, #542DBB); box-shadow: 0 0 8px rgba(84,45,187,0.5); }

/* ============================================================
   PROBLEM / SOLUTION — CHIP-DROP COMPARISON
   ============================================================ */

/* Arena: side-by-side columns with a divider */
.cmp-arena {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  gap: 0;
  align-items: start;
  position: relative; z-index: 1;
  margin-bottom: 56px;
}

/* Column base */
.cmp-col {
  padding: 32px 28px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  position: relative; overflow: hidden;
}
.cmp-col--old {
  background: linear-gradient(155deg, rgba(24,13,60,0.45) 0%, rgba(8,25,27,0.65) 100%);
}
.cmp-col--wow {
  background: linear-gradient(155deg, rgba(84,45,187,0.14) 0%, rgba(24,13,60,0.55) 100%);
  border-color: rgba(145,252,178,0.18);
  box-shadow: 0 0 70px rgba(145,252,178,0.06), 0 32px 80px rgba(0,0,0,0.35);
}

/* Animated scan sweep (WOW column accent) */
.cmp-scan-sweep {
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(145,252,178,0.6) 50%, transparent 100%);
  animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep {
  0%   { transform: translateX(-100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* Column header */
.cmp-col-head { margin-bottom: 24px; }
.cmp-col-head h3 {
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 4px;
}
.cmp-col-sub {
  font-size: 0.8rem; color: var(--muted); font-weight: 500;
}

/* Status pill */
.cmp-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 12px;
  border-radius: 50px; margin-bottom: 10px;
}
.cmp-status--bad  { color: #ff6b85; background: rgba(255,77,109,0.1); border: 1px solid rgba(255,77,109,0.2); }
.cmp-status--good { color: var(--green); background: rgba(145,252,178,0.08); border: 1px solid rgba(145,252,178,0.2); }
.cmp-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cmp-dot--bad  { background: #ff6b85; box-shadow: 0 0 6px rgba(255,77,109,0.7); animation: pulse-red 1.8s ease-in-out infinite; }
.cmp-dot--good { background: var(--green); box-shadow: 0 0 6px rgba(145,252,178,0.7); animation: pulse-green 1.8s ease-in-out infinite; }
@keyframes pulse-red   { 0%,100%{opacity:1}50%{opacity:0.4} }
@keyframes pulse-green { 0%,100%{opacity:1}50%{opacity:0.5} }

/* Chip stack container */
.cmp-stack {
  display: flex; flex-direction: column; gap: 10px;
}

/* Individual chip */
.chip {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  position: relative;
  /* Starting (hidden) state */
  opacity: 0;
  transform: rotate(var(--rot, 0deg)) translateY(-80px) scale(0.85);
  transition:
    opacity   0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  /* Horizontal scatter: chip is narrowed by --offset, shifted right by --offset */
  width: calc(100% - var(--offset, 0px));
  margin-left: var(--offset, 0px);
}

/* Landed state — triggered by JS */
.chip.landed {
  opacity: 1;
  transform: rotate(var(--rot, 0deg)) translateY(0) scale(1);
}

/* Bad / Traditional chip */
.chip--bad {
  background: rgba(255,77,109,0.06);
  border-color: rgba(255,77,109,0.15);
}
.chip--bad:hover {
  background: rgba(255,77,109,0.1);
  border-color: rgba(255,77,109,0.28);
}

/* Good / WOW chip */
.chip--good {
  background: rgba(145,252,178,0.05);
  border-color: rgba(145,252,178,0.15);
}
.chip--good:hover {
  background: rgba(145,252,178,0.09);
  border-color: rgba(145,252,178,0.28);
  box-shadow: 0 0 20px rgba(145,252,178,0.08);
}

/* Chip icon */
.chip-ico {
  font-size: 1.15rem; flex-shrink: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: rgba(255,77,109,0.1);
}
.chip-ico--good {
  background: rgba(145,252,178,0.1);
}

/* Chip body */
.chip-body {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.chip-title {
  font-size: 0.82rem; font-weight: 600;
  color: var(--text); letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip-stat {
  font-size: 0.74rem; font-weight: 700;
  padding: 3px 10px; border-radius: 50px;
  white-space: nowrap; flex-shrink: 0;
}
.chip-stat--bad  { color: #ff6b85; background: rgba(255,77,109,0.12); }
.chip-stat--good { color: var(--green); background: rgba(145,252,178,0.12); }

/* Center divider */
.cmp-divider {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding-top: 80px;
}
.cmp-div-track {
  width: 1px; flex: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(145,252,178,0.2) 30%, rgba(145,252,178,0.2) 70%, transparent 100%);
  position: relative; min-height: 300px;
}
.cmp-div-pulse {
  position: absolute; left: 50%; top: 0;
  width: 1px; height: 40%;
  background: linear-gradient(180deg, rgba(145,252,178,0.8), transparent);
  transform: translateX(-50%);
  animation: div-pulse 2.4s ease-in-out infinite;
}
@keyframes div-pulse {
  0%   { top: -5%; opacity: 1; }
  100% { top: 110%; opacity: 0; }
}
.cmp-div-badge {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em;
  background: var(--surface);
  border: 1px solid rgba(145,252,178,0.25);
  color: var(--green);
  box-shadow: 0 0 28px rgba(145,252,178,0.12);
  flex-shrink: 0;
}

/* Stats bar */
.cmp-stats-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  padding: 28px 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(84,45,187,0.1) 0%, rgba(24,13,60,0.5) 100%);
  border: 1px solid rgba(145,252,178,0.12);
  backdrop-filter: blur(16px);
}
.cmp-stat {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; flex: 1; text-align: center;
}
.cmp-stat-num {
  font-size: 1.8rem; font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #91FCB2, #5FBE97);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cmp-stat span:not(.cmp-stat-num) { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.cmp-stat-sep {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, transparent, rgba(145,252,178,0.2), transparent);
  flex-shrink: 0;
}

/* ============================================================
   COMPLIANCE — TRUST ARCHITECTURE BENTO
   ============================================================ */

/* Dot-grid texture behind the section */
.sec-compliance { overflow: hidden; }
.scb-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(145,252,178,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145,252,178,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 20%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 20%, transparent 76%);
}

/* Scroll-reveal variant with blur (trust cells only) */
.sec-reveal {
  opacity: 0;
  transform: translateY(44px);
  filter: blur(6px);
  transition:
    opacity   0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter    0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.sec-reveal.revealed { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ── Bento grid ─────────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 14px;
  position: relative; z-index: 1;
}
.tc--zt    { grid-column: 1;   grid-row: 1 / 3; }
.tc--enc   { grid-column: 2/5; grid-row: 1; }
.tc--sdaia { grid-column: 2;   grid-row: 2; }
.tc--moh   { grid-column: 3;   grid-row: 2; }
.tc--cloud { grid-column: 4;   grid-row: 2; }
.tc--audit { grid-column: 1/5; grid-row: 3; }

/* ── Base cell ──────────────────────────────────────────────── */
.trust-cell {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  position: relative; overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.trust-cell::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at top left, rgba(145,252,178,0.04), transparent 55%);
  opacity: 0; transition: opacity 0.4s;
}
.trust-cell:hover { border-color: rgba(145,252,178,0.18); box-shadow: 0 28px 72px rgba(0,0,0,0.45), 0 0 48px rgba(145,252,178,0.06); }
.trust-cell:hover::before { opacity: 1; }

/* Shared body text block */
.tc-body { position: relative; z-index: 2; }
.tc-body h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.tc-body p  { font-size: 0.83rem; color: var(--muted); line-height: 1.65; }

/* Badges */
.tc-badge {
  display: inline-block;
  font-size: 0.63rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 50px; margin-bottom: 10px;
}
.tc-badge--green  { color: var(--green); background: rgba(145,252,178,0.08); border: 1px solid rgba(145,252,178,0.22); }
.tc-badge--purple { color: #b794ff; background: rgba(84,45,187,0.14); border: 1px solid rgba(84,45,187,0.32); }
.tc-badge--teal   { color: var(--teal); background: rgba(95,190,151,0.1);  border: 1px solid rgba(95,190,151,0.25); }

/* Icon wraps (small cells) */
.tc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; flex-shrink: 0; position: relative; z-index: 2;
}
.tc-icon--teal   { background: rgba(95,190,151,0.1);  border: 1px solid rgba(95,190,151,0.22);  color: var(--teal); }
.tc-icon--green  { background: rgba(145,252,178,0.1); border: 1px solid rgba(145,252,178,0.2);  color: var(--green); }
.tc-icon--accent { background: rgba(84,45,187,0.12);  border: 1px solid rgba(84,45,187,0.28);   color: #9b7fff; }

/* ── A: Zero-Trust Hero Cell ─────────────────────────────────── */
.tc--zt {
  background: linear-gradient(155deg, rgba(84,45,187,0.22) 0%, rgba(8,25,27,0.85) 100%);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 380px;
}

/* Radar container (centred in upper portion of cell) */
.zt-radar {
  position: absolute;
  top: 38%; left: 50%;
  transform: translate(-50%, -50%);
  width: 210px; height: 210px;
  pointer-events: none;
}

/* Concentric rings */
.zt-ring {
  position: absolute; border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.zt-ring--1 {
  width: 72px; height: 72px;
  border: 1px solid rgba(145,252,178,0.4);
  animation: zt-spin 10s linear infinite;
}
.zt-ring--2 {
  width: 136px; height: 136px;
  border: 1px dashed rgba(145,252,178,0.18);
  animation: zt-spin 22s linear infinite reverse;
}
.zt-ring--3 {
  width: 208px; height: 208px;
  border: 1px solid rgba(84,45,187,0.35);
  animation: zt-spin 38s linear infinite;
}
@keyframes zt-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Radar sweep arm */
.zt-sweep {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 78%, rgba(145,252,178,0.12) 90%, rgba(145,252,178,0.28) 100%);
  animation: zt-sweep-rot 3.2s linear infinite;
}
@keyframes zt-sweep-rot { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* Core node */
.zt-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(84,45,187,0.8), rgba(24,13,60,0.95));
  border: 1px solid rgba(145,252,178,0.45);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  box-shadow: 0 0 0 8px rgba(145,252,178,0.05), 0 0 30px rgba(145,252,178,0.25), 0 0 70px rgba(84,45,187,0.5);
  z-index: 3;
  animation: zt-core-pulse 2.6s ease-in-out infinite;
}
@keyframes zt-core-pulse {
  0%,100% { box-shadow: 0 0 0 8px rgba(145,252,178,0.04), 0 0 28px rgba(145,252,178,0.22), 0 0 60px rgba(84,45,187,0.45); }
  50%      { box-shadow: 0 0 0 14px rgba(145,252,178,0.08), 0 0 48px rgba(145,252,178,0.4), 0 0 90px rgba(84,45,187,0.6); }
}

/* Orbit nodes */
.zt-node {
  position: absolute;
  top: 50%; left: 50%;
  margin-top: -9px; margin-left: -22px;
  width: 44px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--green);
  background: rgba(8,25,27,0.92);
  border: 1px solid rgba(145,252,178,0.38);
  border-radius: 50px;
  z-index: 4;
  animation: zt-node-pulse 2.8s ease-in-out infinite;
}
.zt-node:nth-child(6) { animation-delay: -0.7s; }
.zt-node:nth-child(7) { animation-delay: -1.4s; }
.zt-node:nth-child(8) { animation-delay: -2.1s; }
@keyframes zt-node-pulse { 0%,100%{opacity:0.6} 50%{opacity:1} }

/* ── B: Encryption Cell ──────────────────────────────────────── */
.tc--enc {
  background: linear-gradient(125deg, rgba(8,25,27,0.88) 0%, rgba(24,13,60,0.6) 100%);
  padding: 28px 30px;
  display: flex; align-items: flex-end; gap: 28px;
  min-height: 185px;
}

/* Scrolling cipher columns (right side bg) */
.enc-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 54%;
  display: flex; gap: 14px;
  padding: 10px 18px;
  pointer-events: none;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.7) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.7) 0%, transparent 100%);
  overflow: hidden;
}
.enc-col {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  color: rgba(145,252,178,0.22);
  line-height: 1.9;
  display: flex; flex-direction: column;
  white-space: nowrap;
  animation: enc-drift var(--enc-dur, 7s) linear infinite;
  animation-delay: var(--enc-off, 0s);
  will-change: transform;
}
.enc-col:nth-child(1) { --enc-dur: 7.0s; --enc-off: 0s; }
.enc-col:nth-child(2) { --enc-dur: 8.4s; --enc-off: -1.3s; }
.enc-col:nth-child(3) { --enc-dur: 6.1s; --enc-off: -2.8s; }
.enc-col:nth-child(4) { --enc-dur: 9.2s; --enc-off: -0.6s; }
.enc-col:nth-child(5) { --enc-dur: 7.7s; --enc-off: -3.5s; }
.enc-col:nth-child(6) { --enc-dur: 8.0s; --enc-off: -1.9s; }
@keyframes enc-drift {
  from { transform: translateY(-35%); }
  to   { transform: translateY(35%); }
}

/* AES / TLS spec strip */
.enc-specs {
  position: absolute; top: 16px; right: 20px;
  display: flex; align-items: center;
  background: rgba(8,25,27,0.72);
  border: 1px solid rgba(145,252,178,0.14);
  border-radius: 50px;
  padding: 5px 2px;
  backdrop-filter: blur(14px);
  z-index: 3;
}
.enc-spec { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0 14px; }
.enc-sv { font-size: 0.78rem; font-weight: 800; color: var(--green); letter-spacing: -0.02em; white-space: nowrap; }
.enc-sl { font-size: 0.56rem; color: var(--muted); font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; }
.enc-sep { width: 1px; height: 26px; background: rgba(145,252,178,0.14); flex-shrink: 0; }

/* Floating lock icon */
.enc-lock {
  position: absolute; bottom: 18px; right: 22px; z-index: 3;
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(84,45,187,0.16);
  border: 1px solid rgba(84,45,187,0.38);
  display: flex; align-items: center; justify-content: center;
  color: #b794ff;
  animation: lock-float 3s ease-in-out infinite;
}
@keyframes lock-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* ── C/D/E: Small cells (SDAIA, MOH, Cloud) ─────────────────── */
.tc--sdaia,
.tc--moh,
.tc--cloud {
  background: linear-gradient(150deg, rgba(24,13,60,0.6) 0%, rgba(8,25,27,0.75) 100%);
  padding: 22px 20px;
  display: flex; flex-direction: column;
}

/* Pulse ring (SDAIA) */
.tc-pulse-ring {
  position: absolute;
  width: 130px; height: 130px; border-radius: 50%;
  border: 1px solid rgba(95,190,151,0.12);
  top: -35px; right: -35px;
  pointer-events: none;
  animation: tc-pulse 3.4s ease-in-out infinite;
}
.tc-pulse-ring::after {
  content: '';
  position: absolute; inset: 16px; border-radius: 50%;
  border: 1px solid rgba(95,190,151,0.2);
  animation: tc-pulse 3.4s ease-in-out 0.5s infinite;
}
@keyframes tc-pulse { 0%,100%{opacity:0.4;transform:scale(1)} 50%{opacity:0.9;transform:scale(1.07)} }

/* Heartbeat SVG (MOH) */
.moh-hb {
  position: absolute; bottom: 0; left: 0; right: 0; height: 28px;
  pointer-events: none;
}
.moh-hb polyline {
  stroke-dasharray: 340;
  stroke-dashoffset: 0;
  animation: hb-draw 2.6s ease-in-out infinite;
}
@keyframes hb-draw {
  0%   { stroke-dashoffset: 340; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { stroke-dashoffset: -340; opacity: 0; }
}

/* Server rack layers (Cloud) */
.cloud-srv {
  position: absolute; bottom: 16px; right: 14px;
  display: flex; flex-direction: column; gap: 5px;
  pointer-events: none;
}
.cloud-srv-bar {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(84,45,187,0.5), rgba(84,45,187,0.15));
  animation: srv-pulse 2.5s ease-in-out infinite;
}
.cloud-srv-bar:nth-child(1) { width: 52px; animation-delay: 0s; }
.cloud-srv-bar:nth-child(2) { width: 38px; animation-delay: 0.45s; }
.cloud-srv-bar:nth-child(3) { width: 26px; animation-delay: 0.9s; }
@keyframes srv-pulse { 0%,100%{opacity:0.55;transform:translateX(0)} 50%{opacity:1;transform:translateX(-3px)} }

/* ── F: Audit Logging Cell ───────────────────────────────────── */
.tc--audit {
  background: linear-gradient(118deg, rgba(8,25,27,0.92) 0%, rgba(24,13,60,0.45) 100%);
  padding: 0;
  display: flex; align-items: stretch;
  min-height: 178px;
}

/* Terminal panel (left) */
.audit-term {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  background: rgba(0,0,0,0.38);
  border-right: 1px solid var(--border);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
}
.at-hdr {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.28);
  border-bottom: 1px solid rgba(145,252,178,0.07);
  flex-shrink: 0;
}
.at-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.at-dot--r { background: #ff6b6b; }
.at-dot--y { background: #ffc947; }
.at-dot--g { background: var(--green); }
.at-name { flex: 1; font-size: 0.68rem; color: rgba(242,242,242,0.35); font-family: 'Courier New', monospace; margin-left: 6px; }
.at-rec  { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; color: var(--green); animation: at-blink 1.5s step-end infinite; }
@keyframes at-blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.at-body { flex: 1; padding: 8px 14px 4px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.at-row {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Courier New', monospace;
  font-size: 0.66rem;
  opacity: 0.72;
  transition: opacity 0.25s;
}
.at-row:hover { opacity: 1; }
/* New row slide-in */
.at-row-new { opacity: 0; transform: translateX(-10px); }

.at-time { color: rgba(145,252,178,0.45); flex-shrink: 0; min-width: 82px; }
.at-lvl  { padding: 1px 6px; border-radius: 4px; font-weight: 700; font-size: 0.6rem; flex-shrink: 0; min-width: 38px; text-align: center; }
.at-lvl-ok   { color: var(--green); background: rgba(145,252,178,0.1); }
.at-lvl-info { color: #7db8ff; background: rgba(125,184,255,0.1); }
.at-lvl-warn { color: #ffc947; background: rgba(255,201,71,0.1); }
.at-evt  { color: var(--text); font-weight: 600; flex-shrink: 0; }
.at-src  { color: rgba(145,252,178,0.55); }
.at-meta { color: var(--muted); margin-left: auto; flex-shrink: 0; }
.at-cursor {
  display: inline-block; width: 7px; height: 13px;
  background: var(--green);
  margin: 0 14px 8px;
  animation: at-cursor 1s step-end infinite;
}
@keyframes at-cursor { 0%,100%{opacity:1} 50%{opacity:0} }

/* Body text panel (right of audit) */
.audit-tc-body {
  flex-shrink: 0; width: 236px;
  padding: 24px 22px;
  display: flex; flex-direction: column; justify-content: center;
}
.audit-meta {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 16px;
}
.am-row { display: flex; align-items: baseline; gap: 8px; }
.am-val { font-size: 1.1rem; font-weight: 800; color: var(--green); letter-spacing: -0.03em; }
.am-lbl { font-size: 0.72rem; color: var(--muted); font-weight: 500; }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative; z-index: 1;
}

.feat-card {
  padding: 32px 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(24,13,60,0.55), rgba(8,25,27,0.7));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.feat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 30px rgba(145,252,178,0.06);
  border-color: rgba(145,252,178,0.15);
}

.feat-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feat-icon-wrap--green  { background: rgba(145,252,178,0.1); border: 1px solid rgba(145,252,178,0.2); }
.feat-icon-wrap--purple { background: rgba(84,45,187,0.12);  border: 1px solid rgba(84,45,187,0.25); }
.feat-icon-wrap--teal   { background: rgba(95,190,151,0.1);  border: 1px solid rgba(95,190,151,0.2); }

.feat-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.feat-card p  { font-size: 0.87rem; color: var(--muted); line-height: 1.65; }

.feat-line {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(145,252,178,0.35), transparent);
  transform: scaleX(0); transition: transform 0.4s var(--ease);
}
.feat-line--purple { background: linear-gradient(90deg, transparent, rgba(84,45,187,0.5), transparent); }
.feat-line--teal   { background: linear-gradient(90deg, transparent, rgba(95,190,151,0.4), transparent); }
.feat-card:hover .feat-line { transform: scaleX(1); }

/* ============================================================
   ARCHITECTURE DIAGRAM
   ============================================================ */
.arch-diagram {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: stretch;
  gap: 0;
}

.arch-layer {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  padding: 28px 32px;
}
.arch-layer--input  { background: linear-gradient(135deg, rgba(95,190,151,0.08), rgba(8,25,27,0.7)); border-color: rgba(95,190,151,0.15); }
.arch-layer--core   { background: linear-gradient(135deg, rgba(84,45,187,0.18), rgba(24,13,60,0.7)); border-color: rgba(84,45,187,0.25); margin: 0 40px; }
.arch-layer--output { background: linear-gradient(135deg, rgba(24,13,60,0.5), rgba(8,25,27,0.7)); border-color: rgba(145,252,178,0.12); }

.arch-layer-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}

.arch-nodes {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.arch-node {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
  min-width: 110px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.arch-node:hover { transform: translateY(-4px); }
.arch-node--green  { border-color: rgba(95,190,151,0.2); background: rgba(95,190,151,0.06); }
.arch-node--green:hover { border-color: rgba(95,190,151,0.4); }
.arch-node--purple { border-color: rgba(84,45,187,0.2); background: rgba(84,45,187,0.06); }
.arch-node--purple:hover { border-color: rgba(84,45,187,0.4); }
.arch-node-icon { font-size: 1.8rem; }

.arch-core-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.arch-core-block {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: rgba(8,25,27,0.5);
  border: 1px solid rgba(145,252,178,0.1);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.arch-core-block:hover { transform: translateY(-3px); border-color: rgba(145,252,178,0.25); }
.arch-core-block--purple { border-color: rgba(84,45,187,0.2); }
.arch-core-block--purple:hover { border-color: rgba(84,45,187,0.4); }
.arch-core-block-icon { font-size: 1.5rem; flex-shrink: 0; }
.arch-core-block strong { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.arch-core-block span  { font-size: 0.78rem; color: var(--muted); }

.arch-flow-arrow { display: flex; justify-content: center; padding: 6px 0; }
.arch-arrow-line {
  width: 2px; height: 48px;
  background: linear-gradient(180deg, rgba(145,252,178,0.3), rgba(84,45,187,0.3));
  position: relative; overflow: hidden; border-radius: 2px;
}
.arch-arrow-pulse {
  position: absolute; top: -100%; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(145,252,178,0.8), transparent);
  animation: arrowPulse 2s ease-in-out infinite;
}
@keyframes arrowPulse { 0%{top:-40%} 100%{top:140%} }

.tech-badges {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 36px;
}
.tech-badge {
  font-size: 0.78rem; font-weight: 600;
  padding: 7px 18px;
  border-radius: 50px;
  background: rgba(24,13,60,0.6);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.tech-badge:hover { border-color: rgba(145,252,178,0.25); color: var(--green); transform: translateY(-2px); }

/* ============================================================
   PHASES (TIMELINE)
   ============================================================ */
.phases-track { position: relative; z-index: 1; }

.phases-connector {
  position: absolute;
  top: 44px;
  left: calc(8.33% + 28px);
  right: calc(8.33% + 28px);
  height: 2px;
  background: rgba(242,242,242,0.07);
  z-index: 0;
}
.phases-connector-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #91FCB2, #542DBB);
  box-shadow: 0 0 10px rgba(145,252,178,0.4);
  border-radius: 2px;
  transition: width 1.5s var(--ease-out);
}

.phases-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative; z-index: 1;
}

.phase-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px;
  padding: 28px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(24,13,60,0.5), rgba(8,25,27,0.65));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
  cursor: default;
}
.phase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 20px rgba(145,252,178,0.06);
  border-color: rgba(145,252,178,0.2);
}
.phase-card--final { border-color: rgba(145,252,178,0.18); box-shadow: 0 0 30px rgba(145,252,178,0.06); }
.phase-card--final:hover { border-color: rgba(145,252,178,0.35); box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(145,252,178,0.12); }

.phase-num {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em;
  background: var(--surface);
  border: 1px solid rgba(145,252,178,0.2);
  color: var(--green);
  box-shadow: 0 0 16px rgba(145,252,178,0.1);
  flex-shrink: 0;
}
.phase-icon { font-size: 1.8rem; }
.phase-card h3 { font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; }
.phase-card p  { font-size: 0.78rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
  position: relative; z-index: 1;
}

.benefit-stat {
  padding: 30px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(24,13,60,0.55), rgba(8,25,27,0.7));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  text-align: center;
}
.benefit-num {
  font-size: 3rem; font-weight: 800; letter-spacing: -0.05em;
  background: linear-gradient(135deg, #91FCB2, #5FBE97);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 6px; line-height: 1;
}
.benefit-label { font-size: 0.8rem; font-weight: 700; color: var(--text); margin-bottom: 14px; letter-spacing: 0.01em; }
.benefit-bar { height: 3px; background: rgba(242,242,242,0.07); border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
.benefit-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #91FCB2, #5FBE97); box-shadow: 0 0 8px rgba(145,252,178,0.4); transition: width 1.4s var(--ease-out); }
.benefit-bar-fill--purple { background: linear-gradient(90deg, #b794ff, #542DBB); box-shadow: 0 0 8px rgba(84,45,187,0.4); }
.benefit-bar-fill--teal { background: linear-gradient(90deg, #91FCB2, #5FBE97); }
.benefit-stat p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

.benefits-secondary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  position: relative; z-index: 1;
}
.bsec-card {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: rgba(24,13,60,0.4); border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.bsec-card:hover { transform: translateY(-4px); border-color: rgba(145,252,178,0.15); }
.bsec-ico { font-size: 1.5rem; flex-shrink: 0; }
.bsec-card strong { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 3px; }
.bsec-card span   { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  position: relative; z-index: 1;
}

.about-badge-row {
  display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap;
}
.about-badge {
  flex: 1 1 120px;
  padding: 24px 20px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(84,45,187,0.15), rgba(24,13,60,0.6));
  border: 1px solid rgba(145,252,178,0.12);
  text-align: center;
}
.about-badge-num {
  font-size: 2.2rem; font-weight: 800; letter-spacing: -0.04em;
  background: linear-gradient(135deg, #91FCB2, #5FBE97);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 6px; line-height: 1;
}
.about-badge span { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

.about-desc p {
  font-size: 0.93rem; color: var(--muted); line-height: 1.75;
  margin-bottom: 18px;
}
.about-desc p:last-child { margin-bottom: 0; }

.about-values {
  display: flex; flex-direction: column; gap: 14px;
}
.value-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(24,13,60,0.5), rgba(8,25,27,0.65));
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.value-card:hover { transform: translateX(6px); border-color: rgba(145,252,178,0.15); }
.value-ico { font-size: 1.5rem; flex-shrink: 0; }
.value-card strong { display: block; font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; }
.value-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 80px 0 36px;
  background: linear-gradient(180deg, rgba(24,13,60,0.3), var(--bg));
  overflow: hidden;
}
.footer-glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 300px;
  background: radial-gradient(ellipse at 50% 0%, rgba(84,45,187,0.12), transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 800; margin-bottom: 16px;
}
.footer-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: filter 0.3s ease;
}
.footer-logo-img:hover {
  filter: drop-shadow(0 0 8px rgba(145,252,178,0.55)) drop-shadow(0 0 16px rgba(84,45,187,0.3));
}
.footer-brand p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; margin-bottom: 24px; max-width: 280px; }

.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  background: rgba(242,242,242,0.05); border: 1px solid var(--border);
  color: var(--muted); transition: all 0.25s;
}
.social-btn:hover { background: rgba(145,252,178,0.1); border-color: rgba(145,252,178,0.25); color: var(--green); }

.footer-links-col h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-links-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col a { font-size: 0.88rem; color: var(--muted); transition: color 0.25s; }
.footer-links-col a:hover { color: var(--green); }

.footer-contact h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.contact-ico { font-size: 1rem; flex-shrink: 0; }
.contact-item a, .contact-item span { font-size: 0.88rem; color: var(--muted); transition: color 0.25s; }
.contact-item a:hover { color: var(--green); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--muted);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--muted); transition: color 0.25s; }
.footer-bottom-links a:hover { color: var(--text); }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes revUp   { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes cardRev { from { opacity:0; transform:translateY(16px) scale(0.96); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes floatA  { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-10px) rotate(0.5deg)} }
@keyframes floatB  { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-8px) rotate(-0.4deg)} }
@keyframes pulse   { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.55;transform:scale(0.8)} }
@keyframes livePulse  { 0%,100%{opacity:1} 50%{opacity:0.5} }
@keyframes livePulseP { 0%,100%{opacity:1} 50%{opacity:0.45} }

/* ============================================================
   RTL OVERRIDES  (Arabic mode)
   ============================================================ */

/* Arabic text settings */
[dir="rtl"] body {
  font-family: 'Tajawal', 'Cairo', 'Segoe UI', system-ui, sans-serif;
}

/* Flip border-left accents to border-right */
[dir="rtl"] .compare-item--bad  { border-left: none; border-right: 2px solid rgba(255,77,109,0.2); }
[dir="rtl"] .compare-item--good { border-left: none; border-right: 2px solid rgba(145,252,178,0.3); }

/* Value card hover slides the other way */
[dir="rtl"] .value-card:hover { transform: translateX(-6px); }

/* CTA arrow direction */
[dir="rtl"] .btn-arrow-wrap svg { transform: scaleX(-1); }
[dir="rtl"] .btn-cta:hover .btn-arrow-wrap { transform: translateX(-3px); }

/* Section tag stays legible in RTL */
[dir="rtl"] .section-tag { letter-spacing: 0.04em; }

/* Hero headline line-height tweak for Arabic */
[dir="rtl"] .hero-h1 { letter-spacing: -0.02em; line-height: 1.2; }

/* Navbar logo text spacing */
[dir="rtl"] .nav-logo-text { letter-spacing: 0; }

/* Footer bottom links */
[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }

/* Trust compliance section RTL overrides */
[dir="rtl"] .enc-bg { right: auto; left: 0; mask-image: linear-gradient(to right, rgba(0,0,0,0.7) 0%, transparent 100%); -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.7) 0%, transparent 100%); }
[dir="rtl"] .enc-specs { right: auto; left: 20px; }
[dir="rtl"] .enc-lock { right: auto; left: 22px; }
[dir="rtl"] .cloud-srv { right: auto; left: 14px; }
[dir="rtl"] .tc-pulse-ring { right: auto; left: -35px; }
[dir="rtl"] .audit-term { border-right: none; border-left: 1px solid var(--border); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
[dir="rtl"] .tc--audit { flex-direction: row-reverse; }
[dir="rtl"] .at-meta { margin-left: 0; margin-right: auto; }

/* Chip columns: flip offset direction in RTL */
[dir="rtl"] .chip { margin-left: 0; margin-right: var(--offset, 0px); }
[dir="rtl"] .cmp-scan-sweep { animation-direction: reverse; }

/* Phase cards text */
[dir="rtl"] .phase-card { text-align: center; }

/* ============================================================
   RESPONSIVE — Tablet (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid      { grid-template-columns: repeat(2, 1fr); }
  .arch-core-grid     { grid-template-columns: 1fr 1fr; }
  .trust-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .tc--zt    { grid-column: 1/3; grid-row: 1; min-height: 260px; }
  .tc--enc   { grid-column: 3;   grid-row: 1; }
  .tc--sdaia { grid-column: 1;   grid-row: 2; }
  .tc--moh   { grid-column: 2;   grid-row: 2; }
  .tc--cloud { grid-column: 3;   grid-row: 2; }
  .tc--audit { grid-column: 1/4; grid-row: 3; }
  .enc-bg    { width: 44%; }
  .benefits-grid      { grid-template-columns: repeat(2, 1fr); }
  .benefits-secondary { grid-template-columns: repeat(2, 1fr); }
  .footer-grid        { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid         { gap: 24px; }
  .phases-grid        { grid-template-columns: repeat(3, 1fr); }
  .phases-connector   { display: none; }

  .cmp-arena {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cmp-divider { display: none; }
  .cmp-stats-bar { flex-wrap: wrap; gap: 20px; padding: 22px 20px; }
  .cmp-stat-sep  { display: none; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-title { font-size: 1.8rem; }

  .hero-body {
    flex-direction: column;
    padding: 20px 20px 60px;
    min-height: unset;
    text-align: center;
    gap: 50px;
  }
  .hero-left { align-items: center; max-width: 100%; }
  .hero-sub  { text-align: center; max-width: 100%; }
  .hero-pills{ justify-content: center; }

  .hero-right { width: 100%; max-width: 400px; }
  .fc--top { top: 2%; right: -2%; width: 190px; }
  .fc--bot { bottom: 4%; left: -2%; width: 190px; }

  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo-img { height: 34px; }

  .features-grid      { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tc--zt    { grid-column: 1/3; grid-row: 1; min-height: 240px; }
  .tc--enc   { grid-column: 1/3; grid-row: 2; }
  .tc--sdaia { grid-column: 1;   grid-row: 3; }
  .tc--moh   { grid-column: 2;   grid-row: 3; }
  .tc--cloud { grid-column: 1/3; grid-row: 4; }
  .tc--audit { grid-column: 1/3; grid-row: 5; flex-direction: column; }
  .audit-term { border-right: none; border-bottom: 1px solid var(--border); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .audit-tc-body { width: 100%; padding: 18px 20px; }
  .audit-meta { flex-direction: row; gap: 20px; }
  .enc-bg    { width: 50%; }
  .enc-specs { top: 12px; right: 10px; }
  .tc--enc   { min-height: 160px; }
  .zt-radar  { top: 44%; }
  .benefits-grid      { grid-template-columns: 1fr; }
  .benefits-secondary { grid-template-columns: 1fr; }
  .about-grid         { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr; gap: 28px; }
  .phases-grid        { grid-template-columns: repeat(2, 1fr); }

  .arch-layer--core { margin: 0; }
  .arch-core-grid   { grid-template-columns: 1fr; }
  .arch-nodes       { justify-content: flex-start; }
  .arch-node        { min-width: unset; flex: 1 1 80px; }

  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }

  .about-badge-row { gap: 10px; }
}

/* ============================================================
   RESPONSIVE — Small Mobile (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .page-wrap { width: 100%; padding: 0 14px; }
  .hero-h1   { font-size: 2.5rem; }
  .phases-grid { grid-template-columns: 1fr; }
  .about-badge-row { flex-direction: column; }
  .fc { width: 160px; padding: 14px; }
  .fc-val { font-size: 1.4rem; }
  .fc--top { right: -3%; }
  .fc--bot { left: -3%; }
}
