/* ==========================================
   🌟 FEATURES PAGE STYLES
   ========================================== */
.features-hero {
  text-align: center;
  padding: 80px 20px 40px;
  background: var(--bg-light);
}
.features-hero h1 { font-size: 3rem; color: var(--text-dark); margin-bottom: 20px; font-weight: 800; }
.features-hero h1 span { color: var(--primary-blue); }
.features-hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; line-height: 1.6; }

/* Bố cục Zig-zag */
.feat-section {
  padding: 30px 0;
  overflow: hidden;
}
.feat-section:nth-child(even) { background: white; }
.feat-section:nth-child(odd) { background: var(--bg-light); }

.feat-container {
  display: flex;
  align-items: center;
  gap: 60px;
}
/* Đảo ngược layout ở các section chẵn */
.feat-section:nth-child(even) .feat-container { flex-direction: row-reverse; }

.feat-content { flex: 1; opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.feat-visual { flex: 1; position: relative; opacity: 0; transform: translateY(30px); transition: all 0.8s ease 0.2s; }

/* Trạng thái hiển thị khi Scroll (Sẽ được JS kích hoạt) */
.feat-section.in-view .feat-content,
.feat-section.in-view .feat-visual {
  opacity: 1; transform: translateY(0);
}

.feat-badge { display: inline-flex; align-items: center; gap: 8px; background: #E5EEFF; color: var(--primary-blue); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; }
.feat-content h2 { font-size: 2.2rem; color: var(--text-dark); margin-bottom: 20px; line-height: 1.3; font-weight: 800; }
.feat-content p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; }
.feat-list { list-style: none; padding: 0; }
.feat-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; font-size: 1rem; color: var(--text-dark); font-weight: 500; }
.feat-list li i { color: var(--primary-blue); font-size: 1.4rem; margin-top: 2px; }

/* ==========================================
   🎨 CSS UI MOCKUPS (Hình minh họa ảo)
   ========================================== */
.mockup-box { background: white; border-radius: 20px; padding: 30px; box-shadow: 0 20px 40px rgba(0,0,0,0.06); border: 1px solid #e5e7eb; position: relative; overflow: hidden; }
.mockup-box.dark { background: var(--footer-bg); border-color: #1f2937; color: white; box-shadow: 0 20px 40px rgba(0,82,255,0.15); }
.mockup-box .glow { position: absolute; top: -50px; right: -50px; width: 150px; height: 150px; background: var(--primary-blue); filter: blur(60px); opacity: 0.4; }

.mk-flex { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.mk-tag { background: #E5EEFF; color: var(--primary-blue); padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: bold; }
.mk-tag.green { background: #E6F8F0; color: #00C070; }
.mk-tag.red { background: #fee2e2; color: #ef4444; }

.mk-terminal-header { display: flex; gap: 8px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #374151; }
.mk-dot { width: 12px; height: 12px; border-radius: 50%; }
.mk-dot.r { background: #ef4444; } .mk-dot.y { background: #f59e0b; } .mk-dot.g { background: #10b981; }
.mk-code { font-family: monospace; color: #a7f3d0; line-height: 1.8; font-size: 0.9rem; }
.mk-code span { color: #60a5fa; }

@media (max-width: 992px) {
  .feat-container, .feat-section:nth-child(even) .feat-container { flex-direction: column; gap: 40px; text-align: center; }
  .feat-list li { text-align: left; }
}