:root {
  --bg-deep: #050913;
  --bg-surface: #0b1324;
  --bg-card: rgba(13, 23, 42, 0.72);
  --bg-card-strong: rgba(15, 27, 49, 0.92);
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-emerald: rgba(33, 198, 139, 0.38);
  --emerald: #21c68b;
  --emerald-bright: #34f5b0;
  --emerald-glow: rgba(33, 198, 139, 0.22);
  --cyan: #38bdf8;
  --violet: #818cf8;
  --amber: #fbbf24;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-lg: 0 25px 60px -15px rgba(0, 0, 0, 0.65);
  --font-ar: 'Tajawal', system-ui, -apple-system, sans-serif;
  --font-en: 'Plus Jakarta Sans', 'Tajawal', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
}

body {
  font-family: var(--font-ar);
  background:
    radial-gradient(circle at 15% 12%, rgba(33, 198, 139, 0.14), transparent 38%),
    radial-gradient(circle at 85% 18%, rgba(56, 189, 248, 0.12), transparent 36%),
    radial-gradient(circle at 50% 85%, rgba(129, 140, 248, 0.10), transparent 42%),
    var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

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

#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

.bg-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 20%, transparent 80%);
}

.container {
  width: min(1240px, 92%);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(5, 9, 19, 0.78);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(33, 198, 139, 0.1);
  border: 1px solid rgba(33, 198, 139, 0.32);
  display: grid;
  place-items: center;
  padding: 7px;
  box-shadow: 0 0 24px rgba(33, 198, 139, 0.2);
}

.brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(33, 198, 139, 0.15);
  color: var(--emerald-bright);
  border: 1px solid rgba(33, 198, 139, 0.3);
}

.brand-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--emerald-bright);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.live-edge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(33, 198, 139, 0.28);
  font-size: 0.8rem;
  color: #d1fae5;
  white-space: nowrap;
}

#edgeRttNav {
  display: inline-block;
  min-width: 48px;
  text-align: center;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 0 rgba(52, 245, 176, 0.7);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(52, 245, 176, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(52, 245, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 245, 176, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.62rem 1.2rem;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1px solid transparent;
}

.btn-lang {
  background: rgba(30, 41, 59, 0.65);
  border-color: var(--border-subtle);
  color: var(--text-primary);
  padding: 0.52rem 0.85rem;
  font-size: 0.84rem;
}

.btn-lang:hover {
  border-color: var(--emerald);
  color: var(--emerald-bright);
}

.btn-primary {
  background: linear-gradient(135deg, #21c68b 0%, #0ea5e9 100%);
  color: #03120e;
  box-shadow: 0 10px 28px -6px rgba(33, 198, 139, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -6px rgba(33, 198, 139, 0.62);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.26);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--emerald);
  background: rgba(33, 198, 139, 0.08);
}

.btn-lg {
  padding: 0.85rem 1.55rem;
  font-size: 1rem;
  border-radius: 14px;
}

/* Hero Section */
.hero {
  padding: 4.2rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 2.8rem;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  background: rgba(33, 198, 139, 0.1);
  border: 1px solid rgba(33, 198, 139, 0.3);
  color: var(--emerald-bright);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.1rem, 3.8vw, 3.35rem);
  font-weight: 900;
  line-height: 1.22;
  margin-bottom: 1.15rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #34f5b0 0%, #21c68b 45%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 1.85rem;
  max-width: 58ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.1rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.metric-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  backdrop-filter: blur(12px);
}

.metric-chip-val {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--emerald-bright);
  direction: ltr;
  text-align: start;
}

