:root {
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --teal: #14b8a6;
  --green: #22c55e;
  --pink: #ec4899;
  --amber: #f59e0b;
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border: rgba(220, 225, 240, 0.7);
  --shadow:
    0 8px 32px rgba(80, 100, 160, 0.1), 0 2px 8px rgba(80, 100, 160, 0.07);
  --shadow-lg:
    0 20px 60px rgba(80, 100, 160, 0.14), 0 4px 16px rgba(80, 100, 160, 0.08);
}
/* ─── feature WRAPPER ─── */
.features-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 100px 24px 80px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f9 60%, #eef0f8 100%);
  overflow: hidden;
}

/* subtle grid overlay */
.features-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: white;
  background-size: 48px 48px;
  pointer-events: none;
}

/* radial glow behind centre */
.features-hero::after {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 820px;
  height: 520px;
  /* background: radial-gradient(ellipse at center,
                    rgba(139, 92, 246, 0.10) 0%,
                    rgba(59, 130, 246, 0.08) 40%,
                    transparent 75%); */
  pointer-events: none;
}

/* ─── TYPOGRAPHY ─── */
.features-hero-text {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-bottom: 30px;
}

.features-hero-text h2 {
  font-size: 48px;
  font-weight: 700;
  color: #0f1120;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.features-hero-text p {
  font-size: 22px;
  font-weight: 400;
  color: #6e6e73;
  letter-spacing: -0.01em;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── STAGE (dashboard + cards) ─── */
.features-stage {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1350px;
  height: 750px;
}

/* ─── DASHBOARD BLUR ─── */
.features-dashboard {
  position: absolute;
  inset: 24px 60px;
  border-radius: 24px;
  background: rgba(181, 85, 85, 0.55);
  background-image: url("../../assets/images/SuperAdmindashboardDashboards.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.1;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  /* border: 1.5px solid rgba(6, 6, 6, 0.8); */
  box-shadow:
    0 32px 80px rgba(80, 100, 180, 0.12),
    0 4px 20px rgba(80, 100, 180, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

/* fake sidebar */
.features-db-sidebar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 148px;
  background: rgba(248, 249, 254, 0.7);
  border-right: 1px solid rgba(220, 225, 245, 0.6);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0.4;
}

.features-db-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-db-logo svg {
  width: 16px;
  height: 16px;
  fill: white;
}

.features-db-nav-item {
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  font-size: 11px;
  color: #8892b0;
  font-weight: 500;
}

.features-db-nav-item.features-active {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.features-db-nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}

/* fake content area */
.features-db-content {
  position: absolute;
  left: 148px;
  top: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px;
  overflow: hidden;
}

/* stats row */
.features-db-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.features-db-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(220, 225, 245, 0.7);
}

.features-db-stat-val {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1f36;
  letter-spacing: -0.02em;
}

.features-db-stat-label {
  font-size: 10px;
  color: #9ba3bf;
  margin-top: 2px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.features-up {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.features-neutral {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

/* chart area */
.features-db-charts {
  display: flex;
  gap: 12px;
}

.features-db-chart-main {
  flex: 2;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 225, 245, 0.7);
  height: 180px;
  position: relative;
  overflow: hidden;
  opacity: 0.4;
}

.features-db-chart-side {
  flex: 1;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 225, 245, 0.7);
  height: 180px;
  overflow: hidden;
  opacity: 0.4;
}

.features-db-chart-title {
  font-size: 11px;
  font-weight: 600;
  color: #4a5280;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.features-db-chart-title span {
  font-size: 9px;
  color: #9ba3bf;
  font-weight: 400;
}

/* SVG bar chart */
.features-bar-chart {
  width: 100%;
  height: 120px;
}

/* donut */
.features-donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4px;
}

.features-donut-legend {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.features-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: #9ba3bf;
}

.features-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* bottom row */
.features-db-bottom {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.features-db-table {
  flex: 2;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 225, 245, 0.7);
  height: 110px;
  overflow: hidden;
  opacity: 0.4;
}

.features-db-mini-card {
  flex: 1;
  background: linear-gradient(135deg, #c7d2fe 0%, #e0e7ff 100%);
  border-radius: 12px;
  padding: 14px;
  height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0.4;
}

.features-db-mini-val {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #3730a3;
  letter-spacing: -0.03em;
}

.features-db-mini-label {
  font-size: 10px;
  color: #6366f1;
  font-weight: 500;
}

.features-db-table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid rgba(220, 225, 245, 0.5);
  font-size: 10px;
  color: #6b7499;
}

.features-db-table-row:last-child {
  border: none;
}

.features-db-table-num {
  font-weight: 600;
  color: #4a5280;
}

.feature-button {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 100px;
}

.feature-primary-btn {
  background: linear-gradient(135deg, #0a84ff, #005bea);
  color: white;
  border: none;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 15px 45px rgba(10, 132, 255, 0.25);
}

.feature-primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 65px rgba(10, 132, 255, 0.35);
}

/* ─── FEATURE CARDS ─── */
.features-card {
  position: absolute;
  background: var(--card-bg);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1.5px solid var(--card-border);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  cursor: default;
  min-width: 300px;
  max-width: 400px;
  animation: floatIn 0.7s cubic-bezier(0.34, 1.2, 0.64, 1) both;
  z-index: 20;
}

.features-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 28px 64px rgba(80, 100, 180, 0.18),
    0 4px 16px rgba(80, 100, 180, 0.09);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.features-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.features-card-icon svg {
  width: 22px;
  height: 22px;
}

.features-card-text h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1a1f36;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 3px;
}

.features-card-text p {
  font-size: 14px;
  color: #8892b0;
  line-height: 1.4;
  font-weight: 500;
}

/* Icon colour schemes */
.features-icon-blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.features-icon-purple {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.features-icon-teal {
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
}

.features-icon-green {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.features-icon-amber {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.features-icon-pink {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}

.features-icon-indigo {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

.features-icon-rose {
  background: linear-gradient(135deg, #ffe4e6, #fecdd3);
}

/* Card positions */
.features-card-governance {
  top: 52px;
  left: 90px;
  animation-delay: 0.05s;
}

.features-card-ai {
  top: 52px;
  right: 90px;
  animation-delay: 0.12s;
}

.features-card-compliance {
  top: 117px;
  left: 45%;
  transform: translateX(-50%);
  animation-delay: 0.18s;
}

.features-card-reporting {
  top: 240px;
  left: 190px;
  animation-delay: 0.24s;
}

.features-card-financial {
  top: 220px;
  right: 160px;
  animation-delay: 0.3s;
}

.features-card-roleaccess {
  top: 340px;
  left: 40%;
  transform: translateX(-50%);
  animation-delay: 0.36s;
}

.features-card-campus {
  bottom: 200px;
  left: 120px;
  animation-delay: 0.42s;
}

.features-card-comms {
  bottom: 170px;
  left: 45%;
  transform: translateX(-12%);
  animation-delay: 0.48s;
}

/* hover fix for centred cards */
.features-card-compliance:hover {
  transform: translateX(-50%) translateY(-5px) scale(1.02);
}

.features-card-roleaccess:hover {
  transform: translateX(-50%) translateY(-5px) scale(1.02);
}

.features-card-comms:hover {
  transform: translateX(-12%) translateY(-5px) scale(1.02);
}

/* ─── CONNECTOR DOTS ─── */
.features-dots-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
  overflow: visible;
}

.features-connector-line {
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  opacity: 0.35;
}

.features-glow-dot {
  animation: pulse 2.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.9;
    r: 4;
  }

  50% {
    opacity: 0.4;
    r: 2.5;
  }
}

/* stagger dot pulses */
.features-glow-dot:nth-child(2) {
  animation-delay: 0.4s;
}

.features-glow-dot:nth-child(3) {
  animation-delay: 0.8s;
}

.features-glow-dot:nth-child(4) {
  animation-delay: 1.2s;
}

.features-glow-dot:nth-child(5) {
  animation-delay: 1.6s;
}

.features-glow-dot:nth-child(6) {
  animation-delay: 0.2s;
}

.features-glow-dot:nth-child(7) {
  animation-delay: 1s;
}

.features-glow-dot:nth-child(8) {
  animation-delay: 0.6s;
}

/* =====================================================
           MOBILE RESPONSIVE STYLES — ADDED ONLY, NO DESKTOP CHANGES
           ===================================================== */

/* ── TABLET (≤1024px) ── */
@media (max-width: 1024px) {
  .features-stage {
    height: 820px;
  }

  .features-card-governance {
    top: 40px;
    left: 40px;
    right: auto;
  }

  .features-card-ai {
    top: 40px;
    right: 40px;
  }

  .features-card-compliance {
    top: 160px;
    left: 42%;
  }

  .features-card-reporting {
    top: 280px;
    left: 60px;
  }

  .features-card-financial {
    top: 260px;
    right: 60px;
  }

  .features-card-roleaccess {
    top: 400px;
    left: 38%;
  }

  .features-card-campus {
    bottom: 160px;
    left: 60px;
  }

  .features-card-comms {
    bottom: 140px;
    left: 42%;
    transform: translateX(-10%);
  }
}

/* ── LARGE MOBILE (≤768px) ── */
@media (max-width: 768px) {
  .features-hero {
    padding: 48px 0 60px;
    min-height: auto;
    overflow: hidden; /* ── FIX: clip overflowing cards */
  }

  .features-hero-text {
    padding: 0 20px;
    /* margin-bottom: 24px; */
  }

  /* Stage becomes a tall scroll container with dashboard behind */
  .features-stage {
    position: relative;
    width: 100%; /* ── FIX: never exceed viewport width */
    max-width: 100%; /* ── FIX: override the 1350px desktop max-width */
    height: auto;
    min-height: 900px;
    padding-bottom: 40px;
    overflow: hidden; /* ── FIX: clip any child that pokes outside */
  }

  /* Dashboard stretches full height behind cards */
  .features-dashboard {
    position: absolute;
    inset: 0 12px; /* ── FIX: reset desktop inset (24px 60px) to mobile values */
    border-radius: 20px;
    opacity: 0.13;
  }

  /* Hide SVG dots on mobile — too cluttered */
  .features-dots-svg {
    display: none;
  }

  /* ── Shared mobile card base ── */
  .features-card {
    position: absolute;
    min-width: 0; /* ── FIX: allow cards to shrink below 230px desktop min */
    width: 62%;
    max-width: 280px;
    /* override any desktop transform */
    transform: none !important;
    animation: floatIn 0.7s cubic-bezier(0.34, 1.2, 0.64, 1) both;
  }

  /* Hover: keep simple on mobile */
  .features-card:hover {
    transform: translateY(-4px) !important;
  }

  /* ── ZIG-ZAG POSITIONS ──
               Odd cards  → left-aligned
               Even cards → right-aligned
            */

  /* 1 — Multi-Faculty Governance → LEFT */
  .features-card-governance {
    top: 28px;
    left: 12px;
    right: auto;
    transform: none !important;
    animation-delay: 0.05s;
  }

  /* 2 — AI Academic Insights → RIGHT */
  .features-card-ai {
    top: 140px;
    right: 12px;
    left: auto;
    transform: none !important;
    animation-delay: 0.1s;
  }

  /* 3 — Compliance & Audit Logs → LEFT */
  .features-card-compliance {
    top: 252px;
    left: 12px;
    right: auto;
    transform: none !important;
    animation-delay: 0.15s;
  }

  /* 4 — Academic Reporting → RIGHT */
  .features-card-reporting {
    top: 364px;
    right: 12px;
    left: auto;
    transform: none !important;
    animation-delay: 0.2s;
  }

  /* 5 — Financial Management → LEFT */
  .features-card-financial {
    top: 476px;
    left: 12px;
    right: auto;
    transform: none !important;
    animation-delay: 0.25s;
  }

  /* 6 — Role-Based Access → RIGHT */
  .features-card-roleaccess {
    top: 588px;
    right: 12px;
    left: auto;
    transform: none !important;
    animation-delay: 0.3s;
  }

  /* 7 — Multi-Campus Control → LEFT */
  .features-card-campus {
    top: 700px;
    bottom: auto;
    left: 12px;
    right: auto;
    transform: none !important;
    animation-delay: 0.35s;
  }

  /* 8 — Communication Hub → RIGHT */
  .features-card-comms {
    top: 812px;
    bottom: auto;
    right: 12px;
    left: auto;
    transform: none !important;
    animation-delay: 0.4s;
  }

  .features-stage {
    min-height: 970px;
  }
}

/* ── MEDIUM MOBILE (≤600px) ── */
@media (max-width: 600px) {
  .features-hero {
    padding: 40px 0 50px;
  }

  .features-card {
    width: 64%;
    max-width: 260px;
    padding: 12px 14px;
    gap: 12px;
    border-radius: 16px;
  }

  .features-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .features-card-icon svg {
    width: 20px;
    height: 20px;
  }

  .features-card-text h3 {
    font-size: 16px;
  }

  .features-card-text p {
    font-size: 14px;
  }

  /* Tighten vertical spacing */
  .features-card-governance {
    top: 24px;
  }

  .features-card-ai {
    top: 128px;
  }

  .features-card-compliance {
    top: 232px;
  }

  .features-card-reporting {
    top: 336px;
  }

  .features-card-financial {
    top: 440px;
  }

  .features-card-roleaccess {
    top: 544px;
  }

  .features-card-campus {
    top: 648px;
  }

  .features-card-comms {
    top: 752px;
  }

  .features-stage {
    min-height: 900px;
  }
}

/* ── SMALL MOBILE (≤480px) ── */
@media (max-width: 480px) {
  .features-hero {
    padding: 36px 0 44px;
  }
  .features-hero-text h2 {
    font-size: 24px;
  }
  .features-hero-text p {
    font-size: 16px;
  }

  .features-card {
    width: 66%;
    max-width: 240px;
    padding: 11px 13px;
    gap: 11px;
    border-radius: 15px;
  }

  .features-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .features-card-icon svg {
    width: 18px;
    height: 18px;
  }

  .features-card-text h3 {
    font-size: 13px;
  }

  .features-card-text p {
    font-size: 13px;
  }

  .features-card-governance {
    top: 20px;
    left: 8px;
  }

  .features-card-ai {
    top: 118px;
    right: 8px;
  }

  .features-card-compliance {
    top: 216px;
    left: 8px;
  }

  .features-card-reporting {
    top: 314px;
    right: 8px;
  }

  .features-card-financial {
    top: 412px;
    left: 8px;
  }

  .features-card-roleaccess {
    top: 510px;
    right: 8px;
  }

  .features-card-campus {
    top: 608px;
    left: 8px;
  }

  .features-card-comms {
    top: 706px;
    right: 8px;
  }

  .features-stage {
    min-height: 860px;
  }

  .features-dashboard {
    inset: 0 8px;
  }
}

/* ── EXTRA SMALL (≤360px) ── */
@media (max-width: 360px) {
  .features-hero {
    padding: 30px 0 36px;
  }

  .features-card {
    width: 70%;
    max-width: 220px;
    padding: 10px 12px;
    gap: 10px;
    border-radius: 14px;
  }

  .features-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .features-card-icon svg {
    width: 17px;
    height: 17px;
  }

  .features-card-text h3 {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .features-card-text p {
    font-size: 10px;
  }

  .features-card-governance {
    top: 18px;
    left: 6px;
  }

  .features-card-ai {
    top: 110px;
    right: 6px;
  }

  .features-card-compliance {
    top: 202px;
    left: 6px;
  }

  .features-card-reporting {
    top: 294px;
    right: 6px;
  }

  .features-card-financial {
    top: 386px;
    left: 6px;
  }

  .features-card-roleaccess {
    top: 478px;
    right: 6px;
  }

  .features-card-campus {
    top: 570px;
    left: 6px;
  }

  .features-card-comms {
    top: 662px;
    right: 6px;
  }

  .features-stage {
    min-height: 820px;
  }

  .features-dashboard {
    inset: 0 6px;
  }
}
