.hero-section {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 10rem;
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 10;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
  }
}

/* Left Content Styles */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 1rem 0.35rem 0.35rem;
  background-color: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.badge-new {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: linear-gradient(to right, #3b82f6, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: textGradient 6s linear infinite;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 3.0rem;
  }
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 95%;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.15rem;
    max-width: 90%;
  }
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
    max-width: none;
  }
}

.hero-btn {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-btn {
    width: auto;
  }
}


/* Right Side - Dashboard Mockup */
.hero-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  perspective: 1000px;
}

/* Ambient glow — makes mockup pop on hero background */
.hero-mockup-wrapper::before {
  content: "";
  position: absolute;
  inset: -16px -12px -20px;
  background: linear-gradient(135deg, rgba(18, 142, 199, 0.233), rgba(92, 95, 246, 0.22), rgba(14, 167, 154, 0.466));
  border-radius: 1.35rem;
  z-index: 0;
  filter: blur(28px);
  opacity: 0.85;
  pointer-events: none;
}

.hero-mockup-wrapper .dashboard-mockup {
  position: relative;
  z-index: 1;
}

.dashboard-mockup {
  width: 100%;
  min-height: 420px;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  transform: rotateY(-6deg) rotateX(4deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
}

.hero-mockup-wrapper:hover .dashboard-mockup {
  transform: rotateY(0deg) rotateX(0deg);
}

/* ── School Intelligence Board preview (mirrors admin AdminView) ── */
/* Always light dashboard palette — readable on any site theme */
.dashboard-mockup.hero-sic-board {
  color-scheme: light;
  color: #0f172a;
  background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 48%, #f0fdf4 100%);
  border: 2px solid rgba(59, 130, 246, 0.55);
  box-shadow:
    0 32px 64px -18px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.95) inset,
    0 0 56px rgba(37, 99, 235, 0.18);
}

.hero-mockup-wrapper:hover .dashboard-mockup.hero-sic-board {
  box-shadow:
    0 40px 72px -16px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(255, 255, 255, 1) inset,
    0 0 72px rgba(37, 99, 235, 0.28);
}

.hero-sic-board {
  aspect-ratio: auto;
  font-size: 10px;
  line-height: 1.35;
}