.metric-chip-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Interactive Studio Preview */
.studio-shell {
  background: linear-gradient(180deg, rgba(17, 29, 53, 0.92), rgba(9, 16, 32, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 70px -20px rgba(33, 198, 139, 0.28);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.2rem;
  background: rgba(5, 10, 20, 0.78);
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.75rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.window-dots span:nth-child(1) { background: #ef4444; }
.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #10b981; }

.studio-room-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.rec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.76rem;
  font-weight: 700;
  direction: ltr;
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: blinkRec 1.3s infinite;
}

@keyframes blinkRec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.studio-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  background: rgba(8, 14, 27, 0.65);
  border-bottom: 1px solid var(--border-subtle);
}

.studio-tab {
  background: rgba(30, 41, 59, 0.42);
  border: 1px solid transparent;
  color: var(--text-muted);
  border-radius: 10px;
  padding: 0.52rem 0.5rem;
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.studio-tab:hover {
  color: var(--text-primary);
  background: rgba(30, 41, 59, 0.75);
}

.studio-tab.active {
  background: rgba(33, 198, 139, 0.16);
  border-color: rgba(33, 198, 139, 0.45);
  color: var(--emerald-bright);
}

.studio-stage {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.studio-panels-viewport {
  position: relative;
  height: 226px;
  overflow: hidden;
  contain: layout size paint;
}

.stage-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.26s ease;
  transform: translateY(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stage-panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.whiteboard-canvas-box {
  background: rgba(6, 12, 24, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 14px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.wb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.wb-tools {
  display: flex;
  gap: 0.4rem;
}

.wb-tool-pill {
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  background: rgba(33, 198, 139, 0.14);
  color: var(--emerald-bright);
  font-size: 0.72rem;
}

.wb-svg {
  width: 100%;
  height: 155px;
  display: block;
}

.draw-path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: drawStroke 3.6s ease-in-out infinite alternate;
}

@keyframes drawStroke {
  0% { stroke-dashoffset: 420; }
  75%, 100% { stroke-dashoffset: 0; }
}

.screenshare-box {
  background: #070d19;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  direction: ltr;
  text-align: left;
}

.ss-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.76rem;
  color: var(--cyan);
}

.code-lines > span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.72;
  color: #e2e8f0;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-kw { color: #38bdf8; }
.c-fn { color: #34f5b0; }
.c-cm { color: #64748b; }

/* Poll panel */
.poll-box {
  background: rgba(7, 13, 25, 0.82);
  border: 1px solid rgba(33, 198, 139, 0.22);
  border-radius: 14px;
  padding: 1rem;
}

.poll-q {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.poll-opt {
  position: relative;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.52rem 0.75rem;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.poll-opt:hover {
  border-color: var(--emerald);
}

.poll-bar {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  background: rgba(33, 198, 139, 0.2);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.poll-opt span {
  position: relative;
  z-index: 1;
}

/* Archive pipeline panel */
.archive-pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 0.3rem;
}

.pipe-step {
  background: rgba(7, 13, 25, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem;
  text-align: center;
}

.pipe-step-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 0.5rem;
  border-radius: 10px;
  background: rgba(33, 198, 139, 0.14);
  color: var(--emerald-bright);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.pipe-step h4 {
  font-size: 0.84rem;
  margin-bottom: 0.25rem;
}

.pipe-step p {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.studio-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  margin-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.79rem;
  color: var(--text-muted);
}

.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.eq-bars i {
  display: block;
  width: 3px;
  background: var(--emerald-bright);
  border-radius: 2px;
  animation: eqBounce 0.9s ease-in-out infinite alternate;
}
.eq-bars i:nth-child(1) { height: 6px; animation-delay: 0.0s; }
.eq-bars i:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.eq-bars i:nth-child(3) { height: 9px; animation-delay: 0.35s; }
.eq-bars i:nth-child(4) { height: 16px; animation-delay: 0.15s; }
.eq-bars i:nth-child(5) { height: 7px; animation-delay: 0.45s; }

@keyframes eqBounce {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

/* Architecture Cards */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.55rem;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(12px);
}

.arch-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-emerald);
}

.arch-step-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--emerald-bright);
  background: rgba(33, 198, 139, 0.12);
  border: 1px solid rgba(33, 198, 139, 0.28);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.9rem;
}

.arch-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.55rem;
}

.arch-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Capabilities Grid */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: all 0.25s ease;
}

.cap-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-4px);
}

.cap-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(33, 198, 139, 0.18), rgba(56, 189, 248, 0.16));
  border: 1px solid rgba(33, 198, 139, 0.3);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--emerald-bright);
}