.mockup-header.hero-sic-chrome {
  height: 2.35rem;
  background: linear-gradient(90deg, #0f172a, #1e293b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.75rem;
  padding: 0 0.75rem;
}

.hero-sic-chrome {
  gap: 0.75rem;
  padding: 0 0.75rem;
}

.hero-sic-chrome-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-sic-chrome-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.hero-sic-chrome-user {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mockup-body.hero-sic-body {
  padding: 0.5rem;
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

.hero-sic-body {
  padding: 0.5rem;
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

.hero-sic-sidebar {
  width: 22%;
  min-width: 72px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-radius: 8px;
  padding: 0.45rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-sic-sidebar-brand {
  font-size: 0.55rem;
  font-weight: 800;
  color: #f1f5f9;
  padding: 0.25rem 0.35rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-sic-nav-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.35rem;
  border-radius: 5px;
  color: #94a3b8;
  font-size: 0.52rem;
  font-weight: 600;
}

.hero-sic-nav-item.is-active {
  background: rgba(37, 99, 235, 0.35);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.hero-sic-nav-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}

.hero-sic-nav-item.is-active .hero-sic-nav-dot {
  opacity: 1;
}

.hero-sic-nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-sic-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 0.15rem;
  overflow: hidden;
}

.hero-sic-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.hero-sic-page-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.hero-sic-page-sub {
  font-size: 0.52rem;
  color: #64748b;
  margin: 0.1rem 0 0;
}

.hero-sic-badge-live {
  font-size: 0.48rem;
  font-weight: 800;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-sic-action-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem 0.45rem;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  font-size: 0.5rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.hero-sic-ping {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #059669;
  font-weight: 700;
}

.hero-sic-ping-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  animation: heroPing 2s ease-in-out infinite;
}

@keyframes heroPing {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-sic-action-sep {
  color: var(--border-color);
  opacity: 0.8;
}

.hero-sic-action-muted {
  color: #64748b;
}

.hero-sic-action-muted strong {
  color: #0f172a;
}

/* KPI strip */
.hero-sic-kpi-strip {
  display: grid;
  grid-template-columns: 1.6fr 0.85fr 0.85fr 0.75fr 0.75fr;
  gap: 0.35rem;
}

.hero-sic-kpi {
  border-radius: 8px;
  padding: 0.4rem 0.45rem;
  position: relative;
  overflow: hidden;
  min-height: 58px;
}

.hero-sic-kpi--hero {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 55%, #162033 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35), 0 0 24px rgba(37, 99, 235, 0.15);
}

.hero-sic-kpi--mini {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-sic-kpi__label {
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 0.15rem;
}

.hero-sic-kpi__value {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-sic-kpi__session {
  font-size: 0.45rem;
  color: rgba(148, 163, 184, 0.65);
  font-weight: 600;
  margin: 0.1rem 0;
}

.hero-sic-kpi__trend {
  display: inline-block;
  font-size: 0.42rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.hero-sic-kpi__staff {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.45rem;
  color: rgba(148, 163, 184, 0.75);
}

.hero-sic-kpi__staff strong {
  color: rgba(255, 255, 255, 0.9);
}

.hero-sic-spark {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 28px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-sic-kpi__label-sm {
  font-size: 0.46rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.hero-sic-kpi__value-sm {
  font-size: 0.55rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.hero-sic-kpi__sub {
  font-size: 0.42rem;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 0.15rem;
}

.hero-sic-kpi__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0d9488, #06b6d4);
}

.hero-sic-kpi__accent.violet {
  background: linear-gradient(90deg, #7c3aed, #db2777);
}

.hero-sic-kpi__dots {
  display: flex;
  gap: 3px;
  margin-top: 0.2rem;
  justify-content: center;
}

.hero-sic-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.hero-sic-gauge {
  position: relative;
  width: 44px;
  height: 44px;
}

.hero-sic-gauge__pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 900;
  color: #0d9488;
}

.hero-sic-exam-arc {
  position: relative;
  width: 48px;
  height: 48px;
}

.hero-sic-exam-arc__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  font-weight: 900;
  color: #7c3aed;
}

/* Analytics + Activity row */
.hero-sic-hub-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.35rem;
  flex: 1;
  min-height: 0;
}

.hero-sic-hub,
.hero-sic-feed {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.4rem 0.45rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.hero-sic-hub-title {
  font-size: 0.58rem;
  font-weight: 800;
  color: #0f172a;
}

.hero-sic-hub-sub {
  font-size: 0.48rem;
  color: #64748b;
  margin-top: 0.05rem;
}

.hero-sic-tag {
  font-size: 0.42rem;
  font-weight: 800;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero-sic-tag--green {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.hero-sic-hub-head,
.hero-sic-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.hero-sic-chart-label {
  font-size: 0.48rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.2rem;
}

.hero-sic-chart-total {
  float: right;
  color: #0d9488;
  font-weight: 800;
}

.hero-sic-area {
  width: 100%;
  height: 52px;
  display: block;
  margin-bottom: 0.35rem;
}

.hero-sic-fin-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  padding-top: 0.3rem;
}

.hero-sic-fin-stat {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.hero-sic-fin-label {
  font-size: 0.42rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero-sic-fin-value {
  font-size: 0.58rem;
  font-weight: 900;
}

.hero-sic-fin-value--danger { color: #ef4444; }
.hero-sic-fin-value--warning { color: #d97706; }
.hero-sic-fin-value--success { color: #059669; }

.hero-sic-feed-item {
  display: flex;
  gap: 0.35rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.hero-sic-feed-item:last-child {
  border-bottom: none;
}

.hero-sic-feed-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 6px;
  background: rgba(100, 116, 139, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  flex-shrink: 0;
}

.hero-sic-feed-body {
  min-width: 0;
  flex: 1;
}

.hero-sic-feed-meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.08rem;
}

.hero-sic-feed-time {
  font-size: 0.42rem;
  color: #94a3b8;
  font-weight: 600;
}

.hero-sic-feed-cat {
  font-size: 0.4rem;
  font-weight: 800;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 0.05rem 0.25rem;
  border-radius: 999px;
}

.hero-sic-feed-text {
  font-size: 0.48rem;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 640px) {
  .hide-mobile-kpi {
    display: none;
  }

  .hero-sic-kpi-strip {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .hero-sic-hub-row {
    grid-template-columns: 1fr;
  }

  .hero-sic-sidebar {
    display: none;
  }

  .hero-sic-body {
    padding: 0.4rem;
  }
}

@media (max-width: 480px) {
  .dashboard-mockup {
    min-height: 320px;
  }

  .hero-sic-kpi-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .hero-sic-kpi--hero {
    grid-column: 1 / -1;
  }

  .hero-sic-page-title {
    font-size: 0.55rem;
  }

  .hero-sic-chrome-title {
    font-size: 0.5rem;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.mockup-header {
  height: 2.5rem;
  background: rgba(var(--card-bg-rgb), 0.5);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 1.5rem;
}

.window-controls {
  display: flex;
  gap: 6px;
}

.window-controls span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
}

.window-controls span:nth-child(2) {
  background: #ffbd2e;
}

.window-controls span:nth-child(3) {
  background: #27c93f;
}

.mockup-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* Floating Elements */
.floating-card {
  position: absolute;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 220px;
  animation: floatElement 6s ease-in-out infinite;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  z-index: 20;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.card-1 {
  top: 10%;
  right: -5%;
  animation-delay: 0s;
}

.card-2 {
  bottom: 15%;
  left: -5%;
  animation-delay: 3s;
}

.floating-card .icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card .icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.floating-card .icon.green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.floating-card .details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.float-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
}

.float-subtitle {
  font-size: 0.7rem;
  color: #64748b;
}

/* Decorative Backgrounds */
.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: floatElement 15s ease-in-out infinite alternate;
  filter: blur(60px);
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: floatElement 12s ease-in-out infinite alternate-reverse;
  filter: blur(80px);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--border-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
  background-size: 4rem 4rem;
  opacity: 0.2;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

/* Animations */
@keyframes textGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.animate-slide-in-right {
  animation: slideInRight 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}