.cap-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.cap-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Live Connection Readiness Diagnostic Card */
.diag-card {
  background: linear-gradient(145deg, rgba(13, 25, 48, 0.92), rgba(7, 15, 30, 0.95));
  border: 1px solid rgba(33, 198, 139, 0.32);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
}

.diag-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.diag-top h3 {
  font-size: 1.45rem;
  margin-bottom: 0.3rem;
}

.diag-top p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.diag-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.diag-item {
  background: rgba(5, 10, 20, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.1rem;
}

.diag-item-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.diag-item-val {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--emerald-bright);
  direction: ltr;
  text-align: start;
}

.diag-item-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.diag-verdict {
  margin-top: 1.25rem;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  background: rgba(33, 198, 139, 0.1);
  border: 1px solid rgba(33, 198, 139, 0.28);
  color: #d1fae5;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Ecosystem & Company Banner */
.company-showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.8rem;
  background: var(--bg-card-strong);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.4rem;
  align-items: center;
}

.company-unified-card {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  background: linear-gradient(135deg, rgba(6, 13, 26, 0.92), rgba(14, 28, 52, 0.85));
  border: 1px solid rgba(33, 198, 139, 0.34);
  box-shadow: 0 16px 38px -14px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 1rem 1.35rem;
  border-radius: 18px;
  margin-bottom: 1.45rem;
  max-width: 100%;
}

.company-unified-logo {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 15px;
  background: radial-gradient(circle at 30% 30%, rgba(33, 198, 139, 0.22), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(33, 198, 139, 0.42);
  display: grid;
  place-items: center;
  padding: 10px;
  box-shadow: 0 0 28px rgba(33, 198, 139, 0.22);
}

.company-unified-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-unified-info {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.company-unified-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem;
}

.company-legal-ar {
  font-size: 1.14rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.company-legal-en {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.company-ecosystem-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--emerald-bright);
}

/* ===== Live Platform Pulse & Smart Statistics Section ===== */
.pulse-section {
  padding: 3.5rem 0 4.5rem;
  position: relative;
}

.pulse-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.pulse-title-wrap h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 900;
  margin-bottom: 0.45rem;
}

.pulse-title-wrap p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 66ch;
}

.pulse-Sync-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  background: rgba(15, 27, 49, 0.85);
  border: 1px solid rgba(33, 198, 139, 0.3);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.sync-pill strong {
  color: var(--emerald-bright);
}

/* 6 Smart KPI Cards */
.kpi-power-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.6rem;
}

.kpi-card {
  background: linear-gradient(155deg, rgba(14, 26, 48, 0.88), rgba(8, 15, 30, 0.92));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.45rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
  backdrop-filter: blur(14px);
}

.kpi-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-emerald);
}

.kpi-card::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--cyan), transparent);
  opacity: 0.65;
}

.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.kpi-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.kpi-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.16rem 0.58rem;
  border-radius: 999px;
  background: rgba(33, 198, 139, 0.14);
  border: 1px solid rgba(33, 198, 139, 0.3);
  color: var(--emerald-bright);
  white-space: nowrap;
}

.kpi-badge-cyan {
  background: rgba(56, 189, 248, 0.13);
  border-color: rgba(56, 189, 248, 0.32);
  color: #7dd3fc;
}

.kpi-main-val {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  direction: ltr;
  text-align: start;
}

.kpi-main-val .unit-sm {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--emerald-bright);
  margin-inline-start: 0.3rem;
}

.kpi-sub {
  font-size: 0.81rem;
  color: var(--text-muted);
}

.kpi-meter {
  margin-top: 0.7rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.kpi-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 4-Node Cluster Strip */
.cluster-nodes-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.95rem;
  margin-bottom: 2rem;
}

.node-mini-card {
  background: rgba(9, 17, 33, 0.86);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  padding: 1rem 1.1rem;
}

.node-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.node-mini-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.node-online-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald-bright);
  background: rgba(33, 198, 139, 0.12);
  border: 1px solid rgba(33, 198, 139, 0.28);
  padding: 0.12rem 0.52rem;
  border-radius: 999px;
}

.node-mini-metrics {
  display: flex;
  justify-content: space-between;
  font-size: 0.79rem;
  color: var(--text-secondary);
  margin-bottom: 0.55rem;
}

.node-mini-metrics strong {
  color: var(--text-primary);
}

.node-bars {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.node-bar-row {
  display: grid;
  grid-template-columns: 36px 1fr 42px;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  direction: ltr;
}

.node-bar-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.node-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--emerald);
  transition: width 0.5s ease;
}

.node-bar-fill.ram {
  background: var(--cyan);
}

/* Active Lectures Summary & College Cards */
.live-meetings-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  padding: 0.95rem 1.4rem;
  background: rgba(13, 25, 46, 0.88);
  border: 1px solid rgba(33, 198, 139, 0.28);
  border-radius: 16px;
  margin-bottom: 1.35rem;
}

.lms-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.lms-item strong {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--emerald-bright);
}

.live-colleges-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.live-college-card {
  background: rgba(10, 19, 36, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.6);
}

.live-college-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1rem 1.35rem;
  background: linear-gradient(90deg, rgba(33, 198, 139, 0.11), rgba(15, 27, 49, 0.6));
  border-bottom: 1px solid var(--border-subtle);
}

.live-college-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.04rem;
  color: var(--text-primary);
}

.live-college-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(33, 198, 139, 0.16);
  border: 1px solid rgba(33, 198, 139, 0.35);
  color: var(--emerald-bright);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.live-college-counters {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.live-college-counters strong {
  color: var(--text-primary);
  font-weight: 800;
}

.live-table-head,
.live-table-row {
  display: grid;
  grid-template-columns: 1fr 110px 110px 110px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.35rem;
}

.live-table-head {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.live-table-row {
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 0.9rem;
  transition: background 0.18s ease;
}

.live-table-row:last-child {
  border-bottom: none;
}

.live-table-row:hover {
  background: rgba(33, 198, 139, 0.04);
}

.lecture-name-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: var(--text-primary);
}

.lecture-cam-dot {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(33, 198, 139, 0.14);
  color: var(--emerald-bright);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cell-center {
  text-align: center;
}

.node-chip {
  display: inline-block;
  padding: 0.18rem 0.62rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  background: rgba(33, 198, 139, 0.13);
  border: 1px solid rgba(33, 198, 139, 0.3);
  color: var(--emerald-bright);
  direction: ltr;
}

.attendee-num {
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--text-primary);
}

.live-stream-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.2rem 0.68rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.34);
  color: #fca5a5;
}

.standby-ready-card {
  background: linear-gradient(145deg, rgba(11, 24, 45, 0.9), rgba(7, 15, 30, 0.94));
  border: 1px solid rgba(33, 198, 139, 0.3);
  border-radius: 18px;
  padding: 1.8rem;
  text-align: center;
}

.standby-ready-card h4 {
  font-size: 1.18rem;
  color: var(--emerald-bright);
  margin-bottom: 0.45rem;
}

.standby-ready-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 62ch;
  margin: 0 auto;
}

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: rgba(5, 10, 20, 0.72);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}

.contact-row:hover {
  border-color: var(--emerald);
}

.contact-row-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-row-val {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--emerald-bright);
}

.portal-notice {
  margin-top: 1.3rem;
  padding: 0.95rem 1.15rem;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.24);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  margin-top: 2rem;
  background: rgba(3, 7, 15, 0.85);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--emerald-bright);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .company-showcase {
    grid-template-columns: 1fr;
  }
  .arch-grid,
  .diag-results,
  .cluster-nodes-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .cap-grid,
  .kpi-power-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 2.4rem;
  }
  .hero-metrics,
  .arch-grid,
  .cap-grid,
  .diag-results,
  .archive-pipeline,
  .kpi-power-grid,
  .cluster-nodes-strip {
    grid-template-columns: 1fr;
  }
  .live-table-head,
  .live-table-row {
    grid-template-columns: 1fr 82px;
  }
  .hide-mobile-col {
    display: none;
  }
  .studio-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .studio-panels-viewport {
    height: 310px;
  }
  .live-edge-pill {
    display: none;
  }
  .diag-card,
  .company-showcase {
    padding: 1.4rem;
  }
}
